Click here to Skip to main content
16,016,332 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 14:03
protectorChristian Graus22-Aug-05 14:03 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 14:08
shanzy22-Aug-05 14:08 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
Christian Graus22-Aug-05 14:10
protectorChristian Graus22-Aug-05 14:10 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 14:26
shanzy22-Aug-05 14:26 
AnswerRe: How to use the WIN32API in MFC Application?? Pin
Jose Lamas Rios22-Aug-05 17:25
Jose Lamas Rios22-Aug-05 17:25 
AnswerRe: How to use the WIN32API in MFC Application?? Pin
ThatsAlok22-Aug-05 20:13
ThatsAlok22-Aug-05 20:13 
GeneralRe: How to use the WIN32API in MFC Application?? Pin
shanzy22-Aug-05 21:49
shanzy22-Aug-05 21:49 
GeneralWMI Pin
YusufK22-Aug-05 10:52
YusufK22-Aug-05 10:52 
Hi,

Using Win32_classes I have wrote a code. I have some help from msdn. I am retrieving sound card's info, up to now everything is ok. But also I need to compare "vtProp.bstrVal" with a string like "char c[30]". I think , I should convert this "vtProp.bstrVal" to a string or convert string "vtProp.bstrVal" like variable. Do you have any suggestions?

Thanx...



while (pEnumerator)
{
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1,
&pclsObj, &uReturn);

if(0 == uReturn)
{
break;
}

VARIANT vtProp;
VariantInit(&vtProp);
c=&(vtProp.bstrVal);
// Get the value of the Name property
hr = pclsObj->Get(L"ProductName", 0, &vtProp, 0, 0);
std::wcout <
GeneralRe: WMI Pin
Christian Graus22-Aug-05 12:02
protectorChristian Graus22-Aug-05 12:02 
GeneralRe: WMI Pin
YusufK23-Aug-05 7:59
YusufK23-Aug-05 7:59 
GeneralRe: WMI Pin
Christian Graus23-Aug-05 13:27
protectorChristian Graus23-Aug-05 13:27 
GeneralRe: WMI Pin
MailtoGops23-Aug-05 0:14
MailtoGops23-Aug-05 0:14 
GeneralRe: WMI Pin
YusufK23-Aug-05 8:02
YusufK23-Aug-05 8:02 
GeneralUsing MAC address Pin
Shay Harel22-Aug-05 8:28
Shay Harel22-Aug-05 8:28 
GeneralRe: Using MAC address Pin
Johnny ²22-Aug-05 10:25
Johnny ²22-Aug-05 10:25 
GeneralRe: Using MAC address Pin
Shay Harel22-Aug-05 10:39
Shay Harel22-Aug-05 10:39 
GeneralRe: Using MAC address Pin
geo_m22-Aug-05 20:29
geo_m22-Aug-05 20:29 
GeneralRe: Using MAC address Pin
Shay Harel23-Aug-05 3:14
Shay Harel23-Aug-05 3:14 
Generalcontrolling window size during Cascade Pin
moredip22-Aug-05 8:27
moredip22-Aug-05 8:27 
GeneralReed ini, code request Pin
kimelott22-Aug-05 7:56
kimelott22-Aug-05 7:56 
GeneralRe: Reed ini, code request Pin
Bob Ciora22-Aug-05 8:03
Bob Ciora22-Aug-05 8:03 
AnswerRe: Reed ini, code request Pin
Chris Losinger22-Aug-05 10:57
professionalChris Losinger22-Aug-05 10:57 
Generalsubclassing concept Pin
23_44422-Aug-05 7:41
23_44422-Aug-05 7:41 
GeneralRe: subclassing concept Pin
HumanOsc22-Aug-05 11:20
HumanOsc22-Aug-05 11:20 
GeneralRe: subclassing concept Pin
Jose Lamas Rios22-Aug-05 17:40
Jose Lamas Rios22-Aug-05 17:40 

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.