49,756 Topics

Member Avatar for
Member Avatar for vedmack

Hi I need to find out if a specific cmd window is opened on the pc, and I need to hide it I looking for that cmd window by its name (cause i know it ) Ive used the EnumWindows with a callback function: [code] BOOL vFound=((::EnumWindows(mFindWindowOnlyByCustomTitle,0))); [/code] and this …

Member Avatar for Ancient Dragon
0
135
Member Avatar for JackDurden

I think I have a memory problem since this code keeps outputting large negative numbers. The file that it reads includes- lastname, firstname, identification number, then 5 decimal numbers. ZDoes anyone know what the problem is? [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int rows …

Member Avatar for JackDurden
0
80
Member Avatar for alekhya

Hai friends, I'm stuck with a input validation where if nothing is entered and enter is pressed, then i need to display a message saying please enter some value.

Member Avatar for Daveodolph
0
113
Member Avatar for 2fac323

I was spending a lot of time looking around this site to practice with beginner programs. I found one posted by sniper1. And, I tried to make it work. But, now am stuck! Can someone please tell me what is wrong with my code. Problem: 1. [SOLO] Write a program …

Member Avatar for joshmo
0
166
Member Avatar for CoolGamer48

I'm writing a program for a contest (it's a demo, not the actual thing - so I'm not cheating by asking for help - and my question isn't directly related to the algorithm they want anyway). To submit a program, you send them the .cpp file, and they execute it …

Member Avatar for CoolGamer48
1
132
Member Avatar for fmwyso

This is just for my information and I don't really have much need for it... But, I would like to know anyway :D. #1. Is a for or while statement faster than one another? As in, if someone put a for would it be faster (application-wise, not when their typing …

Member Avatar for fmwyso
0
105
Member Avatar for DanDaMan

Hey, I'm just starting to learn C++ and I need some help with a header file. I'm using a Dummies Guide book and it says that I need to create a header file with the extension .h. SO I created a source file called header.h and put this at the …

Member Avatar for DanDaMan
0
156
Member Avatar for Jennifer84

I have a general question. I am trying to read a file named: 1.0.0.txt but this seems not to be possible. The MessageBox shows emty. If I trying to read a file ex named: File1.txt it works. So I wonder why it is not possible to read this file named …

Member Avatar for Jennifer84
0
153
Member Avatar for QuantNeeds

Hello, I have seriously tried to work on this in different manners and now I am back to an infinite output. I have posted for the past 3 days and the responses have just been questions so I am not sure if this is something difficult but I really need …

Member Avatar for ArkM
0
80
Member Avatar for Clockowl

Hey guys, An char* to string conversion looks to be generating a segfault. I'm pretty sure that's not it, but that's when GDB says it received one... Well, here's the, what I think, relevant code. If you think more code is relevant I'll post that too of course. Entity.h (objLocation …

Member Avatar for Clockowl
0
102
Member Avatar for ninjaneer

Hello, I have a C# GUI that is supposed to call a backend I have in a C++ CLI/CLR shared library. That library calls another DLL that was created by MATLAB, but I can't get the second DLL called... Is it a mistake to put the backend in a DLL? …

Member Avatar for ninjaneer
0
159
Member Avatar for coveredinflies

Quick Question. For some reason I can't figure out how to get an array of structures if I am defining the size dynamically. I can do it for a pointer i.e [CODE] struct DB { string name; int age; string ice; }; //some lines DB* data1p; data1p= new DB[no1]; [/CODE] …

Member Avatar for coveredinflies
0
175
Member Avatar for Nemoticchigga

When can you determine if you are using too many threads? Assuming I have complete control and mutex locks and what not, when does it slow my program down, rather than speed it up by splitting up processing into sectons and passing between FIFO queues. Thanks.

Member Avatar for Salem
0
80
Member Avatar for Ccrobinson001

I have a program that deals with anagrams and for the most part the program works but on a few of the words that should be it says that they aren't and one says it is and it's not. can someone help? [code=c++] #include <iostream> #include <iomanip> #include <string> #include …

Member Avatar for iamthwee
0
105
Member Avatar for QuantNeeds

Help the error states: .cpp(31) : error C2337: 'count' : attribute not found referring to new[count] = value; as the problem. My code is the following: [code] int main() { int size = 20; new double[size]; for(int count = 0; count <= size; count++) { int value; cout << "Enter …

Member Avatar for QuantNeeds
0
465
Member Avatar for QuantNeeds

Help, I still cannot understand why the following function will not write the change to my program correctly. For my other functions (add a record and delete record, it wrote all the records perfectly to the file, but for some reason when I go to update a record it does …

Member Avatar for ArkM
0
69
Member Avatar for adelsin

Hello, I'm currently helping a few ladies out setting up a dedicated server. I do not have physical access to this server. Since other people have had their hands in the server, I would like to attempt to construct a program to test several of ports to see if they …

Member Avatar for adelsin
0
134
Member Avatar for JackDurden

How would I add just the columns in this 2-dimensional array? [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; const int rows = 5; const int cols = 5; int main () { ifstream inData; int numbers[rows][cols]; int i,j; inData.open("data.txt"); while (!inData.eof()){ for (i=0; i<rows; i++) { for (j=0; …

Member Avatar for JackDurden
0
88
Member Avatar for gispe

hi ppl im back here with a kinda major problem thing is i made this program for some company that sends letters or packages, and has 3 types of services: to send it the next day with priority, the next day but whithout the priority, or to send it in …

Member Avatar for vmanes
0
90
Member Avatar for kneiel

When an object is instantiated, the constructor gets called ? How is this internally implemented ? Who Calls the Constructor ? Is it the OS ?

Member Avatar for kneiel
0
94
Member Avatar for rppprez

I am using a xbee rf transmission device and i have it connected to my pc via usb. As per the data of the device the information it recieves comes to the pc as it would be coming throgh a com port. I am now trying to create a program …

Member Avatar for rppprez
0
110
Member Avatar for kux

This is cited from Stroustrup third edition [CODE] void f () throw (x2 , x3 ) { // stuff } is equivalent to: void f () try { // stuff } catch (x2) {throw; } / / rethrow catch (x3) {throw; } / / rethrow catch (...) { std: :unexpected() …

Member Avatar for kux
0
103
Member Avatar for Kanoisa

hey, Just starting to learn how to use classes in c++ and when i try to split my class out of the main code and put it in a headder or a headder and a second source file dev C++ is giving me loads of errors and i dont know …

Member Avatar for Lerner
0
140
Member Avatar for bramprakash1989
Member Avatar for CoolGamer48
0
92
Member Avatar for charlinjoe

I am deleting a pointer using "delete" in C++. That pointer is holding the address which is used by OS like 0x00000210. What will happens?

Member Avatar for CoolGamer48
0
90
Member Avatar for bpacheco1227

I have time to complete this, I have to add 2 void functions, 2 value returning functions, 1 structure and on array. I just need some ideas on where to start, what should I convert to functions, how should I instill stuctures and arrays to this particular program. I'm going …

Member Avatar for mitrmkar
0
198
Member Avatar for dipumali

hi i am dipali i am trying to store multiple objects in file but it will store only one object with the help of read & write function plz tell me solution.

Member Avatar for mitrmkar
0
83
Member Avatar for wussa

[code=cplusplus]#include <iostream> #include <string> using namespace std; char *goodmsg = " I feel fine today \n"; string badmsg = "I am not feeling well today \n" ; int main(){ //prototype definition void printMessage( bool ); //objects declaration bool isFine; bool &isGood = isFine; char *answer = 'y'; //while loop will …

Member Avatar for Daveodolph
0
144
Member Avatar for Quarck

Hi I'm was a c++ programmer for 7 years past with VC++ then go to Java and now return to c++ , I've search for VC++ and its seems big change now (VC++ Express Edition ) . I looking for free VC++6.0 or any other easy/free editor for c++ programming …

Member Avatar for Tigran
0
178
Member Avatar for adRiaNn

Hi guys, I am doing multithreading in my C++ program. Now i seriously STUCK in my program.:confused: Ok, My program have 2 different base class, and each of the base class have a sub class, Example, subclass1 inherited from baseclass1, subclass2 inherited from baseclass2, HOW to make subclass1 and subclass2 …

Member Avatar for adRiaNn
0
78

The End.