Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCheck existing folder Pin
Cedric Moonen24-Nov-05 1:22
Cedric Moonen24-Nov-05 1:22 
AnswerRe: Check existing folder Pin
kakan24-Nov-05 1:24
professionalkakan24-Nov-05 1:24 
GeneralRe: Check existing folder Pin
Cedric Moonen24-Nov-05 1:42
Cedric Moonen24-Nov-05 1:42 
AnswerRe: Check existing folder Pin
Jagadeesh VN24-Nov-05 1:26
Jagadeesh VN24-Nov-05 1:26 
AnswerRe: Check existing folder Pin
Cool Ju24-Nov-05 18:27
Cool Ju24-Nov-05 18:27 
AnswerRe: Check existing folder Pin
Blake Miller28-Nov-05 8:30
Blake Miller28-Nov-05 8:30 
QuestionFile Copy Problem!!! Pin
Jagadeesh VN24-Nov-05 1:15
Jagadeesh VN24-Nov-05 1:15 
QuestionHow can I set properties of ActiveX control Pin
zwsonic24-Nov-05 0:20
zwsonic24-Nov-05 0:20 
I have made an ActiveX control (.OCX) for web interface.

It has some member variables. And I had not implemented Get/Set methods for

those variables.

Throught the web page, I can set the values of above variables by <param> tag.

But now, I want to set the values of above variables by container application.

I made MFC application project by VC++. Above ActiveX control is inserted.

But, I cannot find the way to set the values of ActiveX's variables by the

same way as the <param> tag.

I think there is the way to set value to these variables because the Internet

Explorer can set without Get/Set methods.

How can I set the values of ActiveX's variables?

Please understand my poor English. English is not my mother tongue.


Following codes are some piece of my ActiveX control.

//################## SampleCtrl.cpp #########################
.........
void CSampleCtrl::DoPropExchange(CPropExchange* pPX)
{
ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
COleControl::DoPropExchange(pPX);

// TODO: Call PX_ functions for each persistent custom property.
PX_String(pPX,_T("sUserID"), strUserID );
PX_String(pPX,_T("sVerifyCode"), strVerifyCode );
PX_Short(pPX,_T("nLevel"), nLevel );

}
........

// ############## SampleCtrl.h #####################
class CSampleCtrl : public COleControl
{
....
private:
short int nLevel;
CString strVerifyCode;
CString strUserID;

};

// ############## test.html ####################
<OBJECT ID="Sample" WIDTH=340 HEIGHT=150 CLASSID="CLSID:D870D8B9-16CC-4445-9BE3-36BDFF5621E6">
<PARAM NAME="sUserID" VALUE="superman">
<PARAM NAME="sVerifyCode" VALUE="K4HVD-Q9TJ9-6CRX9-RQ2D3">
<PARAM NAME="nLevel" VALUE="3">
</OBJECT>


-- modified at 6:22 Thursday 24th November, 2005
AnswerRe: How can I set properties of ActiveX control Pin
Jagadeesh VN24-Nov-05 1:38
Jagadeesh VN24-Nov-05 1:38 
GeneralRe: How can I set properties of ActiveX control Pin
zwsonic24-Nov-05 16:21
zwsonic24-Nov-05 16:21 
QuestionHow to avoid flickering? Pin
jayshml23-Nov-05 23:51
jayshml23-Nov-05 23:51 
AnswerRe: How to avoid flickering? Pin
PJ Arends24-Nov-05 16:19
professionalPJ Arends24-Nov-05 16:19 
QuestionVariable Scope Pin
Gizzo23-Nov-05 23:47
Gizzo23-Nov-05 23:47 
AnswerRe: Variable Scope Pin
khan++23-Nov-05 23:56
khan++23-Nov-05 23:56 
AnswerRe: Variable Scope Pin
Owner drawn23-Nov-05 23:59
Owner drawn23-Nov-05 23:59 
AnswerRe: Variable Scope Pin
sunit524-Nov-05 18:41
sunit524-Nov-05 18:41 
Questioncode execution Pin
micutzu23-Nov-05 23:25
micutzu23-Nov-05 23:25 
Questionhelp needed from &quot;Albert Hermann's article(Easy to use class for ScreenCapture to printer)&quot; Pin
a_david12323-Nov-05 23:23
a_david12323-Nov-05 23:23 
AnswerRe: help needed from &amp;quot;Albert Hermann's article(Easy to use class for ScreenCapture to printer)&amp;quot; Pin
toxcct23-Nov-05 23:41
toxcct23-Nov-05 23:41 
QuestionMultiple application.exe Pin
Boder Coder23-Nov-05 23:19
Boder Coder23-Nov-05 23:19 
AnswerRe: Multiple application.exe Pin
toxcct23-Nov-05 23:36
toxcct23-Nov-05 23:36 
AnswerRe: Multiple application.exe Pin
micutzu23-Nov-05 23:38
micutzu23-Nov-05 23:38 
GeneralRe: Multiple application.exe Pin
Owner drawn24-Nov-05 0:15
Owner drawn24-Nov-05 0:15 
GeneralRe: Multiple application.exe Pin
Boder Coder24-Nov-05 0:39
Boder Coder24-Nov-05 0:39 
GeneralRe: Multiple application.exe Pin
Rage24-Nov-05 1:22
professionalRage24-Nov-05 1:22 

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.