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

Help with programming Work (Summation) (Complete beginner)

So I'm currently using Visual Studio 2013, and I was left for homework as a beginner programmer to calculate two summations. First the summation of k to n. k=1 and the equation being k^3. The parameter...

View Article


[RESOLVED] Linked List

HTML Code: #include<iostream> #include <cstdlib> using namespace std; char name[20]; class room {  public:     int data;     room* next; }; class Pointers {         public:...

View Article


My binary tree class

Hello guys, I wanted to solve an exercise which is as follows. You can look at it here (http://books.google.com/books?id=We2...epage&q&f=true) exercise no.11 :) It says: "Define a Binary_tree...

View Article

[RESOLVED] beginner in c++ help needed, thanks

hi, i'm trying to solve a basic assignment, but cannot get it right. anyone has any idea why my test_input() function is not working properly? My assignment: Make a new projekt called “my-sudoku” in...

View Article

How to Enable/Disable Menu Item 2 in OnUpdate Handler of Menu Item 1?

I have two menu items. When item 1 is disabled, I want item 2 to be disabled as well. In the OnUpdate handler of menu item 1, I have tried to use "t_pMenu = pCmdUI->m_pMenu;", "t_pMenu =...

View Article


Installing FLTK on VS 2013

Hello all, Is there a correct way of installing FLTK (say. 1.3.2) on vs 2013 and get it ran below code successfully? Code: #include <Simple_window.h> int main() {         Simple_window...

View Article

Image may be NSFW.
Clik here to view.

Help with Microsoft Visual C++

I'm new to this program and I'm having trouble he's asking for prices, sales tax but I don't know how to format them into the code. What do I use? How do I run and compile? I have a screenshot. Code:...

View Article

Tooltips not working for all controls in CFormView derived class

I can't get tooltips to show up for the windows I want in my CFormView derived class. I have copied the code from the MSDN entry on EnableToolTips(). But only two windows respond with a tooltip:...

View Article


What technologies to use for modern Windows client development?

I developed several C++/MFC-based client applications for a client many years ago and have been maintaining and enhancing them since then. They are basically business apps with lots of form entry,...

View Article


Help with clearing out variables

Below is my code. It runs and it looks like it is doing MOSTLY what I am wanting. I cannot seem to figure out if I say Y to do you want to continue, it calculates the total number of months from my...

View Article

Totals or my formula to caculate is not working

My code is below: Total Interest ends up as my last Monthly Payment amount instead of adding up all Interest Paid - What am I doing wrong? Total Paid isn't calculating correcly either - What am I doing...

View Article

Using Comparables.

Hi, I lately open up a C++ project (Visual C++ project) which was converted from Java a few years ago. This converted snippet has something called the object Object which is not compilable on VC++ Any...

View Article

HI I need help converting my program from a strucc to a class

I am not exactly sure how to do this and i keep running into problems. This is my code here that works. Code: #include<iostream> using namespace std; struct record {         double quiz1;...

View Article


I was constantly calling ostrstream? But private member access violation..

Code: std::ostrstream oss; oss << "path for " << unit << "\n\t" << path; puts(oss.str()); Code: class ostrstream         : public ostream         {        // output stream...

View Article

I'd like to rewrite this comparison method.

Code: bool Unit::Equals(object *o) {                                         return (dynamic_cast<Unit*>(o) != 0) ? equals(static_cast<Unit*>(o)) : false; } If I use Code: bool...

View Article


Image may be NSFW.
Clik here to view.

More CopyFile Problems

Codeguru and the web generally is replete with posts on problems encountered using Copyfile. see: http://forums.codeguru.com/showthrea...light=CopyFile My problem is that CopyFile in an MFC setting...

View Article

Visual Studio cannot find relative header file

For a while, I have been running a Windows 7 Visual Studio 2012 CPP project fine. However, today, all of a sudden, it has stopped being able to read any header files that are in relative directories. I...

View Article


doublt linked list and basic text editor

So for a school assignment I'm supposed to make a basic text editor using a doubly linked list, I have pretty much written most of it but keep coming across several problems. In certain places,all...

View Article

How to raise priority of MIDI input callbacks? Thread pools etc.

Hi, I'm the author of a realtime MIDI software called ChordEase which makes use of the MIDI aspects of the multimedia API, specifically MIDI input callbacks. In XP and before, these callbacks...

View Article

What is the usual maximum size of stack of a win32 program?

I know that if the structure doesn't fit into the stack, it needs to be put onto the heap. But what is maximum size of a win32 stack in usual case? Thanks Jack

View Article
Browsing all 3042 articles
Browse latest View live