Friday, July 31, 2009

How does programming languages work. what language was visual c++ written in and how was it compiled??

I just wasnt to know really, I want to know how to write a program for electronics, and whether is possible to hand code it. what program was adobe photoshop written in, visual Studio, .net.it is so confusing? im already a visual basic expert, but i want to know how i could write professional programs like Adobe photoshop. do i need to learn machine language for this??

How does programming languages work. what language was visual c++ written in and how was it compiled??
Programming languages are made for human beings to have a conceptual framework for program execution. It allows us to follow program execution, while minimizing the overhead involved with routines a computer must do that do not concern the programmer.





A programming language can be compiled or interpreted. Compiling requires the source code to be converted into machine language and then run, while an interpreter executes the program as each instruction is interpreted. Both have their advantages and disadvantages.





When you say what Visual C++ was written in, you're really referring to the compiler. Even if you mean the user interface, it was probably written in C/C++. You could write professional programs by yourself, but they'd take you a very long time to finish depending on what you want it to do.





Something like Adobe Photoshop began as a much smaller project with not nearly as many features as it has today. In 1987, Thomas Knoll started it as a program to display grayscale images on a monochrome display; and even then it wasn't called Photoshop.





Whether or not you need to know machine language is really dependent on what problems you'll encounter. Graphics intense programs tend to be far more efficient the closer their processes interact with the hardware. Machine language isn't difficult, but is completely dependent on the hardware (instruction set of the processor) being used.





I will say, however, that knowing the hardware and instruction set is a tremendous help in making efficient code; which for graphics is a major plus.

clear weed

How to run my newly created program in Visual C++?

I am attempting to learn how to use C++. i made my first program and like the book said i compiled it, but then the book says to run it to make my message appear, but i cant figure out how to run it?

How to run my newly created program in Visual C++?
to compile or build: select Build and then Build Solution will compile





once it has been built you can run your program from the Debug menu by selecting Start Without Debugging





--------


EDIT:





