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

Ignore negative number

Hey I need help with ignoring negative numbers when I am trying to add up only positive numbers. SAMPLE: if (num>=0) { sum= sum + num; } else how would the else in this case being a negative number...

View Article


C++ Program

I'm trying to create a program that will take input from a user and calculate it in a do-while loop. The program does the calculation but the answer is wrong. The loop also doesn't work. The purpose of...

View Article


[RESOLVED] Windows Form - Create Method with parameters

I am wanting to separate the logic from the visual, but I'm having problems when calling the method that controls the actions of the progress bar timer. Code: ifndef PROGRESS_BAR define PROGRESS_BAR...

View Article

average of voxel value of two images(same size)

Can any one tell how to generate code for calculating average of voxel value of two images with same sizes( e.g. voxel1(image1)+voxel1(image2)/2)???:(

View Article

Mmsyserr_nodriver

I have a program that sets and gets WAVE,MID,MIDI Volume (midiOutGetVolume,waveOutGetVolume). My program on XP works. But I recently bought a laptop with WINDOWS 8. And on my laptop I get...

View Article


Help request: QuickTime ActiveX Control Heap Corruption the second time I...

Hello everybody, I need to write a piece of code that opens a QuickTime VR image into an MFC Dialog. I drew a Dialog and put an "Apple QuickTime Control 2.0" into it. Then I created a Control variable...

View Article

Compatibility of MFC-based Automation?

I am reading the article http://msdn.microsoft.com/en-us/libr...ffice.10).aspx . I am just curious if I using Visual Studio Class Wizard to create MFC class based on Microsoft Word 97 type library...

View Article

Beginner & need some help :)

Hello! I'am a nice guy from sweden and wanna learn c++. I don't know anything in c++ and i think i need some help, i wan't to serious, don't tell me to start with some other language (C# or vb.net etc)...

View Article


debug from another path

within visual studio 2010, i like to dump the debug executable to another directory where all other DLLs exist and debug it from there. How to do this step by step?. I tried but i was getting start up...

View Article


Quick Find window size

Visual C++ forum, Somehow I have expanded the "quick find" window in visual c++ 2010 and can't figure out how to restore it to the original size. Any suggestions? Jerryd

View Article

JSON undefined in my webbrowser container

Hi all, I create an IWebBrowser2* object and attached it to new window. I create also a simple html page containing JScript alert(JSON) command. when i load the page from IE the page works fine. but...

View Article

[RESOLVED] I need Help with my hangman game

:) ty

View Article

Problem in Algorithm Recursive?

Hello friends, I have a problem to implement a recursive version of an algorithm that I made, I get different values, I hope you can help me, here are the code so Iterative (OK) and Recursive code form...

View Article


Shaped Icons on a CTabCtrl... nearly impossible...

I have a dialog window with a CTabCtrl. The following code is successful in showing an icon along with the text name on each of 16 tabs. The icons are 16x16 pixel squares, 4-bit, that I made with...

View Article

Image may be NSFW.
Clik here to view.

CFileDialog::DoModal() never returns in DLL

Hello everyone. I have problem in using CFileDialog::DoModal() function in DLL. I have no trouble in doing such function call in EXE application. Also, I have no trouble to show CColorDialog and my own...

View Article


Incomplete type is not allowed

Code: #include "..\Objects\Objects.h" class Idle; class Objects; class Goods; class Activity { public:         Objects *Actor;         Goods *Target;         Activity() : Actor(0), Target(0) { }...

View Article

return pointer

The code below is supposed to fill, show, and revalue property. The fill function is supposed to return a pointer that creates a range of property values. The show function is supposed to show the...

View Article


Event handler wizard question

For 2005 Visual Studio (v.8) in the wizard for adding an event handler, I found info at this link http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx that is not the case with my 2005 VS ? I'm...

View Article

A simple Cedit question

Hi! when i asign a float number to a Cedit control, if i enter a sequence of numbers and comas, an points with no order and sense i expect that the applicattion informs me that the data is incorrect,...

View Article

InvlidateRect() Doesn't Allow to Display My Child Screen in MFC?

Hi, I'm Getting Real-time Data and Display the image in main screen. Using the InvalidateRect() method, I'm refresh the main screen(Image Area only - 768 * 256) continuously. Now I opened a child...

View Article
Browsing all 3027 articles
Browse latest View live