Click here to Skip to main content
15,905,967 members
Home / Discussions / COM
   

COM

 
GeneralDllMain issues Pin
Matt Gates7-Nov-03 17:51
Matt Gates7-Nov-03 17:51 
GeneralRe: DllMain issues Pin
MultiThread8-Nov-03 7:17
MultiThread8-Nov-03 7:17 
GeneralRe: DllMain issues Pin
Matt Gates9-Nov-03 12:06
Matt Gates9-Nov-03 12:06 
GeneralCOM+ proxy application problem Pin
Member 7638697-Nov-03 4:54
Member 7638697-Nov-03 4:54 
GeneralRe: COM+ proxy application problem Pin
MultiThread8-Nov-03 7:22
MultiThread8-Nov-03 7:22 
GeneralRe: COM+ proxy application problem Pin
Anonymous13-Nov-03 4:09
Anonymous13-Nov-03 4:09 
GeneralRe: COM+ proxy application problem Pin
Steve S13-Nov-03 4:34
Steve S13-Nov-03 4:34 
GeneralCoGetClassObject( ) and Shell extension Pin
Jin Yao6-Nov-03 3:50
Jin Yao6-Nov-03 3:50 
Hello all,

In my shell extension dll, there are some codes like that (call another COM component):

......
hr = CoGetClassObject(CLSID_Class1, CLSCTX_ALL, NULL,
IID_IClassFactory, (void**)&pcf);
(now hr = S_OK)

hr = pcf->CreateInstance(NULL, IID_Interface1, (void**)&pi);
(ERROR: "Can't find the registered interface")

CLSID_Class1 is also a COM component written by myself and I've written a simple exe app to test this component and find it runs ok. So it means the GUIDs have been registered in the registry successfully and the component itself is correct.

Why the shell extension dll calls the CLSID_Class1 component will be fail but the exe application calls it successfully?

Both the shell extension COM and CLSID_Class COM are all "Apartment" thread model.

Thanks a lot




QuestionHow do I use a COM component in Java? Pin
melwyn5-Nov-03 23:32
melwyn5-Nov-03 23:32 
AnswerRe: How do I use a COM component in Java? Pin
Giles12-Nov-03 3:07
Giles12-Nov-03 3:07 
GeneralRe: How do I use a COM component in Java? Pin
melwyn13-Nov-03 1:21
melwyn13-Nov-03 1:21 
Questionhow to make default parameters for method? Pin
ashxly5-Nov-03 22:20
ashxly5-Nov-03 22:20 
AnswerRe: how to make default parameters for method? Pin
Vi210-Nov-03 3:12
Vi210-Nov-03 3:12 
QuestionHow do i register a dll into the assembly cache Pin
Srikar Y4-Nov-03 21:03
Srikar Y4-Nov-03 21:03 
AnswerRe: How do i register a dll into the assembly cache Pin
MultiThread10-Nov-03 17:11
MultiThread10-Nov-03 17:11 
GeneralDCOM problem (Very urgent!!!) Pin
Orkun GEDiK4-Nov-03 19:17
Orkun GEDiK4-Nov-03 19:17 
Generaloffice add in Pin
Member 6721434-Nov-03 18:30
Member 6721434-Nov-03 18:30 
GeneralVery urgent DCOM problem!!! Pin
Orkun GEDiK4-Nov-03 9:51
Orkun GEDiK4-Nov-03 9:51 
Generalthread in COM for Office Addin Pin
Tomaz Rotovnik4-Nov-03 6:03
Tomaz Rotovnik4-Nov-03 6:03 
GeneralRe: thread in COM for Office Addin Pin
Ryan_Roberts4-Nov-03 6:19
Ryan_Roberts4-Nov-03 6:19 
GeneralRe: thread in COM for Office Addin Pin
Tomaz Rotovnik5-Nov-03 5:59
Tomaz Rotovnik5-Nov-03 5:59 
GeneralRe: Problem with #import in WinCE Pin
João Paulo Figueira4-Nov-03 2:21
professionalJoão Paulo Figueira4-Nov-03 2:21 
GeneralRe: Problem with #import in WinCE Pin
nigs_krec4-Nov-03 2:33
nigs_krec4-Nov-03 2:33 
GeneralRe: Problem with #import in WinCE Pin
João Paulo Figueira4-Nov-03 2:40
professionalJoão Paulo Figueira4-Nov-03 2:40 
GeneralProblem with #import in WinCE Pin
nigs_krec4-Nov-03 1:59
nigs_krec4-Nov-03 1:59 

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.