43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for KONE BREAD

Hello, I am trying to run this program, but I have no idea where the problem is. I get these 3 errors in my error list when I try to run it: Error 2 The best overloaded method match for 'Project_1.Client.Client(Project_1.SharedClick, Project_1.SharedMsg, System.Windows.Forms.TextBox, System.Windows.Forms.Button, System.Windows.Forms.Button)' has some invalid arguments Error …

Software Development client-server windows-server
0
69
Member Avatar for saketbash

Our teacher wants us to take an array and output it via these instructions. The array conists of grades (ie 92 72 83...etc): "Write the output to a text file. In it, display the original grade array, 10 per line, in fields of 5." My question is, what does that …

Software Development c++
Member Avatar for saketbash
0
170
Member Avatar for sonygamer

I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include …

Software Development c++
Member Avatar for Narue
0
1K
Member Avatar for saketbash

Hi guys. This is my first post and I hope I can get some help. Thanks so much in advance for this. I have what I'm sure is simple but I'm missing something here. I have a file being read from (input.txt) which has no more than 50 grades w/ …

Software Development c++
Member Avatar for saketbash
0
88
Member Avatar for Jennifer84

This code(Files) does return the whole directorypath like this: C:\Documents and Settings\User\Desktop\Text.txt What should be changed if you only want to return the fileName wich is: "Text" Code: System::string ^ Files10 = "c:\\"; array<System::string ^> ^ Files = System::IO:: Directory::GetFiles(Files10,"*.txt");

Software Development c++
Member Avatar for Jennifer84
0
145
Member Avatar for dagray

The code will read in a file and build a table with the ctn_no and seq_no which works fine. I want to change it so that when I find a break mark I build a table of ctn_no + 1 and seq_no + 1 rather than a table of ctn_no …

Software Development python
Member Avatar for woooee
0
82
Member Avatar for fpaquin

Hi to all, I am using Java version 1.3 with IBM Websphere and DB2. I would like to create a page that you can save and retrieve an image from DB2 and post it on a web page using a stored procedure. My questions are: 1. How should I create …

Software Development image java
Member Avatar for fpaquin
0
122
Member Avatar for gsivaram
Member Avatar for DangerDev
0
147
Member Avatar for sbv

hello friends, i am sending selection formula from code. something like ... CrystalReportViewer.selectionFormula = {MyViewForReport.Q_code}=" & cboQ.Item(i).value my req. is i want to send multiple values with " and " , "or" what i did is - "{VoterRegDetail_Qry.QualificationCode} = 1 and {VoterRegDetail_Qry.CasteCode} = 19 Or {VoterRegDetail_Qry.CasteCode} = 20" But its …

Software Development vb.net
Member Avatar for sbv
0
186
Member Avatar for Jennifer84

I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; …

Software Development c++ file-system
Member Avatar for Jennifer84
0
111
Member Avatar for Jennifer84

If I have a textBox1 that contains 2 lines of text. What I want to do is to put each line into an Array. So I want to check the textBox1 and read in all consisting lines into an Array. [I](1 line will reprsent 1 memoryplace in the Array)[/I] How …

Software Development c++
Member Avatar for Jennifer84
0
340
Member Avatar for nschessnerd

hey im using vb 6 on a 64 bit vista computer in vb express 2008, is there some way i can compile a lightweight program for use on a mac? thanks m

Software Development visual-basic
Member Avatar for bbqchickenrobot
0
89
Member Avatar for new_2_java

Hi all, I have a program which downloads a bunch of documents from a remote server and after bundles them up in a .zip file using ZipOutputStream. The problem is that when I download the files, there could be more than one file with the same file name. So, when …

Software Development java
Member Avatar for new_2_java
0
4K
Member Avatar for Jennifer84

I wonder. When you are in dubbingmode and develop you program you refer to ifstream like in the code below. [code] ifstream OneFile("Text.txt"); [/code] "Text.text" is in the folder debug. Later when the application is finished. I want the file "Text.txt" to be in a folder like this: C:\NewApplication\FileFolder\Text.txt How …

Software Development c++
Member Avatar for Jennifer84
0
140
Member Avatar for Nemoticchigga

