49,761 Topics

Member Avatar for
Member Avatar for 2008macedonkon3

Hey, i have been making a program in c++ and it got to the part where i need to make a dialog box but i dont know how. I want to make for example when you click on a botton it display's a dialog box or a second form and …

Member Avatar for William Hemsworth
0
67
Member Avatar for Black Magic

Hey, I decided to make a little visit to [URL="http://winprog.org/tutorial"]Winprog[/URL] and decided to go on the page "Menus and Icons" and so i copied and pasted the code from the website to give me.. [CODE=C++]#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM …

Member Avatar for mitrmkar
0
165
Member Avatar for l2u

Hello I've been wondering what would be the best way to manipulate with my application - server (send commands, etc.). I've come accross SSH but this would take too much work to implement it and I dont want to use openSSH - 3rd part source code which is compilable only …

Member Avatar for l2u
0
189
Member Avatar for camproject

I am doing a project in vc++,mfc.what i have to do is,identify static objects in a scene and track them for changes(in position).for that i have to get the pixels of the objects.is there any method to detect all objects and identify their pixels.i have to use the frames obtained …

Member Avatar for vmanes
0
77
Member Avatar for seacat123

i have written the code . the while loop works good for right and down only. when i=9 and j=5 then it do not execute further . iam trying to fix the problem but not successful. #include <cstdlib> #include <iostream> #include <fstream> using namespace std; //----------------------------------------------------Print maze void fnPrintMaze(int m,int …

Member Avatar for seacat123
0
114
Member Avatar for Q8iEnG

Hi all my friends :) I hope you're alright.. :) first of all, I'm doing my assignment *don't worry I'll not ask to solve it :D* I just got an error, don't know what's the solution for it this is the error I'm getting: [QUOTE]C:\Documents and Settings\BoJaSoOM\Desktop\Data Structure\5\HashTable.cpp(200) : error …

Member Avatar for Q8iEnG
0
131
Member Avatar for Jennifer84

I have a Form with a Multilined textBox. With the code below that I use in a buttoncontrol, I try to select these indexes. When pressing the button, no selection can be seen but when I click on the area where it should be selected, it ´blincs´ very fast and …

Member Avatar for mitrmkar
0
95
Member Avatar for fmwyso

I would like to have an array that is pretty huge along with being able to hold atleast a sentence in each value. I want to be able to check if a string exists inside it (hopefully fast :P). Why? I want a program to read through a tab seperated …

Member Avatar for Narue
0
286
Member Avatar for SilentlyShaken

Im making a calculator, and I can't seem to get it to restart. I know i have to use some kind of loop, but I just can't get it to work. Heres a bit of my calc just to show you. #include <iostream> #include <stdio.h> #include <math.h> #include <stdlib.h> #include …

Member Avatar for jesseb07
0
92
Member Avatar for zhouj

what's the difference between the following two snippets of code? In a. B is returned; in b. B& is returned. a. class B { public: int i; }; class D { public: B fd(){B db; db.i=2; return db;} }; b. class B { public: int i; }; class D { …

Member Avatar for Ancient Dragon
0
170
Member Avatar for NervousWreck

This is only the second time I've used the forums. I've been learning c++ off and on for a little over two months and I am doing an exercise to calculate a person's BMI (body mass index). The compiler shows no errors or warnings but when I run the program, …

Member Avatar for NervousWreck
0
107
Member Avatar for zzmgd6

Try to access the environment variables of a current running proces? The following is close but no cigar. Any help to go further. I know it has to do with the PROCES_PARAMETERS contained within the Process Environment Block PEB. But I am completely lost at this point. the following returns …

Member Avatar for vijayan121
0
2K
Member Avatar for programmingnoob

here's what to do: Imagine that you are part of a team creating a role-playing game. As a Support Programmer, you have been tasked by your Project Lead with creating the classes needed for player combat. For the first prototype, you will have to be able to create an attack() …

Member Avatar for Alex Edwards
0
128
Member Avatar for sohel08

I think I might be having trouble understanding variable initialization again, but thanks for the help. Also, if there is an operator for raising to powers, not scientific notation, I would appreciate hearing about it since I can't seem to find it in the index

Member Avatar for titaniumdecoy
0
67
Member Avatar for Agni

Hi Guys.. I need to know how to debug the 'main' of an exe using dbx. i cant put a 'sleep' and recompile it. For example in windows using visual .Net i can do something like >devenv /debugexe xyz.exe This will bring up the exe in debugmode. i need the …

Member Avatar for Agni
0
120
Member Avatar for SunshineLuvr

I am writing a payroll program with inheritance for a school assignment that has the following requirments: [B]Expand the Employee Payroll program to include hourly based and salary based employees. This phase uses an array of employee objects, inheritance for different classes of employees, and polymorphism for salary computation. The …

Member Avatar for mitrmkar
1
577
Member Avatar for brain

Hello, Would anybody suggest any STL algorithm that works on two ranges applying a predicate. For example I would like to have the difference of two maps values. Thanks in advance

Member Avatar for brain
0
99
Member Avatar for TheBeast32

Could anyone tell me if there is a function like the InputBox() function in Visual basic? I have googled it and come up with nothing. Thanks.

Member Avatar for TheBeast32
0
217
Member Avatar for autumngardens

Hi, I would like to know if it is possible to read a file and write to the same file at the same time. For example, if I have [CODE] #include <fstream> // and other headers string temp_string; char result; fstream studfile; studfile.open("student.dat", ios::in | ios::out); // Is this correct? …

Member Avatar for Ancient Dragon
0
112
Member Avatar for vsha041

Hi, I am trying to run this code, but after the program runs, it is never asking me to enter something, instead, it just finishes. [CODE] #include <iostream> #include <string> using namespace std; int main () { string str; cout << "Please enter full name: "; getline (cin,str); cout << …

Member Avatar for ssharish2005
0
106
Member Avatar for titaniumdecoy

Is there a difference, in terms of performance, between the two loops below? (myvec is type [icode]std::vector<int>[/icode].) [CODE]std::vector<int>::const_iterator pos; for (int i = 0; i < N; i++) { pos = myvec.begin(); // do something with pos }[/CODE] [CODE]for (int i = 0; i < N; i++) { std::vector<int>::const_iterator pos …

Member Avatar for Narue
0
143
Member Avatar for VernonDozier

I'm trying to get my hands around Forms Painting in Visual C++, so I've created a Form, and on that Form I have added a Panel called cityPanel. I'd like to paint a green rectangle on it. I double clicked cityPanel, which resulted in Visual C++ creating this new function: …

Member Avatar for VernonDozier
0
287
Member Avatar for nicoletonyf

Hello there, I just installed Visual Studio.net 2003 last week. When I try to start my program, the console appear and close as soon as the program ends. What is the setting to keep the console open, so I can see if my program works? Thanks Nicole

Member Avatar for Ancient Dragon
0
375
Member Avatar for gregorynoob

Okay, so i got the volume I of Sedgewick's Algorithms in C++ and I'm pretty much lost in the first chapter. I understand all the given examples and such things but the exercises seem impossible. I'm still just starting highschool and the math used there aren't that easy and the …

Member Avatar for gregorynoob
0
121
Member Avatar for Jennifer84

I have a problem to understand what I am doing wrong with this code. I have the string Line123. What I want to do is to make the output of this string to look like: "Number1> Number2 Hello Number1> Number2" So what I did is to take all blancspaces away …

Member Avatar for Jennifer84
0
81
Member Avatar for 13L4D3

Well i am a starter in programming and need ur help. M using older version of borland c++ for programming. M trying to make a program which adds users login and password information and also verifies the correct login and password by accessing the contents of those files. but there …

Member Avatar for 13L4D3
0
181
Member Avatar for Rahin

Hi, As per the documentation.each thread has its own ACE_Log_Msg instance.On debugging I found that sometimes two threads have the same ACE_Log_Msg instance.Bcoz of this inconsistency my application crashes . Please let me know whats the actual prob.

Member Avatar for Salem
0
230
Member Avatar for niyyan_23

i have done some c++ program using .dat file. but unfortunately after i executed it...it show the file couldn't open..what is the problem?

Member Avatar for Ancient Dragon
0
40
Member Avatar for chickenlord500

been working on this code for 2-3 hours using the basic c++ information. tearing out my hair trying to figure out what is wrong writing hangman programm but trying to use functions to initialize programm and enter and response computer saying little or no error but wont launch can't figure …

Member Avatar for Sky Diploma
0
156
Member Avatar for xyzt

What's the best way to transfer image files from the client application to the server application?using TCP or FTP? and a second question: there's a way for portable fork() ? i want it to be portable for Linux,Unix and MS Windows...

Member Avatar for jencas
0
67

The End.