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.55 MB
Time: 0.021 c
1:22247
that
2001-12-17 11:29
2002.01.08
Help someone can .....


3:21938
gordon
2001-12-04 18:19
2002.01.08
How to configure IB5 with Win2000 Server


1:22145
MARcoDEN
2001-12-15 17:42
2002.01.08
Custom Button


3:21987
well
2001-12-06 08:44
2002.01.08
Rxlib


1:22218
MARcoDEN
2001-12-15 17:13
2002.01.08
Question about the DeleteFile function





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 Spanish 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