Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting Dundas gauges to work with Visual C++.net Pin
D_code_writer19-Jul-05 13:30
D_code_writer19-Jul-05 13:30 
GeneralRe: Getting Dundas gauges to work with Visual C++.net Pin
Troy Marchand19-Jul-05 16:53
sitebuilderTroy Marchand19-Jul-05 16:53 
GeneralUnicode problem Pin
toxcct18-Jul-05 20:29
toxcct18-Jul-05 20:29 
GeneralRe: Unicode problem Pin
22491718-Jul-05 20:40
22491718-Jul-05 20:40 
GeneralRe: Unicode problem Pin
toxcct18-Jul-05 20:49
toxcct18-Jul-05 20:49 
GeneralRe: Unicode problem Pin
22491718-Jul-05 21:43
22491718-Jul-05 21:43 
GeneralRe: Unicode problem Pin
toxcct18-Jul-05 22:32
toxcct18-Jul-05 22:32 
GeneralRe: Unicode problem Pin
GDavy18-Jul-05 20:42
GDavy18-Jul-05 20:42 
you could insert something like:

#if defined (UNICODE) || defined (_UNICODE)<br />
#define _tcstombs wcstombs<br />
#else<br />
#define _tcstombs strncpy<br />
#endif<br />

then to convert CString in UNICODE or non Unicode environment to char* you can use the function
_tcstombs
It has 3 params, 1st param is the target char* 2nd param is the TCHAR string, and 3rd param the size of string to copy....

_tcstombs(pszFile, m_strDBFilePath, m_strDBFilePath.GetLength());     <br />

Hope this helps you along
Davy
GeneralRe: Unicode problem Pin
toxcct18-Jul-05 20:57
toxcct18-Jul-05 20:57 
GeneralRe: Unicode problem Pin
GDavy18-Jul-05 21:02
GDavy18-Jul-05 21:02 
GeneralRe: Unicode problem Pin
toxcct18-Jul-05 22:31
toxcct18-Jul-05 22:31 
QuestionHow to print Multilanguage Pin
rharishraj18-Jul-05 18:55
rharishraj18-Jul-05 18:55 
Generaldisplay raw image in a frame Pin
htv2218-Jul-05 18:49
htv2218-Jul-05 18:49 
GeneralRe: display raw image in a frame Pin
Christian Graus18-Jul-05 18:57
protectorChristian Graus18-Jul-05 18:57 
Generalconvert from VC++6 to VC++.NET. Pin
Anonymous18-Jul-05 18:43
Anonymous18-Jul-05 18:43 
GeneralRe: convert from VC++6 to VC++.NET. Pin
Christian Graus18-Jul-05 18:55
protectorChristian Graus18-Jul-05 18:55 
GeneralRe: convert from VC++6 to VC++.NET. Pin
SAKURAVN19-Jul-05 16:56
SAKURAVN19-Jul-05 16:56 
GeneralRe: convert from VC++6 to VC++.NET. Pin
Christian Graus19-Jul-05 16:58
protectorChristian Graus19-Jul-05 16:58 
Generalpage breaks in SDI Pin
wasife18-Jul-05 18:38
wasife18-Jul-05 18:38 
GeneralRe: page breaks in SDI Pin
Christian Graus18-Jul-05 18:56
protectorChristian Graus18-Jul-05 18:56 
QuestionWhich Database? Pin
Ed K18-Jul-05 16:59
Ed K18-Jul-05 16:59 
AnswerRe: Which Database? Pin
David Crow18-Jul-05 17:13
David Crow18-Jul-05 17:13 
AnswerRe: Which Database? Pin
Christian Graus18-Jul-05 17:15
protectorChristian Graus18-Jul-05 17:15 
AnswerRe: Which Database? Pin
Jack Puppy18-Jul-05 17:33
Jack Puppy18-Jul-05 17:33 
GeneralRe: Which Database? Pin
Bob Stanneveld18-Jul-05 21:15
Bob Stanneveld18-Jul-05 21:15 

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.