Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: ChangeDisplaySettings Pin
David Crow29-May-07 4:37
David Crow29-May-07 4:37 
AnswerRe: ChangeDisplaySettings Pin
nonameseemstowork30-May-07 8:51
nonameseemstowork30-May-07 8:51 
QuestionIEEE_754 Math Library Pin
Matthew Faithfull28-May-07 5:49
Matthew Faithfull28-May-07 5:49 
Questionspread list control on CFromView Pin
Max++28-May-07 5:14
Max++28-May-07 5:14 
AnswerRe: spread list control on CFromView Pin
Mark Salsbery28-May-07 7:03
Mark Salsbery28-May-07 7:03 
QuestionHow to change font of Tooltip control? Pin
Atul2328-May-07 5:07
Atul2328-May-07 5:07 
AnswerRe: How to change font of Tooltip control? Pin
Hamid_RT28-May-07 6:03
Hamid_RT28-May-07 6:03 
QuestionExporting Class Constructer Pin
Programm3r28-May-07 4:35
Programm3r28-May-07 4:35 
Hi all,

I wrote a database dll. The dll exports the whole class.
i.e.
#ifdef STATIC_LIBRARY 
	#define DLL_IMPORT_EXPORT
#else 
	#ifdef WIN32
		#ifdef DBMODULE_EXPORTS
			#define DBMODULE_API __declspec(dllexport)
		#else
			#define DBMODULE_API __declspec(dllimport)
		#endif
	#endif
#endif

class DBMODULE_API Database
{
...

class DBMODULE_API Recordset
{


But when I try and get hold of the class constructor in my calling application, I receive linker errors.
i.e.
...
Database db;
Recordset rs = Recordset(&db); // GENERATES LINKER ERROR: 2019
...


Can anyone please help me?????
Many Thanks
Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: Exporting Class Constructer Pin
Programm3r28-May-07 4:54
Programm3r28-May-07 4:54 
QuestionHow to draw on picture control? Pin
xuqianmylove28-May-07 4:01
xuqianmylove28-May-07 4:01 
GeneralRe: How to draw on picture control? Pin
Matthew Faithfull28-May-07 5:59
Matthew Faithfull28-May-07 5:59 
AnswerRe: How to draw on picture control? Pin
Hamid_RT28-May-07 6:06
Hamid_RT28-May-07 6:06 
AnswerRe: How to draw on picture control? Pin
Hamid_RT29-May-07 6:01
Hamid_RT29-May-07 6:01 
QuestionCheck file By HTTP protocol on a remot system Pin
rsgdba28-May-07 3:32
rsgdba28-May-07 3:32 
QuestionWant to To change from Console mode to Windows mode at run time Pin
vikrantc135528-May-07 3:08
vikrantc135528-May-07 3:08 
AnswerRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull28-May-07 6:14
Matthew Faithfull28-May-07 6:14 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
vikrantc135528-May-07 20:01
vikrantc135528-May-07 20:01 
GeneralRe: Want to To change from Console mode to Windows mode at run time Pin
Matthew Faithfull29-May-07 7:26
Matthew Faithfull29-May-07 7:26 
QuestionAccessing remote database using mfc Pin
Vikas_12328-May-07 3:02
Vikas_12328-May-07 3:02 
JokeGreat! Pin
CPallini28-May-07 3:06
mveCPallini28-May-07 3:06 
GeneralRe: Great! Pin
Vikas_12328-May-07 19:48
Vikas_12328-May-07 19:48 
AnswerRe: Accessing remote database using mfc Pin
Matthew Faithfull28-May-07 6:38
Matthew Faithfull28-May-07 6:38 
QuestionHow to navigate to a different URL in the same browser instance, through ActiveX plug-In? Pin
vrushaliD28-May-07 2:54
vrushaliD28-May-07 2:54 
QuestionHow to havigate to a different URL in the same browser instance through ActiveX Plug-In? Pin
vrushaliD28-May-07 2:52
vrushaliD28-May-07 2:52 
QuestionUsing PNG / TIF format images in Button control and background Pin
BlrBoy28-May-07 2:47
BlrBoy28-May-07 2:47 

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.