Software Archive
Read-only legacy content
17061 Discussions

using passdirkeyssqq in a console app?

hemlock
Beginner
821 Views
I thought PASSDIRKEYSQQ would be allow me to receive arrow keys and page down keys with calls to GETCHARQQ. However, the compiler cannot find PASSDIRKEYSQQ even though it can find GETCHARQQ!! What's going on here? Of course, I have the line 'USE DFLIB' before I call these functions.

This is error msg: error LNK2001: unresolved external symbol _PASSDIRKEYSQQ@4

Thank you very much.
0 Kudos
5 Replies
Steven_L_Intel1
Employee
821 Views
PASSDIRKEYSQQ is for QuickWin only.

Steve
0 Kudos
hemlock
Beginner
821 Views
Ahh, thank you. Well, I tried building a QuickWin app but then I get link errors when I use the 'SCREENIO' library that you previous sent to me. Can I use the screenio commands (and library) within a QuickWin App?

Here's a sample of the link errors that I get:
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in libcmt.lib(crt0dat.obj)

Again, Thanks very much for your replies.
0 Kudos
Steven_L_Intel1
Employee
821 Views
No - SCREENIO is for console applications only. QuickWin has its own cursor position control routines.

Steve
0 Kudos
hemlock
Beginner
821 Views
There are some positioning functions in QuickWin, but I cannot find what I need. So, I'll ask if you know of the following functions in QuickWin:

1. GetCursorPosition
2. Clear from current cursor position to end of line.
3. Clear from current cursor position to end of screen.

I still hope to be able use 'page down' and 'page up', and left and right arrow keys in QuickWin. If this really isn't supported in QuickWin, please let me know and I'll give up on the whole console idea entirely and look at rewriting the user interface (a very long journey).

Thank you very much.
0 Kudos
Steven_L_Intel1
Employee
821 Views
I don't think there are QuickWin functions for those.

I suggest you send your question about PASSDIRKEYSQQ to vf-support@compaq.com - I'm not sure how direction keys work in a console application.

Steve
0 Kudos
Reply