43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Phasma

[B]Read a CSV file into a DataGridView[/B] [CODE]'12/4/2011 'Code to read CSV file with headers using 'ACE.OLEDB.12.0 Connection 'The following is a Sampling of <EXTENSION.csv> 'The CSV file contains all the Extension on my Desktop Computer 'The full file has 923 Rows with Headers: 'EXTENSION,DESCRIPTION,EXECUTABLE_PATH '.mde,Microsoft Office Access MDE Database,C:\Program …

Member Avatar for Phasma
0
1K
Member Avatar for NoUserNameHere

Not getting any compile error, but I'm getting an output that looks like: -858993460 5 4 3 2 Instead of 5 4 3 2 1. What am I doing wrong? [CODE]#include <iostream> #include <stack> using namespace std; template <typename T> void reverse(stack<T> &sk) { stack<int> tempStack; while(!sk.empty()) { tempStack.push(sk.top()); sk.pop(); …

Software Development c++
Member Avatar for tharumax
0
101
Member Avatar for Kuroshi

I get this compiler error: `Monster' was not declared in this scope, in this code: [CODE]#ifndef ROOM_H #define ROOM_H #include <stdio.h> #include <stdlib.h> #include <time.h> #include <vector> #include <iostream> #include "Monster.h" using namespace std; const int ROWS = 20; const int COLS = 20; class Room { private: vector<int> indexes; …

Software Development c++
Member Avatar for VernonDozier
0
127
Member Avatar for niggz

Hello masters! I have a project and need a bit of your help. I would like to access/get values from certain fields from a database and assing that value to a variable. Database is included into my project along with DataSet. Is there any simple way to access certain field? …

Software Development asp.net dataset microsoft-access
Member Avatar for thines01
0
213
Member Avatar for CodeAdmiral

For a school project, I am trying to make a program that gets user input and finds the factorial of the input. I wrote this bit of code and got tons of errors. Help, anybody? [CODE]import javax.swing.*; import java.awt.*; import java.io.*; import java.util.*; class TestFactorial { public int x = …

Software Development java java-swing mathematics user-interface
Member Avatar for thines01
0
255
Member Avatar for gourav1

let an integer say, x=0xffffff0; when i shift left 4 positions in it.it got negative. x=x<<1; doing this 4th time,number got negative. please tell why it is so.

Software Development java
Member Avatar for JamesCherrill
0
311
Member Avatar for Ahmed2

Hello every body I'm trying to iterate through a list for a certian number of times using a for loop. below is the current code I've written, but this will iterate through the list until it ends. [CODE]list<FileInfo*>::iterator p = currentlist.begin(); while(p != currentlist.end()) { cout << (*p)->remainingtime << " …

Software Development c++ programming-construct
Member Avatar for Schol-R-LEA
0
2K
Member Avatar for sharathg.satya

hi all Can we (compile and execute) or just execute a c file from another c file? am asked this question and i am unable to find any solution to this problem. A 'c' file is executed and it must contain code that will execute another 'c' program olease help …

Software Development c
Member Avatar for Narue
0
266
Member Avatar for gorbulas

Hello Having trouble reading in some 8-bit data (not text) from serial port using pyserial module. Am storing the data in a string buffer as it comes in, that's working fine. Problem is that I'm printing the buffer out to the terminal screen, after a wee bit of data (30~200 …

Software Development python
Member Avatar for Gribouillis
0
346
Member Avatar for Lemony Lime

So, I have a two part question for you... I'm going to be writing several lines of code to a .txt file, but I won't know what each line is, or how many there will be. There could easily be hundreds of lines. I need to add a prefix to …

Software Development python
Member Avatar for gorbulas
0
226
Member Avatar for divsok

Suppose the xMethod() is invoked in the following constructor in a class, xMethod() is _________ in the class. public MyClass() { xMethod(); } A. a static method B. an instance method C. a static method or an instance method what is the answer a or b or c

Software Development java oop
Member Avatar for stultuske
0
1K
Member Avatar for arindam31

Hi Guys , this questioned has been asked before , but the answers haven helped me . I want to seperate lines when i am appending the text control. But "\n" is simply not working . I am using Python 2.7 , on Windows 7. Please help. I want to …

Software Development python
Member Avatar for arindam31
0
34K
Member Avatar for cvanithakpm

please help me by answereing my three question 1)page redirection is possible through which methods? 2) another question which is the default port number of jws? 3)we can write servlet programs by using http packages only ah?

Software Development java
Member Avatar for StephNicolaou
0
135
Member Avatar for Danizand

I am trying to extract data from multiple files into one output file. At the moment I am able to extract the columns I want into a vector in a vector: [code] vector< vector<double> > out; //2D vector ofstream myfile ("example.txt"); //outputfile //the data contained in data[n][6] is put into …

Software Development c++
Member Avatar for Danizand
0
2K
Member Avatar for subith86

Hi all, Sorry if this is a stupid question. Assume I have a code like this. [CODE] char *temp = "poiuytrewq"; std::cout<<*temp<<std::endl; //should print p function(temp); std::cout<<*temp<<std::endl; //should print i [/CODE] Basically my function() in the above snippet increments the pointer twice so that temp point to 'i' now. I …

Software Development c++
Member Avatar for subith86
0
179
Member Avatar for bhagawatshinde

Hi, How to avoid webbrowser data copy, paste to word or notepad in vb.net. Disable right click on webbrowser by using [ICODE]IswebbrowserContextmenuEnabled =false[/ICODE] Thanks in Advance...

Software Development vb.net
Member Avatar for bhagawatshinde
0
120
Member Avatar for Xaviorin

I'll keep it simple and hopefully whatever simple error I keep overlooking can be used as a learning experience for others. This program uses a user created file called patient.dat that contains the following: Smith Eleanore 110/73 Jones Tom 200/78 The error I am having is that Mr Tom Jones …

Software Development c++
Member Avatar for Xaviorin
0
239
Member Avatar for arjunpk

hi... i'm getting a null reference exception unhandled error..... i have inserted the code snippet and a screenshot... please tell me where i'm going wrong..... [CODE] DataSources[] dataSources; int i = 0; _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode tempNode in _list) { //MessageBox.Show(tempNode.Attributes["Name"].Value.ToString()); //MessageBox.Show(tempNode.InnerXml.ToString()); dataSources[i]=new DataSources(); dataSources[i].getContent(tempNode); i++; }[/CODE] the class …

Software Development xml
Member Avatar for theepan1
0
207
Member Avatar for jcAmats

hi! can someone help debug my codes? getline() works properly in my main() but if i'm putting it to another function, it ignores the first getline() w/o entering any words and goes to the 2nd getline. my program works like this: i have a menu() that lets the user to …

Software Development c++ perl
Member Avatar for jcAmats
0
385
Member Avatar for Morten Brendefu

I am trying to write a few very dynamic procedures and functions and wonder about transferring parameters to a procedure as an Array. This is actually easy enough done.... just that I would like to pass something like [CODE] VAR a,b,c : INTEGER; Name, Text1,Text2 : STRING; todaysDate : TDate; …

Software Development pascal
Member Avatar for Morten Brendefu
0
1K
Member Avatar for timmy568

Hi guys i am trying to write a program that uses two classes, Board and Game, to run the Game Of Life. Currently my output is in the console, as a GUI is going to take too long. I am having some trouble writing my nextGeneration method in the Game …

Software Development gui java
Member Avatar for timmy568
0
139
Member Avatar for loserspearl

My Applet is working but I have 2 issues, I cannot get away from the 'metal' plaf background (trying to make it all solid blue) and when the user clicks on the 1st text box I want the prompting text to clear for the user to type their own. No …

Software Development encryption java java-swing
Member Avatar for loserspearl
0
113
Member Avatar for loserspearl

Im writing the Applet GUI code that uses another class to translate a string into pig latin (dubbed PigLatin.class) My gui has two text areas, a few labels, and two buttons, but I'm having some trouble with event handling. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TxtCrypt extends JApplet …

Software Development encryption gui java java-swing
Member Avatar for NormR1
0
160
Member Avatar for Mike Askew

Hi there, I have two tables in my data entity model accessed by StaffDB. Staffs contains: StaffID FirstName LastName Address Town County Postcode YearJoined CurrentGrade Role Ratings contains: RatingID StaffID Date Rating1 (automatic to avoid conflict with table name also of rating) Comments These are linked by StaffID. I am …

Software Development asp.net
Member Avatar for thines01
0
986
Member Avatar for Jollyyy100

Hi All, I wanted to know if its possible to create a right click function in vb.net MDI form. Example the way we right click on any program it gives us a list of options, is it possible to do it in vb.net and how? Need help, thank you.

Software Development vb.net visual-basic
Member Avatar for Jollyyy100
0
160
Member Avatar for Tortura

I know, that you can't set the value of CancellationPending of the BackgroundWorker class The default is false. If you call the CancelAsync()-method, CancellationPending is true. I need to call this method, that my program stops measuring. Now you are back on the GUI. You can change values and again …

Software Development gui
Member Avatar for mazzica1
0
142
Member Avatar for gahhon

[CODE] String SearchBroadCastMenu[] = new String[] {"Search Item Code", "Search Title", "Search Country of Origin", "Search Language", "Search Status", "Search Director", "Search Actor", "Search Producer", "Search Frequency", "Return To Previous"}; UIManager.put("OptionPane.messageFont", new FontUIResource(new Font("Tw Cen MT Condensed",Font.PLAIN,18))); UIManager.put("OptionPane.messageForeground", java.awt.Color.blue); UIManager.put("OptionPane.buttonFont", new FontUIResource(new Font("Tw Cen MT Condensed",Font.PLAIN,18))); int SearchBroadCastOption = JOptionPane.showOptionDialog(null, …

Software Development java
Member Avatar for gahhon
0
211
Member Avatar for Thermalnuke

This program is suppose to input a date and output the day of the week that corresponds to that date. I have the program all done, but the code is not presented in the main() of the form. Im guessing i have to organize it a little more. any ideas …

Software Development c++
Member Avatar for WaltP
0
188
Member Avatar for gnik2009

I need to read a file that contains this: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 …

Software Development python
Member Avatar for gnik2009
0
239
Member Avatar for BleepyE

Im trying to figure out why this simple piece of code isnt working. The aim is for the user to enter a word and then the application echos the word back to them. If the word is equal to 'done' then the application prints 'Complete'. [CODE]import java.util.*; public class word …

Software Development java
Member Avatar for BleepyE
0
117
Member Avatar for Shodow

here i have 2 listbox i already have the code for the selected item moving right and moving left but i don't know how to move all of the listbox1 to listbox2 by just click >> or listbox2 to listbox1 <<

Software Development asp.net vb.net visual-basic
Member Avatar for Shodow
0
175
Member Avatar for Jedilance

[B]here is the problem:[/B] -user enters "degree" and a "threshold" value -degree is converted to radians(with a static method) -computing the approximation as long as the absolute value of the series element is greater than the threshold [COLOR="Red"]series:[/COLOR] i.imgur.com/GRsIP.png -Error is computed as absolute difference of approximation and the value …

Software Development java
Member Avatar for Jedilance
0
156
Member Avatar for easterbunny

Hi all, I got a problem.I got to make a program that sorts the digits inside a number given by the user, but I can't use an array. I know that the easiest way is with the bubble sort but I can't seem to make a switch between two digits …

Software Development c++
Member Avatar for easterbunny
0
2K
Member Avatar for ranejitendra

I am creating DLL using VC++ - Console application.. I am writing it for crating a new file... I am using Createfile function for this. but facing below error... error C2733: second C linkage of overloaded function 'CreateFileW' not allowed Below is my .CPP file from the project.. #include "stdafx.h" …

Software Development c++
Member Avatar for ranejitendra
0
4K
Member Avatar for Joey_Brown

Hello Im having some new Java problems, while trying to export my project to a JAR file in Eclipse. When I run it from the IDE its OK, all roses and bourbon, but I get hit over the head this when I run it from cmd : [CODE] C:\Users\Joey\Desktop>java -jar …

Software Development ide java
Member Avatar for NormR1
0
174
Member Avatar for bhagyap

Hi.. Following is my code:- public static void Sync(string sourcePath, string destinationPath) { bool dirExisted = DirExists(destinationPath); //get the source files string[] srcFiles = Directory.GetFiles(sourcePath); foreach (string sourceFile in srcFiles) { FileInfo sourceInfo = new FileInfo(sourceFile); string destFile = Path.Combine(destinationPath, sourceInfo.Name); if (!dirExisted && File.Exists(destFile)) { FileInfo destInfo = new …

Software Development asp.net c#
Member Avatar for bhagyap
0
219
Member Avatar for William Ng

][B]Is that possible to highlight the row when the cell value is change ? Can anyone teach me and explain to me ? Thanks[/B] [CODE]Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim update As New dboperation Dim t As DataGridViewSelectedRowCollection = Me.DataGridView1.SelectedRows update.makeconnection() If (Me.DataGridView1.Rows(t(0).Index).Cells(0).Value.ToString) …

Software Development vb.net
Member Avatar for William Ng
0
167
Member Avatar for Naveed_786

I am auto generating data grid and I am using check box in Data grid View, Now i am invoking check box state changed event but it produces the following error Handles clause requires a WithEvents variable defined in the containing type or one of its base types. Here the …

Software Development vb.net
Member Avatar for Naveed_786
0
161
Member Avatar for bilal_fazlani

heres a form i have created. its a search form. [url]http://img266.imageshack.us/img266/722/paymentsh.jpg[/url] it searches and lists the results in list view. heres my mssql query : [CODE] select transactions.trans_id,transactions.cust_id,transactions.trans_amount," _ & "transactions.trans_date,customers.fname+' '+ customers.lname as customer from transactions inner join customers on transactions.cust_id=customers.cust_id " _ & "where trans_type='inv' and (trans_id= " …

Software Development seo sql vb.net
Member Avatar for bilal_fazlani
0
166
Member Avatar for bilal_fazlani

I am making an invoice system. Please have a look at the images. [url]http://img32.imageshack.us/img32/9216/capture1iv.jpg[/url] [url]http://img839.imageshack.us/img839/1228/capture2cq.jpg[/url] as you can see, the place order button is creating an invoice. I have actually created a junk table and a junk column in it just to setup the invoice_id and load it when "invoice …

Software Development sql vb.net
0
137
Member Avatar for stereomatching

compiler : visual c++ 2005 os : win7 64bits [code] #define PARSE_AND_SERIALIZE_WRAPPER(HANDLE, VENDOR) \ template<> \ struct parse_and_serialize_wrapper<HANDLE> \ { \ template<typename Request> \ bool serialize_req(Request &request, std::string &serialized_msg, \ xml_schema::namespace_infomap &xml_namespace, boost::mpl::vector<serialize_query>); \ }; \ \ template<typename Request> \ bool parse_and_serialize_wrapper<HANDLE>::serialize_req(Request &request, std::string &serialized_msg, \ xml_schema::namespace_infomap &xml_namespace, boost::mpl::vector<serialize_query>) \ …

Software Development c++
Member Avatar for stereomatching
0
161
Member Avatar for toldav

Hello everyone its me again try to learn VB. I need help to make sure if my code needs to be modify. Here is the instruction: 1- The list box that contains the city names is not visible when the program runs. lstCity.Visible = Not lstCity.Visible (still showing at run …

Software Development vb.net
Member Avatar for toldav
0
206
Member Avatar for corby

im trying to overload the operator+= and use that to implement operator+ in my string class. i keep getting a segmentation fault when i try to evaluate something like s1 += s2 where MyString s1("");and MyString s2("hello"); any suggestions as to why this is happening? this is my operator+= function …

Software Development c++ operating-system
Member Avatar for corby
0
183
Member Avatar for redrobby02

Hi i am very new to delphi and have only been working with it for a few months, i need to calculate the difference between 2 TDateTime Variables regardless of the number of days passed. Currently im using this: [CODE] var StartTime, EndTime, TimeDiff: TDateTime; begin StartTime := (Now); EndTime …

Software Development delphi pascal
Member Avatar for Morten Brendefu
0
6K
Member Avatar for demroth

I am trying to write a lexical analyzer program that will read in input from a file and produce a formatted output. I need help as I am stuck. I am sure I am not passing the file stream, and the function parameters correctly. Do note some of the functions …

Software Development c++ file-stream
Member Avatar for demroth
0
3K
Member Avatar for coolbeanbob

Help! Why am I getting the following error on line 100?? I don't get an error when I use storage in other places? error C2065: 'storage' : undeclared identifier [CODE]#include "utility.h" struct masterFile // master file record { int employeeID; string employeeName; string departmentID; int YTDhoursRegular; int YTDhoursOvertime; double regularPayRate; …

Software Development c++ storage
0
57
Member Avatar for mc3330418

I have a student name, wins, losses. In that order in a txt file. I'm trying to read it in and them print it out, but i'm not real sure what I'm doing [CODE] #include <iostream> #include <fstream> using namespace std; const int MAX_SCORES = 50; ifstream infile; void report(int …

Software Development c++
Member Avatar for mc3330418
0
84
Member Avatar for mags11

Hello again! I'm almost finished this project. However, the Clear button stopped doing its thing. It keeps giving me an "Invalid Cast Exception" whenever I am pressing the clear button. The project includes 2 forms--- JobInformation and Summary. The code follows: [CODE] 'Program Name: JobInformation 'Programmer: Zabinga 'Date: 11/28/2011 'Description: …

Software Development vb.net
Member Avatar for mags11
0
413
Member Avatar for VB 2012

Okay hi people i just want to is it possible if you can use a Certain copy / Write Function that writes your file from Resources to where you want but with Progress(Progress bar) while its copying or Writing and if so can you give me a example please:'(

Software Development vb.net
Member Avatar for VB 2012
0
1K
Member Avatar for alaa sam

hi everyone , I have finally finished my firsy c# project and I want to make a .exe file for it , so any help??

Software Development
Member Avatar for KazenoZ
0
161

The End.