Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2008.03.02;
Скачать: [xml.tar.bz2];

Вниз

LoadLibrary, как высвободить?   Найти похожие ветки 

 
Artem   (2008-02-07 22:27) [0]

как высвободить переменную типа THandle, присвоенной значение LoadLibrary?

например

s:=loadlibrary(Pchar(edit1.text));

s.free - нет такого метода... что недогоняю? подскажите, плиз.


 
Джо ©   (2008-02-07 22:30) [1]

FreeLibrary.
Причем тут какие-то «методы»?.


 
Artem   (2008-02-07 22:52) [2]

нет, ругается "record,object or class type required"

в чем проблема?


 
Anatoly Podgoretsky ©   (2008-02-07 22:54) [3]

А s разве одно из этого?


 
Artem   (2008-02-07 23:02) [4]

нет, THandle


 
Artem   (2008-02-07 23:05) [5]

путаю

вот
s:=freelibrary(s);

ругается, что несовместимые типы


 
easy ©   (2008-02-07 23:11) [6]

The FreeLibrary function decrements the reference count of the loaded dynamic-link library (DLL) module. When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid. This function supersedes the FreeModule function.

BOOL FreeLibrary(

   HMODULE hLibModule  // handle to loaded library module  
  );


Parameters

hLibModule

Identifies the loaded library module. The LoadLibrary or GetModuleHandle function returns this handle.



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.


 
Джо ©   (2008-02-08 01:08) [7]

> [5] Artem   (07.02.08 23:05)
> путаю
>
> вот
> s:=freelibrary(s);
>
> ругается, что несовместимые типы

Вам не сложно будет объяснить ход ваших мыслей, когда вы писали вот такое:
s:=freelibrary(s)
?


 
Германн ©   (2008-02-08 02:36) [8]


> Джо ©   (08.02.08 01:08) [7]
>
> > [5] Artem   (07.02.08 23:05)
> > путаю
> >
> > вот
> > s:=freelibrary(s);
> >
> > ругается, что несовместимые типы
>
> Вам не сложно будет объяснить ход ваших мыслей, когда вы
> писали вот такое:
> s:=freelibrary(s)
> ?

Имхо, ему будет очень сложно. Налицо незнание основ (букваря). Особенно если вспомнить пост [0].
> s.free - нет такого метода.


 
han_malign ©   (2008-02-08 11:26) [9]


> Вам не сложно будет объяснить ход ваших мыслей

- TurboPascal(или альфа-бейсик?) - где функция обязана быть Right value? :))



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

Форум: "Начинающим";
Текущий архив: 2008.03.02;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.04 c
2-1202288543
9899100
2008-02-06 12:02
2008.03.02
запятая в строке в операторе insert


15-1201686214
andreoman
2008-01-30 12:43
2008.03.02
Microsoft Word 9.0 что за версия ?


2-1202403164
DDR
2008-02-07 19:52
2008.03.02
Запретить выбранные item в Listbox


15-1201196240
Lip
2008-01-24 20:37
2008.03.02
Как называется алгоритм сортировка?


2-1201966506
Jimmy
2008-02-02 18:35
2008.03.02
Opendialog с расширенными возможностями





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский