borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Print both sides)Next Topic (Need to print Logo on the top (which changes)) New Topic New Poll Post Reply
AndreaVB Forum : Printing : SendMessage call
Poster Message
cleopard
Level: Big Cheese

Registered: 02-09-2005
Posts: 28

icon SendMessage call

There's a program I help support that's written in VB, and it's been having a problem printing (labels, in this particular application) on one guy's PC, but no where else.  It dies when it goes into a call to SendMessage and doesn't return; I'll elaborate:

l = SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, "windows")


where   Public Const HWND_BROADCAST = &HFFFF
            Public Const WM_WININICHANGE = &H1A

and

Declare Function SendMessage Lib "user32" _
         Alias "SendMessageA" _
         (ByVal hwnd As Long, _
         ByVal wMsg As Long, _
         ByVal wParam As Long, _
         lParam As String) As Long


What could there be wrong that might cause problems on one PC, but is OK everywhere else?  Thanks for any input.

03-01-2007 at 08:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : SendMessage call
Previous Topic (Print both sides)Next Topic (Need to print Logo on the top (which changes)) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder