49,761 Topics

Member Avatar for
Member Avatar for Nemoticchigga

Has anyone ever seen a function call just get skipped? I am running in debug mode and it wont let me set a break point on the call and when i step to it it goes right over to the next line, no exceptions, no errors. Has anyone EVER seen …

Member Avatar for Nemoticchigga
0
273
Member Avatar for Clockowl

Is there any difference between those function declarations in C++? Since in C the first states "take any and as much arguments as you like", and the latter means take none... Thanks in Advance, Nick

Member Avatar for Ancient Dragon
0
68
Member Avatar for RandV80

I've built a class, one parent and multiple children, that I need to group together to eventually be stored in a single file. For the moment I've gone with something like this: [code=C++] CObject *group //CObject is the class in question group = (CObject*)calloc(1, sizeof(CObject)); //1 element just to start …

Member Avatar for RandV80
0
106
Member Avatar for dmanw100

I am almost done with a project and now I would like to code an installer for it. I know there are many free solutions to make installer packages online, but I would enjoy learning how to make one from the ground up for the expirience if nothing else. What …

Member Avatar for dmanw100
0
148
Member Avatar for andrew13d

Hey guys, I would like to create a chatting application with C++ or C#(preferably C++) that would run on a local computer network ( and internet if possible) ie enable users on a local computer network to chat. I'm kinda new to programming and I have only done the basics …

Member Avatar for VernonDozier
0
2K
Member Avatar for redrum237

Hi, i am required to make a game, here are the details: zombie island This is a simple turn based game. Set up a 2d grid. Onto the grid randomly position holes, zombies and a man (each represented by a simple character e.g. O Z and M). The man moves …

Member Avatar for ivailosp
0
116
Member Avatar for hiddendragon

how would u diplsay the lowest or highest value of an array that the user entered so u ask the user to enter several number and it goes into an array then how would u display the highest/lowest value in that array to the sreen

Member Avatar for titaniumdecoy
0
2K
Member Avatar for brizhou

1) The following C++ program reads in a number, checks that it is a three-digit integer and, if it is, echoes it on the screen in the reverse order. It uses a C++ function, called isolateDigits, which takes in a 3-digit integer number and returns the three digits that make …

Member Avatar for doddware
0
114
Member Avatar for rafik790

I am facing problem with WaitComm() ;I set comm time out but WaitComm() in to completing. i think WaitComm() go to infinite loop. How i can resolve it

0
47
Member Avatar for Cosa

Hi, i am trying to write a program that would work much like the tail command in UNIX. The idea is to print the last 10 lines of a file. I started off by finding out how many lines were in the file, then attempted to seek to the appropriate …

Member Avatar for Cosa
0
4K
Member Avatar for masterjiraya

My target is to make a code of Cartesian coordinating points of a rectangle... then it must be tested by quadrilateral and square. If the tested point is a rectangle then the out put program will be like this..... Program Output: ************************************************************ ....+y .....+ ..............+ ..point a............................................................................. point b ..............+ …

Member Avatar for Alex Edwards
0
89
Member Avatar for caismirt

Hey everyone. In a nutshell this is what I want to do. I want to: - Allow developers to write code in C++ using non-latin based languages. i.e > use #define (or whatever) to specify a non-latin based character as a keyword/variable. e.g > Instead of (English): if(x < 1){ …

Member Avatar for Narue
0
161
Member Avatar for oliver_mk

Hi, I am getting this error "[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied." when trying to get some data from SQL Server 2000 database. SQL Server is installed on Windows Server 2003, and i am testing the application from WinXP sp2. Testing from other machines with same settings …

Member Avatar for oliver_mk
0
220
Member Avatar for Hannahlv

Hi everyone! I want to call a child program from my parent program. Are there any methods to do this in C++ (platform is Linux)? I searched Google but the material found quite difficult to understand. If have any examples, it'll be better for me (as you know, some people …

Member Avatar for Hannahlv
0
3K
Member Avatar for karang

Hi I am writing a code in which I have to display the print dialog. PRINTDLG pdlg; memset( &pdlg, 0, sizeof( PRINTDLG ) ); pdlg.lStructSize = sizeof( PRINTDLG ); pdlg.Flags = PD_RETURNDEFAULT | PD_RETURNDC; PrintDlg( &pdlg ); But I am getting an error message "[Linker error] undefined reference to `PrintDlgA@4' …

Member Avatar for mitrmkar
0
917
Member Avatar for vbCNEW

good afternoon.. do you know how to install or configure clanlib in vs2005 ?? im getting hard time... i tried it so many times but up to now i havent succeed... i read this link [url]http://www.clanlib.org/docs/clanlib-0.8.0/Tutorial/Kavanek/01-Installing.html#windows[/url] but its hard to understand and im not sure if i download all file …

Member Avatar for Nick Evan
0
456
Member Avatar for Manutebecker

I wanna have my program be able to let the user manually open a text file by destination and retrieve data from it, I have everything like ifstream good, i just need to know how to let the user cin something like C:/files/myfile.txt, but with the ifstream format I need …

Member Avatar for ivailosp
0
86
Member Avatar for kux

I try to create a generic binary tree class but when i try to define an inserting function I get these compilation errors error C2072: 'Btree<T>::recins' : initialization of a function error C2143: syntax error : missing ';' before '*' c:\documents and settings\kux\my documents\visual studio 2005\projects\btrees\btrees\btree.h 54 Error 6 error …

Member Avatar for ArkM
0
745
Member Avatar for karang

Hi All I have written a code to change the settings of printer Orientation(i.e. Landscape or Portrait) I have written following code [code=C++] void SetDefaultPrinterOrientation(short dmOrientation) { HANDLE hPrinter = NULL; LPTSTR pPrinterName = NULL; DWORD dwNeeded = 0; PRINTER_INFO_2 *pi2 = NULL; DEVMODE *pDevMode = NULL; PRINTER_DEFAULTS pd; BOOL …

Member Avatar for karang
0
126
Member Avatar for zebanaqvi

As a beginner I want to create a text editor that autosaves the text at intervals. It's not a part of any HW or anything like that. I just wanna learn things. Plz Plz help me out. Got 20 days at home. Wish to complete it before joining college.

Member Avatar for Nick Evan
0
76
Member Avatar for klactose

Hello, I'm having trouble compiling a header file for a class written in C++. What's so frustrating is that I can't see what I'm doing wrong. when I compile the code I get the the following 2 errors for lines 22 and 25: [B]expected ';' before '<' token ISO C++ …

Member Avatar for ArkM
0
168
Member Avatar for CoolGamer48

Is it bad to make a reference parameter optional by giving it a default value? Like here: [CODE]int Parse(std::string filename, std::string& error = (std::string)"");[/CODE] Here, the caller of the function may pass an optional std::string that will be filled with an error message if there is one. Is this considered …

Member Avatar for Duoas
0
103
Member Avatar for supersoup

in more basic C++ terms what does the following code mean? [CODE]friend ostream& operator << (ostream& os, const item* itm);[/CODE] it is a function in a header file

Member Avatar for Duoas
0
96
Member Avatar for QuantNeeds

Hello, My code works but I would like to adjust it to perform better. My teacher would like me to perform quickSort with pointers. I did use them but I was wondering what else I could change to improve the usage of pointers? For instance how can I pass pointers …

Member Avatar for Alex Edwards
0
69
Member Avatar for QuantNeeds

Hello, I was wondering how I could correct this. It is referring to the following line: [code] set.quickSort(prt1, 0, arraySize-1); [/code] I tried to create an object and call the function this way but I am not sure how to correct this error. My code is the following: [code] bool …

Member Avatar for QuantNeeds
0
176
Member Avatar for TheWhite

Hi. Well, the past year, I have spent learning GUI programming in Java and have created several games (Asteroids, MineSweeper, TicTacToe, etc, etc) in Java. I was wondering if there is an easy way (is it easy at all?) to go from what I know about GUI programming in Java, …

Member Avatar for TheWhite
0
681
Member Avatar for Nemoticchigga

I have a vs2005 forms app, I have added a header file with a bunch of functions, but now i get a bunch of LNK2005 errors, one for every function. How do I resolve this? Do I need to put them in a class? Thanks.

Member Avatar for Salem
0
81
Member Avatar for n.aggel

Hi guys, i have one question regarding alignment. Assume that you have the following struct: [code=c] struct align1 { double a; char b; int c; short d; }; [/code] Also assume: sizeof(double): 8 sizeof(int): 4 sizeof(char): 1 sizeof(short): 2 i would expect: sizeof(align1): 8 + (char padded to->) 4 + …

Member Avatar for n.aggel
0
171
Member Avatar for DonkeyKong92

Does the infomation make a differance to the programs speed? [CODE]// Operating with hello world #include <iostream> using namespace std; int main () { // Print out the result: cout << "Hello World! "; cout << "This is my program"; // Keep program running: cin.get(); //Terminate the program: return 0; …

Member Avatar for DonkeyKong92
0
192
Member Avatar for KenTheFurry

Well I am writing a little message encryption program (simple) and Well it works but it will not change anything after a space. just hoping someone here could help. [CODE] cout << "Enter in the message you want to encrypt..." << endl << " "; cin >> in; count=strlen(in); for(i …

Member Avatar for KenTheFurry
0
155

The End.