Registry
-
Can't initialise a COM with regsvr32 on the machine without VC++ 6.0 installed ! But with V-studio there is no problems. Anyone knows why ?
Hi, Probably your control links dynamically to one of the DLLs from VC++ (like MFC libraries)... You have to distribute all the DLLs you are using in your control or use static linking. Regards, Alex Gorev, Dundas Software.
-
Hi, Probably your control links dynamically to one of the DLLs from VC++ (like MFC libraries)... You have to distribute all the DLLs you are using in your control or use static linking. Regards, Alex Gorev, Dundas Software.
Thanks, I think I've found a problem. It's quite tricky if you don't know indeed. The standard Windows NT configuration doesn't include an Atl.dll in system32 dir. Neither you can see it in "Dependency walker" when checking your COM deps., so to enable registration of ATL COM on the fresh installed NT, you must copy that dll and register it as well as it needs to have an Ole32aut.dll but proper version (NT, or 95). Unfortunately this small tip is not noticed anywhere you can see straight away and for new COM developers can be a time consuming. Thanks again, Dimitri.
-
Thanks, I think I've found a problem. It's quite tricky if you don't know indeed. The standard Windows NT configuration doesn't include an Atl.dll in system32 dir. Neither you can see it in "Dependency walker" when checking your COM deps., so to enable registration of ATL COM on the fresh installed NT, you must copy that dll and register it as well as it needs to have an Ole32aut.dll but proper version (NT, or 95). Unfortunately this small tip is not noticed anywhere you can see straight away and for new COM developers can be a time consuming. Thanks again, Dimitri.
Moral: Always build with the MinDependency configuration. :) That way you never have to worry about ATL.DLL. --Mike-- http://home.inreach.com/mdunn/
-
Thanks, I think I've found a problem. It's quite tricky if you don't know indeed. The standard Windows NT configuration doesn't include an Atl.dll in system32 dir. Neither you can see it in "Dependency walker" when checking your COM deps., so to enable registration of ATL COM on the fresh installed NT, you must copy that dll and register it as well as it needs to have an Ole32aut.dll but proper version (NT, or 95). Unfortunately this small tip is not noticed anywhere you can see straight away and for new COM developers can be a time consuming. Thanks again, Dimitri.