Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding the DOS Command Prompt
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00682911
Message ID:
00683039
Vues:
30
I was looking at the code for this class. Can the extractdword method be right??? Shouldn't the multiplier be increasing by 2*8 instead of being 256 for 3 of the 4 terms?
PROCEDURE parseprocessinfostruc
LPARAMETER cProcessInfoStructure
WITH This
  .inProcessHandle = .ExtractDWORD(cProcessInfoStructure)
  .inThreadHandle = .ExtractDWORD(SUBST(cProcessInfoStructure,5))
ENDWITH

ENDPROC


PROCEDURE extractdword
LPARAMETER cStringToExtractFrom
IF TYPE('cStringToExtractFrom')='C' AND LEN(cStringToExtractFrom) >= 4
  RETURN (((ASC(SUBST(cStringToExtractFrom,4,1))*256) + ;
  ASC(SUBST(cStringToExtractFrom,3,1)))*256 + ;
  ASC(SUBST(cStringToExtractFrom,2,1)))*256 + ;
  ASC(LEFT(cStringToExtractFrom,1))
ELSE
  this.icErrorMessage = 'Invalid DWORD string passed for conversion'
  RETURN NULL
ENDIF
ENDPROC
>>hello everybody,
>>
>>how could I hide the DOS Command Prompt that pops up when I run a DOS command in my VFP program?
>>
>>Thanks very much,
>>Jimi
>
>Take a look at file #9477. It allows to run command hidden.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform