Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalerasing a list entry Pin
Kuniva19-Aug-03 8:32
Kuniva19-Aug-03 8:32 
GeneralNVM Pin
Kuniva19-Aug-03 10:07
Kuniva19-Aug-03 10:07 
GeneralRe: NVM Pin
David Crow19-Aug-03 10:18
David Crow19-Aug-03 10:18 
GeneralRe: NVM Pin
Kuniva19-Aug-03 13:46
Kuniva19-Aug-03 13:46 
Questionresource.h ??? Pin
Max Santos19-Aug-03 7:55
Max Santos19-Aug-03 7:55 
AnswerRe: resource.h ??? Pin
Steve S19-Aug-03 21:57
Steve S19-Aug-03 21:57 
GeneralRe: resource.h ??? Pin
Max Santos20-Aug-03 1:20
Max Santos20-Aug-03 1:20 
GeneralImport a class from .DLL Pin
CND19-Aug-03 7:41
CND19-Aug-03 7:41 
Hi,

I'm exporting this class form a dll:

#ifndef _DLL_H_ <br />
#define _DLL_H_ <br />
<br />
#if BUILDING_DLL <br />
# define DLLIMPORT __declspec (dllexport) <br />
#else /* Not BUILDING_DLL */ <br />
# define DLLIMPORT __declspec (dllimport) <br />
#endif /* Not BUILDING_DLL */ <br />
<br />
<br />
class DLLIMPORT AES <br />
{ <br />
public: <br />
AES(); <br />
virtual ~AES(void); <br />
<br />
private: <br />
<br />
}; <br />
#endif /* _DLL_H_ */ <br />


and this is the programm, that uses this dll:
#include <iostream> <br />
#include <stdlib.h> <br />
#include "..\AES\dll.h" <br />
<br />
using namespace std; <br />
<br />
int main(int argc, char *argv[]) <br />
{ <br />
// Load Libary <br />
HMODULE AESLibary = LoadLibrary("../AES/AES.dll"); <br />
if (AESLibary) <br />
printf("AES.DLL found!\r\n"); <br />
else <br />
printf("AES.DLL not found!\r\n"); <br />
<br />
<br />
AES myAES; <br />
<br />
system("PAUSE"); <br />
return 0; <br />
} <br />


but everytime I compile this program I get these errors:
[Linker error] undefined reference to `AES::AES()' <br />
[Linker error] undefined reference to `AES::~AES()' <br />

(generating the .dll file is no problem...)

can anybody tell me why?

thx
CND
GeneralRe: Import a class from .DLL Pin
John M. Drescher19-Aug-03 7:50
John M. Drescher19-Aug-03 7:50 
GeneralRe: Import a class from .DLL Pin
CND19-Aug-03 8:21
CND19-Aug-03 8:21 
GeneralRe: Import a class from .DLL Pin
igor196019-Aug-03 10:04
igor196019-Aug-03 10:04 
GeneralRe: Import a class from .DLL Pin
Anonymous19-Aug-03 10:13
Anonymous19-Aug-03 10:13 
GeneralWierd wierd multimedia timers Pin
Jon Hulatt19-Aug-03 6:40
Jon Hulatt19-Aug-03 6:40 
GeneralRe: Wierd wierd multimedia timers Pin
stephen.hazel19-Aug-03 7:07
stephen.hazel19-Aug-03 7:07 
GeneralCreateDIBBitmap in Windows2000 Server Pin
sdfdsfa19-Aug-03 6:37
sdfdsfa19-Aug-03 6:37 
GeneralOnNotify and the MFCGrid Pin
John Oliver19-Aug-03 6:27
John Oliver19-Aug-03 6:27 
GeneralRe: OnNotify and the MFCGrid Pin
HPSI19-Aug-03 6:39
HPSI19-Aug-03 6:39 
GeneralRe: OnNotify and the MFCGrid Pin
John Oliver19-Aug-03 6:48
John Oliver19-Aug-03 6:48 
GeneralResource in static library Pin
Shah Shehpori19-Aug-03 5:56
sussShah Shehpori19-Aug-03 5:56 
GeneralRe: Resource in static library Pin
Shah Shehpori19-Aug-03 6:00
sussShah Shehpori19-Aug-03 6:00 
GeneralRe: Resource in static library Pin
HPSI19-Aug-03 6:09
HPSI19-Aug-03 6:09 
GeneralRe: Resource in static library Pin
David Crow19-Aug-03 7:40
David Crow19-Aug-03 7:40 
GeneralRe: Resource in static library Pin
HPSI19-Aug-03 10:43
HPSI19-Aug-03 10:43 
Questionare those xml parsers worth beans? Pin
stephen.hazel19-Aug-03 5:41
stephen.hazel19-Aug-03 5:41 
AnswerRe: are those xml parsers worth beans? Pin
Ryan_Roberts19-Aug-03 5:52
Ryan_Roberts19-Aug-03 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.