Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setattribute in MSXML Pin
siva45515-Jun-09 6:32
siva45515-Jun-09 6:32 
GeneralRe: Setattribute in MSXML Pin
Cedric Moonen15-Jun-09 7:50
Cedric Moonen15-Jun-09 7:50 
GeneralRe: Setattribute in MSXML Pin
Stuart Dootson15-Jun-09 8:13
professionalStuart Dootson15-Jun-09 8:13 
GeneralRe: Setattribute in MSXML Pin
siva45515-Jun-09 18:23
siva45515-Jun-09 18:23 
GeneralRe: Setattribute in MSXML Pin
Stuart Dootson15-Jun-09 21:08
professionalStuart Dootson15-Jun-09 21:08 
QuestionHow Can I get GPS with a Location Platform-compatible driver for Windows 7 Pin
tgm.arjun0915-Jun-09 1:41
tgm.arjun0915-Jun-09 1:41 
QuestionHow to convert string into LPCWSTR Pin
krish_kumar15-Jun-09 0:06
krish_kumar15-Jun-09 0:06 
AnswerRe: How to convert string into LPCWSTR Pin
Cedric Moonen15-Jun-09 0:17
Cedric Moonen15-Jun-09 0:17 
You should really read this article[^], it will help you a lot understanding what you are doing wrong with your code.
Basically, you should avoid these kind of conversions unless there is absolutely no other way. In your case, you can perfectly go without conversion. Your application is probably built for unicode support, so you should support that throughout your app:
- use wstring if UNICODE is enabled by using your own string type everywhere in your app:
#if defined _UNICODE || defined UNICODE
	typedef std::wstring TMyString;
#else
	typedef std::string TMyString;
#endif

- instead of using _findfirsti64, you should use the unicode independant version (_tfindfirsti64). You should have a look at the documentation for all those functions, there is always a table with the different versions.

But anyway, first thing to do is to read the article Smile | :)

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

Question[Message Deleted] Pin
krish_kumar15-Jun-09 0:05
krish_kumar15-Jun-09 0:05 
AnswerRe: How to convert string into LPCWSTR Pin
Stuart Dootson15-Jun-09 0:08
professionalStuart Dootson15-Jun-09 0:08 
QuestionCString Pin
Benjamin Bruno14-Jun-09 23:50
Benjamin Bruno14-Jun-09 23:50 
AnswerRe: CString Pin
Stuart Dootson15-Jun-09 0:00
professionalStuart Dootson15-Jun-09 0:00 
QuestionHow to add an Active X Control to a project in Visual Studio 2005/2008? Pin
kapardhi14-Jun-09 23:28
kapardhi14-Jun-09 23:28 
AnswerRe: How to add an Active X Control to a project in Visual Studio 2005/2008? Pin
Stuart Dootson15-Jun-09 0:06
professionalStuart Dootson15-Jun-09 0:06 
GeneralRe: How to add an Active X Control to a project in Visual Studio 2005/2008? Pin
kapardhi15-Jun-09 19:59
kapardhi15-Jun-09 19:59 
QuestionHelp me fpr Pocket PC? Pin
Le@rner14-Jun-09 23:15
Le@rner14-Jun-09 23:15 
AnswerRe: Help me fpr Pocket PC? Pin
Rajesh R Subramanian14-Jun-09 23:55
professionalRajesh R Subramanian14-Jun-09 23:55 
Questionexecute my c++ application en MFC SDI in batch mode with parameters Pin
MrKBA14-Jun-09 22:34
MrKBA14-Jun-09 22:34 
AnswerRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
Cedric Moonen14-Jun-09 22:47
Cedric Moonen14-Jun-09 22:47 
GeneralRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
MrKBA14-Jun-09 23:46
MrKBA14-Jun-09 23:46 
AnswerRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
Stuart Dootson14-Jun-09 23:55
professionalStuart Dootson14-Jun-09 23:55 
GeneralRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
MrKBA15-Jun-09 0:54
MrKBA15-Jun-09 0:54 
GeneralRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
Stuart Dootson15-Jun-09 0:56
professionalStuart Dootson15-Jun-09 0:56 
GeneralRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
MrKBA15-Jun-09 1:12
MrKBA15-Jun-09 1:12 
GeneralRe: execute my c++ application en MFC SDI in batch mode with parameters Pin
MrKBA15-Jun-09 1:20
MrKBA15-Jun-09 1:20 

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.