Article View: be.comp.programming
Article #16875Visual C++ DLL vraagje
From: Breezer
Date: Tue, 21 Mar 2000 00:00
Date: Tue, 21 Mar 2000 00:00
37 lines
1724 bytes
1724 bytes
Volgende code bevind zich in de header van een zelfgemaakte DLL
#ifndef __GUARDIAN__
#define __GUARDIANLIB__ __declspec(dllimport)
#else
#define __GUARDIANLIB__ __declspec(dllexport)
#endif
__GUARDIANLIB__ typedef struct
{
CString Naam;
CString Adres;
CString Gemeente;
CString BTW;
CString Bedrijf;
CString RekNr;
CString Encode();
void Decode(CString Str);
}tUserInfo;
Wanneer deze .h file in een project gebruit wordt krijg ik volgende
foutmelding bij het linken:
Planner.obj : error LNK2001: unresolved external symbol "public: void
__thiscall tUserInfo::Decode(class CString)"
(?Decode@tUserInfo@@QAEXVCString@@@Z)
PlannerDoc.obj : error LNK2001: unresolved external symbol "public: void
__thiscall tUserInfo::Decode(class CString)"
(?Decode@tUserInfo@@QAEXVCString@@@Z)
PlannerDoc.obj : error LNK2001: unresolved external symbol "public: class
CString __thiscall tUserInfo::Encode(void)"
(?Encode@tUserInfo@@QAE?AVCString@@XZ)
Release/Planner.exe : fatal error LNK1120: 2 unresolved externals
Nogthans is de .lib file correct aan het project toegevoegd. Weet iemand
hoe ik dit op kan lossen ?
Technical Details
Message-ID:
<8b8rht$2ik$1@inf6serv.rug.ac.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,5a360d4ab1539928,start X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,5a360d4ab1539928,start X-Google-Attributes: gidfcea4,public From: "Breezer" <Tim.Musschoot@rug.ac.be> Subject: Visual C++ DLL vraagje Date: 2000/03/21 Message-ID: <8b8rht$2ik$1@inf6serv.rug.ac.be> X-Deja-AN: 600592201 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: University of Ghent, Belgium X-MSMail-Priority: Normal Newsgroups: be.comp.programming,nl.comp.programmeren