43,549 Solved Topics
Remove Filter ![]() | |
I am trying to write a windows application in vb.net to import data from excel to sql server. I got "object not set to an instance of an object" error. The data actually have been inserted into the sql. The following is my code. I have a button when the … Software Development microsoft-office sql vb.net | |
I am trying to create keypress handler that will execute a line of code when Tab, Space, or Enter key is pressed or passed by the scanner gun while the control is in focus. I got it to work with space and enter key but with tab key, the cursor … Software Development vb.net | |
Hi, I'm trying to create a new file. In this file I want to add some results I have received from my code. Unfortunately I get a error message saying I can't combine str with list. So then I tried to make a string out of the list and ended … Software Development python | |
Hey everyone, I have a set of classes which, when instantiated, take up a lot of memory. I'm trying to write a program which can inspect class attributes and methods given a list of classes, without actually instantiating them. Let's say I wanted to see if the following class had … Software Development python | |
i have made a program with this algorithm but its not working properly my code is given below can you help me to remove the errors [CODE] #include<stdio.h> #include<conio.h> void main() { FILE *f; char ch; int nalpha=0,nword=0,nno=0,nsc=0; f=fopen("abc.txt","r"); if(f!='NULL') { while(ch=getch(f)!=EOF) { printf("%c",ch); if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) nalpha++; else if((ch==' ')||(ch=='.')) nword++; … | |
Hello all, I'm trying to inherit a "CarPanel" I created using arrays to draw various shapes in order to make a car. Now I am trying to essentially create a subclass that inherits that class, but add a Timer Action to move the car across the screen. I got it … Software Development java java-swing oop | |
![]() | I would like to start this post off with, I am not looking for someone to do my homework for me. If I was looking for someone to "do it for me", I would go to one of the sites where you can pay someone to do your work for … Software Development pay-per-click vb.net visual-basic ![]() |
Trying to re-write a php function to C++ using boost.. I have NOT seen code for this anywhere on the net. I thought it was useful and I need it for C++ but I need help.. definition of the function in c++ [CODE] void preg(string pattern, string subject, string &matches, … | |
I've received the requirements to make a form that inserts into a database, and then allows the user to edit the information they inserted. So what the form would do is get registration information from the user, insert it into the appropriate tables, and then redirect to a page with … Software Development | |
I like STL but the performance of the STL of visual C++ 2005 is not good enough, could I find some containers which looks like STL? Oops, I just found 1.48 release a brand new library--Container This library even support rvalue reference, so sweet. I love you, boost. Thanks Software Development c++ | |
hello all i m new at using C1truedbgrid..... and feeling very uncomfortable in shifting frm datagridview to c1truedbgrid.... can you help me in doing so????? my question at this time is that i m using a checkbox column in c1truedbgrid nw in order to select all checkbox i placed an … Software Development | |
Hi, i am new to c#. i write a code as below.You see that i obtained columnname and dataType but How can i get size of field in Table ? Pls help me. foreach(DataColumn dc in ds.Tables[UpdateTableName].Columns ) { lFound = false; cNewName = dc.ColumnName; cNewType = dc.DataType.ToString(); Thanks a … Software Development | |
Hi guys, is there a way to get worksheet names from a close workbook? thanks for any help. Software Development vb.net | |
helo, I learn Classes and methods according to a manual "Think Python: How to Think Like a Computer Scientist" I am stuck on "Polymorphism" There is a part using built-in function sum. I don't know what to do... It should be connected to __add__ function, but still the code must … Software Development python | |
this worked a few times and now its not :( anny help would be greatly appretiated [CODE] #include <iostream> #include <string> using namespace std; string vowels(string str) { string vow = "aeiouAEIOU"; for(size_t i = 0; i <= str.length()+1; i++) { str.erase((str.find_first_of(vow)),1); } return str; } int main() { string … Software Development c++ | |
I am also a New Learner, Base on the Request, This Simple Code would detect if a Number is Even or ODD number.... // This is to Detect Odd and Even Number [CODE] bool ValidateDegreeValue; // This is to Validate that the User Enter Number Data double DegreeValueNum; // This … Software Development c++ | |
I have a tic tac toe board i am finding it hard to figure out how to change parts of the array that contains char. I am looking for a way to to ask the user to select a char to change in the the array and then once they … Software Development java | |
[CODE] ifstream in_gradebook; ofstream out_gradebook; in_gradebook.open("gradeBook.txt"); out_gradebook.open("gradeBook_edit.txt"); while (???) //while int is being read { in_gradebook >> score; out_gradebook << score << " "; sum = sum + score; } average = sum / 10.0; out_gradebook << average << endl;[/CODE] Here is a small snippet of the code I have … Software Development c++ programming-construct | |
I am developing an application that involves serial port communication (using an FTDI device) and an operation which takes 3 minutes on an XP box, takes 9.5 minutes on a Windows 7 box. The application should handle data at a rate of about 11 kilobytes/second. I know my application is … Software Development | |
I am designing an application which communicates with another device via a serial port. My application buffers the received binary data until the data is valid/of known format, does some processing and then writes back a response. I understand this model is known as the consumer/producer model. The issue I … Software Development multithreading | |
I am new to Java and I am having trouble knowing if my array is populating when I click the enter button and printing out the data into the text area when I click the run reports button. When I put data in the text boxes the boxes are being … Software Development java java-swing | |
Ok so my problem should have a fairly simple fix. My program takes the number of families and their income and prints the families that make less than 10% of the maximum income. Below is a sample run. Please enter the number of families: 5 Enter an income: 8500 Enter … Software Development java | |
My problem is in the guessing method, I am not sure if the way I set up playing the game again works, (don't know if entering yes will work) and I'm not sure on how to call the main method to play again, and also I'm suppose to give the … Software Development java | |
I have a sql query with that adds numerical values from different table to find total for a shipment. When I execute this query, it works fine for the first record but rest of the records show null value when I know there are records present. SQL pros please take … | |
[CODE]public List<EventEntity> GetCurrentUpComingEventsByEstate(string estName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.estateName==estName && e.eventDate >= DateTime.Now select e; return res.ToList(); } [/CODE] [CODE] [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetCurrentUpComingEventsByEstate?estateName={estName}", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml)] List<EventEntity> GetCurrentUpComingEventsByEstate(string estName); [/CODE] Hi guys, may … Software Development | |
hi guy's i need some help. my project is an ATM simulator, to handle screen design i used panel for withdrawal, pin verification, balance etc. to explain further i have 1 panel for withdrawal a panel for pin verification etc. now idont know how to control those panel like if … | |
Hi! I have to write something like a multisim-like ([URL="http://www.ni.com/multisim/whatis.htm"]http://www.ni.com/multisim/whatis.htm[/URL]) software in VB.NET. My task is to make several custom controls, which the user can combine in order to create a circuit and test it after that. The problem is that I don't know how to make a control, looking … | |
Hello, so I recently started reading on arrays and I have an assignment to make a program that removes the necessary elements from an array of integers so that the array consists only of increasing integers, for example, transform {2,3,5,1,6,2,3} to {2,3,5,6}. Now, I do not know of any possible … Software Development c++ | |
Could you please help me on this. i tried but i am getting segmantation fault. void qsort(char *v[], int left, int right){ int i, last; void swap(char *v[],int i,int j); if(left>=right) return ; swap(v,left,(left+right)/2); last = left; for(i=left+1;i<=right;i++) if(strcmp(v,v)<0) swap(v,++last,i); swap(v,left,last); qsort(v,left,last-1); qsort(v,last+1,right); } void swap(char *v[],int i,int j){ '... … Software Development c | |
i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to … Software Development c c# c++ file-system | |
I want display 2nd cycle after sleeping 1st cycle time 1 second after that display 2nd ,3rd and so on.... I bold my thread code in above program.... [CODE] public class MainDrawCycle extends JPanel implements ActionListener ,Runnable { JButton button; JLabel lblclkValue,lbldispValue,lblTitle; JTextField textField; JScrollPane pane; JPanel panel; JFrame frame; … Software Development java java-swing | |
[CODE]class Mammal { String name = "furry"; String makeNoise() { return "generic noise";} } class Zebra extends Mammal { String name = "stripes"; String makeNoise() { return "bray";} } public class Zoo { public static void main (String[] args) { new Zoo().go();} void go() { Mammal m = new Zebra(); … Software Development java | |
How will I be able to send the password to the user's email id, when he or she selects forgot password? It's a crucial part of my project, please let me know how can i retrieve it? Software Development | |
I am trying to per textchanged in a textbox call an isnumeric function. I cant seem to get it to work. function: [ Private Function IsNumericCheck(ByVal CheckVal As String) As String 'check for numeric values and return boolean If IsNumeric(CheckVal) = False Then Return False Else Return True End If … Software Development vb.net | |
I need to read one wide Charecter(wchar_t) from a file once but it says: "ambiguous overload for 'operator>>' in 'WER >> mont' The part that also confuses me is that it writes the Charecter just fine. It is only one Charecter not a string if that makes a difference. Thanks. Software Development c++ | |
Hi, I don't really have a programming issue rather a artistic issue. Look at the following code of the front view an unfinished building. I'm trying to add a side view to the right or left. I just can wrap my mind on how it is supposed to look. [CODE] … Software Development java | |
Hi All, I need to compare one file in each file in the folders, some sort of duplicate check through md5 hashcode that I've found in my google search. Here's the code of functions: [CODE]Public Function CompareFiles(ByVal FirstFile As String, _ ByVal SecondFile As String) As Boolean Return ReadFile(FirstFile) = … Software Development file-system vb.net | |
Hi, I created the class for converting decimal to binary numbers and I wish to make the Windows application but there's an error: [ICODE]E2285 Could not find a match for 'TForm1::TForm1()' [/ICODE] The source code: [CODE]//--------------------------------------------------------------------------- #include <vcl.h> #include<math.h> #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 … Software Development c++ | |
Ive created a dictionary with all the letters of the alphabet, assigning each one to another random letter. encode={'b':'a','B':'A','c':'e','C':'E','d':'i','D':'I','f':'o','F':'O','g':' u','G':'U','h':'b','H':'B','j':'c','J':'C','k':'d','K':'D','l':'f','L':'F','m ':'g','M':'G','n':'h','N':'H','p':'j','P':'J','q':'k','Q':'K','r':'l','R':'L' ,'s':'m','S':'M','t':'n','T':'N','v':'p','V':'P','w':'q','W':'Q','x':'r','X': 'R','y':'s','Y':'S','Z':'t','z':'T','a':'v','A':'V','e':'w','E':'W','i':'x',' I':'X','o':'y','O':'Y','u':'Z','U':'z',' ':' ','!':'!'} Now what Im trying to do is to create a single function that takes the input, does the calculation, and produces the output, using … Software Development python | |
Heya i ran into a little problem, well more of a mental dilemma using strtok(), i already know how this function works, heres an example code: [CODE] void split_me(char *input) { char *split = NULL; //reset split size_t len = strlen(input); char to_array[len]; int i = 0; split = strtok(input, … Software Development c | |
Hey all, I'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string. I'm just wondering if there's an easier way to it other than: [CODE]CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)[/CODE] I have thought about creating a … Software Development vb.net | |
Hi I'm trying to write a program that will print the results of the series sqrt(1), sqrt(1)+sqrt(2), sqrt(1)+sqrt(2)+sqrt(3),...., sqrt(1)+sqrt(2)+sqrt(3)+...+sqrt(n) where n is chosen by the user. The output should look something like 1, 2.414, 4.146, 6.146, 8.382, 10.831, ..... Here's what I have so far [CODE]#include <iostream> #include <cmath> using … Software Development c++ | |
input.csv 1,2,text, date, qwertyuiopasdfghjklñzxcvbnm, yhnujmik,2121212121 [code] import csv reader = csv.reader(open('input.csv', 'rb'), delimiter=',',quoting=csv.QUOTE_NONNUMERIC)) csv_out = csv.writer(open('output.csv', 'w')) for row in reader: content = row[0] + row[4] + row[5] + row[11] + row[12] + row[13] + row[16] + row[17] + row[22] csv_out.writerow( content ) [/code] # I want it to save … Software Development python | |
![]() | Can you help me how to convert this for loop to Enhanced For-Loop? Thanks [CODE] for (int x = 0; x < grade.length; ++x) if (grade[x]==grade1) { gradesum = score [x] * testscore1; }[/CODE] Software Development java |
Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel … Software Development c# | |
Is there anything wrong with my coding? Why do I keep getting the message..."Error Opening Input File!" #include <stdio.h> #include <conio.h> void fgetAnswers(FILE*,int*,char[]); void fgetAnswers2(FILE*,int*,int,char[]); int main() {char ans[50],choices[50]; int n,i,id,missed[50],tot; FILE *input,*output; input = fopen("examdat.txt","r"); if(input == NULL) { printf("Error opening input file!\n"); getch(); return 0; } fgetAnswers(input,&n,ans); output … Software Development c | |
I have a database bound to a listbox but I would like to view only certain items, how to do that? It sounds like a really simple task but I don't know how to do it. Software Development | |
I would really like to build an application in C# that will send out faxes and e-mails. [B]On the client side[/B] (I could do this in C# or php) I would have a few customer groups setup to select from. Each group is pulling data from our customer data file … Software Development client-server pdf | |
i made a program in dev c++ to merge contents of two files into a single file but the merged file is showing garbage outputs. question:- Write a C++ program to merge the content of two files namely “Employee.txt” and “Salary.txt” into “EmployeeDetails.txt”. Sample contents of Employee.txt EmployeeName EmployeeNumber Department … | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized. the error is here: line 20 Line 18: cn.ConnectionString … |
The End.