|
VmTHiru wrote: i want to convert Bitmap(*.bmp) files into multiPage TIFF file
do you want convert single image in multiple tiff image
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
Hi Mark ...
how to possible in VC++ ??
Thanks
|
|
|
|
|
__interface IFileIO : IDispatch<br />
{<br />
[id(1), helpstring("method GetFile")] HRESULT GetFile();<br />
[id(2), helpstring("method getDirectory")] HRESULT GetDirectory();<br />
};<br />
<br />
class ATL_NO_VTABLE EDCService :public IFileIO<br />
{<br />
public:<br />
EDCService()<br />
{<br />
}<br />
DECLARE_PROTECT_FINAL_CONSTRUCT()<br />
HRESULT FinalConstruct()<br />
{<br />
return S_OK;<br />
}<br />
<br />
void FinalRelease()<br />
{<br />
}<br />
<br />
public:<br />
<br />
STDMETHOD(GetFile);<br />
STDMETHOD(GetDirectory);<br />
}<br />
Hi friends ...
STDMETHOD(GetFile);<br />
STDMETHOD(GetDirectory); these two methods definitions are written main.cpp
i doing so many try's to solve this prob..first i create instance of EDCService.like
EDCService edcobj;
then i create instance of EDCService like
edcobj.CreateInstance(); but showing..
When i compile this code i get the follwing errors i dont know how was solve it
error C2039: 'CreateInstance' : is not a member of 'EDCService'
error C2259: 'EDCService' : cannot instantiate abstract class
Please tell me how to solve this problem ..
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
use smart pointers as below;
EDCServicePtr edcobj;
edcobj.CreateInstance(.......);
|
|
|
|
|
Thanks 2 your replay ..
i cant understand ..please tell me briefly and also how to use smart pointers..in my class
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
modified on Monday, March 3, 2008 1:45 AM
|
|
|
|
|
Can you please keep the subject line of your post descriptive? Anything other than PLZZZ HELP, URGENT HELP REQUIRED, PROGRAM NOT WORKING, etc?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I want to add a normal menu to ActiveX control, is it possible?
if yes, how to add it?
thx
|
|
|
|
|
Hi again,
Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi.
How can I convert CString to int in UNICODE app?
Hope you can comment thank you.
|
|
|
|
|
|
or better yet, use the generic char types (TCHAR) and your code will compile for
both Unicode and non-Unicode builds.
Using Generic Text Mappings[^]
_tstoi() is the generic char function for atoi().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
TooShy2Talk wrote: Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi.
How can I convert CString to int in UNICODE app?
use generic text mapping function _ttoi
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Hello everyone,
Why deque does not provide capacity and reserve function?
thanks in advance,
George
|
|
|
|
|
Only vector and string have capacity() and reserve() capabilities as they guarantee contiguous storage. deque doesn't.
|
|
|
|
|
Hello BerlinCanary,
Your reply is clear. Thanks.
regards,
George
|
|
|
|
|
Hi,
I need to convert CString to WCHAR* but I don't know how.
If you know how please tell me.
Your comment will be a big help.
Thank you.
|
|
|
|
|
If your app is UNICODE enabled then CString can be used at the place of WCHAR* by using its str.GetBuffer() function.
If not then use MultiByteToWideChar() function to convert CString to WCHAR*
|
|
|
|
|
Thank you very much to your reply.
It was very helpful.
|
|
|
|
|
In addition to ccpptrain's reply...
If your app is UNICODE enabled then CString has a casting operator so you can use the string anywhere a
const WCHAR* is expected...without having to use GetBuffer().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for the time.
It helps a lot.
|
|
|
|
|
Mark Salsbery wrote: .without having to use GetBuffer().
What! No GetBuffer() ? That sucks.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hehe
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Rajesh R Subramanian wrote: What! No GetBuffer()? That sucks.
I know, thats really sucks,, but come handy somewhere!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
ThatsAlok wrote: but come handy somewhere!
Not the best thing to have handy while converting a CString to a WCHAR* though.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
deaa all
my problem is valueX[j] value couldn't change when looping j below. anypne can help me to check? thanks a lot.
int halfSize;
int maskNum[5]={0};
double sigma[5]={0.9,1.3,1.65,1.8,2};
int maskSize;
double sumMask=0;
double T=0.66;
for (int k=0;k<5;k++)
{
halfSize = static_cast<int>(sqrt(-log(T))*2*pow(sigma[k],2));
maskSize = 2*halfSize + 1;
maskNum[k] = maskSize;
int *maskX;
double *mask;
maskX = new int[maskSize];
mask = new double[maskSize];
maskX[maskSize]=NULL;
mask[maskSize]=NULL;
for (int j=0;j<masksize;j++)>
{
maskX[j]=static_cast<int>(maskSize/2)-(2*k+2-j);
mask[j]=(1/sqrt(2*PI)*sigma[k])*exp(-pow(maskX[j],2.0)/2*pow(sigma[k],2.0));
sumMask = sumMask + mask[j];
}
for (int jj=0;jj<masksize;jj++)>
{
mask[jj] = mask[jj]/sumMask;
}
delete [] maskX;
delete [] mask;
}
Li Zhiyuan
|
|
|
|