Page 1 of 1

Posted: Sun Jan 19, 2003 11:52 am
by BackupUser
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.

Posted: Sun Jan 19, 2003 12:01 pm
by BackupUser
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:

Posted: Sun Jan 19, 2003 11:16 pm
by BackupUser
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?

Posted: Mon Jan 20, 2003 9:33 am
by BackupUser
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