Showing results 1 to 40 of 110
Search took 0.01 seconds.
Posts Made By: krnekhelesh
Forum: C++ Feb 25th, 2008
Replies: 12
Views: 974
Posted By krnekhelesh
Re: Turboc++

I havent heard of Turbo Explorer. Is it good? I mean can we use the graphics functions in it?
Forum: C++ Feb 25th, 2008
Replies: 12
Views: 974
Posted By krnekhelesh
Re: Turboc++

I am sorry as I by mistake posted the same thing twice!
Forum: C++ Feb 25th, 2008
Replies: 12
Views: 974
Posted By krnekhelesh
Re: Turboc++

When you use BGI functions like setcolor(), circle(), line(); under borland C++ Win API it does not accept.

I have tried it many times.
The error message is as follows
BGI not supported under...
Forum: C++ Feb 24th, 2008
Replies: 4
Views: 1,215
Posted By krnekhelesh
Re: The Fork command

The Fork Command has been extensively discussed before in this forum, Please search for that post.
Forum: C++ Feb 24th, 2008
Replies: 4
Views: 404
Posted By krnekhelesh
Re: Opening a file whilst running program?

The ofstream class is used to open a file. While opening a file we generally provide only the name of the file, so the program searches for that name in the same folder.

You can also provide the...
Forum: C++ Feb 24th, 2008
Replies: 16
Views: 1,880
Posted By krnekhelesh
Re: problem with seekg

Yeah I agree with vijayan. File pointers like seekg(),tellg() work correctly only with Binary Files where the read() and write() functions are used.
Forum: C++ Feb 24th, 2008
Replies: 12
Views: 974
Posted By krnekhelesh
Re: question

I can help you. I have been using Turbo C++ and Borland C++ for the past 2 years.

However please note that you cannot use Turbo C++ to output any sort of graphics as BGI graphics is not supported in...
Forum: C++ Nov 25th, 2007
Replies: 3
Views: 4,940
Posted By krnekhelesh
Re: Editing Windows Registry

but the thing is it edits reads only strings... I want to read a value which has binary values.... How do I do that?
Forum: C++ Nov 25th, 2007
Replies: 3
Views: 4,940
Posted By krnekhelesh
Re: Editing Windows Registry

I got the following source from the internet... but I don't know how to manipulate it for my convience


#include <windows.h>
#include <iostream>

