Managed c++ calling unmanaged dll with LoadLibrary
From: vikrantca (vikrantca_at_discussions.microsoft.com)
Date: 12/03/04
- Previous message: Rajesh Balasubramanian: "how to use propvariant in C#"
- Next in thread: Mattias Sjögren: "Re: Managed c++ calling unmanaged dll with LoadLibrary"
- Reply: Mattias Sjögren: "Re: Managed c++ calling unmanaged dll with LoadLibrary"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 15:39:11 -0800
Hello,
I have a unmanaged fortran dll that Iam trying to load using LoadLibrary
from manged c++. I have to use loadlibrary, since I dont know the path to the
dll until runtime.
I can load the library, get the function pointers etc., but when I call a
function in the dll, the function succeeds, but the registers in the current
functions corrupted.
For example
void someManagedCppFunction( int *var1 , int *var2) {
// call fortran dll function via function pointer
// v1 and v2 are different than Var1 and var2
double v1, v2;
int k = fp(v1,v2);
// At this point the the pointers var1 and var2 are displayed as undefined
values.
}
Your help is apprecited.
thank you.
vikrantca
- Previous message: Rajesh Balasubramanian: "how to use propvariant in C#"
- Next in thread: Mattias Sjögren: "Re: Managed c++ calling unmanaged dll with LoadLibrary"
- Reply: Mattias Sjögren: "Re: Managed c++ calling unmanaged dll with LoadLibrary"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|