Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionText Access Pin
Bram van Kampen17-Nov-18 14:49
Bram van Kampen17-Nov-18 14:49 
AnswerRe: Text Access Pin
Richard MacCutchan17-Nov-18 21:06
mveRichard MacCutchan17-Nov-18 21:06 
QuestionHow to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Member 1312800516-Nov-18 22:09
Member 1312800516-Nov-18 22:09 
SuggestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Richard MacCutchan16-Nov-18 23:20
mveRichard MacCutchan16-Nov-18 23:20 
QuestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
David Crow17-Nov-18 3:57
David Crow17-Nov-18 3:57 
AnswerRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Bram van Kampen17-Nov-18 14:51
Bram van Kampen17-Nov-18 14:51 
QuestionLinked List Problem - K reverse linked list Pin
Member 1405554315-Nov-18 0:04
Member 1405554315-Nov-18 0:04 
AnswerRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 0:24
mveCPallini15-Nov-18 0:24 
GeneralRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 3:43
Stefan_Lang15-Nov-18 3:43 
GeneralRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 6:07
mveCPallini15-Nov-18 6:07 
AnswerRe: Linked List Problem - K reverse linked list Pin
Daniel Pfeffer15-Nov-18 2:16
professionalDaniel Pfeffer15-Nov-18 2:16 
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 

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.