J
Jan Lindh
Hi
Is there a preferable way to write a C# dll that should be called from an
existing application (running native code).
It is not possible to change this application and its source code isn't
available.
The dll performs the communication beteween the computer and a external
device (using a RS232) line.
The dll should have a few enties .
for example one looks like this
Bool Init(struct1* a, struct2* b);
From the application does the dll receive pointers to a structure
constisting of
- strings
- function pointers
- Bool, int..
The function pointers should be called from the dll (call backs), sometimes
on external events.
Some data (strings...) should be inserted by the dll into the application
structures.
What is the best way to do this?
The solution should be maintainable for the future as well.
Jan Lindh
The old school solution would to write the entire dll in normal C++.....
Is there a preferable way to write a C# dll that should be called from an
existing application (running native code).
It is not possible to change this application and its source code isn't
available.
The dll performs the communication beteween the computer and a external
device (using a RS232) line.
The dll should have a few enties .
for example one looks like this
Bool Init(struct1* a, struct2* b);
From the application does the dll receive pointers to a structure
constisting of
- strings
- function pointers
- Bool, int..
The function pointers should be called from the dll (call backs), sometimes
on external events.
Some data (strings...) should be inserted by the dll into the application
structures.
What is the best way to do this?
The solution should be maintainable for the future as well.
Jan Lindh
The old school solution would to write the entire dll in normal C++.....