|
Post by Z!plink on May 16, 2004 5:51:38 GMT -5
Hey.. Im reading the dllhelp (http://www.mircscripts.org/comments.php?cid=985) some tewl posted in another thread and it wont build this is the error message br] --------------------Configuration: link - Win32 Debug-------------------- Linking... Creating library Debug/link.lib and object Debug/link.exp link.exp : error LNK2001: unresolved external symbol _LoadDll@4 link.exp : error LNK2001: unresolved external symbol _UnloadDll@4 link.exp : error LNK2001: unresolved external symbol _author@24 Debug/link.dll : fatal error LNK1120: 3 unresolved externals Error executing link.exe. This is link.cpp br] #include <windows.h>
int __stdcall author(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
{
lstrcpy(data,"//echo -a Webber");
return 3;
}
This is link.def br] LIBRARY link EXPORTS
LoadDll = _LoadDll@4 UnloadDll = _UnloadDll@4 author = _author@24
So can someone tell me what im doing wrong??? Thx
|
|
Pepper
New Member
meep meep...!
Posts: 444
|
Post by Pepper on May 16, 2004 8:49:11 GMT -5
remove everything but the author part in def file..
like this
LIBRARY link EXPORTS
author = _author@24
|
|
|
Post by Z!plink on May 16, 2004 10:10:26 GMT -5
Fixed now =)
|
|
Trad
New Member
Posts: 1,122
|
Post by Trad on May 16, 2004 16:53:26 GMT -5
lstrcpy(data,"Webber");
return 2;
}
its better to use $dll() like
//echo -a $dll()
then you can use it in many more commands than if you use the /dll way it will only echo your name.
|
|
|
Post by Z!plink on May 17, 2004 4:01:29 GMT -5
Okey thnx
|
|
|
Post by Loon on May 18, 2004 2:45:25 GMT -5
It's Trad
|
|
Pepper
New Member
meep meep...!
Posts: 444
|
Post by Pepper on May 18, 2004 3:21:05 GMT -5
Welcome after! he's been here a week =P
|
|