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:
00683090
Vues:
30
I see. Thanks. The way the expressions were paired on each line made the syntax hard for me to follow.

>It is. The expression looks like this
((((b4 * 256)+b3)*256)+b2)*256)+b1
>* or w/o parenthesis
>b4*256^3 + b3*256^2  +b2*256 + b1
>
>
>>Typo. I mean the multiplier be increasing by 2**8, or more precisely, value of multiplier should be 256**n such that third byte should be multiplied by 256**2 and forth byte should be multiplied by 256**3
>>
>>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform