News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

plugin app

Started by ragdog, June 03, 2007, 08:10:32 PM

Previous topic - Next topic

ragdog

hi @all

i search a plugin support algo
I would like to use plugin support for my prog



can your help me please

greets
ragdog

Ehtyar

If you google for pvdasm, the author releases the source of his plugin engine. Also, notepad++ has quite an extensive framework for plugins, you may wish to download the source (C++) and examine that too.

Ehtyar.

ragdog

thanks

I can begin thereby nothing :'(

u

"plugin support algo"... it's not an algorithm for solving a problem, it's a system of exported/imported interfaces. The easiest way to make the system possible is by making the plugins as DLL files.
There's no "universal plugin system" - it's strictly task/application-oriented how the plugin system will be.
The question is not "how to make a plugin system", but "what interfaces to provide to the plugins, and what interfaces/functionality to expect from the plugins".

So, what do you want the plugins to do? I guess:
- add toolbar buttons
- get the text of the current .nfo file
- change the text
- add menu-items to the right-click menu
Please use a smaller graphic in your signature.

ragdog

thx for your help

i have solved this problem! i have a another problem

dll......



DllMain proc hInst:DWORD,reason:DWORD,reserved1:DWORD
   m2m hInstance,hInst

   mov eax,TRUE
   ret
DllMain endp

DoMyDlg proc hMainDlg:DWORD,_Buffer:DWORD,lpReserved:DWORD,lpParam:DWORD
   invoke lstrcpy,ADDR szBuffer,_Buffer
   invoke DialogBoxParam,hInstance,IDD_DLG,hMainDlg,ADDR DlgProc,NULL

   invoke EnableWindow,hMainDlg,1
   invoke SetFocus,hMainDlg
   
   mov eax,TRUE
   pop ebp
   ret
DoMyDlg endp

LoadDll proc
   lea eax,szPluginName       
   retn
LoadDll endp
....

load this dll:
..................
.............................
invoke LoadLibrary,ADDR buffer
mov hPlugin,eax
invoke GetProcAddress,hPlugin,addr sDoMyDlg
mov _DoMyDlg,eax
invoke GetProcAddress,hPlugin,addr szLoadDll
mov _LoadDll,eax

push 0
push 0
push 0
push hWnd
call _DoMyDlg         
......


can your help me with this mistake?

thanks in forward

u

remove:

invoke EnableWindow,hMainDlg,1
invoke SetFocus,hMainDlg


remove:
pop ebp
Please use a smaller graphic in your signature.

Ehtyar

Perhaps examine the source a little?

Ehtyar.

ragdog

thanks to all :U it´s works