43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for blenkhn

I have been trying to no avail to load a ui file and insert it into a tabWidget as a new tab. I commented out a try that I thought would work, I was wrong. I have tried several different ways but I always seem to get the same error. …

Software Development flash gui python qt sqlite
Member Avatar for blenkhn
0
896
Member Avatar for cufisa

Hello there everyone. I am having a bit of trouble with my C programming. I do not know anything about C programming and this is my first semester and already my professor is putting pressure on me. Anyone that can help would be appreciated. So I am supposed to create …

Software Development c c# c++
Member Avatar for cufisa
0
1K
Member Avatar for LianaN

Hi! Please, tell me how to make the JDialog close button working in a proper way. Now it does not work. [ICODE]System.out.println(value);[/ICODE] produces 0. But if I write [ICODE]if (value == 0)[/ICODE], then nothing happens. Any ideas? Thanks! [CODE] public static void about() { final JOptionPane optionPane = new JOptionPane( …

Software Development java
Member Avatar for LianaN
0
225
Member Avatar for PM312

How can i add treeview control to my project. I cannot find this in components.

Software Development visual-basic
Member Avatar for AndreRet
0
222
Member Avatar for JDevelop

Hello there, I've just started on C and what I'm trying to do is copying one string to another (which has not been initialized before) without using any string.h functions. Here's my code. [CODE] #include <stdio.h> #include <stdlib.h> void copyString(char*,char**); int main(){ char* string1="Hello there"; char** string2; printf("string1: %s\n",string1); printf("Copying …

Software Development c
Member Avatar for JDevelop
0
285
Member Avatar for newprogrammer14

Hi guys I'm new to XSLT programming and the question I ask may appear very easy to you guys. Please help me out. This is the XML code : [CODE]<book id="12345"> <title>A<caps>New Voyage</caps>:Africa</title> <desc>abcdefgh ijklmnop</desc> </book> <book id="12346"> <title>A<caps>New Voyage</caps></title> <see id="12345">ANV</see> </book>[/CODE] I have to display the title and …

Software Development xml
Member Avatar for iceandrews
0
207
Member Avatar for masterfact18

[CODE] Private Sub cmdAdd_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer Set oConn = New ADODB.Connection Set rsAdd = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item from the …

Software Development open-source storage visual-basic
Member Avatar for AndreRet
0
193
Member Avatar for RenanLazarotto

Hey guys! How can I get the progress from a console window? Like... running UPX and get the current compression progress to use into a progressbar? Thanks!

Software Development vb.net
Member Avatar for RenanLazarotto
0
61
Member Avatar for kruxena

Hi guys need help here. Scenario: I have a function in my textbox1 with the got focus event. I have a 40 textbox in my goupbox1. Here is my code so far. [CODE] Private Sub Textbox1_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1_GotFocus ... ... For Each x …

Software Development vb.net
Member Avatar for codeorder
0
21K
Member Avatar for docfnt

I'm writing a text editor for my own use ( I'm "home learning") where I want to be able to leave comments for myself, like in code section of the VB express IDE. I have figured out how to get the Integer Location of the apostrophy, but can't get it …

Software Development asp.net vb.net visual-basic
Member Avatar for GeekByChoiCe
0
172
Member Avatar for Netcode

How do I create a Dynamic crystal report? That is, I want my codes to select and filter the content of the datagrid at runtime. I need help seriously, Thanks

Software Development vb.net
0
82
Member Avatar for Senefelder

I hope that this question is not out of place here. I have an access 2007 database for which I made a perfectly functioning simple "front end" program in VB6. That was back in XP or Vista days. I hadn't used it since the switch to Windows 7, and when …

Software Development visual-basic windows-vista
Member Avatar for AndreRet
0
134
Member Avatar for NewOrder

i am building a chat and i have this code: [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; using System.Threading; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { TcpListener server = new TcpListener(IPAddress.Any, 5000); server.Start(); Console.WriteLine("Server …

Software Development client-server file-stream
Member Avatar for NewOrder
0
1K
Member Avatar for paulablanca

Hi! Hope my title is understandable. I have four comboxes all containing A,B,C,D. My problem is if I have chosen letter A on the first combobox, the last three won't have letter A anymore, then on the second combobox, if letter B is chosen, the last two will have C …

Software Development vb.net
Member Avatar for sandeepparekh9
0
169
Member Avatar for beejay321

Im supposed to write a program that reads in 10 c strings and will sort them alphabetically using (strcmp(list[h],list[j])>0) which basically says if list h is closer to the start of the alphabet then it is true else it is false here is my code [CODE]#include <iostream> #include <cstdlib> using …

Software Development c++
Member Avatar for peter_budo
0
2K
Member Avatar for track&price

I cannot get the my application (AA_Coins.exe) to run on a different PC. I have 2 pc's are using Visual Studio 2010 and Net Framework 4 Client Profile. My .exe works fine on both as expected. I put it on a 3rd PC that does not have VisualStudio with Net …

Software Development vb.net visual-studio
Member Avatar for Pgmer
0
113
Member Avatar for nndung179

I create the Fraction Input and Output it was fine, and then I try to put the array of the Fraction. Everything work fine until I Compile and execute the Program. This Error appear: Nullreferenceexception object reference not set to an instance of an object. Help me this error! Thanks …

Software Development
Member Avatar for Ketsuekiame
0
106
Member Avatar for newcoder310

how to modify the contents of a file Example:: If there is a file with hello #how are you Then how to delete the # and maintain the same file

Software Development file-system java
Member Avatar for masijade
0
108
Member Avatar for newcoder310

I've recently posted a thread called file modification and the problem has been solved........now could some1 kindly explain why is it necessary to delete and rename the file to insert or delete a character into the file at a particular location Thanks

Software Development java
Member Avatar for griswolf
0
79
Member Avatar for linux.buzz

Hi all, I got stuck into a problem. I have a variable in which the data is stored as below: variable_test=0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s .....an so on. There are lots of values in format like "3m1.057s" are stored in variable_test separated with an space between two such values. …

Software Development shell-scripting
Member Avatar for cfajohnson
0
146
Member Avatar for pandaEater

Is there a way to disallow access to a Parent function in the Child class? For example, the Parent class has a function, myFunc(). In main() after I instantiate a new Child object I don't want myFunc() to even be an option. So child.myFunc() would cause a compilation error.

Software Development
Member Avatar for Momerath
0
144
Member Avatar for beejay321

so for my computing project we have just started to work with using input and output of text files, the tutorial my teacher gave said to include these libraries, which i did [CODE]#inclue <fstream> #include <iomanip>[/CODE] and explains how to use [CODE] ifstream fin; //fin is my file input variable …

Software Development c++ ide
Member Avatar for beejay321
0
336
Member Avatar for Latvija13

How would you go about skipping non-numeric characters in a string and only adding the sum of the numbers a multi line string?

Software Development java
Member Avatar for Latvija13
0
113
Member Avatar for ben25x

I am quite stumped on something in C. I found this code on the Internet, and it only gives me one error; however, I cannot seem to fix it. The variable in the function the compiler's complaining about is: [CODE]char ConvertTime[8][/CODE] and the function itself is a windows one: [CODE]GetWindowTextW(GETITEM(IDC_CONVERT_TIME), …

Software Development c microsoft
Member Avatar for ben25x
0
347
Member Avatar for VernonDozier

OK, here's what I want to do (I realize the code below doesn't work, but it's what I would LIKE to do). I've converting things from C++ [code=JAVA] public void ChangePrimitiveArray(byte bytes[]) { bytes[0] = 1; } public void foo() { byte bytes[] = new byte[2]; bytes[0] = 4; ChangePrimitiveArray(bytes); …

Software Development java
Member Avatar for VernonDozier
0
216
Member Avatar for biljith

how to write a program that can accept a date from user and print the day on which it occurs

Software Development c c# c++
Member Avatar for Ancient Dragon
0
107
Member Avatar for eikal

Hi im working on this program im getting a runtime error that says this ArrayIndexoutofbounds exception 0. heres my code [code] import java.util.Scanner; public class MillerCalculateTime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter miles: "); double miles = sc.nextDouble(); System.out.print("Enter Miles per hour: "); …

Software Development java
Member Avatar for naief
0
180
Member Avatar for z00t

i have to construct a rectangle, print the location, then translate/print it 3 more times such that if they were drawn, they would form one large rectangle. [][] <- like so [][] here's the code & the error. C:\java>javac FourRectanglePrinter.java FourRectanglePrinter.java:11: [COLOR="Green"]incompatible types[/COLOR] found : void required: java.awt.Rectangle Rectangle box1 …

Software Development java
Member Avatar for Akill10
0
1K
Member Avatar for MaddTechwf

Is there a way that I can use like F1, F2, F3, etc to open a specific form? I would like to have an options form but not have it to where anyone can access it unless they know the Function key to use.

Software Development vb.net
Member Avatar for Unhnd_Exception
0
117
Member Avatar for MaddTechwf

I'm wanting to create a small application that will allow me to schedule a machine to shutdown at a specific time. Any suggestions on how I can make this .exe run at a specific time besides using the Task Scheduler?

Software Development vb.net
Member Avatar for MaddTechwf
0
84
Member Avatar for Smalls

What my question is, Is it plausible to have a listview item search a specific folder that has nothing but text files in it, pull the first 2 lines from the text file(s) and display them in columns 1 and 2 if so, how would one go about doing it, …

Software Development listview seo vb.net
Member Avatar for Smalls
0
399
Member Avatar for rem45acp

In c++, I would like to get the number of seconds from between the current time and January 1, 2000. The problem that I'm having is assigning one time struct with the current time, and another with other one. When I use difftime(), it just returns 0. There is something …

Software Development c++
Member Avatar for Ancient Dragon
0
332
Member Avatar for LianaN

Hi! I would like to read XML file from my SWING application, however [ICODE]list.size()[/ICODE] returns 0. Why does it happen? Thanks! [CODE] private void open() { SAXBuilder builder = new SAXBuilder(); File xmlFile = new File(openedFileName()); try{ Document document = (Document) builder.build(xmlFile); Element rootNode = document.getRootElement(); List list = rootNode.getChildren("Panel"); …

Software Development java java-swing xml
Member Avatar for LianaN
0
848
Member Avatar for LianaN

Hi! I would like to select images by using a rectangular area. All images that are inside this area, must be selected. I want this area to appear while mouse clicking and dragging. So, the size of a rectangular area should change dynamically according to a position of the mouse …

Software Development java
Member Avatar for LianaN
0
2K
Member Avatar for croker10

This is more than likely the dumbest sounding problem most of you will have ever heard of, but after three days of attempting to fix this myself, I have gotten no where. I am working on an older project, it works fine, but I need to upgrade it an add …

Software Development java java-netbeans
Member Avatar for croker10
0
236
Member Avatar for masterfact18

problem is in form5 when i add stock it didn't refresh... just download my attach file "datagridprob.zip" and try to correct my code in "add_stock form" then if you got it right kindly post your code here...thanks...

Software Development visual-basic
Member Avatar for masterfact18
0
165
Member Avatar for music613

I have a checked list box with an unknown number of items some of which may have been checked. I need to know how to determine which of the items have been checked. For purposes of discussion, assume that my checked list box is called myCheckedListBox. In theory, I need …

Software Development
Member Avatar for music613
0
132
Member Avatar for martin11ph

Hi again, sorry for yet another thread. I am using the KeyDown function in my form and it is not able to perform because of the other controls. For example, there is a text box in the form. Once the form has loaded, when I press vbKeyRight, my code does …

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for aaronmk2

I am getting this error object reference not set to an instance of an object and cannot figure out how to fix it. I can get the program to when I only have one Timepiece object, but when I try more I get the error message. I left a note …

Software Development
Member Avatar for aaronmk2
0
227
Member Avatar for ram619

This code is runnig perfectly for values perfectly divisible by 2, that is 2,4,8 But the i is not incrementing when values are given such as 7,5 could u plz tell me the error Thanks [code=c]#include<stdio.h> #include<conio.h> int fun(int); int main() { int num; float mod,prime,m; printf("enter the num"); scanf("%d",&num); …

Software Development c
Member Avatar for ram619
0
104
Member Avatar for Valaraukar

Hey guys, So my Maths has obviously gotten a little rusty and I seem to be struggling with what should be quite simple.... The scenario: I have lines being drawn in 3D space that are calculated using an algorithm. These lines are actually made up of multiple line segments to …

Software Development algorithm c++
Member Avatar for jonsca
0
821
Member Avatar for hanvyj

I am writing a video program, everything works fine except I am often (ie most times, but not [I]every [/I]time) getting the following error: Unhandled exception at 0x6076fde0 (msvcr90d.dll) in javaw.exe: 0xC0000005: Access violation reading location 0x0a450020. I have tracked it down to this function: [CODE]//fill the buffer from data …

Software Development c++ microsoft-access
Member Avatar for hanvyj
0
5K
Member Avatar for masterfact18

[CODE] Private Sub Command1_Click() Dim xSold As Integer Set db = New ADODB.Connection db.CursorLocation = adUseClient db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\inventory.mdb" Set rs = New ADODB.Recordset rs.Open "SELECT * FROM storage WHERE Current Stock = '" & Text1.Text & "'", db, adOpenStatic, adLockOptimistic If rs.BOF = True …

Software Development open-source storage visual-basic
Member Avatar for AndreRet
0
172
Member Avatar for DARKSUPR3MACY

Hello, I am new to this site, as well as to C++. I was hoping someone could help me out with my program, I was hoping to incorporate an if, else statement which we have yet to go over to see if I can. I have basic experience in java …

Software Development c++
Member Avatar for Fbody
0
175
Member Avatar for theurbanist

Hey Everyone, How would you go about writing a program that draws an image of an ice cream cone, using JFrame and JComponent classes, with a triangle on bottom and a circle on top?

Software Development java
Member Avatar for Akill10
0
114
Member Avatar for abelingaw

[URL="http://www.daniweb.com/forums/thread341763.html"]http://www.daniweb.com/forums/thread341763.html[/URL] Regards to that, i also wanted the system not to be able to delete Administrator Accounts via my code also posted there. Here's the code again: [CODE] Private Sub cmdDelete_Click() ' On Error GoTo err Dim intYN intYN = MsgBox("You are about to delete a record." & vbCrLf & …

Software Development visual-basic
Member Avatar for AndreRet
1
146
Member Avatar for RenanLazarotto

Hey! My app has a nice menu strip, with two tool strips, one containing file options, and other contanining options options (oO) The bad part is... the options toolstip has two subitems that should be excluse. Like: I click one, other gets unclicked and become not functional. I've tried it, …

Software Development vb.net
Member Avatar for RenanLazarotto
0
91
Member Avatar for KunalPatel

Hello, I'm a newbie to Objective-C & iPhone development, hence please bear with[ICODE][/ICODE] me. I'm working on an app which loads with UITableView and upon selecting one particular cell called "Address Book" it should load with another UITableView containing all the addresses retrieved from a web request. Using NSXMLParser's delegate …

Software Development c++ ide iphone xml
Member Avatar for KunalPatel
0
153
Member Avatar for sitajaf

Hi, am trying to use a multicast socket in an application but I constantly get this exception; java.net.SocketException: error setting options. I have failed to find its cause and how to solve it. Pliz help (what could be causing it, and how can i solve it? thanx.

Software Development java
Member Avatar for sitajaf
0
209
Member Avatar for zahraT

hello every body code below make directory in an address that is define in data part. ; create c:\emu8086\vdrive\C\test1 mov dx,ah mov ah, 39h int 21h but i want to get address from user. i can do this with macros . anyone know this with intrrupts? best Regard

Software Development assembly
Member Avatar for Ancient Dragon
0
114

The End.