43,549 Solved Topics
Remove Filter ![]() | |
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. … | |
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 … | |
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 | |
How can i add treeview control to my project. I cannot find this in components. Software Development visual-basic | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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), … | |
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 | |
how to write a program that can accept a date from user and print the day on which it occurs | |
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 | |
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 | |
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 ![]() | |
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 | |
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, … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
[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 | |
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++ | |
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 | |
[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 | |
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 | |
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 … | |
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 | |
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 |
The End.