132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for teddyg18

I have a program in which i open a a text file, access it's values and create and array with it. for example the text file may contain these values: 1 44 3 4 33 6 7 8 61 10 ; that's 10 integers what c++ tools could i use …

Software Development c++
Member Avatar for teddyg18
0
6K
Member Avatar for JakShelar

I want to create fairly simple custom control that has group box and checkbox on it. This control should act as normal groupbox control ... user should be able to drag it onto form and then add some other controls to this groupbox (by draging thom on groupbox)... i managed …

Software Development
Member Avatar for ddanbe
0
89
Member Avatar for ragnarok511

I am having trouble with a project that is used to create a simple library database. The code does compile but during runtime, it throws a nullPointerException. It points to addBook in my main method. Here is my code: [code]public class Library { Book[] books; int numBooks; String address; static …

Software Development java
Member Avatar for ragnarok511
0
365
Member Avatar for VernonDozier

OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the …

Software Development java java-swing os-x
Member Avatar for VernonDozier
0
1K
Member Avatar for noamco

I have a strange bug in vs2008. ostream open fails when called in the following manner: [CODE=c++]ofstream filestr; filestr.open((filename.c_str()),ios::in|ios::out);[/CODE] when called like this it works without a hitch: [CODE=c++]ofstream filestr; filestr.open("blahblah.txt",ios::in|ios::out);[/CODE] Any ideas? Thanks

Software Development c++ ios
Member Avatar for noamco
0
177
Member Avatar for iamwa

i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!!

Software Development gui java web-browser
Member Avatar for saggy4
0
112
Member Avatar for tdeck

I've managed to figure out how to create tables in a dataset, fill them with data, and link one of those tables to be displayed in a DataGridView. It works great when the selectionmode is by row, row header, or cell, but unfortunately for this project I'd like the user …

Software Development dataset
Member Avatar for tdeck
0
145
Member Avatar for monkey_king

Hi I got a code that in pseudo dos something like [CODE] ifstream os; while(os.oef()){ os.getline(buffer,length); } [/CODE] If some condition is met, I'd like to be able to jump back to the previous line, such that the next getline will give the line just-read in, at a later time …

Software Development c++
Member Avatar for tux4life
0
482
Member Avatar for ronpaul53

I can quite honestly say I am lost, having learnt HTML during the past 2 years and trying to understand a bit about java, but find myself very confused. Yes could look in books but find them equally confusing the same as when learning HTML and preferred to do more …

Software Development api java microsoft-windows windows-api
Member Avatar for ronpaul53
0
176
Member Avatar for jakx12

I cant find a decent explanation anywhere! How can i use the serialport component in .NET 2008 to send and receive data. Also whats the common code syntax for this component. If any one could point me to a decent tutorial that would be great! Im fairly new to the …

Software Development vb.net
Member Avatar for jakx12
0
96
Member Avatar for mrinal.s2008

Hi, I have some questions on vector. Please consider the code below. I use g++ compiler on Linux. [CODE=c++] #include<iostream> #include<vector> using namespace std; class Sampler { int a; int b; }; int main() { vector <int> vec1; vector<float> vec2; vector<Sampler> vec3; cout << sizeof(vec1) << " " << sizeof(vec2) …

Software Development c++
Member Avatar for jencas
0
103
Member Avatar for jaymar_jmj

how to animate object in C#. moving from left to right or vise versa

Software Development c c# c++
Member Avatar for Ramy Mahrous
0
216
Member Avatar for Shaitan00

The age old issue of string parsing comes up again ... I have a text file that contains lines that are SUPPOSED to follow a set format, specifically: string, string, long string int string double int The delimiters are therefore: Comma (,) for the first two fields Spaces for all …

Software Development c++
Member Avatar for jencas
0
191
Member Avatar for baftjar

Task: Given input file A, translate the content to produce output file B Hi there, I need help in solving this domain problem. Any help will be appreciated. ====Scenario========== File A: Consists of multiple lines of data whereby each line is of form X;1.9,2;3,4.3; 5,6 Output file B, should consists …

Software Development java
Member Avatar for masijade
0
85
Member Avatar for anubhav400741

I have written a shell script below while running this script , we have to give inputs manually, now i want that we are getting inputs in excel file ..can we automate this , this was a project for me , i am alreday late ..please help me soon [code] …

Software Development shell-scripting
Member Avatar for csayantan
0
138
Member Avatar for anish.anick

Hi All, I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in [url]http://forums.asp.net/t/268037.aspx[/url] and [url]http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx[/url] but the mail was not …

Software Development asp.net c# email
Member Avatar for kvprajapati
0
3K
Member Avatar for multicoder

Hi, I have a strange situation to tackle.I have a paging for the website I am developing. there are few records in the table which i want to skip from to display in my list in the web page. But paging works on the total num rows as using mysql_num_rows(resultset)

Software Development java php
Member Avatar for multicoder
0
107
Member Avatar for Naruse

i want to playing mp3 file with vb.net. how can i do this? regard Naruse

Software Development vb.net
Member Avatar for plusplus
0
1K
Member Avatar for narendra_dani

hi i have completed my project in c# in visual studio 2008 i have used shockwaveflash for playing .swf files its working fine .., i have done setuped the project with all prerequests given .netframe work and windows installer all except the shockwaveflash. so i want i want to check …

Software Development flash visual-studio
Member Avatar for sknake
0
151
Member Avatar for j15

Hello everyone, I am not much of a programmer but have some limited experience with vb.NET, so please bear with me. I have written the following code to create a dataset and fill it with three different tables, one of which is empty to begin with but is populated successfully …

Software Development dataset open-source vb.net
Member Avatar for jetti
0
212
Member Avatar for Shaitan00

Not sure this is going to be easy to explain but ... I have a class (A) that needs to have access to a map (mapCodes), this map is the same for all instances of class(A), therefore I don't want to create an instance of the map for each instance …

Software Development c++
Member Avatar for jencas
0
141
Member Avatar for elidotnet

Iv'e been searching this website forums for the right answer but i didn't find. Im using VS2008 and want to build some application that working with microsoft access database. in the database i have one table call "customers" with the coulmns = "firstName", "lastName", "address" etc.. I want to make …

Software Development asp.net microsoft-access open-source
Member Avatar for elidotnet
0
136
Member Avatar for whotookmyname

[code] string s; cout<< "Enter name: "; cin >> s; cout<<"\n"<<s; [/code] on running this i need: Enter name: Tejesh Kinariwala Tejesh Kinariwala it is showing: Enter name: Tejesh Kinariwala Tejesh so how to get the input till user hits return key, instead of breaking it at space

Software Development c++
Member Avatar for whotookmyname
0
80
Member Avatar for anilopo

i've wrote a code that read and write to some files, and i have a segmentation fault when i'm running it in the g++ (in the visual studio i don't have any problem like that..) anyway, i think the fault may come from this line, can anyone tell me if …

Software Development c++ file-system ios legal visual-studio
Member Avatar for anilopo
0
87
Member Avatar for Darkmorgaine

Hi i have to make this work... [code=cplusplus] //INFO: -eingabeprüfung auf buchstabe/zahl // -eingabeprüfung auf zahlenbereich // -wiederholung einbauen vill... #include <iostream> using namespace std; int main() { int eingabe; cout<<"Geben sie eine zahl ein> "; cin>>eingabe; if(eingabe>0 && eingabe<13) { switch(eingabe) { case 1: cout<<"eins"<<endl; break; case 2: cout<<"zwei"<<endl; …

Software Development c++
Member Avatar for sotvisal
0
234
Member Avatar for davidnorth

Hello, I have a problem with my code and can't see what the difference can be. I am trying to change my JLabel text via a timer using .setText I have 2 small apps to demonstrate my problem. 1 - I have a JLabel within a JPanel within a JFrame, …

Software Development java
Member Avatar for davidnorth
0
566
Member Avatar for sweetsasthi

I need a help in designing form in vb.net. In my project I have to design a form to save the company's applicaton form details.the applicaton form is of two page.I have to make the form design catchy so that data entry is easy. A section in the application form …

Software Development vb.net
Member Avatar for Piya27
0
96
Member Avatar for Chris11246

im trying to make a little game and i cant find how to use the keyboard to control it what does the code look like?

Software Development vb.net
Member Avatar for Chris11246
0
81
Member Avatar for Tamir09

Ive managed so far with this code that amends data to an xml form, but I need to figure out how to remove the bit of code that amends data rather than overwriting it. Ive messed around with the code to see if I could manipulate it myself to get …

Software Development vb.net xml
Member Avatar for Tamir09
0
184
Member Avatar for lotrsimp12345

gives me error main /* The purpose of this lab is to open a text file and then make a copy of it */ #include <iostream> #include <fstream> #include "Interface.h" using namespace std; int main() { //open up file to be read from string input; ifstream in; cout<<"enter file name …

Software Development c++
Member Avatar for lotrsimp12345
0
201
Member Avatar for anusha88

hi,i have a unique problem.actually i wish to put a polarchart developed using JFreechart on the frame that already has components placed on it.What i want to do is to make the particular component overlap the polarchart. How can i do so? i thought of creating the polar chart using …

Software Development java
Member Avatar for kvprajapati
0
318
Member Avatar for mrnutty

Is there a way to reset the clock function?

Software Development c++
Member Avatar for mrnutty
0
118
Member Avatar for qkslvr1621

I'm trying to write a program that asks the user for a number between 1 and 10, then prints a line of that many “X"s. The program compiles, but I cannot figure out how to make the variable 'total' print X's instead of a the actual number, if that makes …

Software Development c++
Member Avatar for qkslvr1621
0
105
Member Avatar for derekn

Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then print that array. Thanks, Derek

Software Development perl
Member Avatar for onaclov2000
0
379
Member Avatar for TeamUSA

Hello everyone, I've been having a problem parsing through a .bin file. Ideally, I want the script to read the .bin file, find the first word in it, write down word 1 somewhere else, and continue on throughout the file, word by word. I've tried similar things such as open …

Software Development perl
Member Avatar for Fest3er
0
110
Member Avatar for Kadence

I'm having a lot of trouble finding enough RAM for a program I'm writing on Vista 64 Ultimate system, even though the system has 8GB RAM and only 2GB is used. I tried to see how many 10 million byte blocks I could allocate using malloc(), and the compiled program …

Member Avatar for jbennet
0
159
Member Avatar for kasimacsys

I have declare a array variable in module, i need to access this variable to ToolStripMenuItem_Click Event. but i can't, when type that variable it shows "Class 'System.Windows.Forms.ToolStripMenuItem' cannot be indexed because it has no default property" Please anyone help me

Software Development vb.net
Member Avatar for Teme64
0
185
Member Avatar for SuperErik

How can I send a string from php page to c# windows form using socket? Can you give me some example?

Software Development c# php
Member Avatar for kvprajapati
0
808
Member Avatar for ivanhuk

Help, am a c++ student who is completely stuck. I know that there are some stupid errors in this, I've been working all day on this and I still can't find them. I'm supposed to create a class, copy constructor, and than create an instance in main and then create …

Software Development c++
Member Avatar for ivanhuk
0
191
Member Avatar for mrgreen108

I have a slight homework problem that is giving me some trouble. We have to write the algorithm for subtraction using different bases as a possibility in a program that uses calculator registers. The following is the provided prototype: bool subtractRegisters( int registerX[], int registerY[], int registerZ[], int base ); …

Software Development algorithm c++
Member Avatar for vmanes
0
198
Member Avatar for peter_budo

Currently I'm creating application to work with PDF documents, just for challenge. I want to know if there is better solution to my idea of possible approach. I broke down application GUI to four main components toolbar with image icons, jpanel for thumbnail preview, jpanel for single page view and …

Software Development gui java pdf
Member Avatar for masijade
0
98
Member Avatar for eesmm

Newbie post. Please be kind. I am having terrible trouble creating a Audio VU meter user control in VB (Visual Studio 2008), and hoped somebody might be able to help. I need the simplest type of display - just a label on a user control where the width of the …

Software Development audio user-interface vb.net visual-studio
Member Avatar for forum@welbie.eu
0
465
Member Avatar for sgsawant

[COLOR="Red"]The program is given at the bottom[/COLOR] To compile java programs in the command prompt I use the following command: C:\jtemp\MyPack>javac AccountBalance.java -d . Only then are the classes compiled and I am able to run the main() function. When I execute the above command a folder "MyPack" is created …

Software Development java
Member Avatar for sgsawant
0
416
Member Avatar for kirennian

Hi there! With reference to the annoyance of this problem, I've spent some time searching the web as well as on here however, with few ways to extract useful threads from those less useful when typing 'RegSetValueEx int' or the like, posting was a final solution. Apologies if this type …

Software Development c++
Member Avatar for wildgoose
0
673
Member Avatar for rockyman12

Can anyone give me a qick review about Python Why its good ? Why its not ? What is the most suitable type of project for it ?? (application) And so one Thanks for your help

Software Development python
Member Avatar for Ene Uran
0
125
Member Avatar for joe82

Hello everyone, My file has text like: gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 95 20 1 0 68 87 31017559 31017578 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 91.67 24 2 0 63 86 35247737 35247714 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 91.67 24 2 0 64 87 40549054 40549031 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 92 24 2 0 63 …

Software Development python
Member Avatar for joe82
0
4K
Member Avatar for sivak

can anypone explain me string builder and string with good example ?

Software Development
Member Avatar for serkan sendur
0
109
Member Avatar for AnkitKumar

[code=c#] using System; using System.Collections.Generic; using System.Text; namespace selectionsort { class List { public int[] arr = new int[10]; public int[] arr1 = new int[10]; public int n,h1; public void read() { Console.WriteLine("array size should be less than or equal to 10"); Console.Write("enter the array size "); n = Convert.ToInt32(Console.ReadLine()); …

Software Development
Member Avatar for ddanbe
0
398
Member Avatar for kspriya01

Hi, i have one doubt regarding datagridview in windows. i can take one column named "Description". I enter rows more than one for that column. but i want set the size of the column,here my requirement is 500 size for that column. pls help me, how to set the column …

Software Development c c# c++
Member Avatar for serkan sendur
0
90
Member Avatar for zeus1216gw

how can I use a loop to sum random numbers together? it needs to be able to sum any amount of numbers determined by the user. I can generate the random numbers but adding them is a different story. I tried to make an inner loop (if that makes sense) …

Software Development c++
Member Avatar for zeus1216gw
0
100

The End.