May 04, 2024, 10:53:54 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Imports & Aurora Function Names

Started by Zen, January 11, 2006, 09:23:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zen

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

Ionic Wind Support Team

Use the ALIAS keyword.

declare import, SelectX ALIAS select(...);

Which will resolve the conflict.  You'll call the function using the SelectX name
Ionic Wind Support Team

Zen

Nope. trued using alias and it still didnt work.

Lewis

Ionic Wind Support Team

I use it myself all the time.  How about posting the funciton in question
Ionic Wind Support Team

sapero

winsock? try with quotes:
declare import, SelectX ALIAS "select"(
int nfds,
fd_set *readfds,
fd_set *writefds,
fd_set *exceptfds,
timeval *timeout
),int;

Parker

January 11, 2006, 02:55:46 PM #5 Last Edit: January 11, 2006, 06:40:10 PM by Parker
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.