Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.01;
Скачать: CL | DM;

Вниз

getusername   Найти похожие ветки 

 
netter   (2001-12-29 17:26) [0]

ПЛЗ ... Как пользоваться функцией GetUserName !
C Наступающим всех!!!


 
Adder ©   (2001-12-29 18:04) [1]

procedure TForm1.Button1Click(Sender: TObject);
var buffer:pchar;
nSize:dword;
begin
nSize:=256;
GetMem(buffer,size);
GetUserName(buffer,nSize);
Label1.Caption:=buffer;
FreeMem(buffer);
end;

If the function succeeds, the return value is nonzero, and the variable pointed to by nSize contains the number of characters copied to the buffer specified by lpBuffer, including the terminating null character.
If the function fails, the return value is zero. To get extended error information, call GetLastError.



Страницы: 1 вся ветка

Текущий архив: 2002.04.01;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.008 c
3-54
Malder
2002-03-06 16:58
2002.04.01
Ошибка при query1.edit;


1-236
SlavaLamer
2002-03-20 19:48
2002.04.01
Реестр


1-101
SergeyVP
2002-03-21 11:45
2002.04.01
Как правильно переопределить конструктор?


3-34
Mike c
2002-03-04 19:53
2002.04.01
не соединяется с базой IB! :(


1-97
Fredericco
2002-03-21 12:45
2002.04.01
Кто-нибудь знает возможно ли следуещее: написать класс в dll и потом его использовать?