Re: Problem calling DLL C function [Solved]
- Posted by elias_maluko Aug 11, 2012
- 1102 views
I just solved it.
atom clear_window = define_c_proc(csfml_window, "sfRenderWindow_Clear", {C_POINTER, C_UINT}) c_proc(clear_window, {app, 0xffffffff}) --clear to white OK!!!
I just realized that even declaring 4 consecutive C_UCHAR they are passed as 4 consecutive C_UINT under the hood, so only the first value (4 bytes) was received by the C function, cleaning my window to red instead of white.
Euphoria is awesome!
ps.: sorry my bad english ;)