leonh Posted May 17, 2007 Share Posted May 17, 2007 Hi. How make my plugin auto activate when DVBViewer starts? Can anybody explain this? Regards Tomek Quote Link to comment
Moses Posted May 17, 2007 Share Posted May 17, 2007 huh? Your plugin should be auto activated, if you are exporting the right functions... just try, your dllattach should be called and some other.. The plugin has to decide for itself if it's "active" or not. Quote Link to comment
leonh Posted May 17, 2007 Author Share Posted May 17, 2007 (edited) Ok, thx i must try this -------------- Yes its working. Thanks Edited May 17, 2007 by leonh Quote Link to comment
leonh Posted May 22, 2007 Author Share Posted May 22, 2007 Ok, thx i must try this -------------- Yes its working. Thanks So i have now another problem when i activate my plugin with this procedure: procedure DLLHandler(Reason: Integer); begin case Reason of 0 : begin //detach if assigned(frmMain) then frmMain.Free; frmMain:=NIL; end; 1 : begin //attach MenuItemClick(34000); SetState(34000,MF_CHECKED); end; end; end; Plugin is activated but in menu is not displayed it is actviated, when i deactivate plugin in menu and actovate it again in menu my plugin is marked as checked (active). I dont know why. Anybody explain me this problem, and find solution? Quote Link to comment
Griga Posted May 22, 2007 Share Posted May 22, 2007 Don't do it in DLLMain. The app might even deadlock if your initialisation stuff (indirectly) entails loading another DLL (not DVBViewer, but OS specific). Better do it when DVBViewer passes the menu handle to your plugin (SetMenuHandle procedure), which is early enough. Quote Link to comment
leonh Posted May 22, 2007 Author Share Posted May 22, 2007 (edited) Don't do it in DLLMain. The app might even deadlock if your initialisation stuff (indirectly) entails loading another DLL (not DVBViewer, but OS specific). Better do it when DVBViewer passes the menu handle to your plugin (SetMenuHandle procedure), which is early enough. Thanks, i changed this and now its working !!!!!!!!!!!!. So i have another question, its possible to display simple text line (without header and boxes - just simply test) in fixed position on screen with COM interface???? I cant find method like this Regards Edited May 22, 2007 by leonh Quote Link to comment
Griga Posted May 23, 2007 Share Posted May 23, 2007 Sorry, I don't know the DVBViewer Pro COM interface, so I can't help you. I would post this question in the COM / Scripting section of this board. Probably Lars or another experienced member can answer it. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.