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

C / C++ / MFC

 
GeneralRe: Calling a Web service in VC++ Pin
Programm3r31-Oct-06 18:21
Programm3r31-Oct-06 18:21 
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 
Hi Guys,

I am currently working on retrieving Computer compoment's data using WMI objects. Everything fine but whenever I try to convert BSTR type to char type I encounter memory violations.

Here is my code:

hr = pclsObj->Get(L"Speed", 0, &vtProp, 0, 0);
char* cap = _com_util::ConvertBSTRToString(vtProp.bstrVal); //Problem occurs here

Return type of the Speed querry is uint32.

If i query Caption which is return type is uint64 there is no access vioalation.

I know topic is very specific, also it may be dicussed hundereds of time.







Yusuf Kabakci
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 
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 

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.