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

C / C++ / MFC

 
GeneralRe: large numbers Pin
Nelek19-May-07 23:03
protectorNelek19-May-07 23:03 
QuestionDebug vs Release Configuration Pin
Oliver12315-May-07 16:31
Oliver12315-May-07 16:31 
AnswerRe: Debug vs Release Configuration Pin
David Crow15-May-07 17:09
David Crow15-May-07 17:09 
GeneralRe: Debug vs Release Configuration Pin
Oliver12315-May-07 17:28
Oliver12315-May-07 17:28 
GeneralRe: Debug vs Release Configuration Pin
_AnsHUMAN_ 15-May-07 17:45
_AnsHUMAN_ 15-May-07 17:45 
GeneralRe: Debug vs Release Configuration Pin
dharani15-May-07 18:10
dharani15-May-07 18:10 
QuestionNeed help with Keyboard device drivers Pin
Willian Tell15-May-07 15:06
Willian Tell15-May-07 15:06 
QuestionProblem with serializing Propeties of an ActiveX Control [modified] Pin
TheInfernalCrow15-May-07 12:13
TheInfernalCrow15-May-07 12:13 
Hi there,

I am a very beginner so please be pacient Wink | ;) .

I've tried to add an own Property to the Property Page of my ActiveX Control in VC++ 6.0. But I've got a Problem there with serializing it.

I added the Bold line in my Control's Ctrl Class.

void CButtonCtrl::DoPropExchange(CPropExchange* pPX)<br />
{<br />
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));<br />
	COleControl::DoPropExchange(pPX);<br />
<br />
	// ZU ERLEDIGEN: PX_ Funktionen für jede dauerhafte benutzerdefinierte Eigenschaft aufrufen.<br />
<br />
	<br />
	PX_Long( pPX, _T("DBID"), m_CTRL_DBID );	<br />
<br />
}

And the Class Wizard added the following bold lines in the PropPage Class:

void CButtonPropPage::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	//{{AFX_DATA_MAP(CButtonPropPage)<br />
	DDP_Text(pDX, IDC_CAPTION_EDIT, m_PPG_Caption, _T("Caption") );<br />
	DDX_Text(pDX, IDC_CAPTION_EDIT, m_PPG_Caption);<br />
	DDP_Text(pDX, IDC_DBID_EDIT, m_PPG_DBID, _T("DBID") );<br />
	DDX_Text(pDX, IDC_DBID_EDIT, m_PPG_DBID);	<br />
<br />
        //}}AFX_DATA_MAP<br />
	DDP_PostProcessing(pDX);<br />
}

But every time I open the Property Page in the Test Container for ActiveX Controls, change the value of my Property, click on "Apply" and "OK" and open the Properties Page again, the Value I put in isn't there anymore.

Can you tell me, what I've done wrong or what I maybe forgot?
Do I have to do something in the Get/Set Methods?

Greetings TheInfernalCrow


-- modified at 19:08 Tuesday 15th May, 2007
QuestionPlaySound() in Vista [modified] Pin
Ryan Sikma15-May-07 11:29
Ryan Sikma15-May-07 11:29 
AnswerRe: PlaySound() in Vista Pin
Hans Dietrich15-May-07 15:12
mentorHans Dietrich15-May-07 15:12 
GeneralRe: PlaySound() in Vista Pin
Ryan Sikma15-May-07 20:19
Ryan Sikma15-May-07 20:19 
QuestionHow to block joystick devices Pin
Michael Sadlon15-May-07 10:09
Michael Sadlon15-May-07 10:09 
QuestionSelect a Folder and get fullPath from all files it contains Pin
Immunity1815-May-07 8:52
Immunity1815-May-07 8:52 
AnswerRe: Select a Folder and get fullPath from all files it contains Pin
Dustin Henry15-May-07 9:03
Dustin Henry15-May-07 9:03 
GeneralRe: Select a Folder and get fullPath from all files it contains Pin
Immunity1815-May-07 9:05
Immunity1815-May-07 9:05 
GeneralRe: Select a Folder and get fullPath from all files it contains Pin
Immunity1815-May-07 9:11
Immunity1815-May-07 9:11 
GeneralRe: Select a Folder and get fullPath from all files it contains Pin
Dustin Henry15-May-07 9:27
Dustin Henry15-May-07 9:27 
GeneralRe: Select a Folder and get fullPath from all files it contains Pin
Immunity1815-May-07 9:28
Immunity1815-May-07 9:28 
QuestionLaunch another app within an app Pin
Jerry Burns15-May-07 7:03
Jerry Burns15-May-07 7:03 
AnswerRe: Launch another app within an app Pin
Rajesh R Subramanian15-May-07 7:08
professionalRajesh R Subramanian15-May-07 7:08 
AnswerRe: Launch another app within an app Pin
Hans Dietrich15-May-07 7:11
mentorHans Dietrich15-May-07 7:11 
GeneralRe: Launch another app within an app Pin
Jerry Burns15-May-07 7:39
Jerry Burns15-May-07 7:39 
GeneralRe: Launch another app within an app Pin
Hans Dietrich15-May-07 8:29
mentorHans Dietrich15-May-07 8:29 
QuestionRe: Launch another app within an app Pin
Hamid_RT15-May-07 8:29
Hamid_RT15-May-07 8:29 
AnswerRe: Launch another app within an app Pin
dharani15-May-07 18:18
dharani15-May-07 18:18 

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.