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

how do i convert xml attributes to c++ class using tinyxml

Hey i am trying to create a firework display by reading in the fireworks off a .xml file, which will then iterate through and launch each firework. I followed a tutorial on dinomage to find out how to...

View Article


Wanted: C++ Blogger

Codeguru is looking for a couple of bloggers. We have at least one slot open for C++ blogger. If you are a hard-core (or semi-hard core) C++ developer that likes to share tips, tricks,or insights with...

View Article


only works with cout?

hey, I ran into this, what I'm calling "quantum problem" because it's like quantum mechanics, when I'm looking at what my program is doing, it works fine, but if I want to hide the data, it doesn't...

View Article

MFC CRichEditView vs CRichEditCtrl

I was looking at the source code of CRichEditView::GetRichEditCtrl and it looks like they are type casting the view into a ctrl (even though there is no inheritence or subobject of the appropriate...

View Article

C++ extern question

MFC application. I created a file access class for simple debug stuff that's not needed to run thru the document's serialize. I want to be able to call it from anywhere or any class, so I figured I can...

View Article


[RESOLVED] only works with cout?

hey, I ran into this, what I'm calling "quantum problem" because it's like quantum mechanics, when I'm looking at what my program is doing, it works fine, but if I want to hide the data, it doesn't...

View Article

Search technique on DNA sequence

Given a set of DNA string. Find minimum length string S so that, given DNA strings are subsequence of S. For example, if given set of string is: {CAGT, ATGC, CGTT, ACGT, AATT} then answer is: 8....

View Article

Pathfinding using A Star help needed (opengl)

I have a grid set up, and had Dijkstra's algorithm working to slowly pathfind throughout the grid. I am now wanting to convert it to use A-Star, but am running into problems. My code is shown below,...

View Article


Prime Numbers

I wouldn't be suprised if this question had been posted earlier. But i would like to streamline it a little bit so that i get to know what i m trying to find out...... So if i write a Loop to calculate...

View Article


[RESOLVED] MFC C++ multiple OnSetActive() calls happening at once

I have a bit of an odd issue. I maintain a piece of software that appears to be handling multiple calls to OnSetActive() at once. The problem manifests when performing a large image operation....

View Article

Unresolved external symbol

perhaps this can be a very popular error, but i´m beginner and i not used to see problems like this Code: #include <stdio.h> #include <tchar.h> #include <iostream> #include...

View Article

PLEASE with this code!!!!!

can someone help me fine tune this code a little more!? this code converts units and uses pass by ref (which it must) but I need help refining it! how can I improve this code!? HTML Code: #include...

View Article

CDA Volume

Can I get and or set the volume of a cda file? Afer opening with mciwndm_open.

View Article


noob question on cost char * returned by various functions

What is the programmers responsibility with respect to const char * returned by various functions, like the C++ string class c_str() function which returns a const char * to an c style string array? In...

View Article

[RESOLVED] Unresolved external symbol

perhaps this can be a very popular error, but i´m beginner and i not used to see problems like this Code: #include <stdio.h> #include <tchar.h> #include <iostream> #include...

View Article


Slightly OT, Visual Studio 2012, and virtual desktops...

Hey all, Not really a MSVC++ technical question, but does anyone else run a virtual desktop manager? If so, does Visual Studio "follow" you when you switch desktops? I'm running Litestep, and one of...

View Article

Need Help to Solve Errors Please!

I'm a beginner at c programming and i'm trying to write a program to accept the user's name, address and so on. This program should also display a list of items for them to select from, and also to...

View Article


[RESOLVED] Advice on structured header use

Hello there, I am unfortunately self taught in both C and C++, and get myself tied in knots with headers. At present I am working on a project with multiple files as well as libraries that are complied...

View Article

Advice on structured header use

Hello, I am a self taught newbie in C/C++ with some holes in my knowledge. I am looking for advice on how to structure my headers for a C/C++ project that I am working on in VS2008. I would like to...

View Article

How to modify File menu width

Hello, I derived a class from CRecentFileList in order to set the number of displayed chars for MRU. The problem is that if I open the app with 256 set for this number (it is read from .ini file) the...

View Article
Browsing all 3021 articles
Browse latest View live