Thread overview | |||||
---|---|---|---|---|---|
|
January 14, 2012 Re: function pointer from DLL | ||||
---|---|---|---|---|
| ||||
You can clone this: git@github.com:AndrejMitrovic/DSciteWin.git Then just run build.bat. |
January 14, 2012 Re: function pointer from DLL | ||||
---|---|---|---|---|
| ||||
On 1/14/12, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote: > You can clone this: git@github.com:AndrejMitrovic/DSciteWin.git > > Then just run build.bat. > Sorry, I've assumed you run git, the http link is: https://github.com/AndrejMitrovic/DSciteWin |
January 14, 2012 Re: function pointer from DLL | ||||
---|---|---|---|---|
| ||||
Your problem was that you didn't cast the function pointer to an extern(C) function. Unfortunately you can't do this inline (I can't tell if this will be fixed or not), so you have to use an alias as a workaround: alias extern (C) int function(void*,int,int,int) SciFnDirect; fn = cast(SciFnDirect)SendMessage( hwndScintilla, SCI_GETDIRECTFUNCTION, 0, 0); |
Copyright © 1999-2021 by the D Language Foundation