Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 'alias oprndev not found' from rawprint program
Message
 
 
To
18/07/2002 10:48:00
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00679915
Message ID:
00679986
Views:
25
>If I am understanding this code properly, then I got the error message trying to present the messagebox() that said there was a printer open error?

Yes. You can get error message text from error code.
	Declare Integer FormatMessageA In kernel32.dll as FormatMessage ;
		Integer dwFlags, ;
		String @lpSource, ;
		Integer dwMessageId, ;
		Integer dwLanguageId, ;
		String @lpBuffer, ;
		Integer nSize, ;
		Integer Arguments

lcErrBuffer = REPL(CHR(0),1000)
liNewErr = FormatMessage(0x1000;
 	,.NULL., vprdev.nOpenError, 0, @lcErrBuffer,500,0)
lcErrorMess = LEFT(lcErrBuffer, AT(CHR(0),lcErrBuffer)- 1 )
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform