Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 4:19
Stefan_Lang15-Nov-18 4:19 
QuestionRe: Linked List Problem - K reverse linked list Pin
David Crow15-Nov-18 5:37
David Crow15-Nov-18 5:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 22:06
Avinash.Pandey12-Nov-18 22:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 5:06
mveRichard MacCutchan13-Nov-18 5:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 6:22
leon de boer13-Nov-18 6:22 
QuestionElevate Process from user to Admins Rights without UAC Elevation Pin
Drakesal12-Nov-18 21:22
Drakesal12-Nov-18 21:22 
AnswerRe: Elevate Process from user to Admins Rights without UAC Elevation Pin
Richard MacCutchan12-Nov-18 21:35
mveRichard MacCutchan12-Nov-18 21:35 
QuestionOk im back with another problem... Pin
Member 140474359-Nov-18 12:36
Member 140474359-Nov-18 12: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 21:44
mveRichard MacCutchan9-Nov-18 21:44 
AnswerRe: Ok im back with another problem... Pin
leon de boer10-Nov-18 19:21
leon de boer10-Nov-18 19:21 
QuestionMobile app Pin
valentineNandang9-Nov-18 2:45
valentineNandang9-Nov-18 2:45 
AnswerRe: Mobile app Pin
Richard MacCutchan9-Nov-18 2:52
mveRichard MacCutchan9-Nov-18 2:52 
QuestionHello I am having a problem Pin
Member 140474357-Nov-18 12:30
Member 140474357-Nov-18 12:30 
AnswerRe: Hello I am having a problem Pin
David Crow7-Nov-18 17:34
David Crow7-Nov-18 17:34 
QuestionScript generation from Objects using C++ Pin
FrankStar895-Nov-18 12:30
FrankStar895-Nov-18 12:30 
AnswerRe: Script generation from Objects using C++ Pin
CPallini5-Nov-18 21:06
mveCPallini5-Nov-18 21:06 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 11:19
FrankStar8912-Nov-18 11:19 
GeneralRe: Script generation from Objects using C++ Pin
CPallini12-Nov-18 21:18
mveCPallini12-Nov-18 21:18 
AnswerRe: Script generation from Objects using C++ Pin
leon de boer6-Nov-18 14:30
leon de boer6-Nov-18 14:30 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 11:22
FrankStar8912-Nov-18 11:22 
QuestionGames Pin
Member 140425973-Nov-18 5:24
Member 140425973-Nov-18 5:24 
AnswerRe: Games Pin
OriginalGriff3-Nov-18 5:27
mveOriginalGriff3-Nov-18 5:27 
AnswerRe: Games Pin
CPallini4-Nov-18 21:50
mveCPallini4-Nov-18 21:50 
QuestionConways Game of life game in C Pin
Abhinav99933-Nov-18 1:27
Abhinav99933-Nov-18 1:27 
AnswerRe: Conways Game of life game in C Pin
Richard MacCutchan3-Nov-18 3:57
mveRichard MacCutchan3-Nov-18 3: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.