Re: Problem calling DLL C function [Solved]

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 ;)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu