|
Thread: Api
-
Sep 12th, 2002, 08:37 PM
#1
Thread Starter
Fanatic Member
Api
Hi, i used this code, but all it does is change the cursor to arrow with hourglass:
#include <windows.h>
#include <iostream.h>
#include <string.h>
#include <dos.h>
int main()
{
string command;
date today;
getdate(&today);
cout<<"Terminal Activated ";
cout<<today.da_mon<<" "<<today.da_day<<" "<<today.da_year<<"\n";
while(command!="end")
{
cin>>command;
if(command=="cursor")
ShowCursor(FALSE);
if(command=="show")
ShowCursor(TRUE);
}
}
ive tried passing the parameter in numbers, tried it in lowercase, someone please help.
-
Sep 12th, 2002, 09:56 PM
#2
Frenzied Member
In one sentence that we can all understand: what do you want to do? Change the cursor?
-
Sep 12th, 2002, 11:25 PM
#3
Frenzied Member
I just think he wants to hide/show the cursor.
The code you are already using should do the job...
-
Sep 13th, 2002, 03:40 AM
#4
No, since at the moment the app is closing the cursor is reset (I think).
Oh, and you should use <string>, <iostream> and
using namespace std;
to comply with the current C++ standard.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 13th, 2002, 06:50 PM
#5
Thread Starter
Fanatic Member
i just got a new compiler that supports non .h include names yesterday night.
the app wont close till u type end, compile it, and test it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|