Click here to Skip to main content
15,915,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsimple installer Pin
dave2k19-May-05 0:16
dave2k19-May-05 0:16 
GeneralRe: simple installer Pin
Jack Puppy19-May-05 0:19
Jack Puppy19-May-05 0:19 
GeneralDAO and ADO in same project Pin
MK7818-May-05 22:47
MK7818-May-05 22:47 
GeneralRe: DAO and ADO in same project Pin
RChin18-May-05 23:49
RChin18-May-05 23:49 
GeneralRe: DAO and ADO in same project Pin
MK7818-May-05 23:59
MK7818-May-05 23:59 
GeneralRe: DAO and ADO in same project Pin
RChin19-May-05 0:22
RChin19-May-05 0:22 
GeneralRe: DAO and ADO in same project Pin
MK7819-May-05 1:47
MK7819-May-05 1:47 
GeneralProblems with a dll Pin
JaVinci18-May-05 22:27
JaVinci18-May-05 22:27 
Hi!

I'm trying to import a dll in Visual C++ 6. Can anybody help me?

When I link to that dll from another project it doesn't work. I'm sure I'm missing something, but I don't know what...

Here's how the dll is written (no errors, no warnings):

**************
* whatever.h *
**************

#ifdef __cplusplus
extern "C"{
#endif

class __declspec(dllexport) MyClass{
private:
char myString[100];
int myInteger;
public:
MyClass();
void getMyString(char * str);
int getMyInteger(void);
void setMyString(char * str);
void setMyInteger(int);
};

__declspec(dllexport) int function(MyClass * mc);

****************
* whatever.cpp *
****************

Just implementation here...


What can I do to import the class and the function from that dll (preferably not using a .def file)??? Please, help me, I'm going mad...
Cry | :((

Thank you!!!

GeneralRe: Problems with a dll Pin
GDavy19-May-05 0:00
GDavy19-May-05 0:00 
GeneralRe: Problems with a dll Pin
JaVinci19-May-05 3:50
JaVinci19-May-05 3:50 
QuestionWhat is #pragma pack()? Pin
xSoptik18-May-05 21:31
xSoptik18-May-05 21:31 
AnswerRe: What is #pragma pack()? Pin
Stlan18-May-05 22:06
Stlan18-May-05 22:06 
GeneralRe: What is #pragma pack()? Pin
xSoptik19-May-05 1:14
xSoptik19-May-05 1:14 
GeneralGrid controls with sliders and spin controls Pin
surfdabbler18-May-05 21:15
surfdabbler18-May-05 21:15 
GeneralCommunication Pin
usmanmir18-May-05 20:43
usmanmir18-May-05 20:43 
GeneralRe: Communication Pin
toxcct18-May-05 20:49
toxcct18-May-05 20:49 
GeneralRe: Communication Pin
usmanmir18-May-05 21:04
usmanmir18-May-05 21:04 
GeneralRe: Communication Pin
RChin18-May-05 21:31
RChin18-May-05 21:31 
GeneralRe: Communication Pin
Joel Holdsworth19-May-05 0:54
Joel Holdsworth19-May-05 0:54 
GeneralRe: Communication Pin
jmkhael19-May-05 2:13
jmkhael19-May-05 2:13 
GeneralRe: Communication Pin
Noro Korny19-May-05 2:30
Noro Korny19-May-05 2:30 
GeneralRe: Communication Pin
Paul Watson19-May-05 1:33
sitebuilderPaul Watson19-May-05 1:33 
GeneralRe: Communication Pin
ThatsAlok19-May-05 1:40
ThatsAlok19-May-05 1:40 
GeneralRe: Communication Pin
Anonymous19-May-05 1:48
Anonymous19-May-05 1:48 
GeneralRe: Communication Pin
Bob Stanneveld19-May-05 1:50
Bob Stanneveld19-May-05 1:50 

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.