I've got a console window open in windows xp. I can set the cursor x y position, but I can't read the current x y position. How do I read the cursor x,y pos.
Here is the code to set the cursor x,y pos.
The only function I have seen is GetConsoleCursorInfo but this just returns the...
I HAVE AN ABIT KG7 MOTHERBOARD, WHEN I TURN THE POWER SWITCH ON, THE FANS WHIR AND EVERYTHING LOOKS LIKE IT ABOUT TO BOOT UP, BUT IT JUST SITS THERE. THE MONITOR DOES NOT SWITCH ON. IF I THEN PRESS THE RESET SWITCH IT BOOTS UP JUST FINE. FOR SOME REASON IT NEVER BOOTS UP WHEN SWITCH ON THE...
Hello,
I need some software to upload files to my portable mp3 player. The player is a YELO DMP64VR, I've tried the usual places, but, I can't find it. Any help would be very much appreciated.
Regards,
Wayne.
How the heck do you test if a directory is empty in c (win32/msdos)
without. The only way I can think of is to use _findfirst and check if any files are normal.
I'm sure the is simple... but ....
Thanks in advance
Wayne.
Use _stat example follows:-
int result;
struct _stat buf;
result =_stat(name,&buf); // get status of file
if(result!=0){
printf("Error getting status");
return(FALSE);
}
if((buf.st_mode)&_S_IFDIR){ // if found directory, stack it.
printf("Hello I'm a...
It's ok i've found a solution.
using _dup to preseve the stdout and stderr handles
_dup2 to force the stdout and stderr to pointer to the
file handle in question
then _dup2 at the end to restore then old handles
so there yah go...
I'm using freopen to redirect stdin and stderr to files
the redirection is fine. The problem arises when I use
fclose to close the streams. This causes stdout to fail.
In the example below you will see the loop of 1000000
doing fprintf(stdout,"HELLO\n");
after redirection should...
Help...
Everytime is try to connect to a remote GSM modem,
I get error 13..no matter what i try.
It dials up and you can hear the modems talking then
goes silent for a second and return the number 13 ???
ATE0
ATV1 are set.
What is error 13..
Help...I've got a Conexant Soft56K Data,Fax PCI modem.
I'm tring to connect to a GSM modem.
The Conexant modem and GSM are setup with the following
initialisation strings.
ATZ : Default settings
ATE0 : No echo
ATV0 : only return error numbers (not verbose)...
It's ok guys, nice to get rid of some stress. Anyway back to the original thread. I'm still having problems with the machine reporting error c2471 can't update program database.
I've tried deleting the .opt,.plg and .ncb files to no avail. I've tried a 'CLEAN'. The .pdb file is NOT read-only...
I'm using Visual c++ 6 Standard Edition, The files for the workspace reside on a mapped network drive. When I try to do a 'build all' for example, visual c locks up for about 1min and then generates the following error, "Can't update program database" the solution is to re-boot, which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.