Click here to Skip to main content
15,901,982 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help in simple game Pin
YaronNir9-Oct-03 0:05
YaronNir9-Oct-03 0:05 
GeneralRe: Need help in simple game Pin
Member 139425924-Dec-04 20:05
Member 139425924-Dec-04 20:05 
Generalbuttons and word doc's Pin
N.Byarley8-Oct-03 14:37
N.Byarley8-Oct-03 14:37 
GeneralRe: buttons and word doc's Pin
Terry O'Nolley8-Oct-03 18:45
Terry O'Nolley8-Oct-03 18:45 
GeneralRe: buttons and word doc's Pin
N.Byarley8-Oct-03 20:33
N.Byarley8-Oct-03 20:33 
GeneralRe: buttons and word doc's Pin
Terry O'Nolley8-Oct-03 23:32
Terry O'Nolley8-Oct-03 23:32 
QuestionHow can I make the property sheet buttons in the XP style? Pin
bin89228-Oct-03 13:19
bin89228-Oct-03 13:19 
Generalwarning C4273 - inconsistent dll linkage. dllexport assumed. Pin
YaronNir8-Oct-03 12:54
YaronNir8-Oct-03 12:54 
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, it seams to recognize the dialog exported class (CMyDlg) but for the CMyBtn class i get
warning C4273 - inconsistent dll linkage. dllexport assumed.

can any1 help???

i am desparate here..

thanks in advanced,

Yaron
QuestionHow to change the color of the dialog box Pin
Deepak Samuel8-Oct-03 12:15
Deepak Samuel8-Oct-03 12:15 
AnswerRe: How to change the color of the dialog box Pin
YaronNir8-Oct-03 13:16
YaronNir8-Oct-03 13:16 
QuestionEM_STREAMOUT and EditStreamCallback() function? Pin
Kayembi8-Oct-03 12:07
Kayembi8-Oct-03 12:07 
QuestionHow to make a dialog box pop up on receiving an event Pin
Deepak Samuel8-Oct-03 11:18
Deepak Samuel8-Oct-03 11:18 
GeneralWindows Xp Style Buttons Pin
Marissa1828-Oct-03 11:14
Marissa1828-Oct-03 11:14 
GeneralRe: Windows Xp Style Buttons Pin
Ravi Bhavnani8-Oct-03 11:51
professionalRavi Bhavnani8-Oct-03 11:51 
General"This" adress changing in the same object Pin
Chris Gilbert8-Oct-03 10:27
Chris Gilbert8-Oct-03 10:27 
GeneralRe: "This" adress changing in the same object Pin
Tim Smith8-Oct-03 11:19
Tim Smith8-Oct-03 11:19 
GeneralRe: "This" adress changing in the same object Pin
Chris Gilbert9-Oct-03 11:02
Chris Gilbert9-Oct-03 11:02 
GeneralRe: "This" adress changing in the same object Pin
ZoogieZork8-Oct-03 16:35
ZoogieZork8-Oct-03 16:35 
GeneralDisplaying images on CWnd dervied windows Pin
Ph@ntom8-Oct-03 9:49
Ph@ntom8-Oct-03 9:49 
General1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 9:24
Terry O'Nolley8-Oct-03 9:24 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Ryan_Roberts8-Oct-03 9:58
Ryan_Roberts8-Oct-03 9:58 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 17:28
Terry O'Nolley8-Oct-03 17:28 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Anonymous8-Oct-03 11:01
Anonymous8-Oct-03 11:01 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 16:30
Terry O'Nolley8-Oct-03 16:30 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
David Stone8-Oct-03 19:08
sitebuilderDavid Stone8-Oct-03 19:08 

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.