i'm stuck trying to call a function in a dll.
This is the C function i' trying to call:
Code: Select all
enum
{
sfNone = 0, ///< No border / title bar (this flag and all others are mutually exclusive)
sfTitlebar = 1 << 0, ///< Title bar + fixed border
sfResize = 1 << 1, ///< Titlebar + resizable border + maximize button
sfClose = 1 << 2, ///< Titlebar + close button
sfFullscreen = 1 << 3 ///< Fullscreen mode (this flag and all others are mutually exclusive)
};
typedef struct
{
unsigned int DepthBits; ///< Bits of the depth buffer
unsigned int StencilBits; ///< Bits of the stencil buffer
unsigned int AntialiasingLevel; ///< Level of antialiasing
} sfWindowSettings;
typedef struct
{
unsigned int Width; ///< Video mode width, in pixels
unsigned int Height; ///< Video mode height, in pixels
unsigned int BitsPerPixel; ///< Video mode pixel depth, in bits per pixels
} sfVideoMode;
CSFML_API sfWindow* sfWindow_Create(sfVideoMode Mode, const char* Title, unsigned long Style, sfWindowSettings Params);
Code: Select all
Enumeration
#sfNone = 0
#sfTitlebar = 1 << 0
#sfResize = 1 << 1
#sfClose = 1 << 2
#sfFullscreen = 1 << 3
EndEnumeration
Structure sfWindowSettings
DepthBits.i
StencilBits.i
AntialiasingLevel.i
EndStructure
Structure sfVideoMode
Width.i
Height.i
BitsPerPixel.i
EndStructure
ImportC "csfml-window.lib"
sfWindow_Create(*Mode.sfVideoMode,Title.s,Style,*Params.sfWindowSettings)
EndImport
Settings.sfWindowSettings\DepthBits = 24
Settings\StencilBits = 8
Settings\AntialiasingLevel = 0
Mode.sfVideoMode\Width = 800
Mode\Height = 600
Mode\BitsPerPixel = 32
sfWindow_Create(@Mode, "SFML window", sfResize | sfClose, @Settings)
[14:51:48] Waiting for executable to start...
[14:51:58] The debugged executable did not respond to communication for %timeout% seconds. Disconnecting.
If I comment out sfWindow_Create() it doesnt timeout, but if I put a breakpoint on that function call it doesn't even reach it.
I hope someone can help, thanks beforehand.