Help needed in C++ DLL creation

sanjay_thakkar's Avatar, Join Date: May 2009
Newbie Member
Hi
i am new to C++ but old to other programming langagues
I need help in creating a DLL which in turn open a dialog box
I have attached an Sample code which is similar i want in DLL when a DLL is called from my other program it will open a browse windows and then select the file and return back the file name
Only difference is this program i have attached is like and EXE where as i require
and DLL of the same prorgame

Kindly help
Thanks in Advance

Sanjay
Attached Files
File Type: zip OpenDialog.zip (25.6 KB, 3 views)
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
A DLL is similar to a static library; it doesn't need a main function and you need to use different linker flags when linking the code, to specify that it should be a DLL instead of an EXE. You'll need to read your linker documentation to find out how to do that.

So you shouldn't ever be able to link DLL code successfully as an EXE; you should always get an "undefined symbol: main" error.