G
Greg Roberts
Hi
1. Is there any way to access a static function in a class via the
[DllImport] syntax ?
e.g. in C#
[DllImport("testum.dll")]
static extern void MyClass::MyFunc();
The compiler does not like the class reference ...
Of course a pure static function is OK ...
2. When the C# is run, i get a
"The specified module could not be found. (Exception from HRESULT:
0x8007007E)"
for the DLL, even though testum.dll has been exported at build time to the
same directory as the C# program.
Dependency Walker shows the function is in testum.dll .
3. Can specific [marshall.xxxx] be done on the return value ? I have seen
examples showing this for the
the function arguments, but have not seen one with marshalling on the return
value below the [DLLImport ...] statement.
Thanks in advance
NB: I should mention that the C# program is an actual VS2005 team system
test project
1. Is there any way to access a static function in a class via the
[DllImport] syntax ?
e.g. in C#
[DllImport("testum.dll")]
static extern void MyClass::MyFunc();
The compiler does not like the class reference ...
Of course a pure static function is OK ...
2. When the C# is run, i get a
"The specified module could not be found. (Exception from HRESULT:
0x8007007E)"
for the DLL, even though testum.dll has been exported at build time to the
same directory as the C# program.
Dependency Walker shows the function is in testum.dll .
3. Can specific [marshall.xxxx] be done on the return value ? I have seen
examples showing this for the
the function arguments, but have not seen one with marshalling on the return
value below the [DLLImport ...] statement.
Thanks in advance
NB: I should mention that the C# program is an actual VS2005 team system
test project