|
-
August 6th, 2009, 10:09 AM
#1
LoadLibrary and string issue
Hi to all
I am making a software with Visual Studio 2008, writing in C++ (no MFC).
I would like to load some DLL dynamically.
Following msdn example (ms-help://MS.MSDNQTR.v90.it/dllproc/base/using_run_time_dynamic_linking.htm), I would like to create a funcion address like this:
funct_addr = (MYPROC) GetProcAddress(hinstDLL, "myDLLFunct");
and subsequently calling this function like this:
(funct_addr) (L"Message sent to the DLL function\n");
My question is: how could I call a funcion which argouments are made by strings?
In my code, I have the following function:
myDLLFunct("string1","string2");
How could I call it? I can't do something like this:
(funct_addr) (L""string1","string2"");
Thank's for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|