954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

c++ and notepad++

can anyone guide me how to run a c++ program inclusive of graphics through notepad++ by using borland compiler
OR
plz guide me hw to compile n run a c++ graphics prog in vista..as it's not possible by normal tcpp

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

Well for graphic programming there are 2 major tools (well not exactly tool)

1. OpenGL
2.DirectX

Since u want windows oriented ,it would be prudent to go with DirectX .

This will get u started.

http://www.two-kings.de/tutorials/dxgraphics/

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

i meant c++ graphics..not other ones...

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 
i meant c++ graphics..


No such thing, at least not in standard C++. What you have is a non-standard library which was created by Borland (and others). If you are still trying to use a ca. 1993 Turbo 3.X technology on a ca. 2006 operating system then you may be out of luck. What Rahul is trying to say is that there are libraries out there that are more current and supported by recent versions of Windows.

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 
rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

yaar i think u r nt getting my prblm...
i have windows vista in my laptop..it supports tcpp in small screen but does not run ny program hving graphics,i.e.,programs hving header file graphics.h...
thats y i need to use notepad++ as suggested by my lecturar..but m not able to compile n run my prog in it...n need to know where m i gng wrng...

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

well then u gotto to be a little specific here ,
AS far as i guess , ur saying ur not able to run graphic program
the possible reasons could be

1. there is no graphic lib
2. There exist graphic lib but , its not linked to

Notepad++ is a code editor thats all , its got nothing to do with ur graphics not running,

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 
yaar i think u r nt getting my prblm... i have windows vista in my laptop..it supports tcpp in small screen but does not run ny program hving graphics,i.e.,programs hving header file graphics.h... thats y i need to use notepad++ as suggested by my lecturar..but m not able to compile n run my prog in it...n need to know where m i gng wrng...


I had the same problem with my new computer with Windows XP sp3.
bgi graphics (that is graphics.h) can't be run in some computers including laptops. so try changing your laptop or computer. there may be a problem with new CPUs. use an older computer.:)

CppBuilder2006
Junior Poster
110 posts since Feb 2009
Reputation Points: 5
Solved Threads: 3
 

these programs can b compiled using notepad++..theres no need to chage lappy...
jst that m not getting hw to compile it using notepad++

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 
these programs can b compiled using notepad++..theres no need to chage lappy... jst that m not getting hw to compile it using notepad++

As others have tried to tell you --Notepad++ is not a compiler. I think you can tell notepad++ how to run a a compiler, but notepad++ doesn't compile anything itself.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

i know tis not a compiler...
n m asking to tell me how to make notepad++ to compile c++ program

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 
m not getting hw to compile it using notepad++
i know tis not a compiler... n m asking to tell me how to make notepad++ to compile c++ program

No one can help you if you yourself don't know what you want. Maybe you are just having problems trying to explain it in English language??

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

dude i knw hw to speak/explain in english...
n also the prblm m facing...
may b u r not undersatanding

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

If you have a compiler already installed, and in your PATH environment variable, then just press F5 and type
gcc prog.c
where gcc is the name of your compiler, and prog.c is the current filename you're editing.

Then press F1 to figure out how to make the command automatically substitute the name of the current filename.

>dude i knw hw to speak/explain in english..
Lastly, drop the SMS chat speak.
http://www.catb.org/~esr/faqs/smart-questions.html#writewell

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 
dude i knw hw to speak/explain in english... n also the prblm m facing... may b u r not undersatanding

obvsly nt sc y cnt wr a dcnt sntce.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

@ salem

ok..m sorry for that...
i wrote the following program

#include<graphics.h>
#include<conio.h>
using namespace std;
void main()
{
	int gdriver=DETECT,gmode;
	initgraph(&gdriver,&gmode,"");
	line(0,0,100,100);
	getch();
	closegraph();
}


by the name line.cpp
i tried the method you had told but it's not working

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

>>but it's not working
What exactly does that mean? Did you get compile error messages? Yes, then post a few of them

>>int gdriver=DETECT,gmode;
That looks very questionable -- why use the comma operator ?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

no error message..nothing happens

>>int gdriver=DETECT,gmode;
this means
int gdriver=DETECT;
int gmode;

>>but it's not working What exactly does that mean? Did you get compile error messages? Yes, then post a few of them

>>int gdriver=DETECT,gmode; That looks very questionable -- why use the comma operator ?

Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

Sorry, but I can not help you because TurboC can not be installed on Windows 7 os (I just tried it).

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

its ok sir..thank you for trying

just have a doubt..i read that all softwares of XP are supported by windows 7, unlike vista..is it not so?
i was planning to get windows 7..thats why asking you

Sorry, but I can not help you because TurboC can not be installed on Windows 7 os (I just tried it).
Shillz
Newbie Poster
23 posts since Oct 2009
Reputation Points: 5
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
 
View similar articles that have also been tagged: