Click here to Skip to main content
15,888,246 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC dosen't care about code quality? PinPopular
Randor 29-Apr-08 5:51
professional Randor 29-Apr-08 5:51 
GeneralRe: MFC dosen't care about code quality? Pin
BadKarma29-Apr-08 21:16
BadKarma29-Apr-08 21:16 
QuestionRe: MFC dosen't care about code quality? Pin
bob1697229-Apr-08 21:47
bob1697229-Apr-08 21:47 
QuestionImplementation of gmtime( ) in Windows mobile Pin
Mohanraj D29-Apr-08 2:17
Mohanraj D29-Apr-08 2:17 
QuestionRe: Implementation of gmtime( ) in Windows mobile Pin
David Crow29-Apr-08 3:06
David Crow29-Apr-08 3:06 
QuestionVC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:02
lgatcodeproject29-Apr-08 0:02 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:14
mveCPallini29-Apr-08 0:14 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:29
lgatcodeproject29-Apr-08 0:29 
Hi,
Even if I use the BSTR type while copying a string constant using strcpy with a type cast the application crashes. How to copy a string constant by-passing this problem?
Please find the below snippet.

<br />
STDMETHODIMP CRAPClientX::Connect(BSTR serverIP, BSTR serverPort,BSTR output)<br />
{<br />
	// TODO: Add your implementation code here	<br />
	strcpy((char *)output, "connected");<br />
	return S_OK;<br />
}<br />


Regards,
LG.

lgatcodeproject

GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:38
mveCPallini29-Apr-08 0:38 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:50
lgatcodeproject29-Apr-08 0:50 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 1:02
mveCPallini29-Apr-08 1:02 
QuestionWhich type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 22:55
zengkun10028-Apr-08 22:55 
AnswerRe: Which type of string do you use in VC++ project? Pin
Saurabh.Garg28-Apr-08 23:01
Saurabh.Garg28-Apr-08 23:01 
AnswerRe: Which type of string do you use in VC++ project? Pin
_AnsHUMAN_ 28-Apr-08 23:32
_AnsHUMAN_ 28-Apr-08 23:32 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 23:50
zengkun10028-Apr-08 23:50 
AnswerRe: Which type of string do you use in VC++ project? Pin
CPallini28-Apr-08 23:48
mveCPallini28-Apr-08 23:48 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 23:51
zengkun10028-Apr-08 23:51 
GeneralRe: Which type of string do you use in VC++ project? Pin
CPallini29-Apr-08 0:01
mveCPallini29-Apr-08 0:01 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10029-Apr-08 0:12
zengkun10029-Apr-08 0:12 
AnswerRe: Which type of string do you use in VC++ project? Pin
Ozer Karaagac29-Apr-08 1:43
professionalOzer Karaagac29-Apr-08 1:43 
GeneralRe: Which type of string do you use in VC++ project? Pin
jhwurmbach29-Apr-08 5:42
jhwurmbach29-Apr-08 5:42 
GeneralIs STL ineffable itself? Pin
Ozer Karaagac29-Apr-08 11:02
professionalOzer Karaagac29-Apr-08 11:02 
AnswerRe: Which type of string do you use in VC++ project? Pin
Nemanja Trifunovic29-Apr-08 4:17
Nemanja Trifunovic29-Apr-08 4:17 
AnswerRe: Which type of string do you use in VC++ project? Pin
toxcct29-Apr-08 5:14
toxcct29-Apr-08 5:14 
GeneralTool Bar Pin
T.RATHA KRISHNAN28-Apr-08 22:49
T.RATHA KRISHNAN28-Apr-08 22:49 

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.