49,761 Topics
| |
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 … | |
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 … | |
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? … | |
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 … | |
i have use this function but ReadFile(hComm, &chRead, 1, &dwRead, NULL) chRead does not contain Hex value. | |
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" | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { // … | |
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, … | |
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 … | |
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 … | |
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 … | |
does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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? | |
[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 … | |
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.) |
The End.