windows.h in dynamic c

Hi guys, i am trying to #include into the dynamic c compiler. I am having some problems doing it.

Is there anything I can do to remedy this?

Thanks

[edit] i am trying to do the following line
keybd_event( VkKeyScan(‘L’),0x26,KEYEVENTF_EXTENDEDKEY,0);
in normal C, how do i do this in Dynamic C?

cannot be included in Dynamic C as the compiler does not generate code for running on the PC. Things like keybd_event are Windows specific functions.

You need to read the documentation more carefully (especially the function reference) to find out what resources you have available to you when programming on a Rabbit device.
Regards,
Peter

Thanks, Peter for the reply.

As this Rabbit Device is provided by my school, i have pretty much no choice but to use it to fit my project :frowning:

Anyway, do you have any recommendations on what function can do the same job in dynamic C? Any help would be nice.

I am currently looking through the function ref manual and it’s looking quite bleak. But will keep trying thou.

Thanks

I’m not sure what the intention of the original code is but i think a combination of kbhit() and getchar() is what you are looking for.

Anyway, trust me, there are far worse systems you could be working with :slight_smile:

Regards,
Peter

Thanks again peter

I shall give those 2 function a look when I am back at school, I will update this post if i find anything :).

Thanks loads :smiley:

I have tried the 2 functions and I have formulated an alternative solution to my project.

But, it has created another problem. I can’t monitor key inputs (kbhit()) when the debugger is minimized. Is there a code that can set the debugger run in the background?

Thanks

It’s not possible to monitor keypresses when the debugger is in the background. The code running in the Rabbit device only has access to keystrokes from the PC when the console window is in focous.

Regards,
Peter