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

C / C++ / MFC

 
QuestionHow to add wave file to wmv file Pin
Hemant kulkarni31-Oct-06 1:36
Hemant kulkarni31-Oct-06 1:36 
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 
If the return type is uint32, then why do you think its a BSTR ?

The ConvertBSTRToString() function expects a BSTR and you are passing in a uint32 which is why it crashes.

You need to convert it to a string FIRST, the 'Get()' function will not do this for you, if it did, it would return a BSTR.

Try:

<br />
    HRESULT hr = pclsObj->Get(L"Speed", 0, &vtProp, 0, 0);<br />
    if(SUCCEEDED(hr))<br />
    {<br />
        TCHAR szSpeed[20] = {'\0'};<br />
        _sprintf(szSpeed, "%l", vtProp.lVal);<br />
    }<br />



Darka [Xanya]

"I am not a slave to a god that doesn't exist."

AnswerRe: WMI and BSTR Data conversion Pin
ThatsAlok31-Oct-06 4:58
ThatsAlok31-Oct-06 4:58 
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 

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.