I cannot get the firefly sample working properly. Below some of the code of
luminous.cpp. It passes statement 1. At first I got the error message of 3.
and now I get blue screens when statement 2. is being executed.
1. hResult = m_pIWbemClassObject->Put(
bstrPropertyName,
0,
&varPropVal,
cimType
);
2. if ( hResult == WBEM_S_NO_ERROR ) {
hResult = m_pIWbemServices->PutInstance(
m_pIWbemClassObject,
WBEM_FLAG_UPDATE_ONLY,
NULL,
NULL );
3. if ( hResult != WBEM_S_NO_ERROR ) {
_tprintf( TEXT("Failed to save the instance,")
TEXT(" %s will not be updated.\n"),
lpProperty );
What could be wrong?
Thanks, Gert
|
|
0
|
|
|
|
Reply
|
Utf
|
10/10/2010 9:20:03 AM |
|