49,761 Topics

Member Avatar for
Member Avatar for QuantNeeds

I am having 2 main issues with this function: 1) For some reason my while loop is working but not correctly. If the user enters 0 rather than the while loop terminating and proceeding to the next line of code in the main function, the program begins to repeat infinite …

Member Avatar for Lerner
0
247
Member Avatar for Wiki_Tiki

Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because …

Member Avatar for Tigran
0
139
Member Avatar for Tigran

Hi guys I don't request any code help, just want to know how they make windows with themes like this: [url]http://www.codeproject.com/KB/library/PrettyWinApiClass/DevStudioSmall.jpg[/url] or like office 2007 Do they do it with winapi, directx, .net or is it possible for all of em' And ehm, another question: does winapi have a future? …

Member Avatar for Tigran
0
143
Member Avatar for prog77

hi , Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just …

Member Avatar for VernonDozier
0
88
Member Avatar for rafik790

i have use this function but ReadFile(hComm, &chRead, 1, &dwRead, NULL) chRead does not contain Hex value.

Member Avatar for Ancient Dragon
0
59
Member Avatar for faisaly

Pleae pass the comments on "It is said by some people that insertion and deletion operations in Heaps make them less preferable than Binary Search Trees"

Member Avatar for Salem
0
222
Member Avatar for vadan

hai i have an application running on AIX 5.2 in C++ when iam trying to execute the application, everything is going fine, but on exit its getting core dumped, and the stack trace is as shown below Illegal instruction (illegal opcode) in . at 0x0 ($t1) warning: Unable to access …

Member Avatar for Salem
0
171
Member Avatar for masterjiraya

I have here the the cpp file named as clock [code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; #include <cstdlib> int main() { // ofstream constructor opens file ofstream outClientFile("clients.dat", ios::out); if(!outClientFile) { cerr << "File could not be opened" << endl; exit(1); } cout << "Enter the …

Member Avatar for masterjiraya
0
109
Member Avatar for cam875

lets say for some reason you needed to draw a very small image and plot each pixel indivudually with code using directx. Is this possible and pick out that pixels colour and everything or do you need to use a supported format like a .bmp or something. all help is …

Member Avatar for cam875
0
237
Member Avatar for Agni

Hi, has anyone used the mdb debugger in solaris? I need to debug a core file on a client Machine which has neither dbx nor gdb. i could only find mdb, unfortunately i've never used mdb and it's kind of tricky. i dont know if people still use it these …

0
71
Member Avatar for wenny86

this is my assignment question. You must implement a simulation program to model air traffic among a collection of airports, as discussed in class. There are two important extensions that will be made to the model. First, in addition to arriving aircraft using the runway, departing aircraft must also use …

Member Avatar for ArkM
0
2K
Member Avatar for a1159538

HI guys i am a beginner c++ programmer so hopefully this one will be easy for the gurus. i am trying to write a class to do matrix multiplication and then use it. In the class are 5 functions: one to define the dimensions of the matrix two to enter …

Member Avatar for a1159538
0
165
Member Avatar for QuantNeeds

I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void …

Member Avatar for QuantNeeds
0
410
Member Avatar for QuantNeeds

Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // …

Member Avatar for QuantNeeds
0
1K
Member Avatar for jkrege03

Hi, I'm in need of some help on a project I'm doing for a class. In this project were creating an inventory management system for a soda pop company. The menu's and initial part of the program has already been created, my job is to take three fields, sku, quantity, …

Member Avatar for ssaurabh
0
1K
Member Avatar for wenny86

This is the code. I'm having problem in comparing the Now and arrival time(atime) of plane. To get the result the number of plane on the air. urgent.this code have to pass up on tuesday. thanks! [CODE]#include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <cmath> using namespace std; int …

Member Avatar for VernonDozier
0
98
Member Avatar for henpecked1

Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot …

Member Avatar for ArkM
0
2K
Member Avatar for CoolGamer48

To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of …

Member Avatar for Prabakar
0
90
Member Avatar for pavel989

does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right?

Member Avatar for pavel989
0
141
Member Avatar for Motvel

The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include …

Member Avatar for Motvel
0
151
Member Avatar for gispe

hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If …

Member Avatar for gispe
0
78
Member Avatar for Jennifer84

I really wonder how it is possible to put text to a label from one Form to another. So From Form8, I want to reach label23 on Form7. I have tried out this below, but the compiler says: 'Form8' : undeclared identifier 'form8' : undeclared identifier left of '->set' must …

0
62
Member Avatar for tootypegs

Hi, I have a console application that works fine. The users puts in the path of a folder and my program looks at every file in that folder. This is exactly what I wanted only now I'm moving it over into a GUI. Im using borland c++ builder 6 and …

Member Avatar for Ancient Dragon
0
93
Member Avatar for gispe

hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the …

Member Avatar for Prabakar
0
87
Member Avatar for michael1201

ok so im checking a 9x9 soduku game and i need help checking the part where the 3x3 boxes are all cheked. i cant seem to output the errors for the 3x3 box check can someone help me out. i want it to output which box that has the error …

Member Avatar for Salem
0
194
Member Avatar for Manutebecker

I did Hello world about a month ago, (my first language was BASIC), and now im onto things like Templates and I got all of my classes pointers and filing stuff down fine...Im trying to get OpenGL and SDL going (I'm already doing pretty good with the Allegro library). Idk …

Member Avatar for Tigran
0
134
Member Avatar for cam875

Is it possible to code the client application using winsock API so it can run for windows but the server with berkeley socket API so it can run for linux. I mean will they be able to establish a solid connection even though the socket API's and OS's are different. …

Member Avatar for cam875
0
214
Member Avatar for venomlash

Does anyone know a good way to get a bitmap (or other picture file format) and put it on the screen using OpenGL??? I mean, that kinda thing is hard enough in the sissy, user-friendly syntax of JAVA. Anyone?...anyone?...Bueller?

0
116
Member Avatar for manzoor

[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected …

Member Avatar for manzoor
0
525
Member Avatar for nikki123

Develop a program in C++ which takes input a file of C Language and process all #define (i.e. #define MAX 100, than replace every occurrence of MAX with 100). (Macro value 100 can be an expression also.)

Member Avatar for Salem
0
110

The End.