Hello.
I am trying to create an import called select and i cannot compile as it is giving me a syntax error because the compiler thinks im trying to use Aurora's Select command. If i made the dll i would change it, but as it is part of the windows API i cannot. Is there an easy way around it?
Lewis
Use the ALIAS keyword.
declare import, SelectX ALIAS select(...);
Which will resolve the conflict. You'll call the function using the SelectX name
Nope. trued using alias and it still didnt work.
Lewis
I use it myself all the time. How about posting the funciton in question
winsock? try with quotes:
declare import, SelectX ALIAS "select"(
int nfds,
fd_set *readfds,
fd_set *writefds,
fd_set *exceptfds,
timeval *timeout
),int;
In IBPro we had to have the quoted syntax so the compiler didn't think we were doing a select command. Sapero's way will work.
Edit: Apparently SELECT is its own token and doesn't qualify as a literal, just if you're wondering why it won't work the other way.