What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » [VB6] Closing MSN messenger

3 votes - 2.67 average   [VB6] Closing MSN messenger
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
42 / Male / Flag
Joined: Jan 2003
RE: [VB6] Closing MSN messenger
quote:
Originally posted by J-Thread
Public Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long
change that to
code:
Public Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageW" (ByVal lpString As String) As Long
or better, change
quote:
Originally posted by J-Thread
Public Function Sendmsg(strMessage As String) As Boolean
    nMsg = RegisterWindowMessage(strMessage)
    Sendmsg = PostMessage(HWND_BROADCAST, nMsg, 0, 0)
End Function
to
code:
Public Function Sendmsg(strMessage As String) As Boolean
    nMsg = RegisterWindowMessage(StrConv(strMessage, vbFromUnicode))
    Sendmsg = PostMessage(HWND_BROADCAST, nMsg, 0, 0)
End Function
and do only 1 fo those 2 changes ;)
quote:
Originally posted by J-Thread
The text() function is a function to display the text. The function is not totally done, after copying there has to be more, but that isn't done yet. And this is where it ends...
i don't get that dodgy function. you really don't need that function.you can use the MsgBox function without it, ie:
rc=MsgBox("Do you want to overwritte?", vbYesNo + .... etc...

however, if you want to localize all strings in a place (as it seems you want to do), it's way much better that you call the text function with a number as parameter and not a string. It'd execute very much faster. Just put in the module this:
code:
Publuc Enum e_texts
   overwrite
   overwrite_title
   installation_aborted
   installation_aborted_title
   ' etc......
   ' etc......
   ' etc......
End Enum

and call the function text like this:
code:
text(overwrite)
' or
text(overwrite_title)
and declare that function like this:
code:
Public Function text(ByVal what as e_texts) as String
   Select Case what
      Case overwrite
         text = "Do you want to overwrite?"
      Case overwrite_title
         text = "Confirm overwrite"
      ' etc....
      ' etc....
      ' etc....
   End Select
End Function


This post was edited on 07-03-2004 at 09:21 AM by Choli.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-03-2004 09:21 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 12:45 PM
RE: [VB6] Closing MSN messenger - by Wouter on 07-02-2004 at 12:59 PM
RE: [VB6] Closing MSN messenger - by Dempsey on 07-02-2004 at 01:11 PM
RE: RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 03:15 PM
RE: [VB6] Closing MSN messenger - by Choli on 07-02-2004 at 01:32 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 01:44 PM
RE: [VB6] Closing MSN messenger - by CookieRevised on 07-02-2004 at 01:56 PM
RE: RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 02:28 PM
RE: [VB6] Closing MSN messenger - by CookieRevised on 07-02-2004 at 02:31 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 02:33 PM
RE: [VB6] Closing MSN messenger - by CookieRevised on 07-02-2004 at 02:42 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 02:45 PM
RE: [VB6] Closing MSN messenger - by matty on 07-02-2004 at 03:04 PM
RE: [VB6] Closing MSN messenger - by matty on 07-02-2004 at 04:56 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-02-2004 at 05:29 PM
RE: [VB6] Closing MSN messenger - by Choli on 07-02-2004 at 05:33 PM
RE: [VB6] Closing MSN messenger - by matty on 07-02-2004 at 05:34 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-03-2004 at 08:29 AM
RE: [VB6] Closing MSN messenger - by Choli on 07-03-2004 at 09:21 AM
RE: RE: [VB6] Closing MSN messenger - by J-Thread on 07-03-2004 at 10:49 AM
RE: [VB6] Closing MSN messenger - by Choli on 07-03-2004 at 12:12 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-03-2004 at 12:57 PM
RE: [VB6] Closing MSN messenger - by J-Thread on 07-05-2004 at 05:46 PM


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