Click here to Skip to main content
16,005,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Thread Query in vc++ Pin
ThatsAlok17-Aug-06 0:00
ThatsAlok17-Aug-06 0:00 
AnswerRe: Thread Query in vc++ Pin
Stephen Hewitt17-Aug-06 0:11
Stephen Hewitt17-Aug-06 0:11 
Question_Xran Linker error Pin
Hariharan.T16-Aug-06 23:14
Hariharan.T16-Aug-06 23:14 
AnswerRe: _Xran Linker error Pin
Hamid_RT18-Aug-06 7:52
Hamid_RT18-Aug-06 7:52 
GeneralRe: _Xran Linker error Pin
Hariharan.T22-Aug-06 1:05
Hariharan.T22-Aug-06 1:05 
QuestionDetecting file / folder events Pin
wheelerbarry16-Aug-06 22:51
wheelerbarry16-Aug-06 22:51 
AnswerRe: Detecting file / folder events Pin
Hamid_RT18-Aug-06 7:52
Hamid_RT18-Aug-06 7:52 
QuestionDll question in vc and call by vb (about wmi) Pin
baicker16-Aug-06 22:50
baicker16-Aug-06 22:50 
i want make a dll by vc6 , and call it by vb6(because the wmi in vc timeout faster than vb, or i can use multithread in vc to cut the wmi connection when time is over)
the program is no err complied and linked
but when i call the fun in vb6, i got an error 0X80010106 when Initialized COM
"Cannot change thread mode after it is set."
i searched it on internet ,i can't understand clearly with "COM CDO STA",
how can i do ? please help me !

---------------------------code------------------------------
__declspec(dllexport) long __stdcall CheckWMI(char * HostIP, char * userName, char * passWord)
{
mainCRTStartup();
HRESULT hres;

// Step 1: --------------------------------------------------
// Initialize COM. ------------------------------------------

hres = CoInitializeEx(0, COINIT_MULTITHREADED);
if (FAILED(hres))
{
........
-------------------------------code---------------------------------------
AnswerRe: Dll question in vc and call by vb (about wmi) Pin
toxcct16-Aug-06 22:57
toxcct16-Aug-06 22:57 
Questiondifference Pin
sarojkumarjena16-Aug-06 22:49
sarojkumarjena16-Aug-06 22:49 
AnswerRe: difference Pin
toxcct16-Aug-06 22:56
toxcct16-Aug-06 22:56 
GeneralRe: difference Pin
sarojkumarjena16-Aug-06 23:06
sarojkumarjena16-Aug-06 23:06 
GeneralRe: difference Pin
prasad_som16-Aug-06 23:27
prasad_som16-Aug-06 23:27 
GeneralRe: difference Pin
toxcct16-Aug-06 23:29
toxcct16-Aug-06 23:29 
GeneralRe: difference Pin
SilentSilent17-Aug-06 0:34
SilentSilent17-Aug-06 0:34 
GeneralRe: difference Pin
toxcct17-Aug-06 0:39
toxcct17-Aug-06 0:39 
AnswerRe: difference Pin
Stephen Hewitt17-Aug-06 0:19
Stephen Hewitt17-Aug-06 0:19 
AnswerRe: difference Pin
Prakash Nadar17-Aug-06 1:10
Prakash Nadar17-Aug-06 1:10 
QuestionMedia Player mobile Pin
Mohammad A Gdeisat16-Aug-06 22:36
Mohammad A Gdeisat16-Aug-06 22:36 
AnswerRe: Media Player mobile Pin
ThatsAlok17-Aug-06 0:02
ThatsAlok17-Aug-06 0:02 
GeneralRe: Media Player mobile Pin
Mohammad A Gdeisat17-Aug-06 0:17
Mohammad A Gdeisat17-Aug-06 0:17 
GeneralRe: Media Player mobile Pin
ThatsAlok17-Aug-06 1:17
ThatsAlok17-Aug-06 1:17 
GeneralRe: Media Player mobile Pin
Mohammad A Gdeisat17-Aug-06 4:26
Mohammad A Gdeisat17-Aug-06 4:26 
GeneralRe: Media Player mobile Pin
ThatsAlok17-Aug-06 18:23
ThatsAlok17-Aug-06 18:23 
GeneralRe: Media Player mobile Pin
Mohammad A Gdeisat17-Aug-06 22:17
Mohammad A Gdeisat17-Aug-06 22:17 

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.