05-15-2014 04:13 AM
Firstly some background:
Using Microsoft's managed extensibility framework (MEF), I've created a "Test Tool" framework which accepts plugins. The plugins are generally HW drivers with UIs. I created a NI Vision plugin which does camera discovery, acquisition and image processing. All functionality is exposed via a UI and public methods. The "Test Tool" framework shows the plugin UIs in docking panels (same VS docking panels) and provides a scripting interface for the plugin's public methods.
Ok, now the problem:
At runtime for the "Test Tool" framework and plugin I get "Unable to find an entry point named 'imaqCreateImage' in DLL ...". After a quick debug: the exception is thrown when instantiating the Imageviewer control in NI Vision plugin UI.
I created a plugin test environment which simply references the plugin and adds the plugin's UI to a form. This works correctly at runtime.
In addition, if I remove the Imageviewer controls from the plugin, it works correctly at runtime in the "Test Tool" framework.
05-15-2014 05:33 AM
Correction:
Removing the Imageviewer controls from the plugin allows the "Test Tool" framework to display the plugin's UI but any function/method call instantiating a visionimage throws the same exception.
05-16-2014 12:37 PM
Have you tried ensuring that the DLL function is actually being exported? You might check out some other forums as this problem has more to do with calling our DLL than the DLL its self. I've found a few other instances of this issue on external forums but I couldn't find any internal resources as you're doing something outside the scope of the intended functionality.
http://stackoverflow.com/questions/13882304/unable-to-find-an-entry-point-named