Raised This Month: $ Target: $400
 0% 

#include <windows.h> <-- Possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
culd
Member
Join Date: Aug 2009
Old 08-15-2009 , 10:33   #include <windows.h> <-- Possible?
Reply With Quote #1

Hi I wanna know if its possible to include <windows.h> libraries to use their functions with the amx mod x compiler. If this is possible, how can I do it. Thank you.
culd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 10:34   Re: #include <windows.h> <-- Possible?
Reply With Quote #2

No.
__________________
Arkshine is offline
culd
Member
Join Date: Aug 2009
Old 08-15-2009 , 10:53   Re: #include <windows.h> <-- Possible?
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
No.
File.inc contains no function to execute. Where can I find an include file compatible with amx mod x to execute applications.
culd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 11:10   Re: #include <windows.h> <-- Possible?
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=87159
__________________
Arkshine is offline
culd
Member
Join Date: Aug 2009
Old 08-15-2009 , 11:14   Re: #include <windows.h> <-- Possible?
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Thanks
culd is offline
culd
Member
Join Date: Aug 2009
Old 08-15-2009 , 11:32   Re: #include <windows.h> <-- Possible?
Reply With Quote #6

How do AMXX Studio recognizes that include an add?
culd is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-15-2009 , 11:18   Re: #include <windows.h> <-- Possible?
Reply With Quote #7

You can do it. But with the module system. But no In Pawn
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-15-2009 , 11:44   Re: #include <windows.h> <-- Possible?
Reply With Quote #8

AMXX Work with Pawn method. Amx Dev Team create the natives and func in C++. And add this module to Metamod ( That Call game Func ) So. When Map Start. This module load the .amxx and read the binary code.

You can create a Module and use windows.h and Create some natives. So then with the API you call that Func in windows.h


Sorry my English. I do the best posible
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
culd
Member
Join Date: Aug 2009
Old 08-15-2009 , 12:25   Re: #include <windows.h> <-- Possible?
Reply With Quote #9

Quote:
Originally Posted by AntiBots View Post
AMXX Work with Pawn method. Amx Dev Team create the natives and func in C++. And add this module to Metamod ( That Call game Func ) So. When Map Start. This module load the .amxx and read the binary code.

You can create a Module and use windows.h and Create some natives. So then with the API you call that Func in windows.h


Sorry my English. I do the best posible
Do you speak spanish?

Yo hablo espaņol... Si ese es tu idioma nativo, podemos comunicarnos mejor...

Ya tengo un .inc pero cuando uso include no detecta el AMXX Studio, es decir no me deja compilar, como puedo hacer para incluirlo y que el AMXX Studio lo reconozca y pueda compilar?
culd is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 08-15-2009 , 12:32   Re: #include <windows.h> <-- Possible?
Reply With Quote #10

for spanish go http://forums.alliedmods.net/forumdisplay.php?f=10

No you cannot include windows.h into your pawn project.. its not C++!
The PAWN compile gets all his includes out of the include folder if you include it like this: #include <myfile>
It can also gets it from the directory where the sma file is located if you include it like this: #include "myfile"
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode