Click here to Skip to main content
15,921,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:02
Steve S9-Oct-03 2:02 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:05
Steve S9-Oct-03 2:05 
QuestionVector inside MFC app? Pin
Zizilamoroso9-Oct-03 1:00
Zizilamoroso9-Oct-03 1:00 
AnswerRe: Vector inside MFC app? Pin
Anand Paranjpe9-Oct-03 1:47
Anand Paranjpe9-Oct-03 1:47 
AnswerRe: Vector inside MFC app? Pin
Steve S9-Oct-03 1:51
Steve S9-Oct-03 1:51 
GeneralRe: Vector inside MFC app? Pin
Zizilamoroso9-Oct-03 3:20
Zizilamoroso9-Oct-03 3:20 
AnswerRe: Vector inside MFC app? Pin
jhwurmbach9-Oct-03 2:02
jhwurmbach9-Oct-03 2:02 
GeneralForm like MS Office assistance in vc++ Pin
sunju9-Oct-03 0:37
sunju9-Oct-03 0:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:30
Anthony_Yio9-Oct-03 2:30 
GeneralRe: Form like MS Office assistance in vc++ Pin
Atif Mushtaq10-Oct-03 0:17
Atif Mushtaq10-Oct-03 0:17 
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 

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.