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 ArticleC++ 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 Articleaverage 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 ArticleMmsyserr_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 ArticleHelp 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 ArticleCompatibility 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 ArticleBeginner & 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 Articledebug 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 ArticleQuick 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 ArticleJSON 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 ArticleProblem 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 ArticleShaped 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 ArticleCFileDialog::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 ArticleIncomplete 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 Articlereturn 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 ArticleEvent 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 ArticleA 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 ArticleInvlidateRect() 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