132,726 Archived Topics
Remove Filter ![]() | |
Hi, i just want to ask why this error mean? InvalidOperationException was unhandled by user code The provider could not determine the String value. For example, the row was just created, the default for the String column was not available, and the consumer had not yet set a new String … | |
Dear all , I am trying to develop code that will check for each location (latitude and longitude) for a nmea file ( contains over 200,000 point) to check if this file contains some points that was close to a certain location or not . How can we do this … Software Development | |
can somebody teach me or show me a code that converts a binary to a decimal.... >_< and if you could kindly explain how it happens.... should be in TurboC programming.... Software Development c++ | |
What is the difference between String s="abc" and String s=new String("abc"); Software Development java | |
Hi all, I am working on a program that will take up Excel files, with columns in a certain order and with specific names, and load the data into a MySQL database table. This I have already achieved. [B]My challenge is how to have an email address where the Excel … | |
Urgently!! Need help convert number to words using jframe please help me Software Development java | |
I Wanted some good patterns questions that is challenging. Also some logic teasing questions. forums like codechef have questions bit too absurd to understand. It would be really good if someone could provide questions easy to understand yet logically challenging. Software Development c | |
[CODE=c] /*main.c*/ #include<stdio.h> extern void func(void); main() { extern int i; printf("i in main %d\n",i); printf("Call to func before modifying i in main...\n"); func(); i=66; printf("Call to func after modifying i in main to 66..\n"); func(); getchar(); } /*file1.c*/ char i=65; void func(void) { printf("i in func %c\n",i); } [/CODE] … Software Development c | |
VS 2010, 4.0....C# and NUnit Hoping someone can help me out. I am trying to store and retrieve items from an interface and create Nunit tests on them and am lost. I believe the impl and interface are correct but I am having problems figuring out how to write the … Software Development | |
5 student picked up 5 balls. they do not choose same number but during print out process, the program is writing different ball number i dont know why? [CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; int main(int argc, char *argv[]) { int i; int ogr[5] = {0}; // … Software Development c++ | |
hi i am creating a program in vb.net which display decimal, octal, hexadecimal, binary in textbox...i was hopeing me if someone can give a start...im completely new to vb thks you Software Development vb.net | |
hey guys can u help me with this the problem of this code should delete only the selected item from the listview in a report.txt but this code delete all the data in the txt file whether i selected only one data from the listview.... [CODE]Dim myFile As String = … Software Development file-stream listview vb.net | |
Hi, I have to pass a void pointer in a function and at the other end I have to read some values from this void pointer. I planned of creating a class and setting up required variables into an object and then I set this [CODE] void* ptr = obj … Software Development c++ | |
Hi I have Turbo pascal and my teacher told us to find how much a guy will earn if he puts in a hundread dollars a month till he's sixty at 5 percent interest. (compound interest that is) Help me please, Here's the code:= Program retirement_fund (input,output); USES winCRT; VAR … Software Development pascal | |
I would like to check user input value against a declared final variable to make sure it does not exceed the final int variable for the purpose of using in a try-catch-finally. [CODE] final int variable = 20; // Variable declared for max allowable int userInput = 0; // Used … Software Development gui java user-interface | |
I made a binary tree but it has some logic problem can some one point [code=c] #include<stdio.h> #include<stdlib.h> struct node { struct node *left, *right; int data, color; } *root; int check = 0; typedef struct node tree; tree *create_node(int); void add_tree(tree *, tree *); void travel_tree(tree *); int main() … Software Development c | |
I have a checkedlistbox that is being generated by a datatable at form load. It contains a list of author names as my form is about adding books. A single book could have one or more authors, so that is the case. What it must do is when I add … Software Development | |
guys! can you help me convert this code to java language.... this is my code in c++....i need to convert in java.... # include <iostream.h> int num1,num2,sum; double add(double sum); int main() { cout<<"Enter first number"; cin>>num1; cout<<"Enter second number"; cin>>num2; sum=add(sum); cout<<"The sum is: "<< sum; return 0; } … Software Development java | |
This function should take as it's arguments two integer values. The function should return the smaller of the two values. From main ask the user for two integer values. Pass the two values to your smallest function, then print out the returned value. I am new to c++ and struggling … Software Development c++ | |
Hi I was just wondering if I create a pointer using the new operator and then I call the new operator on that same pointer later on would that overwrite the existing pointer so that I do not waste memory on the heap or do I have to delete it … Software Development c++ | |
I wrote this program about four hours ago and everything but my if loop is working. I wrote a separate one in a test file and it works, for the life of me I can't get it to work in this program. When inputting anything other than a y or … | |
Hi Guys, i'm new to java and i need a code like a student form or employee on how to add, search, and delete a data in an array or list.. i'm very confused and i really need your help.. thanks. Software Development java | |
[CODE]import java.util.Scanner; public class Highest{ public static void main (String [] args){ Scanner kb = new Scanner(System.in); int scores [] = new int[3]; String names [] = new String [3]; int highest = scores [0]; String names1 = names [0]; for (int i = 0; i<3; i++){ System.out.println("enter name and … Software Development java | |
HI All, I need to submit my feedback form contents to an e-mail id as soon as the user clicks the submit button. How will I implement this in java. I googled and found out that FormToEmail which is a php script does this. But since i Am using netbeans, … Software Development email java java-jsp java-netbeans | |
ok guys I need your help. What i need to do is create a program that prints out a user specified pattern. the user specifies the size and which pattern. the patterns should llok like this Patter 1 Pattern 2 Pattern 3 Pattern 4 5$$$$ $$$$5 $$$$$ $$$$$ $5$$$ $$$5$ … | |
Hi! Re: [url]http://www.daniweb.com/forums/post868247.html#post868247[/url], the example provided by sneekula is helpful, but I need to return the result of the ButtonRelease-1 to main; the only way I could figure out to do this was using a global; is there a better way? Thanks again! | |
Q: find the area of the rectangle using 2 objects This is my code with out the 2 objects normal code [CODE] #include<iostream> using namespace std; class rectangle { int q,w ; public : void set_value (int e, int r) { q=e; w=r; } int area() { return q*w ; … Software Development c++ | |
I just learned about heaps today. It looks like STL wants you to create a heap by first creating a vector, then using make_heap from <algorithm>: [code] std::vector<SimpleClass> Numbers(8); // ... populate ... // convert Numbers into a heap make_heap(Numbers.begin(), Numbers.end()) ; [/code] Why is there not a <heap> just … | |
Why am I getting this errors when running this program where i tried to create 2 specialized templates to use int and double: [code] #include <iostream> using namespace std; template<> int sum<int>(int* array, int start, int stop, int init = int()) { int* stp = (array + stop); int* str … Software Development c++ | |
[B]constructor with array parameter.[/B] Internal array is assigned values as indicated by the parameter. An example of the use of this contructor is: - int values[] = {2,5,7}; - IntSet a = new IntSet(values); // create a set with elements{2,5,7} im very very confused on his wording, i dont know … Software Development | |
Is it possible to view the code of the site that is loaded into the webbrowser? eg; [CODE]webBrowser1.Navigate("http://google.com"); webBrowser1.Contents = HTML;[/CODE] Or is is possible to save it as a file instead? Software Development html-css | |
I have a question: Say I have a text file with a bunch of words on it, say the following: hello baby crap hate ground soul fart hot render Now, if I make a program that requires the user to input a word, how would I go about searching the … Software Development c++ | |
Hi. I am trying to code a program to send keys to a certain window. For example, in notepad I want the program to write "test" over and over again, in the notepad window. However, I do not want this window to be an active window. Is it possible to … Software Development vb.net | |
Hello all, I am a long time browser and first time poster here. Right now I am a little stuck on my project and could use a little help. The program opens a .txt file and then reads the data and places the data accordingly. The issue this time compared … Software Development c++ | |
We have constructed a windows service unde W2003 Server in vb.net 2010 to process certain database transactions. It should work 24/7 o the server. However, after 3/4 days it blocks the windows server operation since the memory usage is ever-increasing. After many revisions, we decided to place under "comments" all … Software Development motherboards-cpu-ram vb.net windows-server | |
break; The break is used to (1)terminate a case in the switch statement. (2)Force an immediate termination of a loop. sample prog. void main() { int a; printf("1. Happy\n"); printf("2. Sad\n"); printf("Enter Your Choice.."); scanf("%d",a); switch(a) { case 1: { printf("You are happy."); break; } case 2: { printf("You are … Software Development c | |
Hi, I'm new to the community and to C. i have no programing background what so ever but i have been reading books on it. I am trying to use a for loop to print out the folowing ******* (space)******* (space)(space)******* (space)(space)(space) ******* I wrote the program #include <stdio.h> int … Software Development c | |
Hello all, I started a new project wich function is restoring a corrupted DB. I started with making a backup of the original db and then trying to restore it again. But when executing my code i get following error [CODE]IErrorInfo.GetDescription failed with E_FAIL(0x80004005)[/CODE] Anyone got an idea how to … Software Development open-source vb.net xml | |
Okay, here's the senario: I want the form to hide when I click on the minimize button, then the notify icon will show up on the system tray. I have this piece of code: (ntfLibSMS is the name of my notify icon) [CODE=vb.net] Private Sub LibSMS_Resize(ByVal sender As Object, ByVal … Software Development vb.net | |
So I have a file I wanna put its content in an array and that needs malloc or new. I do that on a large project, it was working fine but i guess some changes were made to this project and now that malloc causes a crash and "char* array … Software Development c++ | |
[code] import java.util.*; import java.text.*; import javax.swing.*; class Lab4Part2{ public static void main (String[] args) { String ex1; Double num, F; final int a=0, b=0; JFrame myWindow=new JFrame(); myWindow.setSize(500,400); myWindow.setTitle("Calculator"); myWindow.setVisible(true); myWindow.setLocation(600,200); ex1=JOptionPane.showInputDialog(myWindow, "Enter an expression"); F=Double.parseDouble(ex1); num=(a+b); JOptionPane.showMessageDialog(myWindow, "The sum is "+num); } } [/code] I need some help … Software Development java java-swing | |
Greetings! Hi, I'm a vb starter. I've inserted an adodc data control into a form. [CODE]With adodcIncoming .Recordset.Find "p_id = " & "'" & txtPatientId.Text & "'"[/CODE] Above is a code snippet. After this block of codes, I'd like to check if p_id = txtPatientId.Text is found or not, how … Software Development visual-basic | |
My program requires that the user input values for an array do not exceed a declared final int variable. To control this I wrote this code to catch and throw exceptions in order to prevent computer from crashing the program. There are two conditions to be handled. (1) Exceeding array … Software Development java | |
I am going to try to explain this the best I can I didn't develop the original version of this, or the part that rights it to the database. in our company, there is a program that takes PDF files and stores them in our mysql database as blobs. The … | |
Hello everybody, really need some help getting this code to add up even and odd numbers from a set of integers. But it also needs to default or continue through if input is incorrect (i.e.- $,@,#,3.4) and so on. Here is what I have so far. Thank you. [CODE]#include <iostream> … | |
I have this 'code' which I wrote as new kind of art form, both as story and code. As program it is little stupid in way of expressing things, because it is writen thinking of human who reads the code. It is supposed to be impressive in that it is … Software Development python | |
In MS Access you can set the background to a specific colour when the field has the focus. This is done through "conditional formatting", using the "Field has Focus" feature. How is that done in VB.NET? Software Development vb.net | |
Hey! guys, i need help figurering out how to make this program ran. Jack has decided his student organization is going to sell Oktoberfest shirts at Oktoberfest. In order to compete with other clubs, he wants to offer a 10% discount to anyone who buys 5 or more shirts. Also, … Software Development java java-swing programming-construct | |
Hi.... I have a datepicker that contains an alternate key of an Access Table with a autokey primary key. [code] Private Sub DateTimePicker1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles DateTimePicker1.Validating Dim d As Date = DateTimePicker1.Value If d < Today Then MsgBox("Gelieve een datum in de toekomst te … |
The End.