Saturday 30 November 2013

HOW TO SET OpenGL ENVIRONMENT IN VISUAL STDIO 2012 ULTIMATE?

Set OpenGL Environment in visual stdio 2012: 

for set the opengl environment in visual stdio 2012 need thee files
1) glut32.h
2) glut32.dll
3)glut32.lib
download all three file from glut-3.7.6-bin
1=Now go to c:\program files
2= there will be folder Microsoft visual stdio 11.0 open this folder and now go to VC folder open this folder
3= Now extract glut-3.7.6-bin that you download now copy the glut32.h and paste it in c:\program files\Microsoft visual stdio 2011.0\vc\include\
4=now copy the glut32.dll file and paste it in c:\program files\Microsoft visual stdio 2011.0\vc\bin\
5=now copy the glut32.lib file and paste in c:\program files\Microsoft visual stdio 2011.0\vc\lib\
6=now open the visual stdio 2012 open c++ console application when your project will be start at right side there will be show a solution explorer window if solution explorer window is not appear at right side then go to view-->solution explorer then solution explorer window will be appear. 
7=now right click on your project name in solution explorer. show in figure below
Set OpenGL Environment in visual stdio 2012
now go to properties then new window will be open
8=now click linker then input as show in figure
Set OpenGL Environment in visual stdio 2012
9=now go to additional dependencies which is drop down menu and click edit as show in fig below
Set OpenGL Environment in visual stdio 2012

10= now write 
opengl32.lib
glu32.lib
glut32.lib
Set OpenGL Environment in visual stdio 2012

and now click ok now your visual stdio is ready for openGL environment enjoy and remember me in your prayer....:)


what is openGL(introduction)?

what is openGL?

opengl is not a programming language and not a window application and not a data structure container. so opengl is a software interface to the graphics hardware.it does depend upon the operating system. it gives the user tools to create the high quality rendering. for opengl we include
#include"glut.h"
opengl is device independent. opengl is an API. it controls whatever hardware you are using.and use its function instead of controlling hardware directly. opengl is open source.
what is opengl?
openGL

library to include: 

1) GLUT: it initialize toolkit, open windows, develop menus, and manage events.
2) GLU : it provide high level routne to handle the complex mathematical and drawing function.
3) GLUI : the user interface library which completely integrate with GLUT library.



Friday 29 November 2013

My first program in visual stdio 2012

My first program in visual stdio 2012?

1)open visual stdio 2012 select new project and now chose the visual c++ and console base application and write the name of project and click ok show in figure.


2) and now new window will be open here is thee button one is next 2nd is finish and 3rd is cancel so now click the next button and in next window there will be multiple check boxes and radio button so without interrupt any button just click on finish button.then visual stdio enviroment for c++ in open there will be by default code is 
                                              #include "stdafx.h"


                                int _tmain(int argc, _TCHAR* argv[])
                                  {
                             return 0;
                                      }
 #include "stdafx.h" is by default header file that will be include in every program so now for c++ we include a new header file that will also be include in every c++ program that is #include "iostream"
and in next line write using namespace std; 
Note:
every statment is terminate with ";" in c++ expect header file other wise compiler will show the error it might be syntax error.
3) so in my first program i will just display my name after main() i will write the following code of line 
cout<<"Muhammad umer"; and at the end write a function getchar() ; that will also include in every c++ program .

code of my first program:

#include "stdafx.h"
#include "iostream"
#include <conio.h>
using namespace std;

int main()
{
cout<<"muhammad umer";
getchar();

return 0;
}




screen short of my first program:






so now my first program is ready so my first program is ready . 
4) now i press f5 for run my program so the output show like that 

output screen short:

what is meaning of #include "iostream":

Lines beginning with sign (#) are directives for the preprocessor. In this case the directive #include "iostream" tells the preprocessor to include the iostream standard file. and iostream file the basic standard input-output library for c++.and it include its functionality which is later use in the program.

what is meaning of using namespace std?

Namespaces in C++ are used to define a scope and allows us to use functions and/or objects into one group.When you use using namespace std; you are instructing compiler to use the standard C++ library. If you don't give this instruction, then you will have to use std:: 
every time when you use c++ functionality

int main();

it is main function of c++ programming. it mean that all program execution start form main function.it does not matter you use other function in your program but execution always star form main function 

 cout<<"" in c++?

cout<< is the standard output stream in c++. it takes the sequence of character input within double quotes"" and display it on the screen .
Note:
         every c++ instruction is end with semicolon (;)




key for visual stdio ultimate 2012

key visual stdio 2012 ultimate?

1)YKCW6-BPFPF-BT8C9-7DCTH-QXGWC

2)RBCXF-CVBGR-382MK-DFHJ4-C69G8

3)YQ7PR-QTHDM-HCBCV-9GKGG-TB2TM


it will definatly work for more infomation please contact me at my email adress skyuog1000@gmail.com and comments me 


Thursday 28 November 2013

How to install visual stdio?

how to install visual stdio 2012 ultimate?

1.go to google.com and write visual stdio 2012 ultimate free download you can download trial version because i have key for visual stdio 2012 ultimate which is work 
2. after downloading visual 2012 ultimate run the setup of visual stdio 2012 after run the setup show the following window
here is 3 button is appear one is modify 2nd is repair and 3rd is uninstall because i have already install the visual stdio other wise there will be appear next button so click the next button
3.after click next button your installation will be start. you also can change the installation directory .by default it will be install in c directory .
your installation will take time so don't worry you also can enjoy the music...after complete installation don't run the visual stdio first enter the key then run the visual stdio you can get the key from here


INTRODUCTION OF C++

INTRODUCTION OF C++:

c++ pronounced as (see plus plus) it is programming language that is use for general purpose . c++ is high level programming language. it is developed by Bjarne Stroustrup at Bell Labs.c++ is the one of the most popular language . it is basic programming language . it contain all basic concept. before c++ language nobody can not learn any other language.
c++ programming language
c++ programming language
it is most papular language for graphical application.that is run in window and Macintosh environment. c++ inherits the c's syntax. in c language we use the printf() function for the display the value but in c++ we use cout<<"" for display the function .so we can say that there is minor difference between c and c++. in c++ we use the library iostream for example:

Example:

 #include<iostream>
main
{

cout<<"programming logic";

}

Note:

so we use visual stdio environment for c++ as compiler there is many other compiler e.g turbo c and borland c but visual stdio most famous environment.
so viewers we see the all c++ basic  concept and syntax in detail with example so wait for my next post so best of luck ....:)


Wednesday 27 November 2013

Privacy policy

Privacy Policy for http://www.programminglogic.net/ 

If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at skyuog1000@gmail.com. 

At http://www.programminglogic.net/, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by http://www.programminglogic.net/ and how it is used. 

Log Files
Like many other Web sites, http://www.programminglogic.net/ makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable. 

Cookies and Web Beacons 
http://www.programminglogic.net/ does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser. 

DoubleClick DART Cookie 
.:: Google, as a third party vendor, uses cookies to serve ads on http://www.programminglogic.net/.
.:: Google's use of the DART cookie enables it to serve ads to users based on their visit to http://www.programminglogic.net/ and other sites on the Internet. 
.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html 

Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....
Google Adsense
InfoLinks
These third-party ad servers or ad networks use technology to the advertisements and links that appear on http://www.programminglogic.net/ send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see. 

http://www.programminglogic.net/ has no access to or control over these cookies that are used by third-party advertisers. 

You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. http://www.programminglogic.net/'s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites. 

If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites.