Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add wave file to wmv file Pin
Mark Salsbery31-Oct-06 4:10
Mark Salsbery31-Oct-06 4:10 
AnswerRe: How to add wave file to wmv file Pin
Mark Salsbery31-Oct-06 6:15
Mark Salsbery31-Oct-06 6:15 
GeneralRe: How to add wave file to wmv file Pin
Hemant kulkarni1-Nov-06 2:44
Hemant kulkarni1-Nov-06 2:44 
GeneralRe: How to add wave file to wmv file Pin
Mark Salsbery1-Nov-06 5:29
Mark Salsbery1-Nov-06 5:29 
GeneralRe: How to add wave file to wmv file Pin
Hemant kulkarni1-Nov-06 19:54
Hemant kulkarni1-Nov-06 19:54 
QuestionWMI and BSTR Data conversion Pin
YusufK31-Oct-06 1:12
YusufK31-Oct-06 1:12 
AnswerRe: WMI and BSTR Data conversion Pin
Jonathan [Darka]31-Oct-06 2:17
professionalJonathan [Darka]31-Oct-06 2:17 
AnswerRe: WMI and BSTR Data conversion Pin
ThatsAlok31-Oct-06 4:58
ThatsAlok31-Oct-06 4:58 
YusufK wrote:
char* cap = _com_util::ConvertBSTRToString(vtProp.bstrVal); //Problem occurs here

Return type of the Speed querry is uint32.

reason for crash is that you are converting the long value to String without proper way!
try to check what VT member contain before proceeding ie.

if(vtProp.vt==VT_BSTR)
char* cap = _com_util::ConvertBSTRToString(vtProp.bstrVal); //Problem occurs here
else
 ltoa(vtProp.lVal,cap,10);
 


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You

QuestionChange Content of a File? Pin
bosfan31-Oct-06 0:54
bosfan31-Oct-06 0:54 
AnswerRe: Change Content of a File? Pin
toxcct31-Oct-06 0:59
toxcct31-Oct-06 0:59 
GeneralRe: Change Content of a File? Pin
bosfan31-Oct-06 1:18
bosfan31-Oct-06 1:18 
AnswerRe: Change Content of a File? Pin
Hamid_RT31-Oct-06 1:04
Hamid_RT31-Oct-06 1:04 
GeneralRe: Change Content of a File? [modified] Pin
bosfan31-Oct-06 1:28
bosfan31-Oct-06 1:28 
GeneralRe: Change Content of a File? Pin
Hamid_RT31-Oct-06 8:01
Hamid_RT31-Oct-06 8:01 
GeneralRe: Change Content of a File? Pin
bosfan31-Oct-06 8:49
bosfan31-Oct-06 8:49 
GeneralRe: Change Content of a File? Pin
Hamid_RT31-Oct-06 19:09
Hamid_RT31-Oct-06 19:09 
AnswerRe: Change Content of a File? Pin
Niklas L31-Oct-06 2:07
Niklas L31-Oct-06 2:07 
GeneralRe: Change Content of a File? [modified] Pin
bosfan31-Oct-06 2:43
bosfan31-Oct-06 2:43 
QuestionQuestion about Service Utility Functions. Pin
softgrid31-Oct-06 0:45
softgrid31-Oct-06 0:45 
AnswerRe: Question about Service Utility Functions. Pin
softgrid31-Oct-06 2:06
softgrid31-Oct-06 2:06 
GeneralRe: Question about Service Utility Functions. Pin
Jonathan [Darka]31-Oct-06 2:12
professionalJonathan [Darka]31-Oct-06 2:12 
GeneralRe: Question about Service Utility Functions. Pin
softgrid31-Oct-06 3:01
softgrid31-Oct-06 3:01 
GeneralRe: Question about Service Utility Functions. Pin
softgrid31-Oct-06 3:20
softgrid31-Oct-06 3:20 
GeneralRe: Question about Service Utility Functions. Pin
Jonathan [Darka]31-Oct-06 22:00
professionalJonathan [Darka]31-Oct-06 22:00 
AnswerRe: Question about Service Utility Functions. Pin
Jonathan [Darka]31-Oct-06 2:10
professionalJonathan [Darka]31-Oct-06 2:10 

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.