Sign in to follow this  
Followers 0
tamir

help with function from dll

5 posts in this topic

it's the first time i try to use a function from dll with DllCall.

i try to create a rich edit control using the CreateWindowEx from the msftedit.dll (u can get it here).

here's the syntax of it:

HWND CreateWindowEx(          DWORD dwExStyle,
    LPCTSTR lpClassName,
    LPCTSTR lpWindowName,
    DWORD dwStyle,
    int x,
    int y,
    int nWidth,
    int nHeight,
    HWND hWndParent,
    HMENU hMenu,
    HINSTANCE hInstance,
    LPVOID lpParam
);

the classname of the rich edit is RICHEDIT_CLASS

if u want more info about it go here.

but since it's my 1st time i couldn't create it :/

can some1 try and give me and example plz?

Share this post


Link to post
Share on other sites



oh o:) thought this would be my solution to the styles such as colors in edit control :lmao:

Share this post


Link to post
Share on other sites

Nah Larry, getting the HINSTANCE is easy. Should be able to call GetWindowLong(hWnd, GWL_HINSTANCE) on AutoIt's hidden window or the parent GUI window to the control. I'm not sure if an HISTANCE is totally necessary anyway.

As you said, though, the real problem is interacting with it. Edit controls don't seem to use structures but Rich Edit controls do.

Share this post


Link to post
Share on other sites

hmm i can't seem to manage calling any function o:)

i tried to call DlgDirList from the user32.dll file but it also didn't work :lmao:

please someone, try to call it, and if u can't please give me an example of another function of ur choice

Share this post


Link to post
Share on other sites

thanks!

i guess i didn't use the right type of the parameter :/

i hope i'll succeed with the next functions :lmao:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0