132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Black Magic

Code Should Explain It self.. [CODE=C++]#include <iostream> using namespace std; int main() { unsigned int digit; for( digit = 0; digit < 10; digit++ ) { /* I WANT THE OUTPUT TO CARRY ON UNTIL DIGIT == 10 & OUTPUT * ** *** **** ***** ****** ******* ******** ********* ********** …

Software Development c++
Member Avatar for William Hemsworth
0
101
Member Avatar for TheWhite

I'm trying to add a KeyListener to my JFrame, but it doesn't seem to work when I have a JButton floating around [code=Java]import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Testing extends JFrame implements KeyListener{ public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); …

Software Development java java-swing
Member Avatar for TheWhite
0
1K
Member Avatar for daviddoria

I'd imagine there is a much better way to do this... [code] vector<double> Model; //code to fill Model vector<double> V1; for(int i = StartModel; i <= EndModel; i++) V1.push_back( Model.at(i) ); [/code]

Software Development c++
Member Avatar for Narue
0
148
Member Avatar for computer engW

Hi, When i write any code has if else statement , and run it na error appeatrs and say that else doesn't match with if [U]or[/U] illegal else without matching if. I don't know where is the problem exctly ,and you should know that i don't put } in these …

Software Development c++
Member Avatar for computer engW
0
98
Member Avatar for edek

Hi, I need to create list of links, like: Link1 Link2 Link3 ... which could be dynamically created during runtime. Is there any standard .Net control that can contain LinkLabel objects so that I can easily add them and remove?

Software Development c#
Member Avatar for Ramy Mahrous
0
97
Member Avatar for virendra_sw

Hi, We have developed one application which is developed in VB .Net in VS2003,VS2005 and VS2008 version. The application which is build in VS2003 and VS2005 are perfectly worked in Vista except for application developed in Visual studio 2008. This application is accessing the registry. It giving error only application …

Software Development vb.net visual-studio
Member Avatar for Ramy Mahrous
0
62
Member Avatar for Run.[it]

Im trying to carry out input validation on a piece of code and have come across an issue. Basically for the 1st input I used getline for the string and then for the 2nd input I use cin for the integer. I am aware you can convert the integer from …

Software Development c++
Member Avatar for Run.[it]
0
182
Member Avatar for Diode

Hello, I am trying to output simple sound through the internal computer speaker. Is there a way to output certain sounds and control the frequency of the sound as well as the time it lasts? I'm using Windows XP Pro but is there a "standard" way to do this? Thanks …

Software Development c
Member Avatar for jephthah
0
9K
Member Avatar for rob_xx17

Hello, I have a relatively straight through program where I collect some integer data and pass it to an external file. The problem that I have is that what I really need to do is to pass that value divided by another integer (255 to be more exact). I tried …

Software Development c
Member Avatar for jephthah
0
97
Member Avatar for tactfulsaint

Please everyone i need some help here, why do i keep getting this error . i want the informations submited to the database. C:\RMI\Client>javac *.java CustomerInformation.java:121: ';' expected String insertDetails(cid, name, dob, cms, address, city, state , zcode , cnum, nod); ^

Software Development cms java
Member Avatar for Ezzaral
0
62
Member Avatar for maafipau

The problem is I am not very educated in Qbasic and my teacher has given me a project of making a hangman game. But I don't know how to so please I need your help. I need a simple hangman game with figure of a hanging man using line and …

Software Development qbasic
Member Avatar for Narue
0
385
Member Avatar for daviddoria

I want to do something like this [code] #include <string.h> #include <iostream> using namespace std; int main() { MyFunc("test"); return 0; } void MyFunc(const char* Filename) { cout << strcat(Filename, ".tst") << endl; } [/code] but it tells me that my const char* cannot be used where it is expecting …

Software Development c++
Member Avatar for Narue
0
106
Member Avatar for joma4real

Please I need a site where i can download Visual c++ free. I prefer the offline version of this download. Or give me a guide line on how i can use borland c++ to create a form for my program. You can email me at [email removed] Thanks

Software Development c++
Member Avatar for Narue
0
57
Member Avatar for Nemoticchigga

[CODE]String^ comPort = "COM" + this->RS232CommPortNum->Value; int baudRate = Convert::ToInt32(this->cbBaudRate->Value); com = gcnew SerialPort(comPort, baudRate); try { com->Open(); } catch (...) { ::MessageBox::Show("Invalid Port"); }[/CODE] How do I handle this excepion thrown when the com number is not valid? When I run the release version it has an error when …

Software Development c++
0
63
Member Avatar for edek

Hi, I have two datatables: Projects and Employees. [ICODE]Projects[/ICODE]: ID NAME EMPLOYEES [ICODE]Employees[/ICODE]: ID NAME I need to connect one project with multiple employees. Do I need to dynamically create separate table '[ICODE]RelatedEmployees_<unique number here>[/ICODE]' and store this table's name in field [ICODE]EMPLOYEES[/ICODE] of table [ICODE]Projects[/ICODE] to achieve this??? Please …

Software Development
Member Avatar for JerryShaw
0
70
Member Avatar for frijole

I have just modified a script that notifies you when you have a new gmail message. Right now it just print out "you have a new gmail message" But, I would like to use some sort of graphics or something. I have zero experience with this though. Any ideas where …

Software Development python
Member Avatar for frijole
0
185
Member Avatar for mark192

Hi I need some help with a loop I want a random number to be generated that is not equal to 3 different, and previously defined variables. The loop I have is like this one below [code] random = randomNum.next(0, 10) while random = first or second or third random …

Software Development vb.net
Member Avatar for lich
0
118
Member Avatar for DREAMER546

hi i'm having a problem when i use pointer to pointer i've tried my best to make this work .. but it didn't i've got a run time error! PLEASE .. Please .. please i need help :'( if any one have tutorial about how can i work with pointer …

Software Development c++
Member Avatar for DREAMER546
0
131
Member Avatar for devaradhan

Hi friendz am new to this community and am a atudent, 1st year IT.. Do anyone know how to save the background? i.e. in word wen v open 'open' dialogue box the background behind the box is not affected. how to do this? Also i hav a problem with buffer... …

Software Development c++
Member Avatar for Duoas
0
73
Member Avatar for toolbox03

How to I read in a text file ignoring the digits, just want the text in the text file Any sample code?

Software Development c++
Member Avatar for Duoas
0
92
Member Avatar for veledrom

Hi, How can i call a Oracle Stored procedure in vb6? Stored procedure : [code]ADD_SP (1, '1', 1, 1, 'abc')[/code] Thanks

Software Development oracle visual-basic
Member Avatar for veledrom
0
139
Member Avatar for jephthah

so... whatchyallthink? i notice that this forum gets a tiny burst of activity about once a week. before posting this thread, the last couple posts here were made 9 days ago. then the next few were 17 days ago. and this pattern seems to be the same with other multi-language …

Software Development perl python
Member Avatar for Major Major
0
263
Member Avatar for :-)

Hi guys ! I'm currently reading "Programming Ground Up" by Jonathan Bartlett ([URL="http://www.amazon.com/Programming-Ground-Up-Jonathan-Bartlett/dp/0975283847/ref=sr_1_1?ie=UTF8&s=books&qid=1211474405&sr=8-1"]Amazon[/URL], [URL="http://savannah.nongnu.org/projects/pgubook/"]Book's page[/URL], [URL="http://download.savannah.gnu.org/releases/pgubook/"]Download Book[/URL]) The program toupper.s in Chapter 5 frustrates me to some extent :-) It's working fine, no problem. But There's a certain part, I just don't understand. Where does the computer know to start …

Software Development assembly open-source
Member Avatar for :-)
0
170
Member Avatar for Beemer

Hi all , I have successfully written a simple program to calculate the total points scored by backs and forwards against one another in a 18 person team, but I need to safe proof it against a person entering anything other than F/f for forwards or B/b for backs , …

Software Development c++
Member Avatar for Beemer
0
284
Member Avatar for D boss

hi guys, i have created a class which has a couple of buttons and each button calls a public class, class B4 is a button and it calls up the Printdata class, the Printdata class, then gets data from the database carpark and stores it into a file.txt as B4 …

Software Development file-system java java-swing
Member Avatar for D boss
0
114
Member Avatar for thekashyap

Hello Everyone, Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP... We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product. All the IE (information elements) are defined by standards, so we know everything abt every field in …

Software Development c++ http-protocol
Member Avatar for Yann Garcia
0
568
Member Avatar for chico1st

Hi I am getting an undefined reference error from my code here is a snippet of my code. [CODE] #include <stdio.h> #include <windows.h> //defining functions void ErrorFunc(int error); int error = 0; int main(void){ return 0; } void ErrorFunc(int error) { FunctionFromALibrary(error); } [/CODE] I am using DEVC++ 5 and …

Software Development c
Member Avatar for lich
0
85
Member Avatar for JochenM

hi folks, i need a library to analyse references of a scientific document. the lib should be able to identify references in the full text (for instance [1], [2], ... or Author A (1995), ... Author B & C (1968), ...) and it should be able to identify the elements …

Software Development algorithm c++
Member Avatar for JochenM
0
147
Member Avatar for gilly_kumar

Hi, After 7000-8000 loops, i.e after 2-3 days, there is a runtime error because malloc failed.We identified that the error was occuring malloc function tires to allocate ~250k bytes of data. Then on analysis, We listed few possible items where malloc could fail 1. Fragmentation 2. Memory overwrite or overflow …

Software Development c
Member Avatar for lich
0
274
Member Avatar for Arijit Manna

Hi, Iam working on [B]WPF DataGrid (dev. by ComponentOne)[/B] with [B]Visual Studio 2008[/B]. I wish to provide facility to user to select "Columns" of a Table using ListBox(if possible, by clicking on Checkboxes within the ListBox) and the Report will be generated for those selected "Columns" only. [I]Selection to be …

Software Development vb.net visual-studio
Member Avatar for Arijit Manna
0
133
Member Avatar for FreezeBlink

At various points in my text-based programs, I've had to write a function for use in multiple-choice menus. It needs to have the following qualities: [list][*]Ignores non-number input, repeating the request if it is given a string. [*]Can be given upper and lower limits on the acceptable numbers, repeating the …

Software Development python
Member Avatar for rikxik
0
88
Member Avatar for yanz

Hi everyone here.. Currently i m doing my project which i needed codes for receiving sms by PC using vb6. I would like to knOw if there is any expert who have the codes.. if there is..can send the codes to mi.. thanks alot... I have been trying so many …

Software Development visual-basic
Member Avatar for elleinad
0
621
Member Avatar for FreezeBlink

This is probably totally absurd, but...is it possible to, through Python, access the command line and use it? For instance, write a program that outputted all of the files in a given directory, much like cd [directory] dir would?

Software Development python
Member Avatar for rikxik
0
195
Member Avatar for Kadence

I'm a C++ beginner. What's an easy to use (in terms of both installation and use in code) library for using MySQL in C++? Is there one that's a lot more commonly used than others? Note that I'm using MySQL 4.1.22 on GNU/Linux. I've found the following: [LIST] [*][URL="http://dev.mysql.com/doc/refman/4.1/en/cplusplus.html"]MySQL++[/URL] [*][URL="http://www.sqlapi.com/"]SQLAPI++[/URL] …

Software Development c++ mysql
Member Avatar for Kadence
0
714
Member Avatar for nasirgul

Hello, I am new to C#. I want to know one thing. How can I get value from text box(or update text box value from another thread) while working on C# Threading. I tried but cant able to get. Below is the code. I want to use text box values …

Software Development gui
Member Avatar for Ramy Mahrous
0
183
Member Avatar for dan_e6

hey guys. ive created this function that will delete the first element it finds in a linked list that has the value n in it. it works except when the number is the FIRST element in the list. it wont delete it, it will replace it with a 0 when …

Software Development c++ linked-list
Member Avatar for John A
0
107
Member Avatar for sonia sardana

het frnds I faced the foll. interview questions on Vb.net. Plz reply i want to just confirm my answers- Give reply if mine answer is wring. 1)How many Compilation levels are there in .Net Framework a)One b)Two c) Three I WRITE---TWO Mine ANSWER IS RITE OR WRONG 2)There are different …

Software Development assembly dataset vb.net
Member Avatar for Arijit Manna
0
253
Member Avatar for DinoSauro

I am trying to "hear" mouse events in windows, and made a mouse hook. But I think for security reasons, every time I open Internet Explorer on any site that uses the protocol https: / /, the hook is down, and return when I leave the secure url or close …

Software Development c++
Member Avatar for michaelHuo
0
109
Member Avatar for Phan

I don't know if I am in the right forum for this, but it does pertain to c++ programming, so I'll post it here for now since everyone is very helpful (most of the time). We are doing a summative project on c++ and it can be any type of …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for cmdolcet69

Does anyone know of a way to translate english to spanish text in a vb 2003 application form? I read about the global localization in 2005 however everytime I tried it it would never work. Any suggestion?

Software Development vb.net
Member Avatar for ShadowMaster215
0
156
Member Avatar for buddy1

I have this program I have to write about adding binary numbers. Here is the write up: "Defining a binary number as int binNum[8]; write a C++ function void binaryAdd(int* sum, int& cBit, const int* bin1, const int* bin2) to compute sum as the sum of the two binary numbers, …

Software Development c++
Member Avatar for buddy1
0
265
Member Avatar for Triggerhappy41

Hi, beginner here making the move from Java to C++ and having troubles (of course) with const and pass-by-reference. I'll show you the code I'm working on: Card.h: [CODE]#include <iostream> using namespace std; class Card { friend ostream& operator<<(ostream& out, const Card& c); public: Card(char aSuit, int aPower); void setSuit(char …

Software Development c++
Member Avatar for Triggerhappy41
0
145
Member Avatar for kllera

I'm dividing integers and making it a temporary double so i can get it in a decimal. To have it with a fraction i just divide the numbers and cout the answer with the mod answer "/" num2. I want to display both the fraction and in decimal, so.. for …

Software Development c++
Member Avatar for Duoas
0
138
Member Avatar for nu2cpp

Hi, I am developing my program on a different machine but then I take the executable to a different machine to run. The program gets data over the serial port that I write to a file for later analysis. My problem is that when I run the program on the …

Software Development c++ file-system
Member Avatar for John A
0
134
Member Avatar for nu2cpp

Hi, I have a Timage on a panel and I want to draw a cross on the image as I move my mouse on the image. I am drawing the cross using the canvas of the image. The drawing of the mouse works fine but the problem I am encountring …

Software Development c++
Member Avatar for nu2cpp
0
204
Member Avatar for nclouse

I am working on a TCP socket server for a client and i am having a problem. Everything works except for one thing: i can't figure out how to have the server tell the client that the server is going down. I have the SocketServer running as a windows service. …

Software Development client-server python windows-server
Member Avatar for ich1
0
199
Member Avatar for frijole

I have a script that I would like to repeatedly run every 30 seconds, does anyone know how to do this? Also, a side question. Is it possible to have the output form the previous run replaced by the new output? Instead of it all stacking up every time the …

Software Development python
Member Avatar for frijole
0
1K
Member Avatar for jbennet

My bootsector is meant to print something - it does, but wierd characters follow it? e.g the spades symbol [code] ; Boot.Asm ; Tell the compiler that this is offset 0 - it isn't offset 0, but it will be after the jump. [ORG 0] jmp 07C0h:start ; Goto segment …

Software Development assembly
Member Avatar for jbennet
0
118
Member Avatar for k2k

would anyone please tell me how i cp the whole directory to another directory without the originalDir name.... ex: say the original contains multiple directory contains multiple directory.. and files how do i copy everything from one directory to another directory i tried cp -r /home/henry/originalDir /home/henry/newDirectory..... however my newDirectory …

Software Development shell-scripting
Member Avatar for Salem
0
93
Member Avatar for frijole

I hava s script that runs continuously and checks my mail but I would like to add some way to kill the script. With a control+something, is there any way to do that?

Software Development python
Member Avatar for Freaky_Chris
0
103

The End.