Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3027 articles
Browse latest View live

Linker error when including OpenGL

I have this code in my project Code: // OpenGL1.cpp : main project file. // #include "stdafx.h" #include "windows.h" #include <GL/gl.h> #include <iostream> using namespace System; int...

View Article


Strange errors in Visual Studio 2010

Here is another project which I try to run. It has many files, but I got errors. First error: 1>w:\___new projects\singleton\parse4\parse4\myColorConverter.h(4): error C2018: unknown character '0x3'...

View Article


Why MSDN is not documenting everything?

Hi, ALL, This link explains everything, but it does not tell whether this message is sent for both single- and multiple selection modes or just with single-selection. I mean this is MSDN - primary...

View Article

How to use watch in VS2010 when I use singlton?

I have code like this: Code: if (S::I().File.isDirectory(arg, S::I().Stat.workingPath)) { // find out if there is -r option after 1st argument to join files src_temp.join = true; S::I().Stat.getRegEx =...

View Article

Fixing MSB3073

Hello, I've got an open source project called OpenTissue I want to compile. There is a CMakeList.txt file in the root directory of the project. I open that up in CMake, then I generated a path located...

View Article


Sorting a vector alphabetically?

I am reading a file and storing the data (all strings) into a vector. How would I sort this alphabetically?

View Article

Can two functions in same DLL be called by two threads?

I write a DLL MyDLL.dll with Visual C++ 2008, as follows: (1) MFC static linked (2) Using multi-thread runtime library. In the DLL, this is a global data m_Data shared by two export functions, as...

View Article

Create an MFC OCX using C++ DLL

Hello Guru's Im am a newbie here trying to create a OCX from a C++ dll., Here's the scenario I have a C++ dll and this dll needs to be called in VB.net program my boss want's me to create an OCX out of...

View Article


C++ fill color in shapes using FLTK doesn't work for circles

Hi all, I installed FLTK 1.3.X from http://www.fltk.org/index.php on my visual studio 2012 compiler and use PPP book for C++ programming (this: http://www.stroustrup.com/Programming/PPP1.html ). My...

View Article


What is the correct behavior of list control?

Hi, ALL, There is a list control in Windows. When I create a list control I can assign an image list to it with the ListView_SetImageList(). By default, when just created there is no image list...

View Article

[help] game dev

hey , i'm maru , new in this forum , im trying to learn c++ , but google and youtube doesn't help me too much :cry: since that i'm working on a game project that uses LithTech engine which is easy to...

View Article

Image may be NSFW.
Clik here to view.

Excel Project to C++ with line moving (drag & drop)

Hello, I would like to code my excel project to c++ with visual studio. I also want to upgrade it. My first concern is: Is there a way to create a table and to be able to drag and drop line where I...

View Article

Compiler flag '/vd2'

I don't know how many of you are familiar with Glib and Gtk+. They're part of a suite of libraries which often get used to produce cross-platform GUIs (a bit like Qt etc). Each library has an object...

View Article


help with this code

I have been given an assignment to make a code to read some text nd display all the words nd the number of times they appear in another file or as output without displaying the repeating words. I made...

View Article

Problem with initializing auto variables

I am new to VC++ 2012. I have this code snippet. Code: auto it = query_map.find(U("callback")); The problem is right under the dot there is a red line the error is Quote: Error 1 error C2664:...

View Article


Beginner Visual C++ Application Question

Hello I started learning c++ but have few fundamental questions about visual c++ programming. So i'm trying to create forms but don't know which type of project to choose, what's the difference between...

View Article

How to make a shape outside of the main() function

Hello all, I know how to define a shape (here, a rectangle) and attach it to a window in C++ as follows: Code: #include <Simple_window.h> void cir() { Circle c(Point(100,100),50); } int main() {...

View Article


The simplest way to print...

Hello, I basically want to develop an application which print an existing file on reception of a network event (application will be running on a seven 64 bits PC). I wonder which application type would...

View Article

How do I step into SDK source?

Hi, I am building a project using Ogre3D, and I've downloaded the source code of the SDK. For whatever reason, the program has got a bug. And I want to know what is going on within the SDK, how do I...

View Article

Code Style Checking Tool

Hi, Are there any good free or commercial software that can check the C++ code style and find any codelines that violate a given code style specification? For example, whether the codeline is indented...

View Article
Browsing all 3027 articles
Browse latest View live


Latest Images