132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zulhimi89

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 …

Software Development sql vb.net
Member Avatar for JJCollins
0
218
Member Avatar for waleed.makarem

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
Member Avatar for waleed.makarem
0
282
Member Avatar for ToiNKieZ

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++
Member Avatar for stereomatching
0
148
Member Avatar for vskumar19

What is the difference between String s="abc" and String s=new String("abc");

Software Development java
Member Avatar for ~s.o.s~
0
76
Member Avatar for dangari

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 …

Software Development email java
Member Avatar for dangari
0
151
Member Avatar for lockwater

Urgently!! Need help convert number to words using jframe please help me

Software Development java
Member Avatar for tong1
0
126
Member Avatar for Rahul.menon

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
Member Avatar for gaurav_13191
0
93
Member Avatar for swapnaoe

[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
Member Avatar for Ancient Dragon
0
194
Member Avatar for rcanter

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
Member Avatar for rcanter
0
210
Member Avatar for burcin erek

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++
Member Avatar for burcin erek
0
104
Member Avatar for francez
Member Avatar for jatt09

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
Member Avatar for jatt09
0
105
Member Avatar for arjen

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
Member Avatar for arjen
0
719
Member Avatar for keeda

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++
Member Avatar for keeda
0
99
Member Avatar for jake16

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
Member Avatar for kalish88
0
1K
Member Avatar for jems5

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
Member Avatar for jems5
0
106
Member Avatar for onus

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
Member Avatar for onus
0
255
Member Avatar for AngelicOne

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
Member Avatar for AngelicOne
0
155
Member Avatar for mitchneys

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
Member Avatar for mitchneys
0
138
Member Avatar for cortez716

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++
Member Avatar for cortez716
0
154
Member Avatar for Duece_68

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++
Member Avatar for Duece_68
0
133
Member Avatar for jmcorpse

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 …

Software Development algorithm c++
Member Avatar for jmcorpse
0
126
Member Avatar for ANDIEniable

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
Member Avatar for kvass
0
424
Member Avatar for plasticfood

[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
Member Avatar for NormR1
0
120
Member Avatar for ambikanair

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
Member Avatar for ambikanair
0
114
Member Avatar for smeghead007

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$ …

Software Development c c# c++ ios
Member Avatar for smeghead007
0
157
Member Avatar for OlyDLG

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!

Software Development gui python tkinter
Member Avatar for OlyDLG
0
319
Member Avatar for Rayanjaha

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++
Member Avatar for mrnutty
0
117
Member Avatar for daviddoria

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 …

Software Development algorithm c++
Member Avatar for Narue
0
107
Member Avatar for vbx_wx

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++
Member Avatar for sandy#123
0
456
Member Avatar for jigglymig1

[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
Member Avatar for Momerath
0
91
Member Avatar for buster2209

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
Member Avatar for nick.crane
0
96
Member Avatar for MrJNV

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++
Member Avatar for hag++
0
312
Member Avatar for Smoogel

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
Member Avatar for marketingmaniac
0
199
Member Avatar for lepinat0r

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++
Member Avatar for lepinat0r
0
125
Member Avatar for orlando ramirez

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 …

Member Avatar for orlando ramirez
0
222
Member Avatar for Snader

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
Member Avatar for N1GHTS
0
131
Member Avatar for hoganmadman

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
Member Avatar for N1GHTS
0
95
Member Avatar for 00100110

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
Member Avatar for lolafuertes
0
101
Member Avatar for breisa

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
Member Avatar for lolafuertes
0
559
Member Avatar for tehmarto

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++
Member Avatar for tehmarto
0
145
Member Avatar for andyluvskrissy

[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
Member Avatar for NormR1
0
180
Member Avatar for red_evolve

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
Member Avatar for AndreRet
0
228
Member Avatar for jems5

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
Member Avatar for dangari
0
146
Member Avatar for jlego

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 …

Software Development mysql pdf vb.net
Member Avatar for jlego
0
937
Member Avatar for codingNewB

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> …

Software Development c c# c++
Member Avatar for ironmancpp
0
2K
Member Avatar for TrustyTony

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
0
332
Member Avatar for PerplexedB

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
Member Avatar for JJCollins
0
692
Member Avatar for tonyfingures

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
Member Avatar for JamesCherrill
0
163
Member Avatar for PerplexedB

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 …

Software Development dataset vb.net
Member Avatar for PerplexedB
0
141

The End.