I am using GetProcAddress to retrieve the address of the exported function in dll. This works fine but when I call the function in dll it does not behave in the manner as expected . That means the dll function should return TRUE but it returns false.
The dll function is
#define MY_MODUL_NAME "pEG DDD"
extern "C" _declspec(dllexport) CheckAbc(const char *name,const char *ver)
nOW IT SHOULD ALWAYS RETURN 1 BUT IT DOES NOT DO SO. iT ALWAYS RETURNS ME ZERO . ANY IDEA???ANY SOLUTIONS???
Pls tell me how to implement plugin concept in VC++ applicatoin. i.e in core application I have to implement dummy plugin interfaces and when ever dll import to application then I am in positon to use dll intrfaces using core implemenatation
I have developed a win32 dll in VC++ with a set of functions. i want to execute a function from this library using GetProcAddress. GetProcAddres only returns the address of the function in the addressspace.but how can we execute this function with the address. if u have any idea, please send me the code.
URL not accessible
Posted by Rakeshsoni
on 04/28/2005 04:32am
The bove URL is not accessible(page not found)
Can you please tell me the method kevinsmackdown8?
I have developped an ActiveX DLL that exposes a sort of procedures, types, etc:
MyDLL.dll VERSION 126.96.36.199
public type MyDLL.MyType
Then, I'm referencing this in a visual basic 6-SP3 project and using this in a module. I does that in MyProject.exe, version 188.8.131.52:
'I creates a Dynamic array in a module
Public lstObjects() as MyDll.MyType
Now in a procedure I does:
Public Sub MyProcedure(...)
're-inicialization of array
redim lstObjects(0) as MyDll.MyType
nObjects = nObjects + 1
redim preserve lstObjects(nObjects) as MyDll.Mytype
nObjects = nObjects + 1
Until here all comes OK (this does things I want).
But my problem appears when I develops MyDLL.dll 184.108.40.206;
I makes Myproject.exe version 220.127.116.11, including code to install and register MyDll.dll 18.104.22.168, extracting this from a CAB file when at PC client there is a wrong version of this DLL (we need do this because we must distribute constantly new DLL versions to a great number of customers).
When I compiles a new MyProject.exe 10.0.0.1 having reference to MyDll.dll 22.214.171.124, the compilation comes OK. But when I sends this new MyProject.exe (with their .CAB containing MyDll 126.96.36.199) to a client having MyProject.exe 188.8.131.52 and MyDll.dll 184.108.40.206 this PC does a double beep and exits whithout any message.
If I comments the lines doing redims I've expossed up and compiles a new version of Myproject.exe 220.127.116.11, all comes ok (the reinstallation of MyDll.dll comes ok, etc.).
Someone have noticed this kind of troubles with Dynamic Dynamic arrays of ActiveX DLL-implemented objects?
Thank you in advance!
Juan Miguel Jim�nez Salvador