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

Вниз

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

 
Кудрявцев Павел   (2005-01-24 14:17) [0]

Как правильно использовать формы KOL в DLL? Хотелость бы услышать ответ от самого Владимира Кладова.
Прошу не отсылать меня к FAQ - я уже прочел. Размещенный на сайте пример глючит - если несколько раз вызывать и закрывать форму из DLL, то где-то после шестого раза возникает ошибка. Что неправильно в примере?
Возможно ли чтобы формы из DLL работали так же как формы из приложения, которое их вызывает. В VCL это решалось передачей в качестве параметра функции ссылки на Application.
И еще как сделать MDI форму в DLL.

Вот такая куча вопросов у меня. Может быть Владимиру стоит написать статью на эту тему, думаю не я один такой.


 
ECM ©   (2005-01-24 14:51) [1]

Посмотри исходники COLLAPSE там Владимир показывал похожим способом дебуггер...


 
Vladimir Kladov   (2005-01-24 17:24) [2]

Ну и чего мне говорить??


 
ECM ©   (2005-01-24 18:45) [3]

Спугнул...блин... :)


 
Кудрявцев Павел   (2005-01-25 09:33) [4]

Что такое COLLAPSE? Можно ссылочку, пожалуйста.


 
Yhrik   (2005-01-25 09:51) [5]

2[4] Лови!
http://delphimaster.net/view/11-1098418435/


 
Кудрявцев Павел   (2005-01-25 09:52) [6]

Большое спасибо!


 
SPeller ©   (2005-01-26 19:44) [7]

У меня всё нормально работает из ДЛЛ, ничего нового я не изобретал и не использовал.


 
Boguslaw   (2005-01-28 01:53) [8]

I have minor problem with KOL form called from DLL (modal). If screen saver is running and this form (which is kind of balloon dialog) is displayed - screen saver is paused, which is good but after my form close, on taskbar remain ugly empty box.

Becouse this balloon is required to be shown periodically soon I have taskbar fille with a lot of zombie :-O


 
thaddy   (2005-01-28 02:34) [9]

Do you create the form dynamically? (everytime you need to show it?) Then try this trick: make it a singleton in the dll, by only really creating it on the first call, then just increasing the refcount/decreasing the refcount and destroying on exit:
var Singledllballoon:PBalloon;

function NewBallon:PBalloon;
begin
 if not assigned(SingledllBalloon) then
   New(SingledllBalloon,Create);
 Result:=SingledllBalloon;
end;

That should prevent the shadows/ghosts.


 
Boguslaw   (2005-01-29 19:52) [10]

I want to avoid loading DLL once, becouse of memory usage. This is a small tray-icon application (about 350-700 kb in memory) and this balloon window is loaded from DLL only sometimes (when Internet Explorer version is below 6 and something happen which should be expressed) So i use LoadLibrary/ShowModal/FreeLibrary.

Is there any other solution for this or I must use statically loaded DLL (and balloon form created only once on load) ?


 
thaddy   (2005-01-30 02:04) [11]

Boguslaw,

One of the reasons that I adapted marcel"s winapi translation is dat it supports dynamic loading, or even better: delay loading.
Have a look at that, and how they do it in the jcl. neat!
Only if a routine in a dll is actually called by the user,(not the linker), the dll is loaded. the jcl version of the winapi is the version borland should have included in the first place. And I learned the trick of delay loading from it. You can do it with your own dll"s too.


 
Boguslaw   (2005-01-31 23:57) [12]

This is as I found known bug in Taskbar implementation in win9X.Windows created as visible,then hidden create this blank box on taskbar (or something related, I did"nt remember now)


 
stals ©   (2005-03-09 22:08) [13]

Посмотрите сюда, пожалуйста...
http://delphimaster.net/view/11-1098418435/



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

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

Наверх





Память: 0.47 MB
Время: 0.039 c
14-1129217046
ArtemESC
2005-10-13 19:24
2005.11.06
Дизассемблер-редактор


2-1129296467
kolos_rus
2005-10-14 17:27
2005.11.06
Descktop на DELPHI


6-1121686897
SergeyDon
2005-07-18 15:41
2005.11.06
как лучше организовать ожидание в потоке?


14-1129551136
syte_ser78
2005-10-17 16:12
2005.11.06
чек в ДБриде


4-1125771215
GuAV
2005-09-03 22:13
2005.11.06
Сшная структура из MSDN - как понимать такие поля ?





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