Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Address Book Pin
Nish Nishant22-Jun-02 1:06
sitebuilderNish Nishant22-Jun-02 1:06 
GeneralVC .NET add member variable Pin
22-Jun-02 0:08
suss22-Jun-02 0:08 
Generalmodel & modeless dialog box. Pin
vikramlinux22-Jun-02 0:03
vikramlinux22-Jun-02 0:03 
GeneralRe: model & modeless dialog box. Pin
Nish Nishant22-Jun-02 0:36
sitebuilderNish Nishant22-Jun-02 0:36 
GeneralRe: model & modeless dialog box. Pin
vikramlinux22-Jun-02 1:11
vikramlinux22-Jun-02 1:11 
GeneralRe: model & modeless dialog box. Pin
Nish Nishant22-Jun-02 1:41
sitebuilderNish Nishant22-Jun-02 1:41 
GeneralRe: model & modeless dialog box. Pin
vikramlinux22-Jun-02 2:39
vikramlinux22-Jun-02 2:39 
GeneralC++ Class Help!!! Pin
calebcohoon21-Jun-02 18:44
calebcohoon21-Jun-02 18:44 
Hello!

I'm writing an activex control and I wondered how I could return a pointer to a class object back to a JavaScript Variable. I know that sounds really weird but I'll give you an example:

Here's the java script:


--------------------------------------------------------------------------------

1: var testbox;
2: var variable = document.testcontrol; // this points to the active control <object idclass="blahblahblah" id="testcontrol">
4: testbox = variable.CreateMsgBox();
5: testbox.SetText("Hello Universe"); // im sick of "Hello World" lol <img src="images/smilies/smile.gif" border="0" alt="">

--------------------------------------------------------------------------------


Let me explain the above code. When the variable named "variable" calls the IDispatch method CreateMsgBox(), on line 4, I want it to return a pointer from the newly created class back to the variable "testbox". Then on line 5 I can access the class methods through the "testbox".

Heres the pusedo code of the c++ code when one calls the CreateBox() function above.


--------------------------------------------------------------------------------
CCreateBox CreateBox()
{
1: CCreateBox newBox; // CCreateBox is the MsgBox class
2: return newBox;
}

--------------------------------------------------------------------------------


I hope anyone can understand this, and if anyone can help I’d greatly appreciate it!!!!!!!!!!!!!

Thank You,
Caleb
GeneralRe: C++ Class Help!!! Pin
Christian Graus21-Jun-02 19:49
protectorChristian Graus21-Jun-02 19:49 
GeneralRe: C++ Class Help!!! Pin
Bill Wilson24-Jun-02 7:34
Bill Wilson24-Jun-02 7:34 
Generaltabbing Pin
Steve L.21-Jun-02 17:54
Steve L.21-Jun-02 17:54 
Questionanybody knows how to use the DataGrid control? Pin
Chen Jiadong21-Jun-02 15:13
Chen Jiadong21-Jun-02 15:13 
AnswerRe: anybody knows how to use the DataGrid control? Pin
Mazdak21-Jun-02 21:40
Mazdak21-Jun-02 21:40 
GeneralMFC Combobox help please... Pin
21-Jun-02 14:59
suss21-Jun-02 14:59 
GeneralRe: MFC Combobox help please... Pin
aldeba21-Jun-02 15:08
aldeba21-Jun-02 15:08 
GeneralRe: MFC Combobox help please... Pin
21-Jun-02 15:24
suss21-Jun-02 15:24 
GeneralRe: MFC Combobox help please... Pin
Nish Nishant21-Jun-02 15:47
sitebuilderNish Nishant21-Jun-02 15:47 
GeneralRe: MFC Combobox help please... Pin
sultan_of_6string21-Jun-02 16:00
sultan_of_6string21-Jun-02 16:00 
GeneralRe: MFC Combobox help please... Pin
21-Jun-02 16:08
suss21-Jun-02 16:08 
GeneralRe: MFC Combobox help please... Pin
Duane21-Jun-02 16:29
Duane21-Jun-02 16:29 
GeneralConverting from Borland to Visual C++ Pin
21-Jun-02 12:31
suss21-Jun-02 12:31 
GeneralRe: Converting from Borland to Visual C++ Pin
JohnnyG22-Jun-02 3:48
JohnnyG22-Jun-02 3:48 
QuestionIs it possible to have a Docking Tool Bar on Dialog?? Pin
Speedy21-Jun-02 11:44
Speedy21-Jun-02 11:44 
GeneralSome coding questions Pin
Alan Chambers21-Jun-02 10:52
Alan Chambers21-Jun-02 10:52 
GeneralRe: Some coding questions Pin
Chris Losinger21-Jun-02 11:00
professionalChris Losinger21-Jun-02 11:00 

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.