|
Hello everyone,
skipws works for both char based and wchar_t based string stream? I have not found formal clarification from MSDN.
http://msdn2.microsoft.com/en-us/library/98bsd5x4.aspx
thanks in advance,
George
|
|
|
|
|
Did you try it ?
I would imagine that if nothing is said specific to that, it would be supported for all formats.
spaces are spaces are spaces.
|
|
|
|
|
Thanks Maximilien,
I have tested that it works! Cool!
A further question, L"\n" or L"\r" or L"\t" has the same meaning and function in UNICODE compared with ANSI peers "\n" or "\r" or "\t"? Or we should use other terms to represent "\n", "\r" and "\t" meaning of ANSI in UNICODE?
regards,
George
|
|
|
|
|
Deal experts,
I have some doughts on DLLs.
1) who will load the dependent dll in windows?
2) Do we need to specify any thing in our library to help auto dependent library loading?
3) Does the application needs to specify anything about all dependency libraries?
4) If some loader is doing this job, how it will get the dependent libs information?
5) Does OS will do any job in this regard?
6) what are the data structures used for this automatic dependent libraries loading?
Please explain me the mystry behind this automatic dependent libraries loading in windows? who will do which job and what are datastructures?
thanks in advance,
Ravinder Are
Are
|
|
|
|
|
In an exe/dll, there will be sections called Import address table, Import directory table etc which will be holding the information about the depended modules and the functions of it. The loader reads this information while loading the exe and loades the dependend modules. if you want learn more, study the structure of Portabel Executale( PE ). Here is a good article An In-Depth Look into the Win32 Portable Executable File Format[^]
|
|
|
|
|
hellow everybody!!
can u help me to solve my stuff
/******this code convert BMP file into Single page TIFF file***/
CImage image;
image.Load(_T("C:\\BitmapPrntPages\\film.bmp"));
image.Save(_T("C:\\BitmapPrntPages\\tiff_image1.tif"),ImageFormatTIFF);
/*************************************
i want to convert Bitmap(*.bmp) files into multiPage TIFF file
share your thoughts.
regards
vmthiru
VmTHiru
Software Engineer's
|
|
|
|
|
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++
|
|
|
|