132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Postal Elf

I'm having difficulty determining the correct size of a JDesktopPane. The following code tells me that the size of the pane is 0 x 0 //Inside a JFrame JDesktopPane myDesktop = new JDesktopPane(); this.setContentPane(myDesktop); System.out.println(myDesktop.getSize()); However, after looking in the source for GridLayout.java, virtually identical code is used. //Inside GridLayout.java, …

Software Development java java-swing
Member Avatar for server_crash
0
500
Member Avatar for buggytoast

Well the title prett much tells you what error I have XD... so far.... [PHP]JLabel label1 = new JLabel( "AIRLINE RESERVATION", SwingConstants.CENTER ); JPanel panel1 = new JPanel(); panel1.add( label1 ); tabbedPane.addTab( "RESERVING", null, panel1, "FirstPanel");[/PHP] then heres the problem.... [PHP]mealComboBox = new JComboBox( meals ); panel1.add( mealComboBox ); mealComboBox.setBounds( …

Software Development java
Member Avatar for server_crash
0
150
Member Avatar for elephant

I'm very new to to VB.net but have worked in vb6, I have recently tried to install vb.net standard edition. It installs fine with no errors but I am unable to make the content display in either msgboxes or listboxes. here is a sample of the code I am trying …

Software Development display vb.net
Member Avatar for elephant
0
158
Member Avatar for grc1uk

Hello I now have a working script that displays a .htm file when a user logs on to their computer. (thanks to alot of help from a member at this site!!). My next issue is that because a lot of my users are using CITRIX for work, then they are …

Software Development vb.net
Member Avatar for grc1uk
0
212
Member Avatar for jure

Ive made a program in .sh that flushes urls with topic into standrard out, now i want to make that program do the same as a c++, please help any 1 basicly i need the program to "download" urls with matching topic from the site... :idea:

Software Development c++
Member Avatar for c_raj
0
145
Member Avatar for cx323

[code]Private Sub LoadList_Click() lstList.Clear CmDialog1.DialogTitle = "Load Your List" CmDialog1.InitDir = App.Path CmDialog1.flags = &H4 CmDialog1.Filter = "Lists (*.txt)|*.txt|All Files(*.*)|*.*" CmDialog1.ShowOpen Call xLoadList(CmDialog1.FileName, lstList) End Sub[/code] when i try to compile my program it says "argument not optional" and highlights "Call xLoadList". will someone help me with this? thanks

Software Development visual-basic
Member Avatar for cx323
0
174
Member Avatar for feda

hi , i need function to calculate primitive root for prime q that if i choose prime number q then a which is primitive must satisfy that a%q ,(a pow 2 )%q , ...... (a pow i )%q = distinct integers betwwen 1 & q-1 that 1<i < q-1 and …

Software Development c++
Member Avatar for murschech
0
212
Member Avatar for maherddd

I would deeply appreciate it if someone can help me with this program because I have no idea how to do it and I need to get it done very soon. I appreciate any bit of help ,and thank you all _________________________________________________________________ Write a program that simulates rolls of two …

Software Development c
Member Avatar for Dave Sinkula
0
200
Member Avatar for skprasat

Any1 plz help me.im new to this site and a begineer of C.... this may be stupid ques to ask.. char msg1[20]="hello"; char msg2[20]="welcome"; char msg3[20]="goodnite"; can i store these three arrays in one sigle array....not in pointers. ie in..... char result[50]; i need the result like this.. output: hello …

Software Development c++
Member Avatar for Dogtree
0
264
Member Avatar for TimC

Dear All. Basically I am having trouble passing my class object to myQueue. I know my Queue works as I had it working for Integers and Charachters but after approx 25hrs over 4 days I still can not get my Object to store in my Queue. Any and All help …

Software Development c++ queue
Member Avatar for winbatch
0
203
Member Avatar for done

hope someone can help-i am working on a radio telescope and need to input data thru the parallel or serial port into a computer and have the computer display said data.i would like to use qbasic altho nominal i do have some experience in qbasic. i have seen refferences to …

Software Development display qbasic
Member Avatar for Comatose
0
152
Member Avatar for coolgal_neha

hi i am a newbie here and i have a school project to make on cafe management and it is an eating cafe . wat i wanted to know was is making a progress bar in vb only possible in vb.net or is it possible throught vb6 also .2)i wanted …

