Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 'alias oprndev not found' from rawprint program
Message
 
 
À
18/07/2002 10:48:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00679915
Message ID:
00679986
Vues:
26
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform