132,726 Archived Topics
Remove Filter ![]() | |
Hi everyone! I know using "system" in c++ is not the best way to develop, however, I need to use it for some specific reason. I have read that it is advisable using before system(NULL) to check if there is a shell available. My question are: When is not going … Software Development c++ | |
Hello, I'm experimenting with creating a web page using VB 6.0 DHTML and have run into problem. I have a page started with text and now I want to add some buttons or elements. The book I've been using says I can just double-click on the element, or pick the … Software Development html-css visual-basic | |
[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void … Software Development file-system java | |
Hello,everyone.Im doing the same project as Slash12 source:[url]http://www.daniweb.com/forums/thread331507.html[/url] I thought the data structure I constructed is correct but I don't know how to test it until my search function works. The errors i have now are: TypeError:__init__() takes exactly 3 arguements(1 given) for i in range(len(board)) has no len() TypeError:object … Software Development daniweb-feedback data-structure open-source python queue | |
hi, i would like to evaluate some value in C. ex [code] #define OK 1 int main() { char *ptr; ptr=(char *)fun(); if(*ptr) printf("SUCCESS"); } [/code] here fun() returns char * and stored in ptr. i would like to check weather ptr is OK or not, i do't like to … Software Development c | |
I'm having a problem with my program. I'm able to input all 10 numbers in but when it out puts the sum I get the wrong answer but then when it outputs my average that information is correct. I know it's a simple fix but I can't see it. Can … Software Development c++ | |
Hey, I was wondering if somebody could test this out for me? I need to know if it acts the same on other pcs as it does on mine. The game seems to randomly speed up/slow down. Can you test if it does the same? [url]http://www.filefront.com/17673747/BoundingBox.jar[/url] It's a simple space … Software Development java | |
Last error Im getting is error C2059: syntax error : ']' Anyone have any ideas? what it needs to do:write a c++ program that creates using a random number generation a 2 dimentional array of integers whos values range from -9 to 9. The array size is to be chosen … Software Development c++ | |
I have a form that contains a Form_Keydown subroutine and a textbox. I am using a bluetooth numeric pad for input, so there is no mouse involved. The first keypress should display the contents of a corresponding array contents (e.g. pressing 4 should display the array's fourth element). The textbox … Software Development visual-basic | |
I'm having this problem regarding my Backup code. I get an error saying "Permission Denied". Here's my code: [CODE] Public Sub DBBackup() Dim fsys As New FileSystemObject Dim myfile As File Dim isTrue As String Dim isFalse As String Set myfile = fsys.GetFile(App.Path & "\Database.mdb") 'Create Backup folder if not … Software Development file-system visual-basic | |
I was fooling around with some Date classes when I came upon the following anomaly. [CODE=JAVA] import java.text.DateFormat; import java.text.ParseException; public class Class { public static void main(String[] args) { DateFormat df = DateFormat.getInstance(); try { System.out.println(df.parse("12/20/10 1:40 AM")); } catch(ParseException pe) { pe.printStackTrace(); } } } [/CODE] This compiles … Software Development java | |
Hi all, 1. I want to know how to add a data grid in vb 6 form? 2. And how to fetch all records in data grid please help Thanks in advance for help. Software Development visual-basic | |
hello ive problem which is every time i click search(by name) n then the next thing i click save, (after save and update my data), the button previous,next,first,last doenst work, the save button function also doesnt work. but when i click search(the name), n then the next i click the … Software Development open-source visual-basic | |
hi, any body can help me i need a source code for a simulation of elevator in vb or any single-queue, multi-queue simulation Software Development queue visual-basic | |
Hi everyone, I have a weired situation right here. My module was working perfectly all along. This morning I tried to run and got a run-time error: 1004 Application-defined or Object-defined error on this line of code. [code] With xlWksht.Range(Cells(ii + 1, 1), Cells(ii + 1, 5)) [/code] Below is … Software Development visual-basic | |
I’m trying to automatically save an excel file to pdf file using visual basic. So, I will manually open the excel, upon opening the excel file, it will run code to calculate a daily totalizer (this I have functioning) as soon as this code finishes, I want the excel file … Software Development microsoft-office pdf visual-basic | |
Hi, I have this set of coding when i use it when i am in ms access 97 but not ms access 2007. this is a set of coding for login form of ms access. Whenever i log in with the correct userid and password, it always promt me "wrong … Software Development microsoft-access visual-basic | |
learn about the code of light emitting diode 8-bit in visual basic[CODE][/CODE] Software Development visual-basic | |
Hello, I am getting a below error while accessing excel second time [I]run time error 1004 method sheets of object_global failed in vb6[/I] When i run the code at first time to open a excel and take a copy of the sheet, it works fine however when i run the … Software Development visual-basic | |
Hi guys, I am working on a small project in C# and MySql. The part of code below is not bringing out the report. I am using Microsoft reportviewer. What could be wrong? [code] private void detailedToolStripMenuItem_Click(object sender, EventArgs e) { DataTable dadt = new DataTable(); MySqlDataAdapter dad = new … Software Development microsoft | |
Hi there I'm looking for a way to add filters in my windows form application. I have a menu strip with item called 'Filters'. Under that items there are items called 'Jobs Pending, Jobs Outstanding, Etc.....' Take for example 'Jobs Pending'. How do I filter from my database in sql … Software Development c# | |
hey guys i'm trying to write a code using stacks in C the code should recognize the parenthesis if it closed or opened or not I've done the greater part of the code, but I'm so confused .. I have to submit it after 4 hours .. please I need … Software Development c | |
Hi All, Just thought I would give some thing back to this site as its helped me before with varoius problems anyway I wrote a UDF to enable users to run Macro`s in excel here is the function below [CODE] Private Sub RunExcelMacros(ByVal Path As String, ByVal MacroName As String) … Software Development vb.net | |
/*trying to set the textfield to null when i input the numbers but the zero still remains after i start typing.How to i get it to disapear when i start typing */ package Vectors; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*; import java.util.*; import javax.swing.*; … Software Development java java-swing | |
Hi, I made one code which sorts numbers from the smallest to the biggest. Can anyone please write comments in my code what exactly an individual pseudo-code do ? I'm very confused about that pseudo-codes and don't exactly know what are arrays's functions in that code. The code is: [CODE]int … Software Development | |
hi, I have a problem with the below code. It gives error [COLOR="Red"]Public member 'resolveExternal' on type 'DOMDocumentClass' not found.[/COLOR] at the palce i mark in green. Please help me to solve this..... [CODE]Public Sub ReadIndXML(ByVal LoopID As Integer) Dim strXMLPath As String '= "" Dim xmlRoot As MSXML.IXMLDOMElement Dim … | |
hi everyone! )) As I understand it - to a class B inherit fields and methods of class A must describe them in this order - public class A [ICODE]{ public method34() { int m = 34; } public class B { private int my_m; public method1() { int m … Software Development | |
I need some one explain to me marker interface and give to me an example in java Thanks, Software Development java | |
[code]template <int p> bool FComapare (Node *lId, Node* rId) { if(lId->getDiff(p) < rId->getDiff(p)) return true; else if(lId->getDiff(p) == rId->getDiff(p)) { if(lId->getLT() < rId->getLT()) return true; else if(lId->getLT() == rId->getLT()) return (lId->getTFG() < rId->getTFG()); } return false; } vector<set<Node*, bool (*)(Node*,Node*) > > m_F; for (int i = 0;i < partNum; … Software Development c++ | |
I am having problems finding out how to remove everything from a List. [CODE=C#] //Creating new List List<Number> ThisList = new List<Number>(); [/CODE] Once it is populated and I have got it to display how do i remove all the contents within the list so i can use it to … Software Development | |
Hi, I have a c# form in which I retrieve data from Access DB. I have Two DateTimePickers so I could choose data between dates. My problems is when I try to retreive data between 19/10/2010 and 12/12/2010 it gives me me data beyond 12/12/2010 but when I try to … Software Development | |
Hello everyone, Can anyone please help me figure out what I miss or did wrong to my code for not to compile? below are the code I did and I just couldn't figure it out what I missed. Thanks. [CODE] #include <iostream> typedef struct NodeType { char name; // the … | |
Hi,I am trying to scan a string to char *name inside struct data but it gives me segmentation fault. please help thanks. [ICODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> struct data { char *name; }; typedef struct data data; int main(void) { data first; data *fp; fp=&first; … Software Development c | |
I'm working on a debugging assignment and I'm stuck! Can anyone give me a tip on where to start with this? I'm so lost! It is to display the number of words in a sentence then give the average of the characters per sentence and display each individual word in … Software Development vb.net | |
Well, after searching through some old posts here, I found that there were different ways to go about playing general sound effects in C. Can anyone help me figure out how to play sounds in my programs? I'm making them in C ( hence this sub form) and I'm on … Software Development c | |
Lets say I have a JPanel and an object called ball inside of it, instead of creating gets so the JPanel can draw the ball image I would like the ball object to draw itself on the JPanel. Is it possible? Thanks :D. Software Development java | |
for home work assignment we have to Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName, getPrice, and reducePrice. Supply a program ProductPrinter that makes two products, prints the name and price, reduces their prices by $5.00, and then … | |
Hello there. I'm new in python thats why i hope for one quick explanation. I'm making this program just for fun tho i dunno how to really use raw_input in loop. [CODE]from random import * ime_f = raw_input("Vnesi ime fanta: "); priimek_f = raw_input("Vnesi priimek fanta: "); ime_z = raw_input("Vnesi … Software Development python | |
ok so every time i write this f=open('file.html') p=f.read() this come out and i do not understand it help!! p=f.read() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8171: ordinal not in range(128) i am trying to open a .html … Software Development file-system html-css python | |
First of all, Is it actually possible for a keyboard to be able to accept input from multiple separate keys at the same time? For instance, If I was to make a simple game like pong, and set an up and down key for each player, could both players press … Software Development java | |
hey guys, i am trying to make a program that overloads the istream with which you can create an object by asking from the user to enter values and you can use cin>>name_of_the_object to create it. My question is how can i ask the user to enter a certain hour … Software Development c++ | |
This app will execute and exit right after the process is complete. It will log different things using the logging module. For some reason everytime, no matter if the app execution is a success or a failure, it will tell me an error has occred, and see the log file … Software Development python | |
Hi all, I was wondering if someone could help me with this bit of coding. I have set two veriables d1 and d2 to pick a random int of 1 to 10: which I need for in loop but when I run it the same number appear How do I … Software Development python | |
Hi all...could anyone please tell me how when working with arrays you could use a forach loop to output the number of a certain item... for instance...if i wanted to find out the number of 5's in an array...could i use a foreach loop to find that out? Thanks Software Development | |
I have to create a program that uses 2 loops to calculate the average of any number of grades, and run the program any number of times. So far this is what I have, I'm sure it's at least 99% wrong, but if someone could please help me get in … Software Development pascal | |
Hey, I'm new to Python and wondering about the following bit of code. It tells me that the module random has no attribute randint. I've looked at the documentation and such and I think I'm doing it correctly, but obviously something's wrong. Any ideas? Thanks! [code] import random int1=random.randint(1, 6) … Software Development python |
The End.