A
Angel
Is there some way to add a C-header file into a C# project? The problem is
that this .h file contains several complex structures (over 20) that are
used by some unmanaged code. These functions receive these defined structs
as parms and modify them during execution.
Basically, it'd be something siomple like this (but in C#):
#include <parms.h>
W32_PARM parm;
// ... and work from there...
void main()
{
strcpy (parm.type1, "test");
strcpy (parm.type2, "test2");
...
zProcess (&parm); // dll function call that modifies certain members
of parm
//Print parm.result1 and parm.result2
...
}
Would I have to go through the same process if I did it in another language,
such as VB6 or VB .Net? Or is C# as good a language as any other for an
application that will constantly interact w/ unmanaged code? Since it's a
gui application, C or C++ are out of the question
Thanks for all your help. I know I've been a pain in the ...
that this .h file contains several complex structures (over 20) that are
used by some unmanaged code. These functions receive these defined structs
as parms and modify them during execution.
Basically, it'd be something siomple like this (but in C#):
#include <parms.h>
W32_PARM parm;
// ... and work from there...
void main()
{
strcpy (parm.type1, "test");
strcpy (parm.type2, "test2");
...
zProcess (&parm); // dll function call that modifies certain members
of parm
//Print parm.result1 and parm.result2
...
}
Would I have to go through the same process if I did it in another language,
such as VB6 or VB .Net? Or is C# as good a language as any other for an
application that will constantly interact w/ unmanaged code? Since it's a
gui application, C or C++ are out of the question

Thanks for all your help. I know I've been a pain in the ...