43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Cross213

I have an array of objects but when i traverse throught it to display its contents, it gives an error, but only if it is not full. Any suggestions? Below is the code snippet: for (int k = 0; k < array.length; k++) { msg += String.format(array[k].toString()); } JOptionPane.showMessageDialog(null, msg);

Software Development java
Member Avatar for Cross213
0
306
Member Avatar for cooh

http://pastebin.com/esxAR3wY This is my source code here...It is simply too big and ugly to fit in here, so I used this site.. If anyone can paste the code into his compiler and help me I will be grateful. Everything works except for the "addEntry" function (and I am guessing "resizeArrayCopy" …

Software Development c++
Member Avatar for cooh
0
136
Member Avatar for renzlo

Hi, All, Is this possible? I want to copy the value of one cell in datagridview to the selected cells of the datagridview? See picture below: ![Untitled74](/attachments/large/3/Untitled74.png "Untitled74") Thaks in advance.

Software Development vb.net
Member Avatar for renzlo
1
134
Member Avatar for silvercats
Member Avatar for silvercats

more registers or something? I know about the advantages and disadvantages of 32 and 64bit bit what is the big difference between processors?

Software Development assembly
Member Avatar for silvercats
0
189
Member Avatar for silvercats

Under what architectures do assembly programs run? I mean,what processors can run the same assembly program? program written for p4 processor,on a core 2 duo ,core i3 .and core i 3 on a p4,p2 etc...... program written for an Intel processor on a AMD processor..... and i7 and a core …

Software Development assembly
Member Avatar for silvercats
0
222
Member Avatar for venkat arun

I am a recent immigrant from c++ to Java. I have this problem: I have an array of objects (not yet initialized using the new operator), that I need to pass to a member function of another class for storage. In c++ I would have made a pointer to the …

Software Development java storage
Member Avatar for sbp94
0
165
Member Avatar for GeekTool

How can i call ? i am so much confused now ? can anybody please help me ?

Software Development java
Member Avatar for NormR1
0
133
Member Avatar for sam63

What is the difference? Is one better than the other? How do you choose between the two? Why does one not need to instantiate when calling a static method?

Software Development
Member Avatar for MuhammadSaad
0
4K
Member Avatar for nagatron

Hello to all VB masters, I have a problem with the search command. I have a button name [B][COLOR="red"]"btnSearch"[/COLOR][/B] a text field name [B]"fldSearch"[/B] a table named [B][COLOR="red"]MSFlexGrid[/COLOR][/B] and a database named [B][COLOR="red"]db.mdb[/COLOR][/B]. The function of the search button is to search the data being entered in the fldSearch and …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
412
Member Avatar for Bile

Hello everyone, can some one help me with the code to create a folder by code in vb6,I am greatefull for Qvee72. The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
187
Member Avatar for Sendy Hipo

erm i got a bit problem with toupper(); example: char ch = 'a'; char upper; upper = toupper(ch); if i use cout to show char "upper", it shows the ascii code for uppercase.. in this case, it shows '65' in screen, i know it supposed to show 'A' instead of …

Software Development c++
Member Avatar for Sendy Hipo
0
131
Member Avatar for Lobster1071

Fairly new to the VB.NET world, but a long time Access and FoxPro programmer. I'm trying to do something that was extremely easy in Access, but can't believe it is this difficult in VB.NET. I populated a combobox with values from a mySQL table. I want to return a hidden …

Software Development microsoft-access vb.net
Member Avatar for raventara
0
1K
Member Avatar for kothaisaravan

Hi, I have c# Application running in my desktop(Windows XP) with Java web services and oracle DB . The Application includes a shipping screen which has a calendar window. When I run the application in my desktop it works fine. Client uses the same application. We access it through CITRIX …

Software Development client-server oracle windows-server
Member Avatar for kothaisaravan
0
113
Member Avatar for sammoto

Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double …

Software Development algorithm java
Member Avatar for sammoto
0
102
Member Avatar for Majestics

I am facing some problems in a project regarding to byte fetching from a file and storing. Problem in java bytes is they are number, instead of char. In file i have seen a byte is like a char... Also how to make bytes unsigned , because signed bytes creates …

Software Development java
Member Avatar for Majestics
0
198
Member Avatar for Gaiety

