I'm getting a "The procedure entrypoint ssSr192x__​ssSr192drv​ssSrReset could no be located in the dynamic link library ssSR192x.d​ll" because the ActiveX instrument driver DLL doesn't have the function names in the export table.

Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project?
Thanks much.
I'm confused on how CVI uses ActiveX components and hope someone can help.
I'm using an ActiveX driver from an instrument manufacturer and I use the .TLB to generate a .fp, .c, and .h file. If I register the .dll and load the .fp in my project, all is well. Unfortunately in my application the functions to control this instrument are in another DLL whose .lib I include in my CVI projec
t. Running the CVI project this way gives me "The procedure entrypoint ssSr192x__ssSr192drvssSrReset could no be located in the dynamic link library ssSR192x.dll" because the instrument function names aren't in the export table in the instrument DLL. Non-ActiveX DLLs have the export tables so everything works for them.
Program structure with non-ActiveX DLLs:
CVI project (.exe with common.lib in project list)
|
V
Common DLL (MeasDMM() with hp1234.lib in project list)
|
V
Instrument DLL (hp1234_measure())
Since I get a .c and .h file from the .TLB, I've tried recompiling the DLL (.dll and .lib produced) and the functions seem to work, but I get "Class not registered" errors unless I play games with the registry so I'm obviously violating numerous Microsoft rules!
Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project? Thanks much.
Jeff Fish
Advisory Test Engineer
StorageTek

Hello Jeff,
Where were your getting the .lib file for the ActiveX DLL? Did you use the "hp1234"
ActiveX driver generated by the "Create ActiveX Automation Controller" CVI Tool to build a static library? If you open an include file and choose Options >> Generate DLL..., it will generate source code or a static import library to load the specified DLL and load functions specified in the include file (this only works if the functions are exported from a DLL). However, in the case of our ActiveX Automation Controllers, ActiveX calls are used to access a DLL. This means that you do not need an import library. You should be able to open the "hp1234" source file and click Options >> Create Object File. Simply #include "hp1234.h" and add "hp1234.obj" to your Common DLL project;
the .fp file is not necessary. If this does not answer your questions or if you experience further difficulty, please post further details on what you are doing and the errors that are being encountered ("play games with the registry" and "recompiling 'the' DLL" are a bit vague in this case).
Jeremiah
Applications Engineer
National Instruments
http://www.ni.com/ask

Similar Messages

Maybe you are looking for

  • HT4623 My iPad will not allow me to download any apps

    My iPad will not let me download any apps, also in the APPS STORE it shows a '1' meaning that there is one new update, it will not even let me update.  Also when browsing some websites like BT, it shuts down and reverts back to the home page of all m

  • Question about project manager on Flash CS4

    1 It seems that CS4 can not open flp, so how can I use CS4 to manager a project builded by CS3? 2 if you choose a folder to found a new project in CS4, when you want to publish the whole project, you need to choose all the fla of that project...that

  • Splitting of Purchase Order line items

    Hi gurus, Can somebody please tell me the step by step process for splitting PO line items under different percentages with account assignment. Thanks

  • Prompted to update Reader to 9.4.6 already have Reader X, Mac OS X

    On my OS X 10.6.7 iMac, each time I power up, I get an Adobe Updater prompt to update Adobe Reader to version 9.4.6. But I already have Adobe Acrobat X Pro10.1.1 and Adobe Reader plugin 10.1.1 installed. If there's another, older Adobe Reader 9.x, I

  • How to install Java on Red Hat

    Does anyone know how to install Java on Red Hat. I'm having problems installing it, and I can't really find any instructions anywhere on how to go about it. Thanks.