Hi,
How can I make a crosshair cursor that when you click on a certain co-ord, some text displays?
Thanks,
Stuart_cpp
Hi,
How can I make a crosshair cursor that when you click on a certain co-ord, some text displays?
Thanks,
Stuart_cpp
Last edited by stuart_cpp; 07-24-2006 at 07:20 AM.
what compiler and operating system???
Default Compiler and using Dev-C++
you probably mean mingw and you also probably mean windows
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
first you need to learn how to write an MS-Windows gui program -- you can't do what you have in mind with a console program. If you don't know how to write a win32 api program then start with this tutorial. After you learn that you can use the sample program as a starter program for your own programs. After you learn that pretty well then either (1) you will know the answer to your own question, or (2) repost you question when the answer will make more sense to you.
It's actually possible to do it in a console. Although difficult for a beginner.
http://www.electroguys.com/articles/mouse/ provides an introduction to the subject. There are probably some libs or header files out there with a more complete framework.
One I know of is the Turbo Vision library. Although to have that linked just to use the mouse part of it is probably wasteful.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Mario: how do you make a cross-hair cursor with a console program? And the link you posted is for 16-bit MS-DOS programs, which are of course unusable in modern MS-Windows compilers.
Last edited by Ancient Dragon; 07-24-2006 at 09:11 AM.
You are right. Amidst the conversation I forgot about the original question.
EDIT: However Turbo Vision is much Win32 compatible. But yes. No crosshair cursor
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.