G
GaryGen
Hi,
I have a VB.NET EXE which needs to remain in house. We would like to
have outside people code modules that can be dynamically loaded and
used by our EXE. We can place the requirement on the external modules
that they be managed if needed.
I am assuming we would want them to create DLL's. I can load these
dynamically with LoadLibrary and access functions using GetProcAddress
and Marshal.GetDelegateForFunctionPointer.
HERE'S THE TWO THINGS I DON'T KNOW:
1. What's the most common way to provide structures to use for the
calls? In C++ I would provide a header file with the definitions. Is
there a similar concept in VB.NET?
2. How can I make it so that their module can call specific functions
in my EXE? Since they don't have the EXE, I'm assuming it needs to
involve late binding to allow compilation.
a. Should I pass function pointers on initialization?
b. Or, should they use some variation of LoadLibrary to access the
EXE?
c. Is there any solution that would allow Intellisense to display the
functions on their machine (again, similar to providing a C++ header
with the external dynamic function definition).
Any help is appreciated on any of those points!
Gary Geniesse
NeuroDimension, Inc.
I have a VB.NET EXE which needs to remain in house. We would like to
have outside people code modules that can be dynamically loaded and
used by our EXE. We can place the requirement on the external modules
that they be managed if needed.
I am assuming we would want them to create DLL's. I can load these
dynamically with LoadLibrary and access functions using GetProcAddress
and Marshal.GetDelegateForFunctionPointer.
HERE'S THE TWO THINGS I DON'T KNOW:
1. What's the most common way to provide structures to use for the
calls? In C++ I would provide a header file with the definitions. Is
there a similar concept in VB.NET?
2. How can I make it so that their module can call specific functions
in my EXE? Since they don't have the EXE, I'm assuming it needs to
involve late binding to allow compilation.
a. Should I pass function pointers on initialization?
b. Or, should they use some variation of LoadLibrary to access the
EXE?
c. Is there any solution that would allow Intellisense to display the
functions on their machine (again, similar to providing a C++ header
with the external dynamic function definition).
Any help is appreciated on any of those points!
Gary Geniesse
NeuroDimension, Inc.