Hi, Can somebody please explain , printing with structure variable also working. int main( void ) { struct bitfs { unsigned char a:4; unsigned int b:5; }; struct bitfs bf = {15,31}; struct bitfs2 { unsigned char a:4; unsigned int b:5; }bf2 = {15,31}; printf("a= %u \n", bf.a); printf("b= %u …

Software Development c
Member Avatar for WaltP
0
110
Member Avatar for Sendy Hipo

i read c++ ebook, then i make a code to open a file using fstream and use ios::in flag here's the code : #include <iostream> #include <fstream> using namespace std; bool openFileIn(fstream&, string); int main() { fstream dataFile; if(openFileIn(dataFile, "sendy.txt")) { cout<<"succes"; } else cout<<"fail"; return 0; } bool openFileIn(fstream …

Software Development c++ ios
Member Avatar for Sendy Hipo
0
154
Member Avatar for Kremlin

Hey all, I have a JApplet that runs in browser and I can't get it to create a new JFrame popup when a button is clicked. It works fine in my IDE (Eclipse) but not when I upload it. Here's the code for the JFrame I'm trying to create: import …

Software Development java seo web-browser
Member Avatar for NormR1
0
452
Member Avatar for mie.ilani

anyone can help? i want to check whether the data has been exist or not. but its shows some error in this code. error :No value given for one or more required parameters. Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.KK3DB) Dim cmd As New OleDb.OleDbCommand Dim adap As New …

Software Development dataset open-source vb.net
Member Avatar for mie.ilani
0
110
Member Avatar for coder389

I have a long string of characters as input and I want to count the number of words in that string. How can I do it through regular expression?

Software Development
Member Avatar for Mitja Bonca
0
201
Member Avatar for wan632

i have previously created time using mktime and stored it in file, now the problem is how can i call it back and read as standard time, not an array. this is because i wanna make use of difftime function. here is my code sample: int ex(){ int typ; printf("\n\n\nEnter …

Software Development c
Member Avatar for wan632
0
115
Member Avatar for london-G

Hello, I have two linked tables in my database (access), one is for the student and one is the ages(selection drop list ). When I have transfered the data in vb form, a simple text box is shown with numbers in it. How can I have the drop down list …

Software Development linked-list vb.net
Member Avatar for Mitja Bonca
0
139
Member Avatar for Sendy Hipo

Hi! i have problems with input validation, so here goes the problem : Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment VideoNote Solving the Weather Statistics Problem Review …

Software Development c++ data-structure user-interface
Member Avatar for Sendy Hipo
0
420
Member Avatar for VernonDozier

I have an abstract class. I'm creating a large array in the base class, which appears to never be deleted because no destructor is called. My questions (obviously) are... * Why isn't a destructor called? * How do I fix it? #include <iostream> using namespace std; class A { protected: …

Software Development c++
Member Avatar for mitrmkar
0
271
Member Avatar for HTMLperson5

Is it possible to make a Python program which checks if a file exists, maybe like: #!/usr/bin/python if exist 'File.txt': print "File.txt exists!" else: print "File.txt does not exist :-(" Obviously the `if exist` code will fail, as it is not a python command, but is there anything like the …

Software Development python
Member Avatar for HTMLperson5
0
2K
Member Avatar for zur1ch

So i made another Code in C in which i am making a program to stop working when the Licence has ended. The Program Runs but lets say the date its suppose to end on June 20, 2012 so it triggers the Stop of use of the program. This is …

Software Development c
Member Avatar for zur1ch
0
100
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args) { String writtenStuff = "Hello i am bucky bucky"; int otherNum = 0; int length = writtenStuff.length(); int i; for (i = 0; i < length; i++){ if (writtenStuff.charAt(i) == 'b') continue; } }//end method }//end class Here is my code, …

Software Development java
Member Avatar for GeekTool
0
111
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args){ String writtenStuff = "someone was here!" + "here i am!"; int numP = 0; int length = yazi.length(); for (int i = 0; i < length; i++){ if (yazi.charAt(i) != 's') continue; ++numP; }//for end System.out.println("the total number of the letters …

Software Development java
Member Avatar for GeekTool
0
130
Member Avatar for 330xi

Hi! I'm working with word through my c++ application. And I want to read some documentation about available opportunities. I see some piece of code of some paticular situations (to add a picture, to add text, to save file, to fill table) in forums, but I want to observe all …

Software Development c++
Member Avatar for 330xi
0
348
Member Avatar for razree

Hi all I've been struggling with this one for some time now and I would realy appreciate some help. I have a string which gets data from mssql server, reader collects data (among others also "person) SQLStr = "select * from tablename order by id desc command = New System.Data.SqlClient.SqlCommand(SQLStr, …

Software Development listview mssql vb.net
Member Avatar for razree
0
2K
Member Avatar for london-G

I have started a database application just like an address book, however I would like to have the user to upload a picture that will show when the user click save. Any idea? Thanks alot

Software Development java
Member Avatar for seslie
0
136
Member Avatar for bhagawatshinde

Hi guys, How to sort hashtable keys in ascending order. I have 5 keys 1,2,3,4,5 and respective values are 10,7,8,6,9,5. but when i am displaying records it shows like this..... foreach (DictionaryEntry entry in srque) { MessageBox.Show("Key === " +entry.Key); MessageBox.Show("Value ===" +entry.Value); } the output i am getting like …

Software Development
Member Avatar for bhagawatshinde
0
3K
Member Avatar for themaj

Back on my form with a ton of financial data entry textboxes but I want to have the data formatted at runtime, as I enter the data. I have a format declared as Public Const cFmtCurrency = "##,###,###" ' don't need decimal for the local China currency What would be …

Software Development vb.net
Member Avatar for themaj
0
366
Member Avatar for fatalaccidents

Hey guys, I'm trying to use mpi4py on my mac but I'm running into some problems. I'm just trying to get it up and running by running a simple helloworld program that runs on different processors. When I run the command 'mpiexec -n 2 python helloworld.py' I'm getting a very …

Software Development python
Member Avatar for fatalaccidents
0
553
Member Avatar for TTTHXC

i have a function that is supposed to check a string against a set of types, stored as a hash set in the class o. however the function only works if there is one word. if the string conmtains more than 2 words, my program crashes with NullPointerException. public static …

Software Development java
Member Avatar for TTTHXC
0
103
Member Avatar for ollie60

Hi Recently I had the following error occur when the CImg destructor is called, 0xC0000005: Access violation. It occurs at the end of the function unwrapFilteredImage when the destructor is called and I have traced it to the point where inImage is being destructed. The first thing that is destructed …

Software Development c++
Member Avatar for ollie60
0
238
Member Avatar for npmiller

I was creating a program using vb.net on visual studio. Unfortunatley when I closed out I save it in a way where all of my developer coding was erased. Luckily I still have the debugging file, but it won't allow me to see the form developer or design view (which …

Software Development vb.net visual-studio
Member Avatar for adam_k
0
105
Member Avatar for koolzed

a simple c++ program for an adress book that adds contact, stores the contacts and searches for the contact... it should have only one class called class addy_book..i called a constructor and am stuck coz i don't know where to go from here #include <iostream> #include <fstream> using namespace std; …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for Majestics

How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions.

Software Development java
Member Avatar for Majestics
0
165
Member Avatar for iraj.jelo

i have a Qt code writed in C++ . i want translate it to python code, but i have a problem in 4 code line: all code is: void TableView::print(QPainter* painter, const QRect& area) { const int rows = model()->rowCount(); const int cols = model()->columnCount(); // calculate the total width/height …

Software Development c++ python qt
Member Avatar for HiHe
0
2K
Member Avatar for DarkMonarch

hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other …

Software Development c c# c++ gui php
Member Avatar for DarkMonarch
0
247
Member Avatar for Lucaci Andrew

Have some problems with the qt destructor. I'm working on QtCreator: here's the class: the .cpp #include "controller.h" Controller::Controller() { } Controller::Controller(MovieRepo *movrep, MovieValidator *movval){ this->movrep=movrep; this->movval=movval; } void Controller::addMov(int id, string title, string desc, string type)throw(ValidatorException){ Movie* mov=new Movie(id, title, desc, type); movval->validate(*mov); movrep->store(*mov); } const Movie* Controller::getById(int id){ …

Software Development c++ ios qt
Member Avatar for Lucaci Andrew
0
272
Member Avatar for abu taher

i work with 3 more form. 2 form has no border. when i click a button a form is show. when i minimize main form the other form still show. but i want when i minimized main form all from will minimize what was open.

Software Development visual-basic
Member Avatar for Qesha carol
0
1K
Member Avatar for coder389

I want to delete the entire folder or directory along with files and folders contained in it. how can I implement in c#?

Software Development
Member Avatar for Mitja Bonca
0
232
Member Avatar for superbhimanshu

Hi all, I am trying to read data from an excel file using "xlrd" functions. File contains many columns one of which is Date and time (in MM/DD/YYYY and HH:MM:SS AM/PM format). I am successful in reading all other type of data. But unfortunately for this column, program could read …

Software Development microsoft-office python
Member Avatar for superbhimanshu
0
203
Member Avatar for spowel4

If I have an arraylist of arrays (each item in the arraylist is itself a one-dimensional array), how can I iterate over each element of each array contained in the arraylist?

Software Development java programming-construct
Member Avatar for JamesCherrill
0
220
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

Software Development
0
82
Member Avatar for NunsBeachSurfer

Hi, I'm working on some coding and ran into the problem that my multidimensional arrays are too large for my RAM. After reading a lot of articles, I figure that what I need to do is dynamically allocate the size of the array? The array that I need to do …

Software Development c++
Member Avatar for NunsBeachSurfer
0
152
Member Avatar for london-G

Hello, Basically I am planning to develop a database system for a school. There will be three subsystems 1. The teachers (add, remove, edit) 2. The students(add, remove, edit) 3. The classes( add, remove, edit) as an interactive timetable. I am planning to use java(netbeans) and would like to hear …

Software Development java java-netbeans
Member Avatar for anand01
0
108

The End.