What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » open a new form

Pages: (2): « First [ 1 ] 2 » Last »
open a new form
Author: Message:
Bamboe
Junior Member
**

Avatar

Posts: 30
Joined: Feb 2003
O.P. open a new form
can somebody pleaz tell me how i can open a new form (in c)
i've tried form1->Show(); but it didn't work (the compiler accept it but the plugin won't work anymore).
07-07-2003 10:21 PM
Profile E-Mail PM Find Quote Report
Predatory Kangaroo
Full Member
***


Posts: 144
– / Male / –
Joined: Jul 2003
RE: open a new form
As Alex has posted many times, he's done this (not in MFC) by doing DialogBox()
I don't know how to use that, but...
And in MFC i think you do it using form1->DoModal
[Image: imagetest.php?display=You%20dont%20know%...djust=true]
07-08-2003 02:58 AM
Profile PM Web Find Quote Report
allex87
Junior Member
**

Avatar
Hmmm...

Posts: 99
37 / Male / –
Joined: Jul 2003
RE: open a new form
I think API is the easiest way... anyways, if you want a GREAT API tutorial, go to:
http://winprog.net/tutorial/

That's how I started.

Basically, u need a dialog as a resource. Then u call CreateDialog to create that dialog. Then, u handle all the messages in the Dialog Procedure...

BTW, i want to learn MFC.. does anyone know a GOOD tutorial on the net? or a book?

Thanks....
[Image: signature.gif]
07-08-2003 03:10 AM
Profile E-Mail PM Web Find Quote Report
Bamboe
Junior Member
**

Avatar

Posts: 30
Joined: Feb 2003
O.P. RE: open a new form
I don't understand the tutorial, you have to use some code in winMain() but there isn't a winMain() in the msn+ api.

what do you mean with MFC (i am just a newbe in programming)

Can you please give me some example code or the code you used in your plugin?

tnx a lot

This post was edited on 07-08-2003 at 01:14 PM by Bamboe.
07-08-2003 12:04 PM
Profile E-Mail PM Find Quote Report
trax
Junior Member
**


Posts: 27
Joined: Nov 2002
RE: open a new form
And what is it in vb??

if id o form1.show the whole command doesn't work
07-08-2003 12:53 PM
Profile E-Mail PM Find Quote Report
Xerxis
Full Member
***


Posts: 234
Reputation: 1
41 / Male / –
Joined: Jul 2003
Status: Away
RE: open a new form
i have opened a post on the same subject, it isn't only a form you can't load, every object you try to load gives that problem, the command isn't parsed anymore

i don't know the solution to that problem but i could use it, so if anyone knows!!!
07-08-2003 01:18 PM
Profile E-Mail PM Web Find Quote Report
Bamboe
Junior Member
**

Avatar

Posts: 30
Joined: Feb 2003
O.P. RE: open a new form
allex87 you have made a form before, can i have your sourcecode?
07-08-2003 08:20 PM
Profile E-Mail PM Find Quote Report
allex87
Junior Member
**

Avatar
Hmmm...

Posts: 99
37 / Male / –
Joined: Jul 2003
RE: open a new form
OK... here ya go... this is a snippet from my forthcoming AdvancedN Nickname Changer plugin (still need to work a bit on it).

Put this in the parsecommand:

DialogBox(hDllInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NickChanger);

U must have a dialog in ur resource file with the IDD_DIALOG1 id...
Also you need a dialog procedure (name would be NickChanger).

Here's a sample of a Dialog procedure:

BOOL CALLBACK NickChanger(
    HWND hwndDlg,
    UINT uMsg,
    WPARAM wParam,
    LPARAM lParam
)
{
    switch(uMsg)
    {
    case WM_INITDIALOG:
// do whatever u want when the dialog is initialized
                     break;
    case WM_CLOSE:
        DestroyWindow(hwndDlg);
        break;
    case WM_DESTROY:
// Remember to clean up after urself, after finishing...
        EndDialog(hwndDlg, wParam);
        break;
    default:
        return FALSE;
    }
return TRUE;
}

There... now.. if u progrram in MFC, I am truly sorry, I can't help.. actually, like i've said, I want to learn, I just didn't find a GOOD tutorial that explains everything... :(
[Image: signature.gif]
07-08-2003 09:00 PM
Profile E-Mail PM Web Find Quote Report
Whacko
Full Member
***

Avatar

Posts: 209
Reputation: 1
40 / Male / –
Joined: Apr 2002
RE: open a new form
hehe... i love Delphi... did it in like 2 seconds :P
I code in:
C
C++
Delphi
Visual Basic
Pascal :P
07-08-2003 09:20 PM
Profile PM Web Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
Huh?  RE: open a new form
Where did you get hDllInst from?
07-08-2003 10:33 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On