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

Creating a directory

I just spent an hour thumbing through my MSVC handbooks and I'm embarrassed to say I couldn't find the answer to this... :blush: Using only standard 'C' functions (_open() / _creat() or whatever) is it...

View Article


[RESOLVED] Program crashing

Hi, ALL, Since I don't know how to remove SOLVED from the thread and this is actually kind of different issue I decided to make a new thread. This is a continuation of this thread. Thank you Paul for...

View Article


how to safely use EnumProcesses older and new OS

MSDN says this about EnumProcess If PSAPI_VERSION is 2 or greater, this function is defined as K32EnumProcesses in Psapi.h and exported in Kernel32.lib and Kernel32.dll. If PSAPI_VERSION is 1, this...

View Article

Lag when clicking MFC file menu

Hello, I am developing a CFormView MFC app. When I go to click something on the menu, it takes awhile before the event happens. The project is build optimized in release mode. I have 3 additional...

View Article

ShellExecute in Visual C/C++

Hi, How to use ShellExecute in Visual C/C++ no MFC I am using Sumatra PDF reader in my Visual Basic 6.0 like this Dim cmdline as string Dim ret as integer Dim hwnd As Long Dim gstrPathAndFilename as...

View Article


Im new. Very simple new person question.

Hi, I have an idea for a program that would make my life easier and I wanted to start down a path to creating it. Essentially I just want a very simple HUD type overlay with clickable buttons that...

View Article

Ambiguous symbol in code.....

I am working on my project of gesture recognition using c++ and open cv and i am also designing GUI simultaneously. I am using system namespace for GUI part and cv namespace for gestures. After...

View Article

Convert BITMAPINFO header into unsigned char pointer

Hey there, I have a bitmap header information in the struct typedef struct tagBITMAPINFO { BITMAPINFOHEADER bmiHeader; RGBQUAD bmiColors[1]; } BITMAPINFO The total size of this is 1080. Now i want to...

View Article


Resedit Integration with Visual C++ 2010 Express?

How can I add a new item on the menu to choose to create a new resedit .rc file? The wizard thing does work, I can dump the wizard of 3ds max to the vcprojects folder, then it appears on startup, But I...

View Article


CAnimateCtrl

Hi, I'm using Windows 8 OS, VC 2012. Using the below link i load avi file in my mfc application. CAnimateCtrl() Example Code. It was working Good. I like to change the avi file Sample.avi instead of...

View Article

Finding Value in Data File Closest to Calculated Data?

Hi, I'm reading from a file the middle column of data (Volts) where my test file "AP.txt" is opened by my program. Here is a segment of the data: time Volts dV 49552 -66.20183 -0.01556807 49553...

View Article

How to write an array into 3 diff. arrays? odd, even, negative

question : Place the even lucky numbers in an array called evenList, the odd lucky numbers in an array called oddList, and the negative lucky numbers in an array called negList. //So in main main i...

View Article

How to refresh logon screensaver parameter changes?

I have a Windows service that may change the timeout of the logon screensaver in Windows (as described here.) To do that I change the following registry key to the timeout in seconds: Code:...

View Article


Is this possible to write like this?

Hi, ALL, I'm trying to simplify the writing of the for loop on the std::set. This is what I'd like to have: Code: for( std::map<std::string,std::set<std::pair<std::string, double> >...

View Article

problem with CMFCOutlookBar hiding

hi i make a new mfc sdi project as if embed a CMFCOutlookBar in this by wizard. two category is added by wizard in pane. tree.Create(dwTreeStyle, rectDummy, &bar, 1200); bNameValid =...

View Article


Am I on the Right Track?

Hello. I'm new as you can tell. I have two weeks to make a program for a stream. I am a commentator and the lead production manager over at iCCup.com. We run StarCraft 1 tournaments and alike. We...

View Article

loop report 10 times

i wrote over my project and had to start again, i cannot get my report to loop 10 times and add 1 to year, year 1, year 2, etc, been working at this all day. please help... /Define a class Hammurabi...

View Article


printing arrays to file. in order

hey guys i have 3 arrays (even, odd and negative), they are all different sizes, but they maximum elements they can have is 50. how do i write them to a file in this format EVEN ODD NEGATIVE 2 3 -2 4 5...

View Article

printing 2 arrays with 10 numbers per line

hey guys i got 2 arrays, how would i print 10 numbers per line, so that would be 5 numbers from each array. array1[40]; array2[40]; array1 array2// array1 array2// array1 array2 // array1 array2 //...

View Article

how to use CListCtrl for show multiple DialogBoxs like items in icon...

hi i can write a mfc program to make a Thumbnail view with image but can not this when change image with CDialogBox. Thumbnail view with image(chart) like this: for (int i=0;i<10;i++) {...

View Article
Browsing all 3021 articles
Browse latest View live