|
-
October 21st, 2010, 05:23 AM
#1
string concatination in loadlibrary()
i have to add path + dll name in loadlibrary()
[code]
LPCSTR path = "CommonFilesPath" ;
HINSTANCE hLib = LoadLibrary(path + "sample.dll") ;
[\code]
where CommonFilesPath = C:\PROGRAM FILES\folder
AND THIS CONTAINS DLL (sample.dll).
when i run with above code it gives me following error:
error C2110: '+' : cannot add two pointers
how do i solve this.
i am not suppose to give the path there because it is dynamic.
plz 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
|