Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows lock up after an API call
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00110966
Message ID:
00110972
Views:
23
>Using VFP 3.0 under WIN 3.1
>
>on click of Print button I call a method w/c does the ff.:
>
>accepts a printer name string as stated in the device= line in WIN.ini
>
>-opens the Foxtools library on the network
>
>-runs a dos batch file to redirect Novell's capture to a different printer
>
>- writes new default printer settings in the WIN.ini using an API call
>"WRITEPRIVATEPROFILESTRING"
>
>- closes the library
>
>After this method it prints fine to the appropriate printer
>
>Then I tried to reset the WINDOWS default printer back to the way it was by passing a different printer name string to the same method
>AND IT LOCKS UP. I have to press CTRL-ALT-DEL to get out.
Dan,

Do you use SendMessage() to tell the open applications to reload that (windows) section?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform