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

How to set up CTRL_CLOSE_EVENT

Hi I'm relatively new to creating servers, using sockets etc. I am creating a multithreaded server which allows multiple users to connect, I want to implement a method where when the client exits it...

View Article


number of controls in mfc dialog vs2012

In a mfc app. , after added a control, getting the message number of controls is more than 255, some of the controls may not display correctly. What can be without removing any control?. It is not so...

View Article


Traveling Salesman Problem C++ Code Issue

The following code is an algorithm I designed to solve the Traveling Salesman Problem. I am using a Nearest Neighbor Algorithm to find an optimal path and cost of a 5 city tour. When I run the program,...

View Article

Image may be NSFW.
Clik here to view.

Support_needed_regarding_failure_"doest not name a type"

Hello, could you support me in the failures of this task, I have included also the actual failures in Word-Doc. Thank you in advance, Code: /*######################################################...

View Article

Need help debugging

I have been constantly been trying to be debug this game and have failed inevitably, Code: Code: #include <iostream> #include <cmath> #include <time.h> #include <cstdlib> using...

View Article


Hi . Sorry for posting the full code but I'm still a beginner and need ur help .

Code: --------- #include using namespace std; void readValues (int & ,int &); // 2 values A and B int factorial (int &); // A int divCount (int); // A void evSum (int &, int...

View Article

I need help with writing a program in C++ (I'm still a newbie)

Define class for geometric shape triangle. The member variables of the class are the lenghts of the sides of the 3 sides of the triangle. The member functions have to include: constructor that checks...

View Article

Help with Coding (Newbie)

Hi Guys, Need help with this code. Using codeblocks and getting error that the template is not being recognised. Code is as follows: Code: --------- #include #include #include #include #include...

View Article


[RESOLVED] Hi . Sorry for posting the full code but I'm still a beginner and...

Code: --------- #include using namespace std; void readValues (int & ,int &); // 2 values A and B int factorial (int &); // A int divCount (int); // A void evSum (int &, int...

View Article


[RESOLVED] I need help with writing a program in C++ (I'm still a newbie)

Define class for geometric shape triangle. The member variables of the class are the lenghts of the sides of the 3 sides of the triangle. The member functions have to include: constructor that checks...

View Article

debugger break point jumps

In my MFC, when I try to set a break point at an imported function, the break point jumps to the next line. I updated the .pdb, still same. This does not happen with all imported functions. IDE:VS2012.

View Article

[RESOLVED] GetDlgItemText and Multithreading

So I have been trying to implement the concept of multithreading to an MFC application I am making. I used the method suggested here...

View Article

Recommend a C or C++ code to send a basic email using the SMTP protocol

I have seen many tutorials with confusing functions that are difficult to translate and understand. I am also not looking for a GUI implementation. I am looking for a basic C or C++ program that has...

View Article


Project

I have to complete a project... and i need help of any one... i dont know abou it... Publishwithus *FunctionalSpecifications:* Youneedtocreatetherequiredapplicationandnecessaryservicetoimplementthe...

View Article

Need help with my curent code and the scenario of the code

so far i have done; Code: --------- #include #include using namespace std: int main() { int SName( int james, int mary, int dan) cout<< "Please enter you staff name : " ; cin>> james;...

View Article


Overload function error

Now I just have issue figuring out how to add the quantities, as in if I make the same selection more than once it only calculates one. Code: --------- // //Preprocessor Directives #include #include...

View Article

MFCButton control images and differing screen resolutions

Hey Gurus! I have an application where I use CMFCButton controls. Using SetImage() I have put an icon to the left of the text in the button. It looks great and works well. Recently I installed my...

View Article


analog outputs?

Hello I shall write a Program that shall communicate with an external device which has analog input values. It has a connector with 5 pins and depending on which pin is active it is doing something. I...

View Article

In mfc MDI project the onfilenew restores the existing fullscreen MDI child.

Dear All, I have a MFC MDI project where in on start a maximised MDI child window is created. Later the user can create more MDI children. It is observed that when more children (12 of them) are...

View Article

How to share CCriticalSection between modules

I am in a situation where I need to synchronize two threads in two different dll modules synchronize around the same CCriticalSection object. I can define the CCriticalSection in one module but how can...

View Article
Browsing all 3021 articles
Browse latest View live