C++ IN XP

Status
Not open for further replies.

chillnow

Broken In
I have windows XP professional edition,,,no patches.....no sp1 or sp2. I cant install or even run C++ or turbo or anything like it.....it says invalid program file name...check ur pif file.....
one of the exe files also says NTVDM does not support rom basic.
also sometimes the application runs but closes down in a few seconds....
HELP!
PS.
(and obviously i have pirated version of XP) :lol: :cry:
 

chinmay

Journeyman
Hey Turbo C++ runs fine on my PC ... PM me if you want the software ...by the way .. u got to run the file C:\TC\BIN\TC.EXE .. may be you are running some other file :lol:
 

q3_abhi

Youngling
Turbo C++ runs fine on Windows XP. Try to run it from command prompt. Run the correct .exe file for installation.
 
D

Deleted member 5901

Guest
No advertising of personal websites. You have been warned enough. One more such instance and you will be put on warning.

ctrl_alt_del
 

ujjwal

Padawan
As turbo c is a dos based application I am unsure of its compatibility in Windows NT series OS's, but as someone suggested, try Dev C++, it should run fine -

*www.bloodshed.net/devcpp.html

King_Niral, once or twice may have been tolerable, but it gets quite annoying if you advertise your forum in every query for help.
 

iinfi

mekalodu
i need vga.h and vgagl.h
anyone here has it??

i dont have extensive knowledge of this kinda C program but i need to run this one

#include <stdio.h>
#include <vga.h>
#include <vgagl.h>

main()
{
vga_init();
vga_setmode(G320x200x256);
vga_drawline(10,10,100,100);
sleep(2);
vga_clear();

//Change screen resolution
vga_setmode(G640x480x16);
//Change current drawing color
vga_setcolor(10);

vga_drawline(10,10,100,100);
vga_getch();
vga_setmode(TEXT);
}
 

kooladi

Right off the assembly line
reply to vga

hi,
from the looks of it you are trying to write on the screen using a vga function .What that means is, that you are trying to access ur Video's memory directly. Now, well thats allowed in Win98, but WinXp doesnt have a DOS. I mean what u see in winxp is fake Dos. It itself is an emulator..not the real thing.
My point is even if you get hold of those files, you still wont be able to run them in Winxp.
and if you want to write them for Win 98, I can write them for you without the use of those header files. Just PM me.
bye
hope i was of any help
 

siriusb

Cyborg Agent
I have drawn onto the vid mem in my xp. You just need to be in the turbo c++ env.
BTW, the vgagl.h seems to be from a site svgalib.org, which I cannot access at this time. But, being opengl and included with source in linux, you must be able to find this lib in any linux distro.
 

abhishekkulkarni

Journeyman
Well since Windows XP is not a dos - based OS it isn't compatible with DOS programs to the extent that Windows 98,95 are.

So you can try changing the compatibility options for TC.exe by going to

->

Right click on TC.exe -> Compatibility -> Change the OS to Win 98.

See if this works. :)
 

aniketvanmali

Right off the assembly line
USE THE COMPATIBILITY MODE AND RUN THE TURBO C++ UNDER THE COMPATIBILITY OF WINDOWS 98/WINDOWS ME. TO RUN THE COMPATIBILITY:
1)Create a Shortcut of turbo c.
2)Rt Click the shortcut & click "Properties".
3)Select the "Compatibility" Tab (the 3rd frame).
4)"Check" the checkbox "Run this program under compatibility of:"
5)Now select the option "Windows 98/Windows ME" from the dropbox list.
6)Click "Apply" & "OK".
7)Here U Go, now run the turbo c by double clicking the same shortcut.
I Hope the Solution works as it worked on my pc.
 

iinfi

mekalodu
man
but i dont have these two files

vga.h
vgagl.h

how do i compile the program in the first place .... plz tell me where to get these 2 files ..... :(
 
OP
C

chillnow

Broken In
i got dev-c++(thanx to those who suggested)....much better program,,,nd not the ancient TC.
anways....what will be the differences(if any) between turboc++ and devc++???

By the way...this site might have wat ur lookin for(vga.h)---
*www.koders.com/cpp/fid3EDA1C3413E87A5E1343BB9C301B7EFA8A9F1135.aspx
 

hafees

In the zone
Turbo C++ should work with windows XP. it may be because of a missing or corrupted file 'autoexec.nt'
This file will be executed everytime when a dos pgm is starting to execute.

this file should be found in C:\windows\system32\ (assuming C is your WIndows drive). If it is not there create this file ('autoexec.nt') using notepad or anyother text editor. Typically the file should contain the following lines (Some comments are deleted).

@echo off
REM Install CD ROM extensions
lh %SystemRoot%\system32\mscdexnt.exe
REM Install network redirector (load before dosx.exe)
lh %SystemRoot%\system32\redir

REM Install DPMI support (this is needed)
lh %SystemRoot%\system32\dosx



Add the above lines to autoexec.nt and save it to C:\windows\system32. Now it should work.

Pls tell us the results.
 

iinfi

mekalodu
i got vga.h frm the site which chillnow quoted earlier itself ......

but the compiler shows some problem with the file ...

and i still didnt get the vgagl.h file which i need to run the program ...
 
Status
Not open for further replies.
Top Bottom