132,726 Archived Topics
Remove Filter ![]() | |
Greetings all! I'm facing a problem that's been throwing me for a loop for a while now. I'm implementing an old VB application that someone else wrote a long time ago onto a VM. I've gotten past a few different issues/errors just to get new ones (that's the name of … Software Development visual-basic | |
Hello everyone; I did a program using arrays -for the first time- I've got errors, I fixed some and there are others left that I couldn't straighten any help is highly appreciated here is the code : [CODE]# include <iostream> # include <iomanip> using namespace std; int read_car (int cars[], … Software Development c++ | |
Hello guys and gals of the DaniWeb community, this time I need help in how to save text to a file in the text editing application I created. Well, I tried using the code below but it didn't do the work: [CODE]If (RichTextBox1.Text Is Nothing) Then MessageBox.Show("No text to save!") … Software Development vb.net | |
[CODE] for(Iterator it2 = tries.iterator();it2.hasNext();) { tobedeleted2 = (FpiRightTree) it2.next(); tobedeleted2.setIndex(f); f = f+1; }[/CODE] I want to that in thread function.can someone give me help in creating thread? Tries is global. so in all threads it will be shared. i want to call thread. to do a for loop … Software Development java | |
I have a script for renaming files, but can not seem to iron out the bugs. I am trying to rename a list of files: File1.File1 File2.File2 etc I need them to be renamed to: File1 File2 etc This is the code so far: [code] import os import sys import … Software Development python | |
Hi guyz... Can you help me in my problem??? I cant figure out the scheduling grid for hotel system,.. What i mean is "it is a grid that you can drag and assign a date to a particular room to reserved or book a room...." can you help me guyz??? … Software Development visual-basic | |
The program runs perfectly, however I am having an issue adding a discounted price. Another thing I noticed when I run the program is that the switch statement doesn't calculate the discounts at all. [CODE]// DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: … Software Development java java-swing | |
Just because there is no help for this online that i could find, I'm posting this for all the other coders... This makes use of a third part class downloaded from code project... AWESOME FTP class this , i owe the creators a huge thank you ... [CODE] using System; … Software Development web-server windows-server | |
Hi, i need some help, i need to delete some data in DBF file, and i have this code... but when i execute it .. nothing happends? Dim connectionString As String connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=D:\Documents and Settings\dmarinkovic\Desktop\Data1\FP550_EO022450;Extended Properties=dBase IV" Dim dBaseConnection As New System.Data.OleDb.OleDbConnection(connectionString) Dim cmmd As … Software Development open-source visual-basic | |
[CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Collections; namespace CoinsExercise12StephenBarDev { public partial class FrmStephensCoinage : Form { Array ValueOfCoins = Array.CreateInstance(typeof(String), 101); double CoinInput; public FrmStephensCoinage() { InitializeComponent(); ValueOfCoins.SetValue("0.00", 0); ValueOfCoins.SetValue("0.01",1); ValueOfCoins.SetValue("0.02",2); ValueOfCoins.SetValue("0.03",3); ValueOfCoins.SetValue("0.04", 4); ValueOfCoins.SetValue("0.05", 5); ValueOfCoins.SetValue("0.06", 6); ValueOfCoins.SetValue("0.07", … Software Development c# | |
I have created an application using C# which makes use of a MSSQL Express database. Now that my project is completed I would like to package the application and database into a single executable which can be run on any machine making use of the .net 3.5 framework. My questions … Software Development mssql | |
here is the question: 5. Write a basic program that allows the user to write names to a text file and read from the text file and displaying them on the screen. [CODE] string filename; StreamReader outputFile = new StreamReader("c:\\PriceList.txt"); // Read the first item. filename = outputFile.ReadLine(); // If … Software Development | |
Hello Im trying to compile the following code but I get the error "left operand has incompatible type" because of the line: test2_2_U->Out2= test2_2_U->Out3; I have been looking through the forum but I couldnt find a hint what Im doing wrong. Any hint is appreciated. Thanks Thomas [code=c] static BlockIO_test2_2 … Software Development c | |
[code] class MyList(list): def __new__(cls, *p, **k): if not '_the_instance' in cls.__dict__: cls._the_instance = list.__new__(cls) return cls._the_instance def append(self, name): if name not in self: list.append(self, name) def extend(self, names): for name in names: if name in self: continue list.append(self, name) def remove(self, name): if name in self: list.remove(self, name) … Software Development python | |
Hello all, I would like to make the Tab movement can also pressing the "Enter" Key. I have google and found the code which possible to used. But I found its not running fine with me. When I press "Enter" key,it runs fine for the tab movement. But if I … Software Development vb.net | |
I have been writing a program using arrays and strings.Here is my question. A class of students takes a 20 question multiple-choice exam;each question has 5 choices(a,b,c,d,e)only one of them are correct.In "tests.dat"Each record of which consists of a student id, followed by a blank, followed by students 20 responses. … Software Development c++ | |
I would like to do windows from with would guide the user through the installation of my already done win application. I already did the Setup Project (File > Add > New Project and select Other Project Types > Setup And Deployment > Setup Project. ) but I would like … Software Development | |
I'm working on a n-tier solution with VB.Net 2008. In this solution I have 3 projects started (the UI, BLL and DAL). I have the BLL referenced in the UI and the DAL referenced in the BLL. What I cannot do is use a User class in the BLL in … Software Development vb.net | |
I have a file which is already written till some lines. I have a blank line at the start of the file and I want to write in that line using Java. I thought creating a FileWriter object by using FileWriter(filename, true) and then a BufferedWriter object will start writing … Software Development file-system java | |
Hi.I've just begun using delphi 2010.I used to work with 2007 and I had a lot of 3rd party components installed.As an example Infor POwer is a very powerful 3rd party component and I use it almost in all my applications.But now when I install them on 2010 it fails.I … | |
I'm making a project in Visual studio 2008. The details of the project are: - It is a MFC Application - The application type is Dialog based with Use HTML Dialog enabled - The project style is MFC standard and... - The use of the MFC is in a shared … Software Development c++ html-css visual-studio | |
My ultimate goal is to fill an array with user inputted positive and negative numbers. This script I wrote is very limited, but it should give you an idea of what I am trying to do. Basically, I ask how many numbers and then reserve 3 spaces for each number … Software Development shell-scripting | |
Hello everyone!! I have an assignment to create that wonderful mortgage calculator. I have the code working, but when i try to catch an error (No matter is it is left blank, or a letter is typed in) the program crashes. Not sure what i am doing wrong, but any … Software Development vb.net | |
Hi guys, How to load any other document formats other than [ICODE].txt[/ICODE], and [ICODE].rtf[/ICODE] (which naturally supported by LoadFile() function), like [ICODE].java, .c#[/ICODE], and [ICODE].doc[/ICODE] into [COLOR="Red"]richTextBox [/COLOR]object????? any help appreciated. Thanks in advance. Software Development | |
Design a PhoneCall class that holds a phone number to which a call is placed, the length of the call in minutes, and the rate charged per minute. Overload extraction and insertion operations for the class. Overload the == operator to compare two PhoneCalls. Consider one PhoneCall to be equal … Software Development c++ | |
I am trying to delete any line of text that contains "$npname" and the word "in." The script works if $npname is only one word, but if it is more than one work I get "error: unterminated address regex" How can I fix this? [CODE]sed '/'$npname'.*in/d' parts.txt > parts.tmp[/CODE] Software Development regex shell-scripting | |
First Program - CalcPro.py How do I make labels like in Batch so that I can 'go to' or initiate certain blocks of code when needed? And what is the command for goto? Whats the command for cls (or in other words clearing the screen)? [CODE]while 1: import math print … Software Development python | |
this is the output when enter 1 *********O* when enter 2 ********O** ---------------------------- 1*********O* 2********O** 3*******O*** 4******O**** 5*****O***** . . . . . . . help me plss tnx Software Development c++ | |
So i need help figurin out where my segmentation fault is comin from. Im not even close to finishing this program but i was just testing my progress so far to make sure that it was taking values correctly, but sometimes the program doesnt stop when its supposed to and … Software Development c++ | |
Hi all, I'm new to working with C++ (I'm more a C programmer) and I have a question: I have a container class for a templated type T, which could be any scalar type, although the most commonly used ones are unsigned char and float. I have a function that … Software Development c++ | |
I've been studying VC++ for about 2 months, and I was working on my first game from a book (Game Programming All In One) The game is 'Craps', it's a dice game. Anyways, I've had a few prolems with the codeing, can someone help me? (Windows 32 Console) Here is … | |
Hello, If I want to say compare a line at a given line number to another line at a different given line number how can I do this? I know I could iterate through the file and store the lines into a data structure and perform comparisons that way but … Software Development c data-structure | |
Hi, how is this done in assembly? [CODE=c++] ofstream writer("settings.ini"); writer << "launch: 1" ifstream reader("settings.ini") char buffer[MAX_PATH]; reader.getline(buffer, MAX_PATH); HANDLE hFile = CreateFileA(StubPath,GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); memset(&overL, 0, sizeof(overL)); overL.Offset = 0xffffffff; //end of file overL.OffsetHigh = -1; WriteFile(hFile, Settings, strlen(Settings), &dwBytesWritten, &overL); CloseHandle(hFile);[/CODE] How would I split a string in assembly? … Software Development assembly | |
I'm trying to write a program that will open a file named "data.dat". This file contains an unknown number of values that I need to have read and averaged together and is written such that each line has one value. I need to have the data in this file be … Software Development file-system python | |
Hi, In my code I'm getting a weird error. It's caused by this piece of code: [CODE]response = SQLCommand.ExecuteNonQuery();[/CODE] The error: There is missing a ; at the end of the SQL-instruction. My eyes may be bad, but I clearly see a ; at the end of this piece of … Software Development | |
[code] public static void displayBoard(final char[][] theBoard) { // note the final parameter - we won't change the board, just print it. // Need to format the board display to look like this: // | | // ----- // | | // ----- // | | System.out.println("Welcome to a game … Software Development java | |
Hi, I am creating a project for my VB class, using VB 2008 Express, and I would like to be able to have the age of child (whose birthdate is a constant, in otherwords, it won't be changed or entered). I figure that I would need to use the "[B]Today … Software Development vb.net | |
Hi, I am trying to make a program that allows one to see a database (MS Access) and add items to the database. The database works perfectly (update and suchs) but the adding won't, sadly enough. The error I get is (translated as i'm using a Dutch version): Syntaxisfault in … Software Development | |
I recently needed to add member functions like these into my class [CODE]istream& read(istream&) ; ostream& print(ostream&); [/CODE] I am a little confused on how to actually call these functions within my class. I am more familiar with overloading the insertion and extraction operator since the prototype for those makes … Software Development c++ | |
Im trying to access a variable in a list that is 3 places earlier in the list. For example list_1[dogs, cats, pigs, hamsters, kids]. If Im trying to access the word cats based on the position of kids how would I do that? I know list_1[4] returns kids and I … Software Development python | |
My program deals with the Genetic Algorithm and Hill Climber Algorithm. I have a program that compiles without any errs, its just the data is gives is incorrect. I explain my error on the bottom part of my post Header File [CODE]#include <iostream> using namespace std; //------------------------------------------------------------------------------ template<class T> class … | |
Please ok can any one give me the code to this im making a program and it needs this and im stuck please give code asap application that will convert any text I throw at it to hex Thank You Software Development c++ | |
Hi All, I am getting the message "input string was not in a correct format" about the line " numline[i] = Convert.ToDouble(num);" The program is supposed to read a csv and convert the fifth line of the file to an double array. The line to be read in looks like … Software Development | |
Good morning all, So i have started teaching myself C++ in preparation for taking software engineering at university next year, after many hours i have managed to put a simple program together, Im just asking if someone can tell me on in the right track to understanding what each function … Software Development c++ engineering | |
hi, i am making an program in VB6 with access database....m inserting dates in the database at random....and want a listbox to be populated with first 3 dates starting after a particular date.... eg. input - 6 jan, 3 dec, 15 feb, 12 march, 10 dec, 7 june, 5 may … Software Development visual-basic | |
I have a project that requires me to make a search engine for classes. If i were to enter Biology, then classes such as genetics, chemistry, anatomy and physiology are to show up. But the thing is i have the classes and their descriptions in a file and i was … Software Development c++ | |
Iam trying to code a single program of an array with 20 elements in it. It asks for a number from user and search is if this array has that number. I am using Binary and selection search. Its not giving me the required results. here is my code; [CODE]/* … Software Development c++ | |
Hi, I need some help with a school project. This is what I have done so far: (Sorry about the wall of code) [code=java] public abstract class State { private double drinkPrice; private double amountPutIn; private String selection; public State() { } public State(double drinkPrice, double amountPutIn, String selection) { … Software Development java | |
So this is a matching game, flip over two cards, if they match they stay up if not they flip over again. I have the matching system and coordinate system working. My problem is that when i use my array of zeros to "hide" the numbers, all that is ever … Software Development c++ | |
hey guys I'm kine a new to pygame and i want to make a space game but i dont know how to make the screen folow my ship. if you have any info on this plz let me know. Thanks :) Software Development python |
The End.