It is currently Wed Nov 20, 2019 12:15 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject:
PostPosted: Sun Jan 19, 2003 11:52 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Starax.

Is it ok to use the DirectX based commands like ExamineKeyboard etc within a windows application. I get the impression that the command is there for games programmers.

Should I use the API GetASyncKeyState instead?

I don't really like to use API commands because I just end up thinking 'Why don't I wite my application in C# instead'.

What I like about basic is the simple and obvious commands.

Print "Hello"
Circle 100,100,32
PlaySound 3,200

I feel another topic coming on.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jan 19, 2003 12:01 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by Pupil.

What you want to look at is the AddKeyboardShortcut() command, which doesn't use directX and puts you a layer from API level :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jan 19, 2003 11:16 pm 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by TheBeck.

If you use DirectX commands, whoever uses your program has to have DirectX installed. It can look a little weird for a non-media app to require DirectX but that is the only thing to worry about, as far as I know. So why not use it?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 20, 2003 9:33 am 
Offline
PureBasic Guru
PureBasic Guru

Joined: Tue Apr 22, 2003 7:42 pm
Posts: 16777133
Restored from previous forum. Originally posted by fred.

Because it's not very system friendly and it's optimized for game.. Better use the regualr apps commands if you do an application, it's much more recommended.

Fred - AlphaSND


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: mrv2k and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye