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

How to modify the System Menu to execute a function

I wish to add the item 'Website' to an MFC Dialog app System Menu so that it can activate the following method: Code: void CMyDlg::OnWebpage() {         ShellExecute( NULL, NULL,...

View Article


Problem with binary Registry I/O

I have used the following code to attempt to place a binary array into and then retrieve from the Registry. I am a member of the local Administrator group. I have verified that the Registry for the app...

View Article


How to check thread with MFC ?

I use MFC Find console window and send key to console like this. Code: HWND w;         w = FindWindow(NULL, L"c:\\users\\pkru\\documents\\visual studio...

View Article

How best to prevent memory exhaustion in time-critical dynamic programming?

Hello: I am trying to solve a knapsack problem in a time-critical application. I've found I can shave a couple dozen seconds off of some inputs with dynamic programming. The problem is, the amount of...

View Article

Annoying problem with F1 help

Having built an application with Context Sensitive Help, and having added and edited the help (*.htm) files with M$ Expression Web 3, and further setting up Contents and Index files using M$ HTML Help...

View Article


How to reduce high CPU usage caused by receiver thread of CAN messages?

Hello, I am struck with a serious issue and not able to get through it.I am writing a program which handles the CAN messages sent to BUS and also Received from BUS.My code is taking almost 60% of CPU...

View Article

need help on cpp file

I am suppose to make a program that will output a line for a specific age group,but everytime I execute the exe file it gives me the desired line and also the last line included everytime.Where did I...

View Article

Getting the longest word from an Array

Hi :) I'm new, and a student who is oddly enough a little stumped. Not being doing C++ for long so I probably have a lot of Bad Code and it probably looks ugly to anyone who has been doing it for a few...

View Article


I can't use FindWindowEx() to find control.

I want to open Microsoft Security Essential program and click Scan now button with VC . I can find window but Can't find control. This is my code when I run this code it show Control not found . I try...

View Article


Can anyone help How do I add a limit on size

Im working on a small code and am trying to limit the size of the mysql databse string its pulling. It can only be 119 characters, or less if its more i would like to do nothing, but if its meets the...

View Article

Windows Explorer -Libraries - Documents - New

Hello, I have an application that Opens files with different extensions for viewing purposes only I use MFC with Multi-Document template. When I go to Windows Explorer in Windows 7 and right-click on...

View Article

How to make a random array to not repeat?

Here is my code for a simple game. paste it and try it. #include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace std; int main (void) { string...

View Article

How to sendmassage to select check box with VC ?

I want to sendmassege to click select check box. I can click buttton but I don't know how to select check box with VC.

View Article


How to read and write on serial port with MFC ?

I want to read and write value on serail port to Microcontroller with MFC. The MFC have no serial port tool like in VB Professionnal edition. I try to find MFC connect serial port example but I not...

View Article

output cnc code

I am developing a cad application. I need to output the machine cnc code from the application. Please give me some suggestions how can I do that. Any help is highly appreciated. Thanks Sujan

View Article


Visual Studio recompiles every time

Hello, I am running Visual Studio 10 project, and I have some code that compiles fine. I have just recently included a third-party library with a header file. Now, every time I run my project, Visual...

View Article

C++ 2000

Hi I am looking to find a VC++ or C++ older than 2000. Is there any way that i can find it? can anyone help?

View Article


Dimensions of JPEG in Memory ?

Hi guys, I have a JPEG in memory as a char* and a bytesize, if I save it to disk with a .jpg extension it's a perfect JPEG file. The thing is, I don't want to save it unless it's a minimum...

View Article

CDialogBar moves content (other windows) in MDI application when docked at...

Hi I have a question concerning the CDialogBar (:CControlBar). I have a MDI application with a dockable toolbox (CDialogBar). The user is able/allowed to move the DialogBar and to dock it at the right...

View Article

Bilinear Resampling Probelm

Hi all, I hope that somone here can help me out as I'm racking my brain over this and something is telling me that should be a realtively simple problem to solve but I just can't see the wood for the...

View Article
Browsing all 3027 articles
Browse latest View live


Latest Images