Click here to Skip to main content
15,904,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:37
Anthony_Yio9-Oct-03 2:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
sunju9-Oct-03 18:49
sunju9-Oct-03 18:49 
Questionhow to implement a CDragCheckListBox? Pin
Jefferson Liu9-Oct-03 0:14
Jefferson Liu9-Oct-03 0:14 
GeneralStretchDIBits fit into paper Pin
vancouver7778-Oct-03 23:51
vancouver7778-Oct-03 23:51 
GeneralRe: StretchDIBits fit into paper Pin
Alex Dolpfin9-Oct-03 3:06
Alex Dolpfin9-Oct-03 3:06 
Questionqeustions on scrolling window? Pin
ashxly8-Oct-03 23:46
ashxly8-Oct-03 23:46 
AnswerRe: qeustions on scrolling window? Pin
ashxly9-Oct-03 2:48
ashxly9-Oct-03 2:48 
Generalwarning C4273 - inconsistent dll linkage. dllexport assumed. Pin
YaronNir8-Oct-03 23:39
YaronNir8-Oct-03 23:39 
Hi all,

I've created a MFC extention dll project. in the stdafx.h file i've wrote:

#undef _GUI_LIB_EXPORT_
#ifdef _EXPORT_GUI_LIB_	
   #define _GUI_LIB_EXPORT_ __declspec(dllexport)
#else	
   #define _GUI_LIB_EXPORT_ __declspec(dllimport)
#endif


i have 2 exported classes, 1 is a dialog, the other one is a button:

1) class _GUI_LIB_EXPORT_ CMyDlg : public CDialog
2) class _GUI_LIB_EXPORT_ CMyBtn : public CButton

i use an MFC exe project to test my dll.

in the stdafx.h i also write :

#undef _GUI_LIB_EXPORT_
#ifdef _EXPORT_GUI_LIB_	
   #define _GUI_LIB_EXPORT_ __declspec(dllexport)
#else	
   #define _GUI_LIB_EXPORT_ __declspec(dllimport)
#endif




when i compile the exe project (that uses the exported dialog and button classes), it seams to recognize the dialog exported class (CMyDlg) but for the CMyBtn class i get the warning C4273 - inconsistent dll linkage. dllexport assumed.

can any1 help???

i am desparate here..

thanks in advanced,

Yaron






Ask not what your application can do for you,
Ask what you can do for your application
GeneralStill got no answer can any1 help plz?????? Pin
YaronNir9-Oct-03 2:59
YaronNir9-Oct-03 2:59 
GeneralRe: warning C4273 - inconsistent dll linkage. dllexport assumed. Pin
Anthony_Yio9-Oct-03 3:09
Anthony_Yio9-Oct-03 3:09 
GeneralRe: warning C4273 - inconsistent dll linkage. dllexport assumed. Pin
YaronNir9-Oct-03 4:27
YaronNir9-Oct-03 4:27 
GeneralRe: warning C4273 - inconsistent dll linkage. dllexport assumed. Pin
Anthony_Yio9-Oct-03 16:43
Anthony_Yio9-Oct-03 16:43 
GeneralRe: warning C4273 - inconsistent dll linkage. dllexport assumed. Pin
Abebe9-Oct-03 4:10
Abebe9-Oct-03 4:10 
GeneralMFC ActiveX application crash with no call stack Pin
tidhar8-Oct-03 23:11
tidhar8-Oct-03 23:11 
GeneralRe: MFC ActiveX application crash with no call stack Pin
Anthony_Yio9-Oct-03 2:59
Anthony_Yio9-Oct-03 2:59 
GeneralRe: MFC ActiveX application crash with no call stack Pin
tidhar9-Oct-03 3:29
tidhar9-Oct-03 3:29 
GeneralRe: MFC ActiveX application crash with no call stack Pin
Anthony_Yio9-Oct-03 16:52
Anthony_Yio9-Oct-03 16:52 
GeneralRe: MFC ActiveX application crash with no call stack Pin
tidhar9-Oct-03 21:32
tidhar9-Oct-03 21:32 
GeneralWindows Service and MFC Pin
Braulio Dez8-Oct-03 23:10
Braulio Dez8-Oct-03 23:10 
GeneralRe: Windows Service and MFC Pin
Anand Paranjpe9-Oct-03 1:08
Anand Paranjpe9-Oct-03 1:08 
GeneralRe: Windows Service and MFC Pin
Atif Mushtaq10-Oct-03 0:23
Atif Mushtaq10-Oct-03 0:23 
QuestionHow to invoke IE in VC6.0 console application? Pin
George28-Oct-03 23:00
George28-Oct-03 23:00 
AnswerRe: How to invoke IE in VC6.0 console application? Pin
Mike Dimmick9-Oct-03 0:29
Mike Dimmick9-Oct-03 0:29 
GeneralRe: How to invoke IE in VC6.0 console application? Pin
George29-Oct-03 0:37
George29-Oct-03 0:37 
GeneralRe: How to invoke IE in VC6.0 console application? Pin
Mike Dimmick9-Oct-03 1:02
Mike Dimmick9-Oct-03 1:02 

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.