43,549 Solved Topics
Remove Filter ![]() | |
Having some trouble adding children to tree view. All of the parent nodes are created correctly, but it wont add more than 1 child to each parent like it should. It just adds 1 to each parent. Thanks in advance. [code] For J = 1 To WorkOrdersDataSet.BatchTable.Rows.Count() rootnode = workqtree.Nodes.Add(CStr(BatchTableTableAdapter.BatchID(J))) … Software Development vb.net | |
hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible.. Software Development java | |
Hello, I am programming an image application with a GUI. I open a grayscale image like this: [code] String^ s = openFileDialog1->FileName; s = s->Substring(s->LastIndexOf('\') + 1, (s->Length - s->LastIndexOf('\')) - 1); InputImageFileName = s; bmpInputImage = gcnew System::Drawing::Bitmap(openFileDialog1->FileName); [/code] then I create a new image [code] binaryImage=gcnew System::Drawing::Bitmap(bmpInputImage); [/code] … | |
I have a report with a simple parameter (string parameter) and I'm setting it with this code: ParameterFieldDefinition parameter = _reportDocument.DataDefinition.ParameterFields["Filtro"]; CrystalDecisions.Shared.ParameterValues currentValues = parameter.CurrentValues; currentValues.Clear(); CrystalDecisions.Shared.ParameterDiscreteValue newValue = new CrystalDecisions.Shared.ParameterDiscreteValue(); newValue.Value = "Value to Set"; currentValues.Add(newValue); parameter.ApplyCurrentValues(currentValues); But when I run the report, the program show an automatic window … Software Development c# | |
So I have a multi-dimensional array, and I want to pass a reference of it to another function so that the array is defined in the scope of the function, because the array is not a global variable. If I can remember correctly, the syntax looks a little like this: … Software Development c++ | |
Hi, I am jahan, i just started java applets and i was trying to draw a graph. The idea i am using is based on drawLine(xmin,ymin,xmax,ymax). I wanted to get a graph for sinx which is proving to be difficult. i used following syntax to implement my idea: import java.awt.*; … Software Development java | |
Hi there guys! Can someone help me with the part add tour,when I run it, its always print the same line 2 times and then when I enter the data for guide tour which should be store in the memory, but when using the display method it didn't appear like … Software Development java | |
Hi there! I'm building a small application using Java and MySQL (college assignment). Everything is ok when all I'm doing are queries using SELECT. Now, when I try to INSERT anything in the table, I get this error message: java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). 0 S1009 … Software Development java java-netbeans sql | |
hello, I am writing a script to send email to all the users. Can anyone provide the syntax or internet source in reading line from a dir or text document? if users are under /home like: student1 student2 student3 student4 student5 student6 my try is: #!/bin/sh line =`read` while : … Software Development shell-scripting | |
Hi I have a small question, probably quite obvious but I cant seem to figure it out. When using the ifstream or any other stream you can tell if it was sucessfull in its last event. For example: [CODE=CPP] #include<fstream> int main() { ifstream in("test.txt", ios::in); if (in) { } … | |
Hey this is Mohamed Shahabudeen. Can someone please help me with the following! Enter the following program called “composers.pro” % This database is about composers % Datarecords: composer’s last name, birth and death year composer (monteverdi, 1567, 1643). composer (bach, 1685, 1750). composer (vivaldi, 1678, 1741). composer (mozart, 1756, 1791). … Software Development | |
I wonder if there is a good way to substring this string: [code] std::string OneString = "1,2,3,4,5,6,7,8,9"; [/code] so the substring will look like this: [B]1,2,3,4,5,6[/B] So what I am trying to do or wonder is, if there is a good way to substring from the end and 3 Commas … Software Development c++ | |
Okay, I appreciate everyone's help! i am trying to work out how to find a duration type thing.. i have created this as an example of what i am trying to do. [CODE] ### gaining inputs start= raw_input("What time did the tv show start: (Format = 14, 12) ") finish= … Software Development python | |
So the problem seems to be when i try to compile its telling me on line 16 of the main program (the last line) "unqualified-id at end of input" and "expected ',' or ';" at end of input I played with just about every combination of ending brackets and semi … Software Development c++ | |
Hi There, Hope you can help with this. I have created a void function which has to add the totals and return the values to the main section for display. For some reason it does not return the totals. I tried everything I know. I also put displays in the … Software Development c++ | |
What four ways can you specify the current directory in your PATH? for sh This is a question that I couldn't get it right. I thought pwd is one of the way but it wasn't. can anyone help? thanks Software Development shell-scripting | |
Having trouble understanding how this recursive function works. [CODE]int F( int X ) { return (X<=0) ? 3 : F(X/2)+F(X-3); }[/CODE] I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 … Software Development c++ | |
Hello, I am working with images and I have got a problem. I have this method and I want it to return an array of unsigned ints. I have not got problems of compilation but it does not work properly. Could anyone help me? Thank you in advanced. [code] unsigned … Software Development c++ | |
Hi i really need code to back up an access database. Am using visual studio 2005. i have to submit my project next week.. please help me. I want to place the code in a button back up.. Software Development vb.net visual-studio | |
Hello, I have a richtextbox which I write lines of data to. However, everytime a new line is written to the richtextbox it overwrites the last line of data so therefore after the progam runs only the last line of data is displayed in the richtextbox. I need the lines … Software Development | |
I have a problem with a sort I am trying to do with a std::vector. I am doing an example below where I push_back some strings like this. I know I have to use a comparator for this, that I have called:[B] "compare_on_asscending_value"[/B] The problem is that I am not … Software Development c++ | |
Hi, i have two textboxes one for month(2digits) and one for year(4digits). i want to validate them so users cannot input dates in past. what would be a better way of doin this. ps. it is for winforms thanks Software Development vb.net | |
[CODE] . . . . button1.setIcon(pic1); button1.setToolTipText("Open File"); toolBar.add(button1); button2.setIcon(pic2); button2.setToolTipText("Save File"); toolBar.add(button2); button3.setIcon(pic3); button3.setToolTipText("Help File"); toolBar.add(button3); gbc1 = new GridBagConstraints(); // c.insets = new Insets(2, 2, 2, 2);; gbc1.weighty = 1.0; gbc1.weightx = 1.0; gbc1.gridx = 0; gbc1.gridy = 0; // gbc.weightx = 30.0; // gbc.weighty = 30.0; // … Software Development java | |
I'm stuck with a problem and can't work it out. I'm needing a visual basic . net program written. What I've worked out is... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim linecount As Integer Dim asteriskcount As Integer Dim asterisk As String Dim spacecount … Software Development visual-basic | |
The following code works fine with "Release" config, but gets this odd "HEAP_CORRUPTION_DETECTED" error when I try to execute in the "Debug" config. I am using visual studio 2005, default settings. Also, I looked into deleting multi-dimensional objects, and it appears I am doing it correctly here ([url]http://www.daniweb.com/forums/thread6511.html)[/url]. Pretty simple … Software Development c++ visual-studio | |
Im pretty new to VB, using .Net 2008, and I am saving two DataGrids, ComboBoxes, and Textbox to a txt file, using "*99*" as a terminator between each, but I am having trouble reading it back into each field. Heres my open file code. [CODE] Private Sub openbtn_Click(ByVal sender As … | |
Hello everyone! I am using pthreads on Linux with C++ which spawns one thread and (tries to) play music. However, as soon as the program gets to the point where any function tries to use any member in the class, program seg-faults. Here - [ICODE]class audio { public: int play(char … | |
Hows it going everyone. Im trying to compare two tables, and display the rows that are not in both tables in a DataGrid. Im using Visual Basic 2008, and created a query in the TableAdapterManager, but when I try to call the query, it is not displaying the results. Shows … Software Development vb.net visual-basic | |
Hi I need to make multiple copies of a file using Dev-C++ can anyone help? Software Development c++ | |
Normally if I want to concantinate two strings I would use: [CODE]strcat (variable_name, "Constant");[/CODE] But is there a function that let's me use (variable1, variable2) ? Any help is welcome. :) Software Development c++ | |
Hi all, I have a little project that I think would be possible to accomplish using python. I'm a beginner at this sort of thing, so I am posting the basic information in the hopes that someone out there could help me get started or point me in the right … | |
Hi, Can someone please tell me, Is there any builtin function to convert decimal value to a fixed format? e.g. 6 to 0006 10 to 0010 123 to 0123 4987 to 4987 Software Development c++ | |
Hi, I need to transfer data from file to fields... Can anyone help me? file: [CODE] name surname weight age male/female name surname weight age male/female marek mixa 70 23 M ... [/CODE] kód: [code] typedef struct lidi { char cl_jmeno[16], cl_prijmeni[21], cl_muz_zena[1],cl_vyska[3], cl_vaha[3]; } LIDI; LIDI lidi[6]; [/code] i … Software Development c | |
I'm implementing a Timer for different cities using GregorianCalendar class of java.I got a Null Pointer Exception in the following code in ---- target.timeElapsed(this) line.After a lot of practices,I don't got it out.Plzz help me to sort it out.. Here's my code---------- import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; … Software Development java java-swing | |
hello, I have to write a program that draws a chart from dictionary entries. I am able to make a draw a chart however it is unsorted. How can i get it sorted. Please help asap. THANKS in advance. [CODE]from random import shuffle from graphics import * def main(n): win … Software Development python | |
Hello guys. I wanted to know how I can go about writing what is selected in a Jcombobox to a datafile. This is an example of what I'm trying to do but when I compile i get an error. How can i correct the line "output.writeUTF(number.getSelectedIndex());" [code=java] String[] numbers = … Software Development java | |
I've heard that pointers can be a pain in the butt to implement and now I know.. Basically, I'm supposed to input a last, first and middle name. Then compute the size needed for a dynamic array to hold the full name. After that dynamically allocate the array, check DMA … Software Development c++ | |
I have a basic program that access a local Access database, reads data from it into a datagrid, and then allows me to manipulate it by using textboxes. I can add, delete, and search for records. I want to remove the textboxes from the equation completely. Is there any way … Software Development vb.net | |
I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values. The problem is that if I have drawed a graph and change some values and draw a Graph again, the … Software Development c++ | |
I am still reading the learing python o'reilly book and not sure the best way to approch my problem. Given c:\dir1\dir2\dir3. I want to zip all files in dir3 if those files are older than 30 days using 1 zip file (ie. dir_3_files.zip). If all files in dir3 are older … Software Development python | |
hi, I have this method [code=java] public void record() { Scanner input = new Scanner( System.in ); int sid; for ( int counter = 0; counter < length; counter++ ) { System.out.println("Student " + (counter+1) + " Record"); System.out.println("****************"); System.out.print("Enter SID: "); a[ counter ] = input.nextInt(); sid=a[counter]; if (isUnique(sid)) … Software Development java | |
Problem: here's the code. [code=pascal]program fun; Uses wincrt; var y:integer; ans:integer; function User(input:integer):integer; var x:integer; ans:integer; Begin readln(input); ans:=1; if (input>0) and (input<100) Then begin ans:=ans+input end else begin x:=User(input); halt; end; User:=ans; End; Begin ans:=User(y); writeln(ans); end.[/code] when run all work perfectly. when i entered 99 i got the … Software Development pascal | |
Hi, I use VB6 with Oracle database. I also use Adodc and datagrid for retrieving data from database. If i do search with [inlinecode]Select.....Where name IN(LIKE) '" & Text1.text & "'[/inlinecode] does return nothing. I have to type exact value be searched. Why do you think that IN or LIKE … Software Development oracle visual-basic | |
hey everybody I'm taking a computer class right now and one of the projects I need to do is create a very simple pizza-ordering menu. At this pizzeria, there is only one kind of pizza you can order: regular (cheese) with no toppings. Your choices are what size of pizza, … Software Development python | |
I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; … Software Development c++ | |
[code] 'language = Visual Basic 6 Public Sub CreatePlayList(ByRef songs() As String, ByVal name As String) Dim i As Integer Set listCollection = frmMusic.wmplay.playlistCollection Set list = listCollection.newPlaylist(name) frmMusic.wmplay.currentPlaylist = list For i = 0 To UBound(songs) Set wmpMedia = frmMusic.wmplay.newMedia(songs(i)) frmMusic.wmplay.currentPlaylist.appendItem wmpMedia Next End Sub ' I believe the … Software Development visual-basic | |
Formdocs has given me the following code. What I am trying to accomplish is make the form undeleteable without a password. While the code kinda works all you have to do it select cancel and you can delete the record. any Ideas other than go back to class and pay … Software Development vb.net | |
Is there a way to convert from an integer to a string? Software Development c++ | |
Some similar recent threads have reminded me that I've been wanting to ask this for a while. I would like to declare a 3-dimensional array that uses contiguous memory so that I can calculate memory offsets from the base array element ([ICODE]x[0][0][0][/ICODE]) and use pointer arithmetic to access any array … Software Development c++ | |
Just noticed an odd little problem. Instead of explaining it, take a look at this IDLE run: [code]>>> ================================ RESTART ================================ >>> class test: eggs = True >>> var1 = test() >>> var2 = "text" >>> type(var2) <type 'str'> >>> type(var2) == str True >>> type(var1) <type 'instance'> >>> type(var1) … Software Development python |
The End.