Software Development vb.net visual-basic
Member Avatar for Comatose
0
197
Member Avatar for ultimate_fusion

I am at uni doing computer science and interested in game programming. i just have a few questions . . . are most games programmed in C++? how long will it take to learn i mean to get good enough to do a game like dig dug (a classic man)? …

Software Development c++
Member Avatar for amura97
0
187
Member Avatar for Londos

I need to produce two methods for a class. The method name and details are given but i dont know how to create the code for them to work: 1st: public int daysElapsed (int day1, int month1, int year1, int day2, int month2, int year2) This method returns the number …

Software Development java
Member Avatar for Londos
0
121
Member Avatar for typek

I'm searching for some resource script editor where can i make menus and dialogs and save it to the *.rc files. Just like one in Visual studio, but free. I found only editors exporting *.res files that are unusable (in Dev-Cpp). Do you use Visual Studio, or something else? Thanks …

Software Development c visual-studio
Member Avatar for typek
0
147
Member Avatar for Acidburn

I'm wondering if i can create a program that reads texts file. In the text file is c++ code ... could that be compiled in the running exe? So basically you'll have somehting like this in this first file: [php] #include <iostream> #include <fstream> using namespace std; int main() { …

Software Development c++
Member Avatar for xiaoyueer
0
106
Member Avatar for PatrikK

Hi , I have been trying to use the win32::API:Struct for a while and mostly it works fine :) However i have ran into trouble with using structs within structs ... I dont know how to retrieve values from the nested struct .. example: [code] Win32::API::Struct->typedef('MDS_Forwarding', qw( char Address[257]; char …

Software Development api perl
Member Avatar for PatrikK
0
250
Member Avatar for Tyreses

Open App.Path & "\irc\files\channel.txt" For Input As #1 This is generaly the same thing i used on all of he opening files. It says it cant find the file/directory, and ideas on what else to ue for a wildcard directory?

Software Development file-system visual-basic
Member Avatar for Comatose
0
114
Member Avatar for evil_dude_01

Hi can anyone tell me if i can write a string to a text file without it having the " Quotes at either side of the text "? I'm trying to input a line of text from a text file, change it and rewrite it. Example //(adt|dclk)\./ //ccas(\.clearchannel|_media/)/ would become …

Software Development visual-basic
Member Avatar for evil_dude_01
0
217
Member Avatar for Dark_Omen

Ok, I am trying to read data back from a database, when I build my program it throws an error saying: "No overload for method 'SqlDataReader' takes '0' arguments." Here is the code from the program: [CODE] [size=2]SqlDataReader existsRdr [/size][size=2][color=#006400]= [/color][/size][b][size=2][color=#008b8b]new [/color][/size][size=2][color=#191970]SqlDataReader[/b][/color][/size][size=2][color=#006400]();[/color][/size] [size=2]existsRdr[/size][size=2][color=#006400].[/color][/size][b][size=2][color=#191970]Read[/b][/color][/size][size=2][color=#006400](); [/color][/size][/CODE] Anyhelp would be great. Thanks in …

Software Development sql
Member Avatar for Dark_Omen
0
131
Member Avatar for kaoru

Hi all, after coming upon this forum and reading some of the posts I have decided this would be my best place to go for help and info. Well first off I’m a 3rd year CS major and have fairly extensive C/C++ experience. I came here looking for help on …

Software Development assembly
Member Avatar for Evenbit
0
120
Member Avatar for nathanpacker

Hi everyone, I have had great success with those who helped me get my guestbook working in being able to post large amounts of text. Now I have one other problem I'm trying to figure out. I'm using the perl guestbook from Matt's Script Archive to allow users at my …

Software Development email first-post perl
Member Avatar for Comatose
0
343
Member Avatar for yassar

I formatted my computer today, now I can't compile the files from command prompt, but I can run the compiled ones. How can I solve this problem :o :o :o Thanks

Software Development java
Member Avatar for server_crash
0
193
Member Avatar for madt

i have the following for my operator overload [code]fraction fraction::operator+(const fraction& object)const { fraction temp; temp.a = a*object.b + b*object.a; temp.b = b * object.b; return temp; } fraction fraction::operator-(const fraction& object) const { fraction temp; temp.a = a*object.b - b*object.a; temp.b = b * object.b; return temp; } fraction …

Software Development algorithm c++
Member Avatar for Dave Sinkula
0
260
Member Avatar for belama

Right now, I have a project with a class of a custom control. I also have a project with an .aspx file and its back code that implements the control of my other class. In the control's class, I need to write code that will add some javascript in the …

Software Development file-system javascript web-server
Member Avatar for belama
0
139
Member Avatar for skprasat

Hi all, im new to this..... i want to send a doube to client...so im convt that to char and sendg that...it prits d exact value in server, but in client it doesnt print the decimal value... it just display like '123.' my code looks like.... [code] struct sockaddr_in server; …

Software Development c client-server display socket-programming
Member Avatar for Dave Sinkula
0
273
Member Avatar for ruwach

Hey there, i need some help with a simple cgi script. i cannot get it to write output to a file. here is the script. [CODE] #!/usr/bin/python import cgi form = cgi.FieldStorage() Customer = form['Customer'].value Field = form['Field'].value data = [Customer, Field] reshtml = """Content-Type: text/html\n <html> <head><title>Customer Data</title></head> <body> …

Software Development python
Member Avatar for ruwach
0
238
Member Avatar for hazzo

My Program : [code]#include <iostream> #include <string> using namespace std; void Reverse(string &InputString); void CharSwap(char& First, char& Second); void main(void) { string InputString; cout << "Please enter the string to reverse ==> "; getline(cin, InputString); cout << endl << "You entered the (" << InputString.length() << ") char long string: …

Software Development c++
Member Avatar for vegaseat
0
127
Member Avatar for grc1uk

Hello I have not had much programming experience especially with VBS. I have been asked to write a script which checks what AD group a user is in and then runs a specific drive mappings for that group and user, also i need the script to check the date. This …

Software Development vb.net
Member Avatar for grc1uk
0
444
Member Avatar for C. Raghuraja

In my project I am using vb6 and Oracle as backend. I am using Combo box and Item data (Name as display and id in itemdata) Now I am faceing problem. The Master records has grown 10,000 records. When I populating records from recordset it needs more than 1 to …

Software Development display oracle visual-basic
Member Avatar for Comatose
0
118
Member Avatar for indianscorpion2

hi i am a student of computer science.i am learning the c programming language.we spend all our time writing programs which tells itself a secret like adding numbers,kid stuff etc. i want to know the real thing.can anyone tell me what are the real time applications of C.?

Software Development c++
Member Avatar for letmec
0
184
Member Avatar for freesoft_2000

Hi everyone, I have a jtextpane with a styled document and i am using the rtf editor kit. Is there a way in which i an insert a html table into this styled document. Sample codings would be helpful Thank You Yours Sincerely Richard West

Software Development java
Member Avatar for server_crash
0
169
Member Avatar for JoBe

Hello ladies and gents, Ive got a question concerning how to actually send a program to someone (only the exe.file) so that he/she sees what the program can do without having the possibility to alter anything towards the code itself? I'm using Microsoft Visual C++ 6.0 incase you need to …

Software Development c++ microsoft
Member Avatar for winbatch
0
118
Member Avatar for amsnme

hi....can anyone pliz tell me how to go about converting numbers to letters on a telephone keypad...... eg when we txt..and suppose we type in 4663,we can get hood,home,good,gone....etc... got a project due!!!!!!!!! prefer it in C

Software Development c
Member Avatar for Dave Sinkula
0
211
Member Avatar for mrmike

Just got a quick question I know how to assign arrays using the DIM command, but I want to give the array a set of constant figures that will never change Under Delphi I would use the following when declaring the array at startup var myarray :array[0..8] of integer = …

Software Development delphi visual-basic
Member Avatar for mrmike
0
2K
Member Avatar for UltimateFreq

Hi all, This along with many of the other questions on this forum is from a noob at both the forum and java and was hoping someone could please help me. What im trying to do is read some info from a file and then store it in a linked …

Software Development java linked-list
Member Avatar for UltimateFreq
0
185
Member Avatar for developerszone

Hello guys, Can someone gv me a Code, to a shutdown script automaticall ? i 'm a newbie, just created a billing software interface.. i created my menus.. File---->> this want i want if any of client..clicks on File menu and click on shutdown.. i want the system to shutdown …

Software Development user-interface visual-basic
Member Avatar for Comatose
0
206
Member Avatar for calibill

Hey everyone, I am a true beginner programmer, in the crunch of finals week. I need to create a GPA calculator and I am having some difficulties. Anyone who can should help me!!!

Software Development c
Member Avatar for Dave Sinkula
0
184
Member Avatar for gambale

Can any help me with this program?? Problem statement: Develop and test a program to read the boot sector of a floppy disk, print the significant parameters therein, find the root directory and print its nonempty entries. You will need to use the BIOS system calls INT 13H, function 02H …

Software Development java
Member Avatar for server_crash
0
186
Member Avatar for B-80

i am making a program that makes java commands similar to c++ ones, i am trying to use an endl statesment as well, it works if i just type c.endl(); but if i use the endl in my actual string it doesnt like this: System.out.print("helloendl"); Also when i use my …

Software Development java
Member Avatar for server_crash
0
106
Member Avatar for Prahaai

Anyone knows what are percents... Some event has some chances to happen. From 0 to 100... if the percent is 0 it means zero chances to happen. 100 means it will happen every time. 50 statistically means it will happen half of times... But HOW can someone give x/100 chances …

Software Development c++
Member Avatar for Dave Sinkula
0
268
Member Avatar for edelstahl

So here's a pretty basic question. How do I access a file using C++? I want to be able to have the text file typed into the window of the program. I want to be able to write a string variable to a file, too. And another question, maybe not …

Software Development c++
Member Avatar for Dogtree
0
1K
Member Avatar for madt

I have the following assignment due: Design a class -say, fraction - that performs the arithmetic and relational operations on fractions. Overload the arithmetic and relational operators so that the appropriate symbols can be used to perform the operation. Also, overload the stream insertion and stream extraction operators for easy …

Software Development c++
Member Avatar for Dave Sinkula
0
273
Member Avatar for pmakanga

Hi, Could anyone out there give me some help in using selectionformula or any other method in printing a report. I have designed a program in vb 6 and i want it to select flight No details and Date using crystal report 8. I have used the following code but …

Software Development visual-basic
Member Avatar for pmakanga
0
134
Member Avatar for winbatch

The following works on solaris, but doesn't compile on windows visual studio 6. is there a way to do this differently so it compiles in both places? In ComandLineArg.h ------------------------- class CommandLineArg { private: ..etc.. static int longestDescr; ..etc.. }; In CommandLineArg.cpp ------------------------------- CommandLineArg::longestDescr=0; Error on visual studio: error C2501: …

Software Development c++ storage visual-studio
Member Avatar for winbatch
0
696
Member Avatar for Kus

Hi, im pretty new to c++ and i have created the program below, and for some reason it sets 1 or 2 arrays right then the rest just 0's, when it uses the same code, and the data is getting threw to the calls etc... i have no idea why …

Software Development c++
Member Avatar for Kus
0
338
Member Avatar for NewbyChic

I am stuck on this big time, I have been floundering here for like 4 hours and if anyone can help I would be SO grateful, I have this program that I have to write that I cannot grasp. I know ya'll dont like to have us noobs posting our …

Software Development display java
Member Avatar for NewbyChic
0
220
Member Avatar for usausa

Hi, Can someone plz help me with copying the files contents into an array. the file contents maybe like... doit.dsp doit2.dsw doit3.cpp I want them to be copied to an array. Thank you

Software Development c
Member Avatar for Dogtree
0
134
Member Avatar for Ghost

Hi Everyone, I was wondering if there's a way to write a program that tells console to do certain commands. I think you can do it by using a function and writing the CP command as a string for the arguments. Thanx in advanced for your help!

Software Development c
Member Avatar for Ghost
0
98
Member Avatar for Khishin

When using the Form1.KeyDown, keystrokes don't seem to register. For example, the Click works fine: [code] Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click MsgBox("Hello") End Sub[/code] That will display the message box when the form is clicked, but if you change it to: [code] Private …

Software Development display vb.net
Member Avatar for makatzena
0
390

The End.