Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Types Or help to read HELP Find similar branches


Андрей Сенченко   (2001-12-19 10:53) [0]

I can not understand such a thing:
The copy file can be copied to a new file.
BOOL CopyFile ( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to copy to copy BOOL bFailIfExists // flag for operation if file exists );

Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero,. To get extended error information, call GetLastError.

Please explain: what will be ZERO or NONZERO for a logical type?



Юрий Федоров   (2001-12-19 10:55) [1]

ZERO (0) - false, NONZERO - true



Андрей Сенченко   (2001-12-19 10:55) [2]

Or if BOOL is not a logical type, then where can I find its description?



gek   (2001-12-19 11:09) [3]

Not Yury Fedorov answered correctly
if 0 is a lie in all other cases it is true as far as I remember



TonnyS   (2001-12-19 11:15) [4]

I use the following code for copying (it allows setting masks):

function CopyFiles (const source, dest: string): boolean; var F: TShFileOpStruct; begin F.Wnd: = 0; F.wFunc: = FO_COPY; F.pFrom: = pchar (Source + # 0); F.pTo: = pchar (Dest + # 0); F.fFlags: = FOF_ALLOWUNDO or FOF_NOCONFIRMATION; result: = (ShFileOperation (F) = 0); end;

when copying the standard window pops up.



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.56 MB
Time: 0.041 c
14-22358
Dense
2001-11-07 19:08
2002.01.08
Where is there frisny SMALL but HIGH-SPEED hosting?


1-22219
dimonf
2001-12-16 17:23
2002.01.08
How to make a Canvas drawn when any window passes with a window


1-22170
AVALLOGIGS
2001-12-20 19:37
2002.01.08
Help!


14-22398
Jey
2001-11-10 18:55
2002.01.08
Here here it is an IRC client to do ....


7-22431
Pasha
2001-09-21 15:58
2002.01.08
How to remove from the sound card, the waveform.





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish