Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError in strcpy Pin
vikas amin20-Dec-05 3:02
vikas amin20-Dec-05 3:02 
AnswerRe: Error in strcpy Pin
khan++20-Dec-05 3:12
khan++20-Dec-05 3:12 
AnswerRe: Error in strcpy Pin
Ted Ferenc20-Dec-05 3:15
Ted Ferenc20-Dec-05 3:15 
AnswerRe: Error in strcpy Pin
RChin20-Dec-05 3:17
RChin20-Dec-05 3:17 
AnswerRe: Error in strcpy Pin
toxcct20-Dec-05 3:22
toxcct20-Dec-05 3:22 
GeneralRe: Error in strcpy Pin
vikas amin20-Dec-05 3:29
vikas amin20-Dec-05 3:29 
GeneralRe: Error in strcpy Pin
Smith#20-Dec-05 3:40
Smith#20-Dec-05 3:40 
AnswerRe: Error in strcpy Pin
Bob Stanneveld20-Dec-05 3:38
Bob Stanneveld20-Dec-05 3:38 
Hello,

You should beware of the UNICODE problems that your code have when you compile with UNICODE defined. See the following where your problems are:
const char* FileName /* ... */ // This declare the normal char string
           = _T("C:\\1.bmp"); // Under UNICODE, this is a w_char* instead of char* 


To solve this problem, use TCHAR* instead of char* where you want to use the _T macro.

[EDIT]
You should also use the macros from tchar.h[^] so that you use UNICODE functions when you build with UNICODE defined.
[/EDIT]

Hope this helps.

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]

-- modified at 9:43 Tuesday 20th December, 2005
AnswerRe: Error in strcpy Pin
Blake Miller20-Dec-05 4:22
Blake Miller20-Dec-05 4:22 
GeneralRe: Error in strcpy Pin
toxcct20-Dec-05 4:35
toxcct20-Dec-05 4:35 
GeneralRe: Error in strcpy Pin
Blake Miller20-Dec-05 4:39
Blake Miller20-Dec-05 4:39 
AnswerRe: Error in strcpy Pin
John M. Drescher20-Dec-05 6:50
John M. Drescher20-Dec-05 6:50 
QuestionRe: Error in strcpy Pin
David Crow20-Dec-05 10:29
David Crow20-Dec-05 10:29 
AnswerRe: Error in strcpy Pin
ThatsAlok20-Dec-05 18:19
ThatsAlok20-Dec-05 18:19 
QuestionInitializing Structure in a class Pin
vikas amin20-Dec-05 2:45
vikas amin20-Dec-05 2:45 
AnswerRe: Initializing Structure in a class Pin
Russell'20-Dec-05 2:55
Russell'20-Dec-05 2:55 
GeneralRe: Initializing Structure in a class Pin
toxcct20-Dec-05 3:02
toxcct20-Dec-05 3:02 
GeneralRe: Initializing Structure in a class Pin
vikas amin20-Dec-05 3:09
vikas amin20-Dec-05 3:09 
GeneralRe: Initializing Structure in a class Pin
toxcct20-Dec-05 3:13
toxcct20-Dec-05 3:13 
GeneralRe: Initializing Structure in a class Pin
Russell'20-Dec-05 3:20
Russell'20-Dec-05 3:20 
GeneralRe: Initializing Structure in a class Pin
Blake Miller20-Dec-05 4:26
Blake Miller20-Dec-05 4:26 
GeneralRe: Initializing Structure in a class Pin
Russell'20-Dec-05 4:37
Russell'20-Dec-05 4:37 
QuestionImplementing Doc/View/Frame in an ActiveX control Pin
zulat20-Dec-05 2:21
zulat20-Dec-05 2:21 
Questionchanging background color of messagebox windows,menu Pin
_kane_20-Dec-05 1:17
_kane_20-Dec-05 1:17 
Questionbitmapped title/caption bar in MFC Pin
_kane_20-Dec-05 1:08
_kane_20-Dec-05 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.