Hi, I am writing a simple program to read and write a serial port. I only have access to one serial port on my pc so I am using a HugePine RS-232 to USB convertor. The driver is installed and windows recognizes it is attached. My question is what comm …

Software Development c++
Member Avatar for Nemoticchigga
0
148
Member Avatar for gcardonav

Hello Well I have this coding and I thought I set it up ok to catch this simple exception, but as of right now, the program continues to run after the exception happens and its not even catching it. where did I go wrong. Thank you all Your rookie programmer …

Software Development c++
Member Avatar for gcardonav
0
100
Member Avatar for ptaylor965

Is it possible to issue SQL Style Commands to manipulate data from XML Files ie. SELECT, INSERT, UPDATE and DELETE The reason i ask is the i want to write an appliclation that will store the database with the application but with out the user needing to have MSAssess (for …

Software Development app-store vb.net xml
Member Avatar for binoj_daniel
0
113
Member Avatar for mmxbass

How can I make my pygtk windows switch to another workspace. I'm working on a box-oriented task selector and I need my boxes to follow windows to their new workspaces when they change workspace. This is my code thus far: [code] import wnck import pygtk pygtk.require('2.0') import gtk import gobject …

Software Development python
0
183
Member Avatar for mmxbass

I am trying to make a box-oriented task selector similar to the style of nextstep. I am currently having problems painting the box background and application icon onto my window. If I just use a normal gtk.Image widget it works fine, but that won't let me have both the box …

Software Development python
Member Avatar for mmxbass
0
105
Member Avatar for vishalkhialani

Hi, My below code compiles and builds ok but it behaves a bit unexpected. Please see my comment where I am having the problem. Any advice will be highly appreciated. [code] while(count<9) { system("cls"); printf("\n\n\n"); printf("\t\t\t PURCHASE ORDER SYSTEM \n\n\n\n\n\n\n\n\n\n\n"); printf("\t\t\t\t INPUT NEW ORDER DETAILS MENU\n\n\n\n\n\n"); printf("PLEASE SELECT ONE OF …

Software Development c++
Member Avatar for vishalkhialani
0
106
Member Avatar for Squeeker

Hello all, I am working on a program that takes input from a file, removes extra white spaces and outputs the edited text to another file. So far my program deletes 1 whitespace whether the whitespace should be deleted or not. I have read about peek() and putback(). I am …

Software Development c++
Member Avatar for Squeeker
1
1K
Member Avatar for larryperl

Here is part of my code- [Code] extrafiles1=$(ls mt.*.*.*.*) if [[ $(ls -l $file 2>/dev/null) = *$today* ]]; then if [[ $file -eq $extrafiles1 ]];then rm $file fi fi [/code] when i am running the script it's showing an error-- mtclean[239]: ./mt.log.8882.-5.1202989443474: bad number. when i just ran this command …

Software Development shell-scripting unix
Member Avatar for DimaYasny
0
122
Member Avatar for sanzilla

Hi I am really little bit new to java , actually J2ME , really , can anyone know the API or libraries that can freely download to handle the vcf business card format that come with outlook express ? I really feel lazy to write my own code , anyone …

Software Development api java
Member Avatar for sanzilla
0
144
Member Avatar for aircraft

How can in the output, I want ONLY ONE LINE from 1 to 99, the windows is not enough.. myvector contains: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 …

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for aircraft

How to correct it? ompiling... 27.cpp C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2065: 'aTable' : undeclared identifier C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2109: subscript requires array or pointer type C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2228: left of '.size' must have class/struct/union type C:\Documents and Settings\ashida\My …

Software Development c++
Member Avatar for aircraft
0
242
Member Avatar for Roebuc

Hello all, yes yet again an Assignment problem I need help with haha ;) Anyways this time my code is correct, I think, but I am getting hung up on an ifstream issue. Here is the code: [CODE] ifstream infile; ofstream outfile; infile.open("C:\Users\***\Desktop\School\chapter5.txt"); if (!infile) { cout << "Cannot open …

Software Development c++
Member Avatar for Roebuc
0
252
Member Avatar for orangejuice2005

I have an assignment dealing with polynomials and adding two of them together. Am using vectors to approach this and i have one vector assigned for coefficients and the other exponents Am very very new to c++ and am at a lost. Here is my + operator [code] Polynomial operator+(Polynomial& …

Software Development c++
Member Avatar for Duoas
0
2K
Member Avatar for jaggesh

The question goes like this: You are given a file in which each line contains a list of space separated words. Write a program to find out: 1. List of words that are present in all the lines (words common to all lines) 2. List of unique words that are …

Software Development c
Member Avatar for Aia
0
103
Member Avatar for hallinan

write a bit of code to read from a file and compare a string but it dies before it finishes. the complier tells me there is a segment fault on line 31 can anyone help. [CODE] [LIST=1] [*]#include <stdio.h> [*]#include <string.h> [*]#include <stdlib.h> [*]#define max 100 [*]struct customer{ [*] [*] …

Software Development c
Member Avatar for Aia
0
162
Member Avatar for Jennifer84

How is a string vector array declared using a Form application ? This seems to work for int in a Form Application: [Code] std::vector<int> Value(10); [/code] But if you change int to string in the same example the compiler says that 'std::vector' : class has no constructors

Software Development c++
Member Avatar for Jennifer84
0
159
Member Avatar for pitbro

This doesn't work. Please help. (line 8: invalid conversion from `const char' to `const char*' ) const char *alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i=0; do { new_ptr = (struct node *)malloc(sizeof(struct node)); new_ptr->next = NULL; if (start == NULL) { strcpy(new_ptr->letter, alphabet[i]); start = new_ptr; current = new_ptr; } else { strcpy(new_ptr->letter, alphabet[i]); …

Software Development c++
Member Avatar for WaltP
0
95
Member Avatar for Mr.Wobbles

First I will show you my sql, just in case it is some obvious syntax error on my part: [code] "INSERT INTO tblResults(status, enthusiasm, communication, knowledge, interaction, organization, responsiveness, instID, comment)" & _ "VALUES(""" & status & """, """ & enthusiasmB & """, """ & communicationB & """, """ & …

Software Development sql vb.net
Member Avatar for Mr.Wobbles
0
92
Member Avatar for nezumi4

I am to open a text file, copy it, increment its ASCI characters by ten and then write it into a created text file. This is the code that I have so far.(visual c++ 6.0). The problem is that I cannot increment the characters. It gives me and overwrites my …

Software Development c++ ios
Member Avatar for Lerner
0
101
Member Avatar for linux0id

Hello everyone! I have seen some code where some variable gets inserted into string throught the % sign, like so - [CODE]("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar, someChar... )[/CODE] I have tried to look it up in google but I do not …

Software Development c++
Member Avatar for linux0id
0
13K
Member Avatar for Wiizl

I'm sorry if it's not the right place for this question, but I really need help on this one. The problem is quite simple- I've got many text fields that user has to fill. The thing I can't figure out is how NOT to allow go to next field if …

Software Development adobe java javascript
Member Avatar for Wiizl
0
310
Member Avatar for dragonheart

i am using VB with access. i need to load the values of a particular field in a table to a listbox . i used the following coding in the Form_Load event. [COLOR="Green"]Set db = New Connection db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;" & "data source= " & App.Path & "\test.mdb;" Set rs = …

Member Avatar for dragonheart
0
701
Member Avatar for vishalkhialani

Hi, I am getting a syntax error : \Sainath.C(24) : error C2059: syntax error : '__stdcall' for the below code: [code=c++] int main() { COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); printf("%d",x.WINAPI); // I know its the printf statement which is wrong as only when I wrote it I got …

Software Development c++
Member Avatar for vishalkhialani
0
469
Member Avatar for C41R0

374 / 9 = 41.6 (from calculator ) if in c++, it will become 374 / 9 = 41.555 how do i make the final calculation become 41.6 ? i've tried ceil() and setprecision(1) , the answer i got quite big different compare with the answer from calculator. answer from …

Software Development c c# c++
Member Avatar for C41R0
0
208
Member Avatar for jaepi

Hello there. Is there someone kind enough to please explain to me the difference of using fork() and exec() with system() in invoking a process. I just want to know their difference according to well experienced with processes here. And what is the most efficient in invoking a process between …

Software Development c++
Member Avatar for Nick Evan
0
323
Member Avatar for c++noobie

I am fairly new to C++, as I began learning it two days ago, with some very basic background in java and python. I was trying to write a code that could simply store, recall, and delete entries in a class I named address_book. I did it first without using …

Software Development c c# c++ python
Member Avatar for Dave Sinkula
0
2K
Member Avatar for CodeBoy101

I'm trying to make a shooting video game in conole mode but the game pauses to recieve an input from the key board. Ho can I get around this? How do game engines work? DFor exaple in a game like pac-man where the ghosts and other elements in the game …

Software Development c++ video
Member Avatar for CodeBoy101
0
134
Member Avatar for Acidburn

Hey guys i'm trying to split up my classes into packages but I seems to stumble upon this error quite alot: OPPS please delete I figured it out sorry

Software Development java
0
60
Member Avatar for jelab89

I'm experiencing a little problem here with my code: DataSet _ds = new DataSet(); //convert xml to dataset _ds.ReadXml(textBox1.Text); try { //Create a relation between the Authors and the Titles tables. _ds.Relations.Add("Level", _ds.Tables["HEADER"].Columns["IDMAT"], _ds.Tables["ITEM"].Columns["IDNRK"]); } catch(DataException dt) { util.logThis("ERROR while Adding Dataset Relations between tables / UI / ProcessClick event …

Software Development dataset xml
Member Avatar for jelab89
0
157
Member Avatar for johnRiley

Hi, I'm trying to do a vector of stringstreams so i can edit/manipulate them using vector functions as i have already done using strings. everything was going fine using... [code] std::vector<std::stringstream> myVector [/code] However i'm getting the error "cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'" on this line... [code] …

Software Development c++
Member Avatar for johnRiley
0
3K
Member Avatar for turnerca902

Hi folks, I wonder if anyone out there could help me with something. I have a folder containing many html files that look like this: Astronomical Applications Dept. U.S. Naval Observatory Washington, DC 20392-5420 ST. PETER'S NOVA SCOTIA o , o , W 60 52, N45 39 Altitude and Azimuth …

Software Development python
Member Avatar for turnerca902
0
733
Member Avatar for hawisme000

my prof told me to make my thesis system encrypt all that i save on it (on the add/save part of a file maintenance) ... thats all he said, ive seen something like this, but cnt remember... can any1 help me on making a program that when ever i save …

Software Development visual-basic
Member Avatar for Jx_Man
0
169
Member Avatar for KomodoM

Hi! I'm trying to program a monthly calendar.... but I can't get the weekdays for the nth day of the year right... my problem is written further down in the code... [CODE]from time import * class Calendar: '''Skapar en kalender för varje månad''' def __init__(self, year, month): self.year = year …

Software Development python
Member Avatar for KomodoM
0
117
Member Avatar for edchabz

I have a good idea what I am supposed to put but I can't seem to get it right. I have two different files, Server.java and Client.java. I want Client.java to call a method in Server.java. This is what I have figured out so far. public class Client{ public static …

Software Development client-server java
Member Avatar for edchabz
0
153
Member Avatar for nurulshidanoni

How to cal the examid like i want to call 001 and count how many exam 001 clash with 002, 003, 004...? [code] // Filename : ConflictMatrix.cpp #include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; struct student { string studentid; vector <int> examcode; }; int main() { …

Software Development c++
Member Avatar for nurulshidanoni
0
121
Member Avatar for atish00

Help me with the J loop itz suppose to terminate on hitting enter to pass on loop to the outer loop for incrementing row. I tried a[i][j]!=(char)13 but it failed. [code=c++]#include<iostream.h> #include<conio.h> void main() { clrscr(); int no=0,i=0,j,k,m,price[20]; char arr[20][50]; cout<<" ================================================================="<<endl; cout<<" Food on the run Restaurant "<<endl; cout<<" …

Software Development c++
Member Avatar for atish00
0
87

The End.