int main () {

HKEY hKey; // Declare a key to...
Forum: C++ Nov 25th, 2007
Replies: 3
Views: 4,940
Posted By krnekhelesh
Question Editing Windows Registry

I want to create a C++ Program to edit the Windows Registry. For example to change the home page of internet explorer. But I don't know how to read or edit the help.

I am doing this program just for...
Forum: C++ Oct 24th, 2007
Replies: 9
Views: 2,580
Posted By krnekhelesh
Forum: C++ Oct 21st, 2007
Replies: 9
Views: 2,580
Posted By krnekhelesh
Forum: C++ Oct 21st, 2007
Replies: 9
Views: 2,580
Posted By krnekhelesh
Re: Running C++ program in the background

But is it possible to run a C++ program in the background????
Forum: C++ Oct 21st, 2007
Replies: 9
Views: 2,580
Posted By krnekhelesh
Re: Running C++ program in the background

I want it to be a DOS based program. I have borland C++ the windows based.
Forum: C++ Oct 17th, 2007
Replies: 9
Views: 2,580
Posted By krnekhelesh
Running C++ program in the background

I am making this program which checks if your floppy drive is ready or not. And so it has to check for say 20 seconds. And for this I want the program to run in the background. How do I do this?

I...
Forum: C++ Aug 25th, 2007
Replies: 5
Views: 1,845
Posted By krnekhelesh
Re: BGI graphics not supported under windows

U could choose whatever you want
Forum: C++ Aug 15th, 2007
Replies: 1
Views: 302
Posted By krnekhelesh
Re: projects

Maybe you could do a game or any database program.
For example a airway reservation program
Forum: C++ Aug 15th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

Can anyone give me the syntax, please?
Thanx in advance
Forum: C++ Aug 14th, 2007
Replies: 17
Views: 1,081
Posted By krnekhelesh
Re: c++ files

wow, there's so much I have to learn in C++!
Forum: C++ Aug 13th, 2007
Replies: 17
Views: 1,081
Posted By krnekhelesh
Re: c++ files

I think it is better you do this


struct getname
{
char name[25];
};

int main()
{
Forum: C++ Aug 13th, 2007
Replies: 17
Views: 1,081
Posted By krnekhelesh
Re: c++ files

The code you wrote just opens the file if it is available but does not create a new one.

Use this to create a new text file

#include<iostream.h>
#include<fstream.h>

int main()
{
fstream...
Forum: C++ Aug 12th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

INT 16,1 - Get Keyboard Status
INT 16,2 - Read Keyboard Flags

Could you give me the syntax to use them? Is it something like this

int16(2,&in,&out);
I don't know much about assembly language.
Forum: C++ Aug 10th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

INT 5 - Print Screen
Does this do something like screen capture?
Because since my program is DOS based program none of the screen capture programs seem to work. And I need to show screen shots of my...
Forum: C++ Aug 10th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

I went to a site where it mentioned a similar code.


#include<iostream.h>
#include<graphics.h>
union REGS in,out;

void mousecall()
{
in.x.ax = 1;
Forum: C++ Aug 9th, 2007
Replies: 2
Views: 2,446
Posted By krnekhelesh
Re: Objects are not displaying in my program, also need to know how to work mouse clicks.

Game Programming is EASY. Introducing Graphics and mouse support is also simple.
Check out <snipped> for tutorials based on this topic
Forum: C++ Aug 6th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

The link also mentioned something about displaying images. But it didn't explain it well.

I downloaded the file from the site but the code didn't mention anything related to that.

Could you...
Forum: C++ Aug 6th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

Very useful site you mentioned above. Actually I also did a search and got a similar tutorial. It works beautifully. But I haven't yet tried with a USB mouse.

Thanks for the link
Forum: C++ Aug 6th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Re: Introduce mouse support in C++ programs

OS - Windows
Compiler - Turbo C++

for a PS2 and a USB mouse.
Forum: C++ Aug 4th, 2007
Replies: 14
Views: 2,040
Posted By krnekhelesh
Introduce mouse support in C++ programs

How do you introduce mouse in c++ program?
Forum: C++ Aug 3rd, 2007
Replies: 19
Views: 1,682
Posted By krnekhelesh
Re: What are forks????

When I use the header file #include<unistd.h>
It says the compiler cannot read the file.

I tried compiling it in DEV C++ it gave me a error message that fork() was not initialized.
Forum: C++ Jul 25th, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

I have finished my chess program. I defined some rules but couldn't code in all the rules.
Forum: C++ Jul 21st, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

bench don't bother, I am an idiot . .. misunderstood things...
Forum: C++ Jul 21st, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

I asked my friends they said that
board[64][4] would work.

there would 64 boxes in the board and each would store a string of 3 characters.
Forum: C++ Jul 20th, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

Sorry, I thought he was ridiculing salem that's it.
Forum: C++ Jul 19th, 2007
Replies: 19
Views: 1,682
Posted By krnekhelesh
Re: What are forks????

I read that forks can used to call another executable. Suppose I have two programs prog1 and prog2.

Suppose prog1 has the fork code and calls prog2, once prog2 is over will the control return to...
Forum: C++ Jul 19th, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

did anyone ask you bench?
Forum: C++ Jul 18th, 2007
Replies: 19
Views: 1,682
Posted By krnekhelesh
Re: What are forks????

So as a beginner in my C++ programming can I use them to split two process one for writing data into a file and another to read another file?
Forum: C++ Jul 18th, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

yeah but the thing is everywhere I had used a char variable, so it would be difficult changing them all. Anyway I got an idea. I will copy the contents of the char to a string.

And then output it.
Forum: C++ Jul 17th, 2007
Replies: 30
Views: 3,922
Posted By krnekhelesh
Re: Chess Program

How do you output a character in graphics mode?

I mean outtextxy(); outptuts only strings. Is there a function to output a single character?
Forum: C++ Jul 15th, 2007
Replies: 19
Views: 1,682
Posted By krnekhelesh
Re: What are forks????

Could you explain forks to me?
Showing results 1 to 40 of 110

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:58 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC