I created a DLL file and added it to my project. I also created a .DEF
file with the following lines:
--------------
LIBRARY K.DLL
EXPORTS
HASH
--------------
I also added a .H file with the following lines:
code:
#ifndef KDLL_H
#define KDLL_H
/* Hash the text */
void HASH(CString s);
#endif /* KDLL_H */
I also added following line in my CPP file:
code: extern "C" void HASH(CString s);
I included this header file in my .CPP program, but still not able
to access the DLL file function HASH.
What's the problem?
file with the following lines:
--------------
LIBRARY K.DLL
EXPORTS
HASH
--------------
I also added a .H file with the following lines:
code:
#ifndef KDLL_H
#define KDLL_H
/* Hash the text */
void HASH(CString s);
#endif /* KDLL_H */
I also added following line in my CPP file:
code: extern "C" void HASH(CString s);
I included this header file in my .CPP program, but still not able
to access the DLL file function HASH.
What's the problem?