Click here to Skip to main content
15,902,830 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmaking win32 Dll Pin
hrishiS1-Feb-09 18:07
hrishiS1-Feb-09 18:07 
AnswerRe: making win32 Dll Pin
Nishad S1-Feb-09 19:21
Nishad S1-Feb-09 19:21 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 19:35
hrishiS1-Feb-09 19:35 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 20:12
Nishad S1-Feb-09 20:12 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 20:39
hrishiS1-Feb-09 20:39 
QuestionRe: making win32 Dll Pin
Nishad S1-Feb-09 20:49
Nishad S1-Feb-09 20:49 
AnswerRe: making win32 Dll Pin
hrishiS1-Feb-09 21:21
hrishiS1-Feb-09 21:21 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 21:50
Nishad S1-Feb-09 21:50 
himangshuS wrote:
I am really sorry for the basics


You should study some basics for dll class exporting.

// in your dll header...
#ifdef DLL_EXPORT
#define DLL_IMPORTEXPORT	 __declspec(dllexport)
#else
#define DLL_IMPORTEXPORT	 __declspec(dllimport)
#endif

class DLL_IMPORTEXPORT CMyClass
{
 // your code
};


And you have to specify the "DLL_EXPORT" in Project > Settings > "Preprocessor definitions"

And in the test app you can just include the header and use. Also you need to specify the lib file of dll. It is available in the Link(tab), Input(catagory) of the project settings. Give the path to the lib in the "Additional library path"

- ns ami -

GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 22:52
hrishiS1-Feb-09 22:52 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 22:57
Nishad S1-Feb-09 22:57 
GeneralRe: making win32 Dll [modified] Pin
hrishiS1-Feb-09 23:12
hrishiS1-Feb-09 23:12 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 23:32
Nishad S1-Feb-09 23:32 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 23:52
hrishiS1-Feb-09 23:52 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 23:56
Nishad S1-Feb-09 23:56 
GeneralRe: making win32 Dll Pin
hrishiS2-Feb-09 0:02
hrishiS2-Feb-09 0:02 
GeneralRe: making win32 Dll Pin
hrishiS2-Feb-09 0:09
hrishiS2-Feb-09 0:09 
GeneralRe: making win32 Dll Pin
Nishad S2-Feb-09 0:15
Nishad S2-Feb-09 0:15 
GeneralRe: making win32 Dll Pin
hrishiS2-Feb-09 0:22
hrishiS2-Feb-09 0:22 
GeneralRe: making win32 Dll Pin
Nishad S2-Feb-09 17:18
Nishad S2-Feb-09 17:18 
GeneralRe: making win32 Dll Pin
hrishiS2-Feb-09 19:51
hrishiS2-Feb-09 19:51 
GeneralRe: making win32 Dll Pin
Nishad S2-Feb-09 19:55
Nishad S2-Feb-09 19:55 
GeneralRe: making win32 Dll Pin
hrishiS1-Feb-09 20:10
hrishiS1-Feb-09 20:10 
AnswerRe: making win32 Dll Pin
Iain Clarke, Warrior Programmer1-Feb-09 23:04
Iain Clarke, Warrior Programmer1-Feb-09 23:04 
GeneralRe: making win32 Dll Pin
Nishad S1-Feb-09 23:45
Nishad S1-Feb-09 23:45 
GeneralRe: making win32 Dll Pin
Iain Clarke, Warrior Programmer1-Feb-09 23:56
Iain Clarke, Warrior Programmer1-Feb-09 23:56 

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.