ViB
-
1 août 2001 à 13:19
Cirec
Messages postés3833Date d'inscriptionvendredi 23 juillet 2004StatutModérateurDernière intervention18 septembre 2022
-
16 juil. 2009 à 10:24
salut,
J'ai fais mes armes sur VB6, mais là, je débute sous deplhi.
Je voudrais savoir comment peut-on faire sous D6 pour trouver facilement (outre CRTL+F) la partie implémentation d'une procédure lorsqu'on est dans un projet (pas la partie Déclaration, ça, j'ai trouvé...)
{external PathRelativePathToA in ShlwApi.dll} {http://msdn.microsoft.com/en-us/library/bb773740(VS.85).aspx} function PathRelativePathTo(
pszPath: PAnsiChar; {Buffer de sortie (MAX_PATH (260) de taille minimum} pszFrom: PAnsiChar; {Chemin où fichier de départ (MAX_PATH de taille max} dwAttrFrom: DWORD; [i]{Détermine si pszFrom désigne
-un répertoire -> FILE_ATTRIBUTE_DIRECTORY
-où un fichier -> 0}/i pszTo: PAnsiChar; {Chemin où fichier de déstination (MAX_PATH de taille max} dwAttrTo: DWORD): {Idem que dwAttrFrom} BOOL; stdcall; external 'shlwapi.dll' name 'PathRelativePathToA';
{ retourne le code des touches pressées} function GetKeyCode: Cardinal;
[b]begin
/bResult := 0;
if (GetAsyncKeyState(VK_CONTROL) and $8000) = $8000 [b]then
/bInc(Result, scCtrl);
if (GetAsyncKeyState(VK_SHIFT) and $8000) = $8000 [b]then
/bInc(Result, scShift);
if (GetAsyncKeyState(VK_MENU) and $8000) = $8000 [b]then
/bInc(Result, scAlt);
if (GetAsyncKeyState(VK_OEM_2) and $8000) = $8000 [b]then
/bInc(Result, VK_OEM_2);
if (GetAsyncKeyState(VK_4) and $8000) = $8000 [b]then
/bInc(Result, VK_4);
if (GetAsyncKeyState(VK_5) and $8000) = $8000 [b]then
/bInc(Result, VK_5);
end;
[hr]