Click here to Skip to main content
16,014,667 members
Home / Discussions / COM
   

COM

 
GeneralDefault parameters in IDL Pin
Jerome Conus18-Sep-02 20:21
Jerome Conus18-Sep-02 20:21 
GeneralRe: Default parameters in IDL Pin
Stephane Rodriguez.18-Sep-02 20:47
Stephane Rodriguez.18-Sep-02 20:47 
GeneralRe: Default parameters in IDL Pin
Vi220-Sep-02 3:32
Vi220-Sep-02 3:32 
GeneralOLE Object DocFiles and the Clipboard Pin
Striker918-Sep-02 15:54
Striker918-Sep-02 15:54 
GeneralProblem registering (0x000003e6) Pin
ssirisha18-Sep-02 2:46
ssirisha18-Sep-02 2:46 
GeneralRe: Problem registering (0x000003e6) Pin
Stephane Rodriguez.18-Sep-02 3:15
Stephane Rodriguez.18-Sep-02 3:15 
GeneralRe: Problem registering (0x000003e6) Pin
ssirisha18-Sep-02 3:19
ssirisha18-Sep-02 3:19 
GeneralRe: Problem registering (0x000003e6) Pin
Stephane Rodriguez.18-Sep-02 3:29
Stephane Rodriguez.18-Sep-02 3:29 
The custom build-step in VC does a regsvr32 component.dll which in fact loads the component and calls DllRegisterServer() on it.

If it doesn't reach DllRegisterServer(), that's because the problem lies where the COM component itself is loaded, or during the initialisation of the global vars of your COM component.

In other words, your component links with .lib libraries. Some of these libraries export functions and thus the associated .dll file is loaded automatically by the COM component. That's where the problem is. Either you've got a missing DLL the system is trying to load (the error is sometimes weird by the way), or it loads one of the DLLs which executes wrong code in their DllMain() entry point.

What should do now is isolate the code. Use dependancy walker and list all DLLs. Then for each dlls, do a small program that loads them (::LoadLibrary() should be enough). Or if you know how to use it, use RunDll32.exe (Windows 9X) or DllHost.exe (2K/XP).


To get to know if the error is because of one of your global vars, just try loading a stripped down version of your component (all linked code removed) by doing a simple ::LoadLibrary().

Good luck!!!!Cool | :cool:



MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site.
GeneralRe: Problem registering (0x000003e6) Pin
ssirisha18-Sep-02 3:37
ssirisha18-Sep-02 3:37 
GeneralRe: Problem registering (0x000003e6) Pin
Stephane Rodriguez.18-Sep-02 3:55
Stephane Rodriguez.18-Sep-02 3:55 
GeneralRe: Problem registering (0x000003e6) Pin
ssirisha18-Sep-02 4:05
ssirisha18-Sep-02 4:05 
GeneralIDispatch Pin
Barry Lapthorn17-Sep-02 9:09
protectorBarry Lapthorn17-Sep-02 9:09 
GeneralRe: IDispatch Pin
Stephane Rodriguez.17-Sep-02 9:53
Stephane Rodriguez.17-Sep-02 9:53 
GeneralRe: IDispatch Pin
Barry Lapthorn17-Sep-02 11:06
protectorBarry Lapthorn17-Sep-02 11:06 
GeneralRe: IDispatch Pin
David Salter17-Sep-02 11:31
David Salter17-Sep-02 11:31 
GeneralRe: IDispatch Pin
Barry Lapthorn18-Sep-02 8:29
protectorBarry Lapthorn18-Sep-02 8:29 
GeneralRe: IDispatch Pin
Stephane Rodriguez.17-Sep-02 18:47
Stephane Rodriguez.17-Sep-02 18:47 
GeneralRe: IDispatch Pin
Barry Lapthorn17-Sep-02 22:22
protectorBarry Lapthorn17-Sep-02 22:22 
GeneralRe: IDispatch Pin
Stephane Rodriguez.17-Sep-02 23:26
Stephane Rodriguez.17-Sep-02 23:26 
GeneralRe: IDispatch Pin
Anonymous18-Sep-02 2:56
Anonymous18-Sep-02 2:56 
GeneralRe: IDispatch Pin
Stephane Rodriguez.18-Sep-02 3:17
Stephane Rodriguez.18-Sep-02 3:17 
GeneralRe: IDispatch Pin
Barry Lapthorn18-Sep-02 8:32
protectorBarry Lapthorn18-Sep-02 8:32 
GeneralRe: IDispatch Pin
Bart Robeyns17-Sep-02 13:50
Bart Robeyns17-Sep-02 13:50 
GeneralRe: IDispatch Pin
Barry Lapthorn18-Sep-02 8:26
protectorBarry Lapthorn18-Sep-02 8:26 
GeneralRe: IDispatch Pin
Bart Robeyns18-Sep-02 10:57
Bart Robeyns18-Sep-02 10:57 

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.