printf("This C stuff is easy!\n";


doesn't have ) at the end before ;





u must close the parentheses





--------


EDIT:





If u read the error, it explains what error u have.





u need to practice a lot. don't worry about ur first programs u make.





--------


EDIT:





to see where the error is, double click on the error message





like in this image


http://www.riverblade.co.uk/products/vis...





if u double click on the highlighted (blue colored) error message, u would see the place of error





the error message might not be always helpful but u would get some hints.
Reply:/*Prints a message on the screen*/





#include %26lt;stdio.h%26gt;





using namespace std;





void main()


{


cout%26lt;%26lt;"This C stuff is easy!\n";


return 0;


}
Reply:After build, CTRL + F5.


What do you use to script Java (Visual C++ is to C++ as .... is to Java)? Which offers more functions?

I want to start programming applications (simple ones) and I know some C++. I want to learn Java for its multiplatform trait. help

What do you use to script Java (Visual C++ is to C++ as .... is to Java)? Which offers more functions?
First ask yourself what type of application that you want to build, then the best language to implement the solution will present itself. For example, c++ applications are really good for native desktop applications, but java is better for server-side web-based applications. If you want to learn java, Sun offers a tutorial online and you can go at your own pace. Hope this helps.
Reply:download the Java SDK. Go check out a Java how-to book from the library.
Reply:You don't really "script" Java, but as far as programs used to write Java programs, you can use a simple text editor such as Notepad all the way up to a fully-fledged, project-based IDE such as Eclipse. Most serious Java programmers will use Eclipse, Netbeans, or other similar IDEs. For simple applications, a text editor should be fine. I use Notepad++ for its syntax highlighting and code-folding, but any text editor will do.


How to mak a color output text in visual c# 2005?

first: i am new at c# and i want to make an output text in the consol application as to output: "heloo world" but in green color?


second: i have a variable carry a number i want to get the square root of the number?

How to mak a color output text in visual c# 2005?
// change text color in Windows console mode


// colors are 0=black 1=blue 2=green 4=red and so on to 15=white


// colorattribute = foreground + background * 16


// to get red text on yellow use 4 + 14*16 = 228


// light red on yellow would be 12 + 14*16 = 236


//


// the necessary WinApi functions are in kernel32.dll


// in C# Handle = IntPtr DWORD = uint WORD = int


// STD_OUTPUT_HANDLE = 0xfffffff5 (from winbase.h)


//


// a Console Application tested with VCS.NET 2003





using System;


using System.Runtime.InteropServices; // DllImport()





namespace TextColor1


{


class MainClass


{


[DllImport("kernel32.dll")]


public static extern bool SetConsoleTextAttribute(IntPtr hConsoleOutput,


int wAttributes);


[DllImport("kernel32.dll")]


public static extern IntPtr GetStdHandle(uint nStdHandle);





public static void Main(string[] args)


{


uint STD_OUTPUT_HANDLE = 0xfffffff5;


IntPtr hConsole = GetStdHandle(STD_OUTPUT_HANDLE);


// increase k for more color options


for (int k = 1; k %26lt; 255; k++)


{


SetConsoleTextAttribute(hConsole, k);


Console.WriteLine("{0:d3} I want to be nice today!",k);


}


// final setting


SetConsoleTextAttribute(hConsole, 236);





Console.WriteLine("Press Enter to exit ...");


Console.Read(); // wait


}


}


}


How i make executable file by delphi or visual c++?

is there anyone can help me to make an executable file i have the source code in c++ and delphi but u dont know how to make is .exe

How i make executable file by delphi or visual c++?
In Visual C++, building the project will create an .exe in the /debug or /release directories.
Reply:Open the project in the relevant IDE and Compile or Build it. In Delphi you will find these options in the Project menu.





If you don't know how to do this you shouldn't be messing with source code. You should leave it to those who know what they're doing or go on a very basic course first.

peacock plant

How do i write a C program using Microsoft Visual C++ 2005?

is there anything i need to setup to compile/run a c program

How do i write a C program using Microsoft Visual C++ 2005?
hi...you need to buy the CD from a shop ...install it ....then to write the C code and compile it (an easier way than doing it inside the program) go to start %26gt; run and type notepad then inside the notepad write your C code and save it like this :





my program.c (notice the extension .c)





now open it and press build then compile ..........





and if your code was correct you must get your results on a black screen.....





this program contains many applications and i only can tell you few things...you must learn how to write the code inside the program....how to determine your errors and debug the program...search for videos in google.....if i found any i will post them to you..................good luck .
Reply:read and study a book bigger than a bible and see if you can understand the first paragraph


Problem with ActiveX in Microsoft Visual C++ 6?

I brought a program from my friend who made it in C++ and used Active X in his program. Now whenever i try to run this program on my computer i get following errors "The Active X control could not be instantiated." and then "The Active X control is not registered on this computer.Register the control and try again.".How to get rid of this problem and how can i register them.

Problem with ActiveX in Microsoft Visual C++ 6?
you'll have to identify which control isn't installed. Your friend should have created an install package when he created the application (im assuming he just sent you binaries). Once you have identified the controls you can either register them with the regsvr32.exe command line or ask your friend to package the app up w/ an installer that will automatically do it for you.


How do I use Microsoft Visual C++ 2005?

I need basic info on how to compile and run the most simple program. I have a text (Absolute C++, Savitch), but it is not specific to any particular compiler. I would really appreciate some help!

How do I use Microsoft Visual C++ 2005?
http://msdn2.microsoft.com/en-us/visualc...


Does anyone know what (microsolf visual c++ runtime library) mean?

It pops up on my computer as a runtime error warning. It also says program c/program files/internet explorer/explore.exe It also says the application has requested the run time to terminate it in unusal way. Please contact the applications support team for more information. ..... I can connect to my internet server. But I can not open my home page or mail box or browse on the net. I had to run a system restore to fix the problem, this is the secount time I'v had to do this???Thanks to anyone who can help.

Does anyone know what (microsolf visual c++ runtime library) mean?
microsolf visual c++ runtime library error means that the software was written with microsoft visual c++, usually there is an untreated event in the program... not enough testing.... if u have problems on this computer u should do a virus checkup.... it looks like a windows crash for me.....
Reply:When software are written in C++, the finished products sometime requires the addition runtime library files to run, these are normally packaged together with the software and installed onto your computer during the first installation, when you get an error such as yours, it either meant the library file is not found, damaged, or simply altered by a different software when they install their library files, over writing whats already on your computer.

pink

I need a C++ Image Library. I need compatibility w/ Visual C++ & gcc, a compositing function, and good docs.?

I am a novice and I want to know a good easy C++ image processing library to use. I am going to work with PNG and JPG, and dont really know how an image processing library will work with libpng and libjpg, but I am hoping I dont have to worry about that. I want something that will handle compositing and alpha channels in PNG with easy functions. Is imagemagick the answer...?

I need a C++ Image Library. I need compatibility w/ Visual C++ %26amp; gcc, a compositing function, and good docs.?
Well, it depends on what you're planning to do. I've done some direct pixel access work (simple convolution filters) and I worked with my own routines (for Windows bitmaps) and also with the Allegro (a game programming library, more info at http://alleg.sourceforge.net ), but didn't work with PNGs nor JPGs.





Sometime ago I found about DevIL (formerly OpenIL) and I guess (I've been told so) it's a good option for image manipulation, though I 'm not really sure if this is what you're looking for. You can find more information about this library at: http://openil.sourceforge.net/





Best wishes,


JJ EnrĂ­quez.
Reply:As far as good and easy, that is a judgement you'll have to make for yourself. Every programmer has favorite libraries to work with, based on experience and task. To get a feel for what is out there, try out the URL below. They have a collection of free libraries for almost every task, as well as many tutorials, reviews, articles and other free programming tools.


How do you OLE link visual c++ into excel?

I would like to compile C++ in excel, and was told I would have to OLE link both programs. THis is all fine and dandy, but I have absolutely no idea on how to do this.

How do you OLE link visual c++ into excel?
Let's try again. If your plan is to use the facilities of Excel in a c++ program you write, this is very possible. If your plan is to use some c++ functions you write and call them in Excel, this is also very possible. It's just not easy to tell from your question which of these you want to do.





If you want to call c++ functions in Excel, you must create a DLL in c++ (keeping in mind that the function you want to call must have 'c' linkage--that is, no name mangling else you'll not be able to find them in Excel) with the desired functions being exportable. You can then write some vba code that calls the DLL functions.





If you want to, say, open Excel in your c++ code, fill some cells in a sheet, save the sheet, this is easy. Mind you, it's easier to do it with languages like VB or perl. But you can do it with c++. One pretty simple way is to write some VB and convert it to c++. See http://support.microsoft.com/kb/216388 for a simple way to do this. Google other terms for sample c++ code to invoke Excel via COM. BTW, Excel can act as an 'automation server' or 'COM server', which is indeed related to OLE.
Reply:Maybe it's your question that's unclear. We simply interpret your illogical statements in different ways and trying to GUESS what you mean. Though by your comment, sounds like you don't know what you want either. Report It

Reply:Then I guess the "best answer" you chose didn't answer you either. "Compile Excel in C++ compiler" is a non-starter to begin with. Report It

Reply:Your request makes absolutely NO SENSE, and whoever gave you that answer was confused.





OLE is for embedding documents, like an Excel chart and an Access table into Word document. It's not for mix-and-match applications.





Why in heavens would you want to compile C++ in Excel any way?





And C++ is a language. All you'd end up embedding, even if that were possible, is the IDE (i.e. the editor), not the language / compiled program.


Messenger beta is giving me a Microsoft Visual C++ error how do i fix?

program C\program files\yahoo!\messenger\yahoo messenger.exe





r6025


-pure virtual function call

Messenger beta is giving me a Microsoft Visual C++ error how do i fix?
uninstall it,n re install it a fresh one


Change Icon Of Exe in Visual C Program.?

I am programming with Visua C++ compiler. But I am strictly writing a C Program. I want to change the icon of generated exe file. How do I do that?





If you answer is "right click on exe and in properties tab change icon.. please don't answer".. that is lame, not protable and not what I am looking for.





Thanks in advance.

Change Icon Of Exe in Visual C Program.?
From the IDE you should be able to edit or create a resources (.rc) file. This file controls what icons are available and used with Win32 API and MFC applications. If you are writing a C program in "DOS" mode, no resource file is used and so you have no direct icon control other than the lame answer you complained about. Please note, *IF* you aren't using Win32 API(available in C) or the MFC(not available in C!), then you *CAN'T* use a resource file and control the icon without setting it manually or through a program installation you've written for your program.


Sorry, if your program runs in a DOS box, you just can't do certain things that work with the GUI. That's progress!

periwinkle

Dialog box of Microsoft Visual C++ Runtime Library shows up whne i click "Ask a Question" by using FireFox

Whenever i use Mozilla Firefox(latestest version) to ask a question in this website it will show "Runtime Error!, Program: C:\PROGRAM FILES\MOZILLA FIREFOX.EXE This application has requested the Runtime to terminate it in an unusual way. " But there is no problem if i use IE. what is wrong with my firefox? How to fix this problem? Please.....help.

Dialog box of Microsoft Visual C++ Runtime Library shows up whne i click "Ask a Question" by using FireFox
Please update your Windows to Windows Me... or you will have many other problems with firefox!...





Have a nice day


I need some help with Visual C++ Really Basic Question?

I need to know the very easiest thing and simplest thing possible, which is simply:


when you have a file in C++, and a command prompt window open, what do you type into the command prompt in order to navigate to that file that the C++ file is in?


For example, my file is called "mlpmain.cpp", and the folder that that file is in is called "Neuro"


I did it last year and cannot for the life of me remember - but I would be so massively grateful for this tiny bit of info - it's so important!

I need some help with Visual C++ Really Basic Question?
windows or unix?





windows:


"dir" will list out the dirs/files in your current directory


"cd" will change directories





"cd neuro" would get you into that directory you want.





unix:


"ls" same as dir in windows


also in unix, you could run this command "find / -name mlpmain.cpp" and it will tell you where its at.
Reply:cd \Neuro





Also try:





Help CD


What is the best (visual) c++ programming book?

i need some help here, cuz me teacher recommended me deital and deital(c++, how to program), and it makes me sleepy + its english is kinda difficult . i was just wonderin whether if there r books that are easy to read and understand.

What is the best (visual) c++ programming book?
best book for c++ programming is "Programming in c++ Dietel and Deitel "


What is the solution for microsoft visual c++ runtime libary?

I keep getting a popup saying





C:\Program Files\Internet Explorer\IEXPLORE.EXE


This application has requested the Runtime to quit in an unusual way. Please contact the support team for more information.





I have a Dell Inspiron with Windows XP...please help!





I've gotten rid of GOOGLE toolbar along with YAHOO toolbar, all my messengers and JAVA updates. I reinstalled Internet Explorer but i'm still getting this message. Any help would be greatly appreciated. Thank You!

What is the solution for microsoft visual c++ runtime libary?
I think you should use Firefox until the problem is sorted. It's more secure and customizable than IE and isn't hijacked as often:


http://www.mozilla.com/en-US/firefox/





As for fixing your problem, I'd recommend downloading Ad-Aware (a spyware killer) and running a full system scan:


http://www.download.com/Ad-Aware-2007/30...





Before you run it, make sure to get the most up-to-date definitions available. The program should prompt you about this when you start.





If the problem still persists, I'd try deleting all of your Temporary Internet Files. If Firefox gets the same error, I think you're in trouble. In that case, I'd run a full virus sweep using whatever piece of anti-virus software you have installed e.g. Norton. There are also free anti-vrus software available:


http://www.grisoft.com/





I hope that helps :)

night blooming cereus

What is "Microsoft Visual C++ Runtime Library Runtime Error! abnormal program termination. How can i fix?

Program is





Program: C:\Program Files\NEXON\MapleStory\MapleStory.exe

What is "Microsoft Visual C++ Runtime Library Runtime Error! abnormal program termination. How can i fix?
The program you're using was written in Visual C++, a programming language. Microsoft's C++ does not produce fully compiled EXE programs, and requires runtime dynamic link libraries. The short answer to your question is this is something that usually cannot be fixed. It may be the result of an incompatibility between two or more programs running in memory, or an error in the program itself. There is usually nothing to worry about, unless... If you absolutely need this program, you can try the MSCONFIG utility to clear up any possible conflicts. Please research this utility as there are many good resources available online for it. The only other possible solution is to update your runtimes by using Vcredist.exe, available from http://support.microsoft.com/kb/259403


Opening files in Visual C# 2005 Express Edition?

When I try to Open A saved saved project in C#, The code view will show how do I switch it to design view? or am I opening the right file?

Opening files in Visual C# 2005 Express Edition?
I don't think you should be using this software if you don't know how to do that.





Click View (at the top) --%26gt; Design View or press F7. Simple.
Reply:I don't mean to be rude, but if you don't know the answer to this question, what are you doing poking around .NET projects?


Pls help me! visual c++ code pls.. perfect number?

An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is a perfect number because 6 = 1 + 2 + 3. Write a C program perfect that determines if parameter number is a perfect number and determines and prints all the perfect numbers between 1 and 1000. Print the factors of each perfect number to confirm that the number is indeed perfect. Challenge the power of your computer by testing numbers much larger than 1000





this program code i need.. just %26lt;stdio.h%26gt;


it will be formula in program

Pls help me! visual c++ code pls.. perfect number?
how many times are you gonna ask this question? I already gave you a couple of huge hints, now try to do it yourself by using your brain... wow strange concept!
Reply:int tempSum;





for(int numbers=1;numbers%26lt;=1000;numbers++) {


tempSum=0;


for(int factors=1;factors%26lt;numbers;factors++) {


if((numbers%factors)==0){tempSum+=factor...


}


if(tempSum==numbers){printf("%i",%26amp;number...


}








the code needs little adjustments, but this is a good hint.


Absolute beginner at Visual C#, can someone list books,web pages to help me learn from the beginning! thanks?

I want to learn!!!!!!!!!!!!!!!!!!!!!!!!! But microsoft tutorials are not helpful. Is there ANYWHERE that can teach an absolute beginner how to learn C#!!





Thanks HP

Absolute beginner at Visual C#, can someone list books,web pages to help me learn from the beginning! thanks?
here are some books that you can download:


Microsoft Visual C# 2005 Step by Step:


http://sendofile.com/dl.aspx?p=0%26amp;uid=373...





Essential C# 2.0


http://sendofile.com/dl.aspx?p=0%26amp;uid=172...





C# Cookbook, 2nd Edition


http://sendofile.com/dl.aspx?p=0%26amp;uid=912...
Reply:go to your local bookstore and get any book for beginners.





if you do not have any experience in programming get a programming book first.
Reply:try www.w3schools.com


it has got good n simple tutorials
Reply:try this link http://www.edcomp.com/results/c++-in-21....
Reply:http://freecomputerbooks.com/


click on "C#" under "languages"

orchid cactus

Free Stuff for Visual C++ 6.0 for Dummies?

I have just started programing and i am looking for some free content online which could help me to take off with the basics. I can't use new version of visual Basic because i am using this version in my institute, so i need something which can help me to understand it to some extent, or atleast could clear my concepts related to programing.





If you know any site, or if you have any link to some file or anything which you think can help any new programmer, then please do share it with me. Thanks a lot.

Free Stuff for Visual C++ 6.0 for Dummies?
http://answers.yahoo.com/search/search_r...
Reply:http://www.codeproject.com


http://www.codeguru.com --


I hope, it will be enough at least for several years :-)


Where can i learn c# and visual C#?

i am a begginer in programming and have no knowledge in programming languages .i have tried many tutorials online also microsofts official videos and tutorials but all of them seem to be for some one who already has learnt c++ or c


if you know a bettr way then answer this question if you answer this question just for points ill delete it

Where can i learn c# and visual C#?
If you are a beginner programmer, I would not recommend any of the C family languaes (C, C++, C#). They are a little too advanced for you. Try learning HTML and javascript first, or Visual Basic before going to C#; this way, you'll have some programming knowledge before you start on the more complex programming languages.
Reply:Go to MSDN and get a copy of Visual C# express


http://msdn.microsoft.com/vstudio/expres...





Then go find a book, some of the Sam's "Teach yourself..." books are a good starting point.
Reply:MSDN at Microsoft.com has a lot of programming info on C# for all skill levels. The best place though would be to get a beginner's book for C#.
Reply:try this link





http://members.tripod.com/~johnt/c.html





just copy and paste this link.
Reply:Take class at the college.
Reply:Maybe this? http://www.cyberdiem.com/vin/learn.html


Compilation error and warnings in Visual C++ 6.0?

When I compile the following codes:





#include %26lt;iostream%26gt;


using namespace std;


#define pi 3.14;





void main ()


{





float radius(2),area;





area=pi*radius*radius;


}





I get the follow messages:


--------------------Configuration: Cpp1 - Win32 Debug--------------------


Compiling...


Cpp1.cpp


C:\VC++\Cpp1.cpp(12) : warning C4305: '=' : truncation from 'const double' to 'float'


C:\VC++\Cpp1.cpp(12) : error C2100: illegal indirection


C:\VC++\Cpp1.cpp(12) : warning C4552: '*' : operator has no effect; expected operator with side-effect


Error executing cl.exe.





Cpp1.exe - 1 error(s), 2 warning(s)





However, when I write the same thing but chage the position of 'pi' as follows, I don't get any error nor warning:





#include %26lt;iostream%26gt;


using namespace std;


#define pi 3.14;





void main ()


{





float radius(2),area;





area=radius*radius*pi; //position of pi changed here


}





How come? Please Help!

Compilation error and warnings in Visual C++ 6.0?
This is because you wrote


#define pi 3.14;


The preprocessor will replace any "pi" with "3.14;".


You just need to write


#define pi 3.14


without ";"


HELP! Microsoft Visual C++ Runtime Error. What do I do?

Every time I Try to log into a site with my E-Mail and password I get this message....





Program: C\program Files\Internet Explorer\iexplore.exe





A Buffer overrun has been detected wich has corrupted the program's internal state. The Program cannot safely continue execution and must now be terminated.





Can you help repair? Thanks for your time.

HELP! Microsoft Visual C++ Runtime Error. What do I do?
Try firefox

palm

I want to learn visual c++.pls send me the websites which would help me in learning it.?

friends,i want to learn visual cpp.pls send the links associated with it,so that i can understand visual cpp more effectively.

I want to learn visual c++.pls send me the websites which would help me in learning it.?
i want to learn visual c++.pls send me the websites which would help me in learning it.?


Are Microsoft Visual Basic and Microsoft Visual C++ the same thing?

they both are called are titled visual studio, which is confusing me.

Are Microsoft Visual Basic and Microsoft Visual C++ the same thing?
They are two different languages, part of the visual studio suite.
Reply:Visual basic and visual c++ are different programming languages, among others, that are rolled into visual studio which is a comprehensive development environment. Having different languages in a common development environment allows a developer to have consitency within their tools, regardless of language being used.
Reply:There are different languages: Visual Beginner's All-purpose Symbolic Instructions Code, Visual C++, and Visual J++. Those are the core languages included in the Visual Studio package. They are not the same.


Basic C++ help using Microsoft Visual C++ 2005 Express?

i am encountering 2 errors upon building when using the following code





#include%26lt;iostream%26gt;


#include "stdafx.h"


int main()


{


cout%26lt;%26lt;"*"%26lt;%26lt;endl;


cout%26lt;%26lt;"**"%26lt;%26lt;endl;


cout%26lt;%26lt;"***"%26lt;%26lt;endl;


cout%26lt;%26lt;"****"%26lt;%26lt;endl;


cout%26lt;%26lt;"*****"%26lt;%26lt;endl;


cout%26lt;%26lt;"****"%26lt;%26lt;endl;


cout%26lt;%26lt;"***"%26lt;%26lt;endl;


cout%26lt;%26lt;"**"%26lt;%26lt;endl;


cout%26lt;%26lt;"*"%26lt;%26lt;endl;


return 0;


}








any ideas what i am doing wrong? i am getting these errors


error C2065: 'endl' : undeclared identifier and


error C2065: 'cout' : undeclared identifier








is there a special thing i need to "#include" ? apparently, using namespace std; is useless with C++Express 2005. i dunno?

Basic C++ help using Microsoft Visual C++ 2005 Express?
one of two things:





1 change the line #include%26lt;iostream%26gt; to


#include%26lt;iostream.h%26gt; or #include "iostream.h"





2 use #include "stdio.h" or #include %26lt;stdio.h%26gt;
Reply:i think you forgot to put a namespace declaration.


using namespace std;





also, you might have to include %26lt;iomanip%26gt;, some manipulators for iostreams need it.
Reply:does it say what line the error is on?





what are you trying to do? output all those stars? thats easy.





but idk abotu stdafx.h ive never used that portion of your code.





and personally i prefer not to use the "%26lt;%26lt;end" way of breaking a new line so heres what i think u should do





#include %26lt;iostream%26gt;


using namespace std;


int main(){





cout%26lt;%26lt;"*\n";


cout%26lt;%26lt;"**\n";


cout%26lt;%26lt;"***\n";


cout%26lt;%26lt;"****\n";


cout%26lt;%26lt;"*****\n";


cout%26lt;%26lt;"****\n";


cout%26lt;%26lt;"***\n";


cout%26lt;%26lt;"**\n";


cout%26lt;%26lt;"*\n";


return 0;


}





i dont think your copying and pasting your code correctly because if it says cout isnt a declared identifier your either missing a ; at the end of one of your lines, or your missing a "" or you may have accidently typed cout%26gt;%26gt; instead of cout%26lt;%26lt; or you may have only 1 %26lt; instead of 2.





that should cover all your mistakes.
Reply:Looks good to me. Just a guess... there doesn't appear to be a space between the #include and the %26lt;iostream%26gt;
Reply:declare the var?





ie: endl = 0 ?
Reply:an indeclared identifier is an undeclared variable you have no variable declarations


in regular C++ code this would be written as follows


#using


using namespace System;


int main()


{


//declare variables


CODE GOES HERE FOR VARIABLES example below


double exNum1=0.0;


double exNum2=0.0;


double exTotal =0.0;





// get input


Code Goes Here again example below


Console::Write("Get num 1: ");


exNum1= Convert::ToDouble(Console::ReadLine());


etc.





//do some sort of processing


CODE GOES HERE example below


exTotal = exNum1 + exNum2;





// display result


Code goes here example below





Console::Write("The Total is {0}: exTotal.ToString());





//end main


return 0;


}
Reply:#include "stdafx.h"





should be





#include %26lt;stdafx.h%26gt;





and you need to include the windows.h or win.h, somthing like that.


Help compiling in Visual C++ Studio 2005?

This may sound like a stupid question, but when I try to compile code, the compile option is greyed out. I've never written a program before, and I'm trying to learn C++. It turns out the program I'm trying to use to compile it is more complicated than the coding itself. I've tried with both a "New Project", and with a "New File" alone. I've tried reading the help files, but they give very little help, as with most Microsoft products. I'm about to give up, so if anyone knows of another/better C++ compiler that is free, please point me to it.

Help compiling in Visual C++ Studio 2005?
// here's what I did with the VC 6 "intro edition":





1.) Open Visual C++ and click "file" and "new" from the main menu.


2.) Click "Win32 Application"


3.) Fill in the project name and location in the appropriate dialog boxes.


4.) Click "OK" , "finish" and "OK" to set up an empty project.


5.) Click "file", "new", "C++ source file" .


6.) Name the file, click "OK" and cut N' paste the following:





#include %26lt;windows.h%26gt;


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)


{MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);return 0;}





7.) press the %26lt;F5%26gt; key and "OK" to compile and execute.





Hope this works for you. What you ought to get is a little popup window that can be dragged around, minimized and closed. DOS stuff is in the realm of "Console Application" projects. This is probably where one would want to start if they are just learning C.





Don't feel bad if Visual C++ seems frustrating - because it is. I spent six years studying Windows API and MFC classes and still can't program much more than "combo boxes". These are easy if one lets Microsoft manage everything but really hard to do if one wants to code everything from scratch - and Micro$ isn't going to be much help assisting you if you try and figure out how their little black boxes work..





There are quite a few "open source" compilers and the best appears to be the DevC compiler by bloodshed. It has its own nice User interface, so just type and compile and be happy. Open Watcom is another popular (READ: "free") compiler. Boorland is the other major player as far as expensive, commercial compilers go. Microsoft has "bundeled" it's latest development suite to include BASIC and a strange C/BASIC hybrid known as "C#", which is what their "NET" framework is all about. Finally, LINUX comes with its own compiler known as "GCC" and there are DOS versions of this if one likes a nice black %26amp; white, totally command line driven environment. Do be aware that if one goes this route, they will need to know a few things about "makefiles" and "compiler switches" if one desires to write anything sophisticated.





BTW: I learned the fundamentals of "C" from something I found on some hard drive I dug out of a bargain bin. Besides a narritive of some guy's divorse, it contained the "learn C" compiler written in 1986. This was so primitive it didn't even have the ability to save executable files, it mearly compiled code .





