Calling convention
Visual Basic
3
Posts
2
Posters
0
Views
1
Watching
-
Hello every body Is it possible to change the calling convention of an method in VB.NET ? If yes how can i do that ?
-
can you give an example of what you want to do? Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
I have to use a legacy C DLL. Some functions in this DLL need Callback as parameters. The Callback are writen in VB.NET. When I pass the address of Callback to the DLL function non managed code, its work (I mean the DLL call may Callback). But it seems to be a stack corruption after the end of the callback call because the callback use _stdcall convention (Default and the only one supported in VB.NET and C#).