Click here to Skip to main content
15,908,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Uhm... Pin
Lord Kixdemp29-Nov-07 22:29
Lord Kixdemp29-Nov-07 22:29 
Questionerror Pin
keyto29-Nov-07 20:22
keyto29-Nov-07 20:22 
AnswerRe: error Pin
Hamid_RT29-Nov-07 20:39
Hamid_RT29-Nov-07 20:39 
AnswerRe: error Pin
Cedric Moonen29-Nov-07 21:22
Cedric Moonen29-Nov-07 21:22 
QuestionHow to Chage a html file content using ISAPI in MFC Pin
Jothi.G8129-Nov-07 19:53
Jothi.G8129-Nov-07 19:53 
Questioncan anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
philiptabraham29-Nov-07 18:47
philiptabraham29-Nov-07 18:47 
AnswerRe: can anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
Hamid_RT29-Nov-07 18:52
Hamid_RT29-Nov-07 18:52 
AnswerRe: can anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
Paresh Chitte29-Nov-07 18:57
Paresh Chitte29-Nov-07 18:57 
GeneralRe: can anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
uusheikh29-Nov-07 23:19
uusheikh29-Nov-07 23:19 
QuestionHow to user DBGrid Control in VC2005 Pin
mrshan29-Nov-07 18:22
mrshan29-Nov-07 18:22 
Question[Message Deleted] Pin
vijith.squadz29-Nov-07 18:15
professionalvijith.squadz29-Nov-07 18:15 
QuestionRe: PLZ REPLY SOON URGENT Pin
Hamid_RT29-Nov-07 19:09
Hamid_RT29-Nov-07 19:09 
AnswerRe: PLZ REPLY SOON URGENT Pin
Lord Kixdemp29-Nov-07 21:00
Lord Kixdemp29-Nov-07 21:00 
AnswerDrop everything...it's urgent! Pin
leckey30-Nov-07 3:09
leckey30-Nov-07 3:09 
Questionconversion text to pdf Pin
keyto29-Nov-07 18:10
keyto29-Nov-07 18:10 
AnswerRe: conversion text to pdf Pin
Hamid_RT29-Nov-07 18:50
Hamid_RT29-Nov-07 18:50 
AnswerRe: conversion text to pdf Pin
philiptabraham29-Nov-07 18:55
philiptabraham29-Nov-07 18:55 
Questiondialog box w/ image from memory Pin
RomTibi29-Nov-07 17:54
RomTibi29-Nov-07 17:54 
QuestionRe: dialog box w/ image from memory Pin
Hamid_RT29-Nov-07 18:51
Hamid_RT29-Nov-07 18:51 
AnswerRe: dialog box w/ image from memory Pin
RomTibi30-Nov-07 7:40
RomTibi30-Nov-07 7:40 
GeneralRe: dialog box w/ image from memory Pin
Hamid_RT30-Nov-07 17:48
Hamid_RT30-Nov-07 17:48 
GeneralRe: dialog box w/ image from memory Pin
RomTibi4-Dec-07 9:05
RomTibi4-Dec-07 9:05 
AnswerRe: dialog box w/ image from memory Pin
Lord Kixdemp29-Nov-07 21:16
Lord Kixdemp29-Nov-07 21:16 
GeneralRe: dialog box w/ image from memory Pin
RomTibi30-Nov-07 7:43
RomTibi30-Nov-07 7:43 
Questionconvert CString in char* gives wrong ourput Pin
neha.agarwal2729-Nov-07 17:31
neha.agarwal2729-Nov-07 17:31 
Hi all,

I am trying to convert CString in char* using this code

CString inFName;
m_InList.GetText(i,inFName);

char *test= new char;
sprintf(test,"%s",inFName);


on a vc2005 compiler.
My problem is supoose i get "D:\COMPRESS\ziparchive.zip" in my CString variable then after converting it in char* variable the value in test is "D".
I am not getting what exactly is the problem.

Can anybody please help me in this.

Thanks in advance

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.