hope this helps %26amp; good luck!
Reply:I would reccomend dev c++ as a c++ compiler. As a first language, I would not reccomend c++ largely for this reason. I have always recommended ruby as a good first language because it is so standardized and you get the compiler from like ruby.com and tuts will teach directly for that compiler. It allows you to get over the learning curve of programming without the learning to use the compiler hassle.





I personally use dev c++ most of the time, but msvc++ when working with directx.
Reply:You can't "Compile" (Ctrl/F7) unless you've selected a .cpp source file. In general, though, you usually do a Build Solution to compile and link evertyhing in the program. Compile compiles only that one source module..
Reply:Try reinstalling it.
Reply:When it comes to professional developer tools (any profession's tools for that matter), the expectation is that either you are knowledgeable enough to know how to use it or are a capable individual who can learn quickly. I say this because you think jumping compilers will magically solve your problem. It won't, as you do not have the requisite knowledge (or the experience of a developer) to suddenly start working on any compiler you get.





In Visual Studio, projects are stored in solutions. So here's how it works.





Solution


- multiple projects


- each project contains multiple files pertaining to that project.





You need:


- a solution


- a C++ console project within that solution


- your code files within that c++ project.





You should be able to accomplish the above by starting a new project. Make sure you allow it to create a solution (there should be a checkbox to that effect).

petunia

On MS Visual C++, when i am typing my code, how do i make line numbers appear?

When using the work computers, the visual studio .NET have numbers on the side to denote the lines. How do i make it appear on my compiler at home?

On MS Visual C++, when i am typing my code, how do i make line numbers appear?
In Visual Studio 2003, you can go to "Tools... and the Options..."





From there, you should be given a tree view, select the "Text Editor" folder. Select the language of choice (in this case C/C++) and then look for a checkbox that reads "Line Numbers". Check that box and you should be good to go.
Reply:Don't forget, in the IDE, you can also press Ctrl-G and you will be given a dialog box that will allow you to type in the line number and the editor will navigate right there. It saves scrolling time. :) Report It



Microsoft Visual C++ Runtime Library?

The whole error message says:


"Runtime error!





Program: C:\Program Files\Microsoft Office\ Office10\WINWORD.EXE





abnormal program termination."








This happened to me this morning when I was typing an essay. I retyped they whole thing and the error happened again when I tried to save it. Now, I am trying to recover it, and every time I do, I get that error message. How do I fix it????

Microsoft Visual C++ Runtime Library?
Dunno what's causing the Runtime Error, but I can suggest a strategy to help you isolate it. Try this: Create a very small file in Word and see if you can save it to a different directory. If you can't you at least know you have a problem not related to the file you're creating. In this case, I'd suggest reinstalling (or repairing) Word from the Office CD.





If you can save the test file, try again, this time into the directory you want to save the real file in. Failure points to something with the directory. Permissions? A corrupted directory?





If the second save succeeds, try recreating your real file a bit at a time in the real directory, saving often to see where it fails. That might give you a clue as to what's causing the problem.





Good luck.


Microsoft Visual C++ question about arrays?

Hi. I'm a beginner I.T. Student, and we're dealing with C++, specifically Arrays. What is/are the major advantage/s of a two-dimensional array over a single-dimension array?





Please, I need to know.





Thanks in advanced.

Microsoft Visual C++ question about arrays?
Let's say you need a 'table' containing 25 elements. You can do this as a single dimensional array, knowing that your rows are 5 columns wide (you would have to keep this value stored somewhere if the table size was dynamic). Accessing element (1,2) would be the 5 * 1 + 2 = 7th index in this 1D array. Or you can use a 2D array, in which case you simple access it as myArray[1, 2]. The second is easier to understand as an ordered pair, whereas the first looks pretty hacky.
Reply:one important use of arrays to its ability to store multiple values of the same type. unlike a structure which can store multiple data of different type.





Note the difference: arrays = same type





a 1D array is simply like storing values in each. it only acts as a storage and is not capable of multiple storage or even operations on array.





a 2D array can be used to compare values as well.


example, you can compare the value in array[0][0] with value in array[1][0].





information retrieval:


yes, arrays can be used to store multiple inputs as stated earlier and as well can retrieve this data.





a 2D array is in general more flexible than a single array


it can also give you some kind of shape unlike the 1D array


it gives you something like a dimension (2D like seeing a flat picture of your array)
Reply:in one dimensional array, you can only do single column entries..on a two dimensional array you can almost make a table out of it..





A[1] == one dimensional array





A[1,2] == two dimensional array


Microsoft Visual C ++ Runtime Library - any advice please???

Every time I close MS Word I get the message





Runtime Error!


Program: C:\programfiles\microsoftoffice\office10...





Can you tell me how to get rid of it please.

Microsoft Visual C ++ Runtime Library - any advice please???
Try to re-download and install the Visual C++ Runtime form this link:





http://www.microsoft.com/downloads/detai...





Then read this page carefully:





http://support.microsoft.com/kb/307817
Reply:easiest way would be to reinstall word..





you don't state what the file thats causing the problem is..


only part of the path, or the version of word or o/s your using..





there will be a file it specifies , try looking it up on the web.. see if you can get a newer version.. e.g. if its a DLL file. etc

mint

Microsoft Visual C++ Debug Library, I am getting a runtime error! abnormal program termination.?

Here is the message I'm getting: C:\PROGRA~1\Yahoo!\MESSEN~1\YAHOOM~1.EXE it tells me to press retry to debug the application but that doesn't work. I 'm ejected from Yahoo Messenger when I use the cam to send/receive. Please help me this is so frustrating...

Microsoft Visual C++ Debug Library, I am getting a runtime error! abnormal program termination.?
Maybe try uninstall %26amp; reinstall to restart, see whether it works, try ur best %26amp; Gud Luck!


Microsoft visual c++ liabrary?

runtime error (C:\windows\explorer.exe)

Microsoft visual c++ liabrary?
I am sure the Mircosoft website can help you with that!
Reply:1. Go to Start%26gt;%26gt; Control Panel%26gt;%26gt; Add/Remove Programs.


2. Scroll the list until you find "Google toolbar for Internet Explorer".


3. Remove the program and reboot your system.


Help! - Visual c#?

Console.WriteLine("They walked past " + c + " ducks . Each child gave " + d + " sweets to each of the ducks and ate one themself. ");


Console.WriteLine("They decided to put the rest into a pile. They counted the pile and found it contained " + g + " sweets. ");


Console.ReadLine();





It says Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement - What shall I do??

Help! - Visual c#?
Not sure about c, but normally you can't add a number to a string. I am guessing c and d refer to numbers. You will need to convert the number to a string value to concatenate the sentence.


Whats the difference between C# and Visual C#?

when you learn the C# language does it matter about this differences or are they the one and samething. I'm planning on learning this language but can't understant the difference if there is one.

Whats the difference between C# and Visual C#?
C# is a programming language


Visual C# is a piece of software that helps you write C#
Reply:C ++ vs Visual C# ? The # (sharp) looks like two plus marks but they are different worlds. C sharp is part of Microsoft's .net environment.





If you are trying to develop Windows-like graphical programs, use C sharp.net.
Reply:They are the same language. Visual C# is a programing environment (IDE) with tools designed to create graphical programs.

sage

Microsoft visual c++?

whenever i start my computer this message pops up c:/windows/explorer.exe





it says runtime error





whenevr i click ok it erases all my desktop them restores it





hhow do i get rid of it?

Microsoft visual c++?
Check this topic, it might be useful for you... or not


http://www.anetforums.com/posts.aspx?Thr...


Microsoft Visual C++ Runtime Library Error ( Exploere.EXE Error)?

Buffer Overrun detected!





Program: C\WINDOWS\Explorer.EXE





A buffer overrun


has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now be terminated.





[ OK ]











Hello everyone! can help me about this problem,i got this error thing today,last night my computer was fine but today every time i open my computer or turned On,This thing just pop-up suddenly i have no idea when it came from,when i press the OK everything on my desktop was like empty then came back to normal then that thing again well pop-up all the time so i just ignore it for while,anyone knows how to solve this problem?many thanks =)

Microsoft Visual C++ Runtime Library Error ( Exploere.EXE Error)?
Spyware, Adware or a virus.





There are a lot of programs to remove that stuff, the one I use is called PC Pitstop


Mircosoft Visual C++ Runtime Library Runtime Error everytime i try to access my hard drive or any folder?

I keep getting this error when i try to access my hardrive or any folders on my computer. Is says the program is C:\WINDOWS\explorer.exe and also says This application has requested the Runtime to terminate it in an unusual way. I cannot access my hard drive or any of my folders anymore. Please help

Mircosoft Visual C++ Runtime Library Runtime Error everytime i try to access my hard drive or any folder?
Runtime Errors and others:


http://support.microsoft.com/default.asp...





Good Luck
Reply:go to http://support.microsoft.com and search for runtime errors.


Microsoft Visual C++ runtime library error?

I stratred my laptop this morning, and I got this messenge.


Runtime Error!


Program: C:\Windows\system32\rundll32.exe





This application has requested the Runtime to terminate it in an unusual way.


Please contact the application's support team for more information.





I couldn't close the error window, what should I do?


btw, my laptop is running windows vista.

Microsoft Visual C++ runtime library error?
i got a C++ in my english class
Reply:i got my pc back! yay! My brother has a pc to
Reply:I GET THIS A LOT. SOMEONE TOLD ME IS WAS A SCRIPT ERROR IN THE MEDIA OR LANGUAGE. RESTORE YOUR COMPUTER TO AN EARLIER TIME. DUNNO THE REAL REASON FOR THIS BUT I HAD IT IN MY REALPLAYER A LOT.

alstroemeria

Microsoft visual C++ runtime library (can you help)?

buffer overrun detected!


program:c:\program files\internet explorer\ iexplore.exe


a buffer overrun had been detcted witch had corrupted the programs internet state. the program cannot safely continue execution and must now be terinated. click on ok what can i do to fix this is there someone out there who knows how to fix it . please help me .

Microsoft visual C++ runtime library (can you help)?
You didn't mention what version of Internet Explorer or Windows you are using, so it could be one of several things. Here are a couple of likely cases.





You could be using a vulnerable or unpatched version of IE. In which case you would need to run all applicable security updates or upgrade the browser.





You could have some spyware/adware that is causing the problem. Download, install, install updates and scan your pc with an anti-spyware program like Spybot.


Microsoft Visual C# 2005 express edition?

Can anyone recommend a book that teaches me how to use the tool? Most books I find dive into the C# code, and I just need a book that teaches how to use the development tool.

Microsoft Visual C# 2005 express edition?
There are many. But the best official source is from Microsoft itself and also from Addison Wesley.
Reply:This is a following to a C# program:


#include (stdio.h)


main()


{


// Program lines


}


Sample:


#include (stdio.h)


main()


{


if()


printf "Hello!"


printf "Welcome to Windows XP/Vista/Loopy XP!"


else()


printf "Goodbye!"


}
Reply:There are plenty of books on Amazon. Make sure you search for Visual C#.NET and not C#.





The first one gives you the tool the second one gives you the language.
Reply:do a search for "visual c# walk-through" i've upgraded since studio express, but if i remember correctly the help documentation is pretty good. if u get stuck u can always look things up on msdn.microsoft.com


Can i learn C# before Visual C++ ?

i learned everything in the old borland C++ and i'm about to start learning C# from point zero , so is it OK to do so without learning C++ ? ....

Can i learn C# before Visual C++ ?
If you do not have little bit knowledge of object oriented programming, you may find it difficult to pick up, anyway best of luck
Reply:I heard you can learn C# if you know VB.


What is the difference between visual c++ and visual basic???

both are programming languages but i cant find a vc++ section in many programming forums but i can see one visual basic section.....are they same??

What is the difference between visual c++ and visual basic???
Visual C++ is not a programming language. The language you're thinking of is C++.





Microsoft Visual C++ is an IDE (basically a compiler and a fancy text editor) for C++. It is a commercial product for working with the C++ language, not a language of its own.
Reply:Visual C++ is a program, not a language. Whereas visual basic is both a language and a program.





Visual C++ uses a language called C++ and Visual Basic is a derived from BASIC. C++ is more powerful than Visual Basic but VB is what most beginners start with.
Reply:The reason likely stems from the fact that both Visual C++ is a product of Microsoft, designed to aid in the development of C++ software, not a language





Visual Basic, on the other hand, is often used interchangeably to describe both the tools used to develop software and the language itself. Thus, the reason that you sometimes see a language forum named similarly.





Both Visual C++ and Visual Basic are part of the Visual Studio product line. I would recommend that if you want to learn more, you visit the Microsoft Visual Studio Express site (http://www.microsoft.com/express/). With a free passport account, you can download both at no cost and find out what their about.





Good Luck
Reply:They are two different programming languages, Visual word comes from the IDE which is provided by microsoft. They absolutely not the same.





Visual C++ provides MFC %26amp; Win32 API to be programmed in C++, which makes many things relatively easy for programmers, it's probably most powerful programming tool for windows.





Visual Basic is whats evolved from language called BASIC, It is designed to be GUI oriented and to be programmed by beginners to rapidly develop usable applications.





Because of it's ease, Visual Basic was %26amp; still is, very popular amongst windows developers, thats the reason of it's presence all over th forums.

primrose

Making C projects in visual C++ express 2005?

How can I make a ONLY C project? Is this even possible?

Making C projects in visual C++ express 2005?
yes, just do a "console application" without any windows support...it will be a basic c program with main() and c libs


Can someone answer these questions reguarding MS Visual C++?

1. How to enter strings (i.e. a name, address ect) while program is running?


(Data type "char" isn't work. It allows to enter only one character)





2. How to execute a program (Win32 Console Applications) without C++ environment?


The exe inside the "Debug" folder can be executed without C++ environment.


After some commands have been executing, the program suddenly vanish.


I've written the C++ command "return 0;" at end of the code. Is that the case?


What is the command / code I should write to stop that disappearence?





Note : Win32 Console Application executes in CLI (command line interface).








3. How to make a stand-alone in C++? (i.e. An exe without debuging information. It should execute without C++ environment)

Can someone answer these questions reguarding MS Visual C++?
1. scanf or fgets





2. when the program completes the console closes. add a System.pause or another read in statement to keep the console from closing.





3. compile a release version.


Thursday, July 30, 2009

Problem in Visual C++ 2005 (Lite Edition)?

Whenever I try to debug a source code file in C++, I get an error saying





1%26gt;Project : error PRJ0003 : Error spawning 'C:\WINDOWS\system32\cmd.exe'.

Problem in Visual C++ 2005 (Lite Edition)?
cmd.exe is command prompt, so try this, go to run and type in cmd


black window should come.


I Just downloaded Visual c++ 2005 express?

I want to create a really excellent mmorpg, but I don`t know the first thing about c,c+ or c++ language...what do I do?





hhheeeellllp!!!

I Just downloaded Visual c++ 2005 express?
ok first of all there is no c+, only c and c++ and you can learn other languages such as java... to be adept enough in c or c++ to make a half decent game will take a loonng time and if you want to create a GOOD game, you need to learn other languages too and learn how to put the game together. it's really not easy at all. so you can't just decide i want to make a game and make one you gotta take a couple courses/classes in those languages and computers overall or start by getting a book at your local bookstore
Reply:You've got to learn how to program in those languages before you can create a game.
Reply:I don't know, I'm still studying IT at college.

queen of the night

A good site that teaches Visual C++?

Ok, I have finally mastered Java programming, now I really want to get into C++. I heard that C++ %26amp; Java programming is very similar in its constructors, variables, %26amp; loops. I have searched around the web %26amp; ran into many instructional sites that give tutorials on C++ programming, but what sites offer the best tutorials?

A good site that teaches Visual C++?
http://w3schools.com/ is excellent!


Streamreader visual c++ question!?

I want to read from a text file for my MFC application. I used streamreader but visual studio says it's undeclared.





I tried fstream as well and i'm getting undeclared errors too. Any idea why?





Is streamreader the best way to read a text file line by line? Thanks.

Streamreader visual c++ question!?
well I'm not sure but isn't Streamreader in C#?





If you;re trying to read in a text file then you must include the library %26lt;fstream.h%26gt;





and the line of code is





string line;


ifstream myfile ("example.txt");


while (! myfile.eof() )


{


getline (myfile,line);


cout %26lt;%26lt; line %26lt;%26lt; endl;


}


myfile.close();


}


Visual c++ Calculator help PLEASE!!!?

C++ Calculator Help PLEASE!!!!?


I am so sick this week.... DO NOT GET A FLU SHOT!


It was a very big mistake.





Im having a very hard time concentrating on this program, THis is the assignemt PLease help me.





In this assignment you must implement a simple integer calculator. The arithmetic functions of addition, subtraction, multiplication, modulus, and division are to be supported. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program.


Once started, the Accumulator is set to zero, and the operation to be performed is set to addition (+). The program then repeats the following steps:








Request and Accept a number


Apply the stored operation (Acc op= number)


Request and Accept the next operation


This process repeats until the equals sign (=) is entered as an operation. At this point, the Accumulator contents are displayed and the calculator is reset (Accumulator set to zero and operation to +).


The following characters are legal operations:





+, -, *, %, /, =, and !.





The ! is treated the same as =, but causes the program to terminate. Any other characters entered as operations should cause a brief error message and should be ignored. Division by zero errors cause a reset.


Sample run:








SuperCalculator at you service!


------


Input: 10


Operation: *


Input: 2


Operation +


Input: -5


Operation: =


Result: 15


------


Input: 12


Operation: /


Input: 0


**Division by zero - start over


------


Input: 12


Operation: %26gt;


**Invalid operation - ignored


Operation: /


Input: 5


Operation: =


Result: 2


------


Input: 10


Operation: %


Input: 6


Operation: *


Input: 3


Operation: !


Result: 12





------


SuperCalculator Off!

Visual c++ Calculator help PLEASE!!!?
Please try searching the web using yahoo or google.


Microsoft Visual C++ Runtime Library error?

I keep getting this error and how do I go about fixing it? Do I need to fix the MS Visual or the source which is hptaskmanager? What causes these errors?

Microsoft Visual C++ Runtime Library error?
Follow this link it tells you the couse and all possible fixes.:)


http://support.microsoft.com/kb/307817

baby breath

Microsoft visual c++, message appear saying:program: c:program file?

program c:program files internet explorer


this application has requested the runtime to terminate it in an unusual way,please contact the application support team for more information


what i can do?

Microsoft visual c++, message appear saying:program: c:program file?
Either the Visual C++ is corrupted or the installation cd is missing files, reinstall it.


If the installation Cd is working fine on another PC, then ur Windows is corrupt or another application is conflicting with Visual C++


Why does Visual C++ change the value of my variable?

I'm a beginner in C++, and I've defined a double variable (exh) as 100.0015. But when I run the program, the number changes to 100.0014999... what is going on?

Why does Visual C++ change the value of my variable?
because floating point numbers are defined in computer logic as


NUMBER * 2^X, where X and number are stored in the computer, this leaves a little inaccuracy, because not every number in base 10 can be represented this way. Which leads to the first rule of programming:





Never compare floating point numbers for equality.





Instead compare them for "close enough"-ness. Such as:


float a,b,c;


if((a - b) %26lt; .000001)


{


cout %26lt;%26lt; "Number's are \"equal\""


}
Reply:Not all decimal floating numbers can be represented exactly the same in binary floating point format. It's the same number or as close as you are going to get, 100.0014999~. This is why you should always use format specifiers when printing out floating point numbers. A format specifier says how many digits to the left and/or right of the decimal point that you wish to print out, and will round the number properly.

clear weed

About Visual C++?

I WANT TO KNOW THAT IT IS ANY NEED TO LEARN C++ BEFORE LEARNING VC++.


I M IN SECOND SEM OF I.T.


I KNOW "C", "SHELL SCRIPT".


I WANT TO KNOW HOW USEFUL VC++.


IS IT POSSIBLE TO LESRN VC++ WITHIN 45 DAYS?


IF IT IS NOT ADVISABLE TO LEARN VC++ THEN GIVE ME SOME


INFORMATION WHICH R ANOTHER OPTION!


CAN I LEARN "HTML" AT THIS STAGE?


"HTML" OR "VC++" BETWEEN THIS WHICH SHOULD I LEARN?

About Visual C++?
No need to learn C++ before VC++. They are basically identical, the biggest diference being that VC++ gives you the ability to program your GUI's visually. All the rest of VC++ is C++ (basically).





Yes it is possible to learn VC++ in 45 days, but it takes much longer to master it (same goes for C++). Knowing C will help you greatly.





As far as what launguage to learn (C++/VC++ or HTML) goes, it depends on what you want to do with your programming experience. If you want to go into web design then go for HTML. If you want to do user apps. then go for VC++.
Reply:HTML and VC++ are two entirely different types of languages for entirely different purposes. Since you know C, I don't think you need to learn C++ for VC++. And no, you can't complete VC++ in 45 days, its a huge thing.


Visual c++ close application on button click?

i am kinda new to visual programming.


if i create a form, and it has a button on it... how do i close the application if the button is clicked... in other languages its like "Application.Close():" but that didn't work... any and all help would be appreciated...








thanks!





DaCrypto

Visual c++ close application on button click?
try this.Close() if "this" is the main window.





Also try Application.Exit, if you haven't already.
Reply:try OnOK();


Visual C++ Tutorials for a very very new beginner?

I am interested in programming. Yes, I have searched the net and tried to find good tutorials for me to understand. Yes, my hair is exploding from understanding it. Yes, after reading a whole bunch of online tutorials I can't get anywhere at all except at the cout and cin concept. And this is from 2 months of understanding. (Yay for wasting the new year and december looping around.)





Yes, I AM going nuts.





One word:


S. O .S





I am a visual learner, and as far as possible I would like one like this:


http://www.profsr.com/vb/vbintro.htm





In fact, if I (ignore the fact that it's basic for a moment) understood this, I could immediately learn VB. But thing is, I need to know VC++. People, %26gt;%26gt;%26gt; VC++ %26lt;%26lt;%26lt; VC++





I cannot afford a real life book. Yes. In fact I want an online tutor (which will not of course happen due to $$ issues).





So, help out the little guy spare his programming defect by posting tutorials / e-books / suggestions that are stupidly and annoyingly easy, pretty please.





... Help.

Visual C++ Tutorials for a very very new beginner?
Maybe this will help u





http://cplus.about.com/od/learning1/ss/c...


http://www.intap.net/~drw/cpp/index.htm





But my advice 2 u is to buy a book,it can't cost that much,and is the best and safest way to learn c++ or any other languages,because,u also get 2 practice exercises,and understand better what's all about.


Microsoft Visual C++ 2005 Express Edition debug problem?

when i do the debug in the program the cmd appears quickly then close.


to know the code is :


#include %26lt;stdio.h%26gt;


int main ()


{


printf ("welcom to c ");


return 0;


}

Microsoft Visual C++ 2005 Express Edition debug problem?
It appears quickly and closes because that's the end of your program. After your printf(), pause for a console input (like Console.ReadLine() or cin %26gt;%26gt;). That will force your user to hit enter to end the program.
Reply:Add the function 'getch()' at the end to cause it to wait for you to press a key.
Reply:Your program is working fine keep on adding to it..


why using Standard (Stdio) not (iostream)

peacock plant

Microsoft Visual C++ Runtime Library?

When using Microsoft word, when I'm typing a document, all of a sudden this box comes up that says: Runtime error


Program:C:\ProgramFiles\MicrosoftOffic... It shuts down Word, I've tried to repair it under the control panel, I've tried uninstalling and reinstalling it and nothing has helped. Any information on this will be GREATLY appreciated.

Microsoft Visual C++ Runtime Library?
See http://support.microsoft.com/?kbid=55522... "WD: How to Troubleshoot a Visual C++ Runtime Error in Word".





--


garfield-n-odie


Microsoft MVP 2005-2008


http://mvp.support.microsoft.com/


Annoying Visual C++ problem?

When I make a simple C++ program and I want to go run it, the run button is greyed out, nothing seems to work. The only exception is the first c++ file I made which seems to run fine. But I want to make a bunch of C++ programs and have them work but this thing is just being really annoying.


Here is a video showing what I'm talking about:


http://www.youtube.com/watch?v=dl5XZWBF_...

Annoying Visual C++ problem?
The image is really too small to see the details, but have you compiled your program?





You must compile before you can run it. Otherwise there is no exe to run. Look for the 'build' menu.


Visual C++ question?

how can i execute a C++ program on a different computer without having to install C++?

Visual C++ question?
compile it with a C++ compiler.





either this means packaging it as executable compiled before you transfer it to the other computer.. ot having a C++ compiler (C++ sorta) on the other computer.





Alternatively you could make a new compiler program that can compile C++ but isn't C++





finally ~ a good imagination.(operations may be slow at first but with time you may get goin afterall the human brain is faster than a running human.)
Reply:when you compile the code it will generate Filename.exe





move this exe file to any PC and it should run.
Reply:c++ is a computer programming language, not a program. Visuall C++ is microsoft's c++ compiler. It tends to be the compiler that people who are writing c++ programs that are designed to run on the windows OS use.





Because c++ is based on the c language, c++ programs are designed to be compiled into object code. This object code can then be linked to create a program. Visual c++ also includes an integrated development environment (project organizer, source code editor, resource editor, compiler, linker, debugger) which can hide a lot of the details of how to build (make) the project and link it, to produce the final exe or dll.





A c++ can be very complicated, and require an extensive series of build steps. If you got the code from someone else, you might have to recreate the make file, if you're having problems figuring out how to build it. There are plenty of free tutorials around that willl walk you through the process of making a simple c++ program, and if you're confused, one of those may help you figure out the basics.


Visual c++ 2008 express ---- C development?

Ok so i just got it and when i copied and pasted the code i made it doesnt run. I programed in C. Any help. also do i have to write out the header files and put them in the header files file? (lol if that makes sense) or is it already included when i type #include %26lt;blah.h%26gt;

Visual c++ 2008 express ---- C development?
Make sure it is configure properly.





copy and paste this, if this will work...then your VS is configured properly. This is C++





#include %26lt;iostream%26gt;


using namespace std;





int main()


{


cout %26lt;%26lt;"Hello world";





return 0;


}

pink

Visual C++ compiler problem....?

the program that i wrote (in C++) was supposed to read the pixel intensities from a PGM image and create a negative of this picture (also in PGM format). what i did was that program was reading every pixel and was being subtracted from 255 (since maximum possible intensity was 255 according to hearder information). But, when the negative of the picture was displayed (throughVisual C++ compiler), it was cut in half and sides were switched. But it was perfectly working in PUTTY(another Linux Redhat compiler). if someone can help me with this problem i will really appreciate it..thankyou!

Visual C++ compiler problem....?
I highly doubt this is a compiler problem. For one thing, and I realize this is very hard to guess, a compiler...*compiles* code. Now, I highly doubt the negative of the picture was being displayed through the compiler. Rather, I think you screwed up the code.





Moreover, PUTTY isn't a compiler. It's an SSH client. I'm guessing you sshed to a Redhat box, and used gcc to compile it.





We can't help anymore than this, as we are stuck with "I have bad code" and uh, that isn't a question.
Reply:are the numbers you read from the file of a consistent type betwen the 2 platforms? have you debugged the numbers that you read from the file and checked they are the same across platform? Sorry but i'm just pi$$ing in the wind.


Visual C++ opengl code request?

load a 3d model and able to use your mouse rotate, please send as a c++ project file for c++.net 2005. thank you very much, just want to start to learn opengl.

Visual C++ opengl code request?
Try googling some C++ projects. You might find a few useful ones.


Need help on Visual C++ (I'm using DEV C++)?

Hi everyone, I need help with Dev C++ on my school project, the instructions for the project is here : http://www.hci.sg/~yongjs/sec2term1/Type... . If you are free, send the final product/source code to J_C_Senior@hotmail.com and/or post here for me to choose best answer. Thanks so much. Please do not send viruses! :)

Need help on Visual C++ (I'm using DEV C++)?
Does not look easy, may be you can contact a C++ expert live at website like http://askexpert.info/ .
Reply:You are f-ing kidding me, right?


If anything, just for asking, I will sign you up for spam.





Get B3nt, lo0s$er!





PS: I should really report this to your school.
Reply:Don't cheat.


How can i replace the #include<graphics.h> for Visual Studio C++?

Em unable to compile my file edited in Visual studio C++ becooz i have used graphics functions and hav included %26lt;graphics.h%26gt; , only borland supports %26lt;graphics.h%26gt;


so wot i gota do? if i want ti use graphics functions?

How can i replace the #include%26lt;graphics.h%26gt; for Visual Studio C++?
Try to get the opengl headers and library and try to use it.The functions are different however.Mesa is the only free graphics implementation i can think of in VC++.

periwinkle

Microsoft visual c++?

Hi, I was assigned a project using Microsoft visual, and its my first time using it so I need some help. I was asked to write a program that converts kilometers to miles, while displaying it.


Heres what I have so far..I think its right, but when I try to run the program it exits right after i type in the Km value and hit enter, it doesnt show the results in miles.. anybody know why?





#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;


#include %26lt;math.h%26gt;


int main()


{


/* Declare and initialize variables. */


double km, miles;


/* get the km and mi values from the keyboard*/


printf("Enter distance in kilometers:");


scanf("%lf",%26amp;km);


/* Compute Kilometers to Miles */


miles=km/1.6093340;


/*print Miles */


printf("Kilometers = %f \n", km);


printf("Miles = %f \n", miles);


}

Microsoft visual c++?
/* Declare and initialize variables. */


double km, miles;


here:


/* get the km and mi values from the keyboard*/


printf("Enter distance in kilometers:");


scanf("%lf",%26amp;km);


if km==0 THEN goto here


/* Compute Kilometers to Miles */


miles=km/1.6093340;


/*print Miles */


printf("Kilometers = %f \n", km);


printf("Miles = %f \n", miles);
Reply:#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;


#include %26lt;math.h%26gt;


int main()


{


/* Declare and initialize variables. */


double km, miles;


/* get the km and mi values from the keyboard*/


printf("Enter distance in kilometers:");


scanf("%lf",%26amp;km);


/* Compute Kilometers to Miles */


miles=km/1.6093340;


/*print Miles */


printf("Kilometers = %f \n", km);


printf("Miles = %f \n", miles);








/*pauses for user to press a button. reason is so that the program doesn't immediately end and still displays the results*/


getch();


}


Visual C++ Express 2008 progamming to include hid.h and hidsdi.h?

here is part of my code





extern "C" {





#include "hid.h"





#include "hidsdi.h"





#include "process.h"





#include %26lt;setupapi.h%26gt;





#include %26lt;initguid.h%26gt;





}





this is the error i get during compile:


|| Cannot open include file: 'hid.h': No such file or directory ||


i already have windows DDK installed.. how do i solve this problem?? do i add the directory of the headers file?? or add the library of the hid files to the linker??

Visual C++ Express 2008 progamming to include hid.h and hidsdi.h?
have you setup include directories and lib files in vc++?? if not here is a link that teaches you how to setup vc++ express edition 2005.. i hope setting up 2008 is also similar. Also Remove the inverted commas and use angular brackets because inverted comma limits the searching of files within one particular path...you have to add the path of the hid.h file to the include path list in tools-%26gt;options-%26gt;(on the left pane) projects and solutions-%26gt;vc++directories-%26gt;(on the right pane show directories for include files)-%26gt; and add the folder in which hid.h is present...


Microsoft Visual C++ 2008 Express?

I am trying to teach myself C.








Okay, I entered a simple C program(no errors in the source code). I need to know how to compile and link it. I also need to know how to make an .exe file to execute it.








I did put the program in a project. I hit build it and it compiled and linked it. There was no .exe file created though.








Please help. I need to know if I put it in a project or not and what menues to go to.





Thanks,


Greeneyehawk

Microsoft Visual C++ 2008 Express?
Depending on the configuration you are running it may have put the exe in the debug or release folder.





The best way to do this is to do a "publish" it will ask you which folder you wish to publish to. When publishing, it will create the EXE for you.
Reply:Steven K really knows what he's talking about; listen to him if you want to stick with the Visual C++.





However I normally find that their interface is a bit annoying at times, and is often hard to use. When I first began C and C++ programming, I used DevC++ and loved it. You can use tons of different features, all very easy to use, and its free too. I cited it in my sources.





I also like Edit Pad Pro, also free. It's great for multi-code-lingual people like me, who have to code in HTML, Python, C++ and Java all within 50 minutes of each other, but it has no compiler.








Anyway, if you still want to use VisualCPP, then go right ahead, its a great tool, but just make sure that your client has the .NET framework before you go and sell them a product.





:)





Hope this helps!





~Jared


Using fstream (Visual C++)?

//File C:\1.txt contains "123456"


ifstream in ("c:\\1.txt", ios_base::in);


char c;


//reading while next char won't be eof


while(in.peek()!=char_traits%26lt;char%26gt;::eo...


in %26gt;%26gt; c;


//after that c = 6


//now moving position to begin of file


in.seekg(0, ios_base::beg);


//and starting read again


for (int i=0;i%26lt;6;i++)


in %26gt;%26gt; c;





the problem is after in.seekg(0, ios_base::beg);


curent position remains on '6'. What's the problem,


can anyone help,

Using fstream (Visual C++)?
When you enter the second input loop, the fail bit is still set from when you hit EOF the first time. Because the fail bit is set, nothing is read and c still contains 6. After falling out of the while loop, call in.clear() to clear the fail bit. Then it will work.

night blooming cereus

Visual C++ MFC.?

hello guys, i'd like to create a survey system using visual studio 2008, but i don't really know the exact steps. any sites that can guide me?

Visual C++ MFC.?
Hope this helps: http://www.dotnetgoodies.com/survey_buil...





You know that you cannot use Visual C++ as background code for ASP.NET


Visual C++ Calculator help PLEASE !!!! has to be written in visual c++?

C++ Calculator Help PLEASE!!!!?


I am so sick this week.... DO NOT GET A FLU SHOT!


It was a very big mistake.





Im having a very hard time concentrating on this program, THis is the assignemt PLease help me.





In this assignment you must implement a simple integer calculator. The arithmetic functions of addition, subtraction, multiplication, modulus, and division are to be supported. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program.


Once started, the Accumulator is set to zero, and the operation to be performed is set to addition (+). The program then repeats the following steps:








Request and Accept a number


Apply the stored operation (Acc op= number)


Request and Accept the next operation


This process repeats until the equals sign (=) is entered as an operation. At this point, the Accumulator contents are displayed and the calculator is reset (Accumulator set to zero and operation to +).


The following characters are legal operations:





+, -, *, %, /, =, and !.





The ! is treated the same as =, but causes the program to terminate. Any other characters entered as operations should cause a brief error message and should be ignored. Division by zero errors cause a reset.


Sample run:








SuperCalculator at you service!


------


Input: 10


Operation: *


Input: 2


Operation +


Input: -5


Operation: =


Result: 15


------


Input: 12


Operation: /


Input: 0


**Division by zero - start over


------


Input: 12


Operation: %26gt;


**Invalid operation - ignored


Operation: /


Input: 5


Operation: =


Result: 2


------


Input: 10


Operation: %


Input: 6


Operation: *


Input: 3


Operation: !


Result: 12





------


SuperCalculator Off!


1 hour ago - 3 days left to answer.


Report It

Visual C++ Calculator help PLEASE !!!! has to be written in visual c++?
you can't "use" the operation they input you have to do something like (psuedo code here)





get input


take firstNumber


take sign


take secondNumber





Now what you have to do is check the sign


if(sign == '+')


result = firstNumber + secondNumber


else if (sign == '-')


result = firstNumber - secondNumber


else if (sign == '*')


result = firstNumber * secondNumber


/*Keep doing that for all the functions you have to do.*/


/*[other valid cases here]*/


else /*random junk entered by user*/


Output this junk isn't valid or some other brief error message.
Reply://Hey U can also compile and run it in visual c++





#include%26lt;iostream.h%26gt;


#include%26lt;stdio.h%26gt;





int main()


{


int acc=0,input;


char oper='+';





printf("-----\n");





while(oper!='!')


{


cout%26lt;%26lt;"input: ";


cin%26gt;%26gt;input;





switch(oper)


{


case '+':


acc+=input; break;


case '-':


acc-=input; break;


case '*':


acc*=input; break;


case '/':


if(input==0)


{


cout%26lt;%26lt;"**divide by zero - start over\n-----\n";


acc=0;


oper='+';


}


else


acc/=input; break;


case '%':


if(input==0)


{


cout%26lt;%26lt;"**divide by zero - start over\n-----\n";


acc=0;


oper='+';


}


else


acc%=input; break;


default:


acc+=input; break;


}


while(1)


{


cout%26lt;%26lt;"Operation: ";


cin%26gt;%26gt;oper;


if(oper!='+'%26amp;%26amp; oper!='-' %26amp;%26amp; oper!='*'%26amp;%26amp; oper!='/'%26amp;%26amp; oper!='%'%26amp;%26amp; oper!='='%26amp;%26amp; oper!='!')


{


cout%26lt;%26lt;"\nInvalid Operation - ignored";


}


else break;


}


if(oper=='=' || oper=='!')


{


cout%26lt;%26lt;"Result: "%26lt;%26lt;acc%26lt;%26lt;"\n-----\n";


acc=0;


oper='+'; // default


if(oper=='!')


{


cout%26lt;%26lt;"\nSuper Calculator off";


break;


}


}


}


return 0;


}