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
Friday, July 31, 2009
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.
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.
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
}
}
}
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 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
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.
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.
Subscribe to:
Posts (Atom)