51,593 Topics

Member Avatar for
Member Avatar for &rea

Hello, I have got a problem of An unhandled exception of type 'System.StackOverflowException'. I have read that it is possible that the reason is that I have too many method calls. I am working with a GUI and I didn't want that the code in Form() was too big so …

Member Avatar for &rea
0
129
Member Avatar for lomo

I have to store my input values from function 1 into another array caled namesMore in function 2. Not to sure how to store into second array #include <iostream> #include <string> using namespace std; const int NR_PLAYERS = 4; void inputInformation(int goalsP[], int cardsR[], string names[]) { for(int i =0; …

Member Avatar for lomo
0
79
Member Avatar for mike issa

i have a dll "lt360lib.dll" and want to create a .lib file in order to link with it. when trying to create a .def file using impdef.exe that comes with c++ builder i get the following error "error lt360lib.dll: unknown filetype" by the way i enter the command using command …

Member Avatar for mike issa
0
840
Member Avatar for guy40az

I was wondering if anyone knows of a good resource online to learn the IDE of visual studio 2008. I have been using an older version (visual studio 6), I need to learn the 08 .net IDE. If any one has any suggestions on where to go online or even …

Member Avatar for jencas
0
105
Member Avatar for Superfat

Okay, i am trying to figure out how to use the Continue, and Break flow controlls correctly, however i keep getting an error: [code]continue statement not within a loop or a switch break statement not within a loop or a switch[/code] My code: [code=C++]#include <cstdio> #include <cstdlib> #include <ctime> #include …

Member Avatar for Superfat
0
160
Member Avatar for edman

In the main function below I am trying to pass two array parameters to a friend function which will return the month object back to the main function with the monthly updated weatherreport details. I am studying and this is my first year doing any sort of coding so please …

Member Avatar for edman
0
108
Member Avatar for Cyberage

I have the following overloaded extraction operator function where I need to read values into an array. I keep on getting compile errors when I uncomment the: dayReport[i].dayOfMonth = dayP part. Could anyone point me to where I am going wrong. What I am trying to do is to read …

Member Avatar for Cyberage
0
129
Member Avatar for cam875

Ok, I have a MySQL server 5.1 community edition setup on my computer, and I have SQL/ODBC connector 5.1 installed. Now I want to take my C++ console app and be able to connect to my sql server. Yes I have looked through many tutorials and source code and I …

Member Avatar for cam875
0
196
Member Avatar for CoolGamer48

Hey, sorry if this is in the wrong forum. My computer keeps crashing, causing it to restart, and I don't know why. Here's what I know: [LIST] [*]It's happened only on Windows XP [*]Its happened on one of my machines multiple times,and just started happening on my second [*]The crashes …

0
53
Member Avatar for Miyuki

Is it possible to have Netbeans set up for Cygwin and for Borland 5 free compiler then let me choose a compiler for each project?

Member Avatar for tesuji
0
88
Member Avatar for guest7

Hi, I am trying to generate 2000 random 3 bit binary numbers. I am using the following code to do that but I am getting an error. #include <bitset> #include <stdio.h> #include <cstdlib> #include <strings.h> #include <iostream> #include <vector> #include <time.h> using namespace std; int main() { for(int i=0; i<2000; …

Member Avatar for tesuji
0
205
Member Avatar for sweety0

Hello!! this time i got mad because i didnt even got a single answer from your site regarding shortest path. please tell me how to embed vb.net and C++. [B]can anyone please tel me the code of dll import function??[/B] Vb.net at the front end and coding in C++ at …

Member Avatar for VernonDozier
0
120
Member Avatar for WillMcc

The basic purpose of the program is for the user to enter 10 numbers, then the program to add them all up as they are entered until it gets to 10 numbers entered which at that point it divides total by 10. [code] #include "stdafx.h" #include <iostream> using namespace std; …

Member Avatar for Shaun32887
-1
193
Member Avatar for Black Magic

Hey, When i say right i mean is this the best way to do it. The program works fine and I just put it together in about one minute. [CODE=C++]#include <iostream> using namespace std; int main() { srand(time(NULL)); const char* words[] = {"silly", "bafoon", "monkey"}; int i = rand() % …

Member Avatar for Black Magic
0
92
Member Avatar for ninjaneer

I've been floating around the web looking for a way to add a cap to my Cpp program's processor use, and so far I've only come across a few painful looking Cpp-to-assembly tutorials and a bindprocessor function in an IBM API. I was wondering if any of you wizards knew …

Member Avatar for ninjaneer
0
112
Member Avatar for longhorn75

Hi, I am new and don't know much about this program language, I had a programmer write a program for me from getacoder..com, anyways I need some editing on the program and I think he wrote it using C#. I only have a .exe file. Can another programmer open and …

Member Avatar for Ramy Mahrous
0
107
Member Avatar for Jennifer84

In a Form Window you have in the upperright corner, Minimize, Maximize and the other red control that you close the Form with. I wonder what this control is named and if it is possible to put code inside this control. Because if I doubleclick on it, I doulbeclick on …

Member Avatar for Jennifer84
0
83
Member Avatar for Jennifer84

This perheps is a strange question but if I have a buttoncontrol on the form I could programatically make this button invisible like below: [code] button1->Visible = false; [/code] What I wonder is if it is possible to make the button Visible = false; by fading the button away so …

Member Avatar for Jennifer84
0
146
Member Avatar for Zolookas

Hi, I am new to C++ and Qt and despite that i am thinking of using threads in my app. Here is an example code which outputs "." and then "QThread: Destroyed while thread is still running" error after pressing button. [CODE=C++] class MyThread : public QThread { public: void …

Member Avatar for Zolookas
0
1K
Member Avatar for CoolGamer48

Hey, What will happen if you link to the same lib twice using #pragma? Will this cause an error, or if the lib is already being linked to, will the second #pragma be ignored? Thanks.

Member Avatar for William Hemsworth
0
46
Member Avatar for mhil_joy

guys.. please give me some idea on how to program tic tac toe using user to user.. thank you.. god bless you all...

Member Avatar for Nick Evan
0
103
Member Avatar for bpacheco1227

I am a C++ beginner and I am stuck. I can't get the random number generators to run properly, specifically the random number generators are all coming up with 1 . The point system is not running properly either, I'm sure it has something to do with my do-while loop. …

Member Avatar for bpacheco1227
0
177
Member Avatar for xyzt

hello I need to do something like this: for ex. if the N is 12 then, i will produce strings like "001" "002" "003" "004" ... "012" if the N is 6 then, I will produce strings like "01" "02" ... "06" is it possible to do that with standart …

Member Avatar for Duoas
0
93
Member Avatar for &rea

I am trying to use Elements (a property of matrix) that will save all the elements as an array so I could access the different elements but now I don't know how works this property. I have written that [code] L->Elements(cli::array<int>(1)^get()); [/code] and I get these errors: [code] error C2143: …

Member Avatar for &rea
0
116
Member Avatar for radnik

I made a little program in which i read double values from file and store them in vector of vectors. So i have one vector pairs which is collection of coordinates (numbers from one line in txt file) and vector trajectories which is vector of vectors pairs (collection of all …

Member Avatar for jencas
0
120
Member Avatar for Prathvi

Dear all, I have to create a customized SoftInputPanel for my program. My question is that ==>Is it possible to create our own SIP for Windows Mobile? ==>Pls give some info for the same

Member Avatar for Prathvi
0
93
Member Avatar for Azurea

Hey guys. I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a " [Linker error] undefined reference to `__cpu_features_init' ld returned 1 exit status " error. Even with simple programs with just sending information to [I]cout[/I] I get this error. Something …

Member Avatar for Azurea
0
170
Member Avatar for Aamit

[code] Day: printf("\n1:Mon\t2:Tue\t3:Wed\t4:Thu\n5:Fri\t6:Sat\t7:Sun\nEnter value-> "); scanf("%d",&x); char dd1[5]="MON"; char dd2[5]="TUE"; char dd3[5]="WED"; char dd4[5]="THU"; char dd5[5]="FRI"; char dd6[5]="SAT"; char dd7[5]="SUN"; if(x==1){ strcpy(dd,dd1); } if(x==2){ strcpy(dd,dd2); } if(x==3){ strcpy(dd,dd3); } if(x==4){ strcpy(dd,dd4); } if(x==5){ strcpy(dd,dd5); } if(x==6){ strcpy(dd,dd6); } if(x==7){ strcpy(dd,dd7); } //printf("%s",dd); if(x>7 || x<1) { cout<<"\nPlease Enter Valid Option\n"; …

Member Avatar for mitrmkar
0
146
Member Avatar for &rea

Hello, I have got a matrix and I want to get his elements so I can work with them in an unsigned int[][] or in a similar way. I have proved to get them with the method Element but it returns an array and I think it don't do what …

0
73
Member Avatar for &rea

Hello, I want to make a matrix like this: [code] System::Drawing::Drawing2D::Matrix^ L; L=gcnew( System::Drawing::Drawing2D::Matrix::Matrix(rect,plgpts)); [/code] rect works properly but not plgpts plgpts is an array of Points. So I make that: [code] cli::array<System::Drawing::Point>^ plgpts; plgpts=gcnew(cli::array<System::Drawing::Point, 3>); [/code] and I have this errors: Error C3149: 'cli::array<Type,dimension>' : cannot use this type …

Member Avatar for &rea
0
158
Member Avatar for abhi11shukla
Member Avatar for WillMcc

Okay, so I'm a bit confused... here are my instructions for making a program: 1. Input each test result (i.e. a 1 or a 2). Display the message " Enter result" on the screen each time the program requests another test result. 2. Count the number of test results of …

Member Avatar for VernonDozier
0
140
Member Avatar for ederX

Ok, im pulling my hair out now...Im new to c++ but this one error is eluding me. Probably due to the fact that I'm still trying to understand pointers. Can anyone point me in the right direction to fix this error: [CODE]request for member ‘outputData’ in ‘*(employee**)(& emp)’, which is …

Member Avatar for VernonDozier
1
619
Member Avatar for mikelle

// the output is coming out incorrectly. any suggestions? //here is what i have // Lab 4 read and calculation file/input // This program will read the data in the input file // used by grosspayMinustaxFileCode #include <iostream> #include <fstream> using namespace std; int main() // this is the error …

Member Avatar for VernonDozier
0
90
Member Avatar for manojkumar2004

Hi all, I was trying to post some data to a web server(tomcat) where my servlet is running. I have written a c# http client, I was able to establish the connection with the servlet but control is always going to GET method instead of POST method . Can you …

0
72
Member Avatar for scream2ice

hi, does anyone know if there is a code in c++ that allows print on paper instead of monitor? i mean instread of using [B]'cout<<'[/B] to see what you want on monitor, use a code to print your info on paper.......cheers

Member Avatar for Duoas
0
1K
Member Avatar for QuantNeeds

So I finally I got this to work, but my problem is that it gets very messy when I try to print it as a chart. I have to print the output in a neat tabular format that minimizes the number of lines of output while remaining readable. When I …

Member Avatar for QuantNeeds
0
219
Member Avatar for uompearl

Hello I have a C++ program which is supposed to encrypt plaintext via keyboard input using AES-CCMP algorithm. The problem is that whatever plaintext I enter, it displays same ciphertext. The code listing is about 1500 lines. How can I post my code so that programmers can help me out?

Member Avatar for VernonDozier
0
110
Member Avatar for sweety0

[TEX=how to find the shortest path between undirected countries] Heloo! i m again sending my code with few more modifications. please tel me how to find the shortest path between undirected countries. thanks.[/TEX] [CODE= C++] #include<iostream> #include<fstream> #include <string> using namespace std; class Node { friend class list; friend class …

Member Avatar for VernonDozier
0
121
Member Avatar for SteveDB

Well, apparently, I jumped the gun a little. My code for the program I wrote still doesn't work. It compiles fine and throws no errors, but when I run it, only my main menu list runs-- over and over, regardless of my input, and the esc key no longer works. …

Member Avatar for SteveDB
0
121
Member Avatar for abilifyx

i was wondering if it was possible to make a mmorpg using C++, with out being to proficiant in javascript and html and either what software i would need or where to start.X

Member Avatar for Jishnu
0
135
Member Avatar for Jennifer84

I have a little problem with two panels that are on top of eachother with the exact same Size. What I am trying to do is with 2 buttons to choose wich panel that will be visible and not visible. So what should happen is that only one panel can …

Member Avatar for Jennifer84
0
178
Member Avatar for Zolookas

Hi, i am quite new to C++ and I am making quite complicated linux app: i need it to show wheather usb device (phone) is connected. I have a procedure which would check if phone is connected, but i need to somehow run in background to constantly (lets say every …

0
92
Member Avatar for waldchr

Hi I am relatively new to c++ but have written a program that would benefit from a little background music. I need it to be mp3 format. I am using dev c++ on windows XP. can anyone help?

Member Avatar for waldchr
0
211
Member Avatar for &rea

Hello, I have been using C++ for not so long and today I have find a problem that I know it is not difficult but I haven't done it before so I have no idea. I have a matrix(System::Drawing::Drawing2D::Matrix^ L) and I want to apply this property OffsetX. since now …

Member Avatar for &rea
0
55
Member Avatar for ninjaneer

I feel it's time to cast my line in here... I'm just about to embark on some GUIing myself and I have but one requirement thus far: I must be able to use cWinThreads or inherit from cWinThreads in order to control my processes. My program will be used to …

Member Avatar for Ancient Dragon
0
272
Member Avatar for Thew

Hello, I have some problems [U]always[/U] when I'm trying to work with pointer-to-function. I need to create some that can be called from another class. But maybe I don't know how to make it. This is the code I've written: Editor[.h] [CODE=C++] //... // UIRWin is the class that I …

Member Avatar for Narue
0
241
Member Avatar for dreweight2001

Hi. I need help regarding my homework. My professor has asked us to design a C++ program that will run in batch mode using Linux redirection. Input will be read in a data file. If characters in data file are valid, we may assume that the rest of the required …

Member Avatar for joshmo
0
141
Member Avatar for Prathvi

Hi all, I am here with a problem. I am reading a file from Internet. For Example index page of "www.google.com". Once i read it I must write it into a file & I'll use this later. The problem is that The read file is written completely into file. I …

Member Avatar for Ancient Dragon
0
210
Member Avatar for Percey

Hello, I am trying to create some bidirectional communication with a printer, and I am having a little problem. I was originally working with a HP Color LaserJet 2820, which does not support bidirectional communication, so the error that I was getting (ERROR_NOT_SUPPORTED), makes sense. I've since switched to a …

Member Avatar for mitrmkar
0
339

The End.