SMIEngine in C++ ap...
 
Notifications
Clear all

SMIEngine in C++ application

2 Posts
1 Users
0 Reactions
21.9 K Views
(@dwyatt)
Posts: 1
New Member Guest
Topic starter
 

Hi,

I'm using SMIEngine in my application to download firmware to a SmartMotor (2316D). My problem is that when I'm building my installer and distributing it to clients, the SMIEngine dll (IntegMotorInterface.dll) is seemingly not registering on their systems. (They get an error message when attempting to create an instance of the SMIHost class).

Installing SMI fixes this problem (so I'm assuming it knows how to properly register it?). I've tried manually registering the .dll using regsvr32 but I get an error message:

The module "IntegMotorINterface.dll" failed to load.

Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

The specified module could not be found.

I suspect this is because it isn't a self-registering DLL? I'm using InstallShield as my installer and I have the option of choosing the "Registration Type" for this DLL. I can choose "None", "Extract COM Information", and "Self-registration".

When I use "Extract COM Information" I get a warning message when I compile the project:

ISEXP : warning : -4354: The build was unable to extract COM information from the file C:UsersdjwyattDocumentsVisual Studio 2010ProjectsSynopticxSynopticxSMIEngineIntegMotorInterface.dll in component IntegMotorInterface.dll. Please ensure that the file is self-registering and verify that the self-registration process does not fail.

I've all but given up trying to fix this. For now I'm telling people to install SMI.

Thanks in advance!
Devin Wyatt
Keo Scientific Ltd.

 
Posted : 24/11/2010 1:33 pm
(@csearcy)
Posts: 316
Reputable Member Guest
 

The IntegMotorInterface.dll depends on canlib32.dll and SiUSBXp.dll. All 3 must be installed and registered.
Attached is a zip file with a .exe file that will install and register the 3 dlls. [file name=integinstall-20101209.zip size=1357714] http://www.animatics.com/media/kunena/attachments/legacy/files/integinstall-20101209.zip [/file]

 
Posted : 09/12/2010 7:19 am
Share: