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. RE: open a new form
tnx I'll try it later today
07-09-2003 07:16 AM
Profile E-Mail PM Find Quote Report
Bamboe
Junior Member
**

Avatar

Posts: 30
Joined: Feb 2003
O.P. RE: open a new form
it didn't work :( got these error messages on line in parsecommand:
(DialogBox(hDllInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NickChanger);)

  [C++ Error] MPPluginC.cpp(95): E2451 Undefined symbol 'hDllInst'
  [C++ Error] MPPluginC.cpp(95): E2451 Undefined symbol 'IDD_DIALOG1'
  [C++ Error] MPPluginC.cpp(95): E2034 Cannot convert 'int (__stdcall *)(void *,unsigned int,unsigned int,long)' to 'int (__stdcall *)()'
  [C++ Error] MPPluginC.cpp(95): E2342 Type mismatch in parameter 'lpDialogFunc' (wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *,unsigned int,unsigned int,long)')
07-09-2003 03:36 PM
Profile E-Mail PM Find Quote Report
n3tfusiOn
New Member
*


Posts: 9
– / Male / –
Joined: Jul 2003
RE: open a new form
You have to change :

BOOL APIENTRY DllMain(HANDLE hModule, DWORD nReason, void* pReserved)
{
    return TRUE;
}

by :


HINSTANCE hInst;
HWND hWnd;

BOOL APIENTRY DllMain( HINSTANCE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved)
{
hInst = hModule;
        return TRUE;
}

And call the function by :     

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

(in the parsecommand )



Thx to allex87 for this tip :)
07-10-2003 04:56 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
tnx, u have one error solves, i still have these three errors:

[C++ Error] MPPluginC.cpp(95): E2451 Undefined symbol 'IDD_DIALOG1'
[C++ Error] MPPluginC.cpp(95): E2034 Cannot convert 'int (__stdcall *)(void *,unsigned int,unsigned int,long)' to 'int (__stdcall *)()'
[C++ Error] MPPluginC.cpp(95): E2342 Type mismatch in parameter 'lpDialogFunc' (wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *,unsigned int,unsigned int,long)')

in this line: (DialogBox(hDllInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NickChanger)

This post was edited on 07-10-2003 at 06:21 PM by Bamboe.
07-10-2003 06:21 PM
Profile E-Mail PM Find Quote Report
n3tfusiOn
New Member
*


Posts: 9
– / Male / –
Joined: Jul 2003
RE: RE: open a new form
quote:
Originally posted by Bamboe
tnx, u have one error solves, i still have these three errors:

[C++ Error] MPPluginC.cpp(95): E2451 Undefined symbol 'IDD_DIALOG1'
[C++ Error] MPPluginC.cpp(95): E2034 Cannot convert 'int (__stdcall *)(void *,unsigned int,unsigned int,long)' to 'int (__stdcall *)()'
[C++ Error] MPPluginC.cpp(95): E2342 Type mismatch in parameter 'lpDialogFunc' (wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *,unsigned int,unsigned int,long)')

in this line: (DialogBox(hDllInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NickChanger)



you have to :
make a dialog box
import resource in the project (.rc file)  (there is the dlgbox into )
include the resource.h file (auto created by the program )

:)
07-10-2003 07:16 PM
Profile E-Mail 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