Click here to Skip to main content
13,834,709 members

C / C++ / MFC

 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 5:19
memberStefan_Lang15-Nov-18 5:19 
QuestionRe: Linked List Problem - K reverse linked list Pin
David Crow15-Nov-18 6:37
memberDavid Crow15-Nov-18 6:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 23:06
memberAvinash.Pandey12-Nov-18 23:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 6:06
protectorRichard MacCutchan13-Nov-18 6:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 7:22
memberleon de boer13-Nov-18 7:22 
QuestionElevate Process from user to Admins Rights without UAC Elevation Pin
Drakelor12-Nov-18 22:22
memberDrakelor12-Nov-18 22:22 
AnswerRe: Elevate Process from user to Admins Rights without UAC Elevation Pin
Richard MacCutchan12-Nov-18 22:35
protectorRichard MacCutchan12-Nov-18 22:35 
QuestionOk im back with another problem... Pin
Member 140474359-Nov-18 13:36
memberMember 140474359-Nov-18 13:36 
Hello guys I'm trying to code in opengl so if anyone could help ill be posting info below

code:
#include <stdio.h>
#include <stdlib.h>

#include <GL/glew.h>

#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
using namespace glm;

int main(){

	glewExperimental = true;
	if( !glfwInit() )
	{
		fprintf( stderr, "Failed to initialize GLFW\n" );
		return -1;
	}

	glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // We want OpenGL 3.3
	glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
	glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
	glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // We don't want the old OpenGL

	GLFWwindow* window;
	window = glfwCreateWindow( 1024, 768, "Tutorial 01", NULL, NULL);
	if( window == NULL ){
		fprintf( stderr, "Failed to open GLFW window. if you have an intel gpu they are not 3.3 compatible try the 2.1 version of the tutorials.\n" );
		glfwTerminate();
    return -1;
}
glfwMakeContextCurrent(window); // Initialize GLEW
glewExperimental=true; // Needed in core profile
if (glewInit() != GLEW_OK) {
    fprintf(stderr, "Failed to initialize GLEW\n");
    return -1;
}

glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);

do{
    // Clear the screen. It's not mentioned before Tutorial 02, but it can cause flickering, so it's there nonetheless.
    glClear( GL_COLOR_BUFFER_BIT );

    // Draw nothing, see you in tutorial 2 !

    // Swap buffers
    glfwSwapBuffers(window);
    glfwPollEvents();

} // Check if the ESC key was pressed or the window was closed
while( glfwGetKey(window, GLFW_KEY_ESCAPE ) != GLFW_PRESS &&
       glfwWindowShouldClose(window) == 0 );

}


error:
1>------ Rebuild All started: Project: opengl, Configuration: Debug Win32 ------
1>  lov.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\trogd\documents\visual studio 2010\Projects\opengl\Debug\opengl.exe : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


codeproject is what keeps me going :P
AnswerRe: Ok im back with another problem... Pin
Richard MacCutchan9-Nov-18 22:44
protectorRichard MacCutchan9-Nov-18 22:44 
AnswerRe: Ok im back with another problem... Pin
leon de boer10-Nov-18 20:21
memberleon de boer10-Nov-18 20:21 
QuestionMobile app Pin
valentineNandang9-Nov-18 3:45
membervalentineNandang9-Nov-18 3:45 
AnswerRe: Mobile app Pin
Richard MacCutchan9-Nov-18 3:52
protectorRichard MacCutchan9-Nov-18 3:52 
QuestionHello I am having a problem Pin
Member 140474357-Nov-18 13:30
memberMember 140474357-Nov-18 13:30 
AnswerRe: Hello I am having a problem Pin
David Crow7-Nov-18 18:34
memberDavid Crow7-Nov-18 18:34 
QuestionScript generation from Objects using C++ Pin
FrankStar895-Nov-18 13:30
memberFrankStar895-Nov-18 13:30 
AnswerRe: Script generation from Objects using C++ Pin
CPallini5-Nov-18 22:06
mveCPallini5-Nov-18 22:06 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 12:19
memberFrankStar8912-Nov-18 12:19 
GeneralRe: Script generation from Objects using C++ Pin
CPallini12-Nov-18 22:18
mveCPallini12-Nov-18 22:18 
AnswerRe: Script generation from Objects using C++ Pin
leon de boer6-Nov-18 15:30
memberleon de boer6-Nov-18 15:30 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 12:22
memberFrankStar8912-Nov-18 12:22 
QuestionGames Pin
Member 140425973-Nov-18 6:24
memberMember 140425973-Nov-18 6:24 
AnswerRe: Games Pin
OriginalGriff3-Nov-18 6:27
protectorOriginalGriff3-Nov-18 6:27 
AnswerRe: Games Pin
CPallini4-Nov-18 22:50
mveCPallini4-Nov-18 22:50 
QuestionConways Game of life game in C Pin
Abhinav99933-Nov-18 2:27
memberAbhinav99933-Nov-18 2:27 
AnswerRe: Conways Game of life game in C Pin
Richard MacCutchan3-Nov-18 4:57
protectorRichard MacCutchan3-Nov-18 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190114.1 | Last Updated 22 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid