Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:07
Nibu babu thomas6-Aug-08 19:07 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 19:28
monsieur_jj6-Aug-08 19:28 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:42
Nibu babu thomas6-Aug-08 19:42 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 19:48
monsieur_jj6-Aug-08 19:48 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 19:53
Nibu babu thomas6-Aug-08 19:53 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 20:00
monsieur_jj6-Aug-08 20:00 
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 20:06
Nibu babu thomas6-Aug-08 20:06 
GeneralRe: LNK2001 error question Pin
monsieur_jj6-Aug-08 20:27
monsieur_jj6-Aug-08 20:27 
I am a bit confused on what I should do specifically.

This is about 1/5 of the class:

#include "..\MacAddress.h"
#include "..\NetworkConnectionInformation.h"
#include "..\DeviceLocation.h"

#if defined EXPORT_FROM_DLL  
#define DLLEXPORT __declspec( dllexport )
#else  
#define DLLEXPORT __declspec( dllimport )
#endif

class CJJPropertySheet;
class DLLEXPORT CJJPropertyPage5 : public CPropertyPage
{
	DECLARE_DYNCREATE(CJJPropertyPage5)

// Construction
public:
	CString m_strURL;
	void Register(void);
	static UINT StartRegistration(LPVOID pParam);
	UINT m_uiTimer;
	CString GetProductSiteCode(void);
	CJJPropertyPage5();
	~CJJPropertyPage5();


As you can see I already added what you recommended. Now on the import side. My question is do I have to rewrite the class into one of my headers? something like:

class DLLIMPORT CJJPropertyPage5 : public CPropertyPage
{
public:

	CString GetProductSiteCode(void);
	CJJPropertyPage5();
	~CJJPropertyPage5();


From what I understood i dont have to rewrite the members that I will not use directly.

Is that right? and also do I have to include the header file of the orginal class?

Thanks,
Jayjay
GeneralRe: LNK2001 error question Pin
Nibu babu thomas6-Aug-08 20:48
Nibu babu thomas6-Aug-08 20:48 
QuestionAccessing microsoft index service with ADO Pin
tustin6-Aug-08 14:09
tustin6-Aug-08 14:09 
QuestionLPITEMIDLIST Pin
Bram van Kampen6-Aug-08 13:17
Bram van Kampen6-Aug-08 13:17 
AnswerRe: LPITEMIDLIST Pin
Stephen Hewitt6-Aug-08 14:04
Stephen Hewitt6-Aug-08 14:04 
GeneralRe: LPITEMIDLIST Pin
Bram van Kampen6-Aug-08 15:25
Bram van Kampen6-Aug-08 15:25 
QuestionRe: LPITEMIDLIST Pin
David Crow7-Aug-08 3:35
David Crow7-Aug-08 3:35 
QuestionRe: LPITEMIDLIST Pin
Bram van Kampen7-Aug-08 8:19
Bram van Kampen7-Aug-08 8:19 
QuestionScrolling won't work when zooming in CScrollView [modified] Pin
ccaprani6-Aug-08 12:49
ccaprani6-Aug-08 12:49 
Questionvc++ 6 mfc, dialog with child, messed up Pin
rolfhorror6-Aug-08 7:59
rolfhorror6-Aug-08 7:59 
QuestionRe: vc++ 6 mfc, dialog with child, messed up Pin
Mark Salsbery6-Aug-08 9:18
Mark Salsbery6-Aug-08 9:18 
AnswerRe: vc++ 6 mfc, dialog with child, messed up [modified] Pin
rolfhorror6-Aug-08 10:04
rolfhorror6-Aug-08 10:04 
GeneralRe: vc++ 6 mfc, dialog with child, messed up Pin
Mark Salsbery7-Aug-08 4:45
Mark Salsbery7-Aug-08 4:45 
GeneralRe: vc++ 6 mfc, dialog with child, messed up Pin
rolfhorror7-Aug-08 8:18
rolfhorror7-Aug-08 8:18 
QuestionRe: vc++ 6 mfc, dialog with child, messed up Pin
David Crow7-Aug-08 3:38
David Crow7-Aug-08 3:38 
Question2005 C++ Resource editor replaces #defs with strings Pin
anand91966-Aug-08 7:24
anand91966-Aug-08 7:24 
AnswerRe: 2005 C++ Resource editor replaces #defs with strings Pin
Joe Woodbury6-Aug-08 10:43
professionalJoe Woodbury6-Aug-08 10:43 
QuestionOpenGL and HW acceleration [modified] Pin
Dave Calkins6-Aug-08 3:45
Dave Calkins6-Aug-08 3:45 

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.