Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

VC+ dll crashed error when used from InstallShield


3 replies to this topic

Mitesh

Mitesh
  • Members
  • 4 posts

Posted 14 March 2006 - 13:23

Hi there,

I am using UseDLL() to load VC++ dll, this VC++ dll has an import for ComAdmin.dll ( for ComAdminCatalog related operations). but it gives me error that "Dll function call crashed" error. ComAdmin.dll is imported using
"c:\\windows\\system32\\com\\Comadmin.dll" no_namespace

Can anyone help me to resolve this issue please? Thanks in advance.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 March 2006 - 16:28

Have you specified the correct calling convention for your dll function (cdecl or stdcall)

Mitesh

Mitesh
  • Members
  • 4 posts

Posted 16 March 2006 - 13:26

Hi Stefan,

Thanks for you response. I am using extern "C" long APIENTRY COMOperations(Paramters) syntax.

I have such other cople of functions. All works fine when I use them from InstallShield, But when I add below line to COMOperationsfunction, "Dll function call crashed" error comes.
ICOMAdminCatalogPtr Catalog("COMAdmin.COMAdminCatalog");
and when I ramark this line, everything works fine. Please suggest some solution.

samsquared

samsquared
  • Full Members
  • 18 posts

Posted 20 March 2006 - 18:35

If you just need to access the COMADMIN objects, please see my reply to your other post regarding the subject.