how do i get this to work?
And how do i get NULL into the declaration?
linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x568): undefined reference to `_mciSendString@16'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x2021): undefined reference to `_mciSendString@16'
*** FATAL ERROR - Please post this output in the forum
And how do i get NULL into the declaration?
linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x568): undefined reference to `_mciSendString@16'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x2021): undefined reference to `_mciSendString@16'
*** FATAL ERROR - Please post this output in the forum
Code (glbasic) Select
FUNCTION foo:
ENDFUNCTION
INLINE
}
extern "C" int __stdcall mciSendString(const char*,int,int,void*);
namespace __GLBASIC__
{
ENDINLINE
FUNCTION api:
a$="open tabs.mid type mpegvideo alias MediaFile";
b=0
c=0
INLINE
mciSendString(a_Str.c_str(),b,c,GLBASIC_HWND());
ENDINLINE
ENDFUNCTION