132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for swapna7999

i m doin a project in which i need to use ftp for that i need to include the modJPEG.bas anyone know how? thank u very much

Software Development visual-basic
Member Avatar for swapna7999
0
73
Member Avatar for bhuwanrc

[code=cplusplus] #include<iostream> #include<vector> using namespace std; int main() { const int TYPE_OF_FISH=4; vector<Fish*>FishVec(TYPE_OF_FISH); FishVec[0]=new AustralianBass(); FishVec[1]=new EelTailedCatfish(); FishVec[2]=new GippslandPerch(); FishVec[3]=new ShortFinedEel(); cout<<"welcome for fish catching \n"; cout<<"press any to go out \n"; cout<<"keep pressing enter to get catch\n"; int i; Fish* aFish; char response; RandomInt d4(0,TYPE_OF_FISH-1); for(;;) { cin.get(response); if(response!='\n') …

Software Development c++
Member Avatar for bhuwanrc
0
63
Member Avatar for Run.[it]

Im trying to figure out how to utilise a program that uses Aggregation of Classes, Im having trouble calling the operations of the Classes in my main. Could anyone assist where Im going wrong?! horse.h [code=cpp] #include <iostream> #include "distance.h" using namespace std; class Distance; class Horse { private : …

Software Development c++
Member Avatar for Run.[it]
0
152
Member Avatar for HugoRocha

I need a way to convert a variable to an int or to ascii code, tried atoi, static_cast, didnt work very well... The objective is to detect if the user inserted any character other than a number, a number smaller than 0 or larger than 5, and send a message …

Software Development c++
Member Avatar for HugoRocha
0
102
Member Avatar for alpe gulay

.,'is anyone knows how to open a new frame in java?help me pls. :'( ...i got difficulties with this one!!

Software Development java
Member Avatar for TheWhite
0
97
Member Avatar for asadullah

Detail About Recursion and its Type Here I am going to give a detail about Recursion in C++. Definition: Recursion is the process where a function is called itself but stack frame will be out of limit because function call will be infinite times. So a termination condition is mandatory …

Software Development c++ data-structure
0
177
Member Avatar for warjas816

I'm trying to create a program that counts and displays the number of times a specified character appears in a file I made. The file name is Test.txt, and says "this is a file I made to test this program." Here's what I've come up with, but it's not counting …

Software Development java
Member Avatar for mukulbhave
0
185
Member Avatar for jireh

Guys, A challenge for us... for you I mean lol! Can anyone of you have any idea on how to make an equivalent code of On Error Resume Next of VB to C#?. Note: [COLOR="Red"][B]Don't use a try catch[/B][/COLOR] Regards, Jireh

Software Development c c# c++
Member Avatar for jireh
0
735
Member Avatar for laoballer

I have a button that I have set to false on runtime until some event occurs. I would like to display a tooltip for the disabled button to inform the user what has to be done to enable it. tooltip doesn't show while the button is disabled but shows while …

Software Development display visual-basic
Member Avatar for QVeen72
0
830
Member Avatar for ceyesuma

I am having trouble setting a query property for searchQuery1 I must be a return from a getter() (getSearchQuery()) Is it possible to set this query property using a return from a method? init: deps-jar: compile: run: [TopLink Info]: 2008.05.06 07:54:48.192--ServerSession(17548445)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007)) …

Software Development java oracle
Member Avatar for ceyesuma
0
136
Member Avatar for Squeeker

I am studying for a C++ exam and the study guide says "Be able to initialize arrays using literal arrays." Ok then, so I think well yeah that is easy, a literal array is something like.....Wait, I have no idea what a literal array is! From what I can find …

Software Development c++
Member Avatar for Squeeker
0
185
Member Avatar for andrewblack

Hi All. I create a accounting Program, and have so many module like sales, purchasing etc. I want to break my program to some program that linked each other. How i can make this happens? For exampled i build main application that have user management, and friends of mine build …

Software Development cms pascal
Member Avatar for andrewblack
0
114
Member Avatar for YJ1994

Ok, the program is supposed to take a .DATA file of names and quiz grades, and then display all the grades and the averaged grade score. Now, I have most of it working, all I need to do is use a single dimensional array to read the list and calculate …

Software Development
Member Avatar for corwing
0
102
Member Avatar for dazed&confuzed

-- If you know of a shorter way to do this .. post away plz -- the nightscost and totalcost cause erros ( call to undefined function ) -- get a fair amount of warnings, but i can live with warnings [code=cplusplus] #include <iostream> #include "Thefunctions.cpp" using namespace std; int …

Software Development c++
Member Avatar for dazed&confuzed
0
111
Member Avatar for scarface3288

I have succesfully done this but with one error. using ... ifstream input("infile.txt",ios::in) while(input.good()) { input.getline(file,100); outputfile<<file<<endl; } then I have some new code that writes this into another file. You may laugh when you hear this but the problem is that it add an extra line to the output …

Software Development c++ ios
Member Avatar for scarface3288
0
87
Member Avatar for katerinaaa

Hi, I would like to ask if anyone knows how can I delete empty lines from a file. I thought that I have to crate a loop like [code] FileInputStream fstream = new FileInputStream("input.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader (new InputStreamReader(in)); String strLine; while(br.readline()!=null) { …

Software Development java
Member Avatar for alpe gulay
0
5K
Member Avatar for tones1986

Hi all. I am having a hard time trying to properly declare a header for my assignment overload operator function. My prototype for the function is: [code] const BSTree<T>& operator=(const BSTree<T>&); [/code] And my attempt to write the header for the method is as follows: [code] template <class T> const …

Software Development c++
Member Avatar for tones1986
0
93
Member Avatar for alpe gulay

.,'is any knows the code to delete a directory in java... help me pls... YOUR ANSWER IS HIGHLY APPRECIATED!..

Software Development java
Member Avatar for alpe gulay
0
151
Member Avatar for ceyesuma

Using java and netbeans to write a query How does the (:) colon change this String? [ICODE]String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\""); String partial=("SELECT c FROM content c WHERE c.artist LIKE \"%" + :like + "%\"");[/ICODE]

Software Development java java-netbeans
0
69
Member Avatar for Zubb

This is my second time taking C++ course and I'm about to fail again since I'm barely hanging on with a C-D grade percentage. Here is the problem. I'm using the book "Beginning C++ Through Game Programming - 2nd Edition" and Dev-C++ to compile code. I'm not even majoring in …

Software Development c++
Member Avatar for Ancient Dragon
0
180
Member Avatar for zsamus.love

[CODE] const SimpleCat * const FunctionTwo (const SimpleCat * const theCat);[/CODE] Ok so this is a function declaration. I'll pose my questions numbered so it is easier. I'm taking an online course in C++ but got stumped on this line of code. 1. The return type is of type SimpleCat …

Software Development c++
Member Avatar for bugmenot
0
88
Member Avatar for sonic_geezer

Hi, everyone. This is my first post. I'm just getting started, really. I took a computer science class this last semester and the professor's program of choice was Microsoft Visual Studio 2005. I enjoyed playing around with the codes, but I noticed that when making things for my own amusement …

Software Development c++ visual-basic visual-studio
Member Avatar for sonic_geezer
0
87
Member Avatar for Jennifer84

I have a CheckedListBox1 that contains checked and unchecked Items. What I am trying to do is to save everything into a vector. Like below, I can save all Items Text into vector<string> TextInfo but what I am trying to do is also for each Item save if that specific …

Software Development c++
Member Avatar for Jennifer84
0
153
Member Avatar for danielgee

Hi, When I execute queries which have a lot of data returned in the recordset my VB app seems to hang (IE: This program is not responding) I'm using ODBC to connect to the database and am using Postgres DB [CODE] Public db_name As String Public db_username As String Public …

Software Development postgresql vb.net
Member Avatar for Oxiegen
0
166
Member Avatar for vedmack

Hi... I looking for a way to hide application from the Task bar bottom line and i need to accomplish it by using the application executable name only... All information that i have it the process name which runs in the task bar Ive googled for a while but haven't …

Software Development c++
Member Avatar for Ancient Dragon
0
113
Member Avatar for Oxiegen

Hi! It's been a while since i last posted, and now I'm in need of some expert assistance. I've found this Control written in C# with .NET 1.0 on vbAccelerator and wanted to use it with my current project. I decided to convert the entire code to VB.NET but one …

Software Development asp.net c# vb.net
Member Avatar for Oxiegen
0
224
Member Avatar for mjzammit

I am searching for a string in a textbox in my web application. My output must be the line number of where the string can be found in the textbox. To find the string in the textbox i am using IndexOf (which helps me make sure if the string is …

Software Development
Member Avatar for Ramy Mahrous
0
88
Member Avatar for rock9449

i am trying to write code for my function project but i get errors can somone tell me if i am on the write track at least [code=cplusplus] #include <iostream> #include <iomanip> #include <string> using namespace std; //fn prototype for passing num of students in class // *** void DisplayStudent(double …

Software Development c c# c++
Member Avatar for VernonDozier
0
99
Member Avatar for Jennifer84

I have a CheckedListBox with 95 Checked Items and 5 Unchecked Items. Every Checked and Unchecked Item has a "string" name. What I am trying to do is to locate All the Unchecked Items in this box and put these strings into my vector with the pushback method: Unchecked.push_back(); The …

Software Development c++
Member Avatar for Jennifer84
0
649
Member Avatar for fishsqzr

The Microsoft write-ups for Visual Studio 2008 said that it can target various version of .NET. However, it seems to set up all projects to target NET 3.5. Does anyone know how to make it target earlier NET versions?

Software Development visual-studio
Member Avatar for scru
0
104
Member Avatar for ladyj4480

I am currently doing a project which consists of a Priority Queue. I have to simulate two boarding procedures of an airline. Rows 1 through 4 are first class seats (4 seats in each row) Rows 5 through 26 are coach class seats (6 seats in each row) Rows 10 …

Software Development c c# c++ queue
Member Avatar for ladyj4480
0
177
Member Avatar for Jennifer84

I have 2 buttons on my Form. My question is if button1 can activate button2 in any way. Is it possible to write any code inside button1 that will execute/activate the code inside button2 ?

Software Development c++
Member Avatar for Jennifer84
0
260
Member Avatar for nadhi

Hello all! I am trying to create a form like structure using Swing to enter data into MySQL database. I have a combo box that has a list of items to be chosen. If the user does not find the option that he needs, he can choose 'Other' as an …

Software Development data-structure java java-swing
Member Avatar for nadhi
0
94
Member Avatar for ddt99999

I have writtten a program and it is compiled smoothly. However when I try to run the program, the console just comes out a while and then closes. I don't even have chance to type in commands and the commands will be recorded by **argv. int main(int argc, char **argv) …

Software Development c c# c++ flash
Member Avatar for ddt99999
0
103
Member Avatar for mafaisal

-------------------------------------------------------------------------------- Hello I am Using Vb.Net 2005 And Sql2005 See This [CODE] Dim RsSave as new adodb.recordset RsSave.open "Select * From Table Where 1=2 ",Con,CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic con.Begintrans RsSave.AddNew RsSave.Fields(0).Value = textbox1.text RsSave.Fields(1).Value = textbox2.text RsSave.Fields(2).Value = textbox3.text RsSave.Update Con.Commitrans [/CODE] This Just eg for saving to databse using Adodb connection …

Software Development dataset vb.net
Member Avatar for manal
0
141
Member Avatar for inamabilis

Hi, Not sure if I'm doing something stupid here or not, I want a map of integers and objects (Rooms) which I've done, but whenever I create a new room to add to the map it appears to use the same memory location as the previous Room(s). The upshot being …

Software Development c++
Member Avatar for inamabilis
0
99
Member Avatar for quecoder

Hello , Please I want some help in making this small program : the program looks for 3 or more repeated similar letters and replaces them with two characters , the first is the letter itself ( value ) , and the second character is the number of times it …

Software Development
Member Avatar for quecoder
0
142
Member Avatar for ceyesuma

Can someone help me figure out why this .form compiles yet the query to perform a search throws this error? I have one entity manager,at startup "query and list set the table with all data from [ICODE]<splashtemplateda.Content>[/ICODE] combobox and textfield and button(action) should config search specs and refresh table with …

Software Development java oracle window-manager
Member Avatar for ceyesuma
0
175
Member Avatar for shotjase

i have here this constructor used 2 display a bitmap [CODE] void bitmap::display() const { for (int r = 0; r < numrows; r++) { for (int c = 0; c < numcols; c++) { if (grid[r][c] == 0) cout << " " ; else cout << "*"; } cout …

Software Development c++
Member Avatar for Salem
0
95
Member Avatar for server_crash

I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?: [code] #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int …

Software Development c++ file-system ios
Member Avatar for Salem
0
249
Member Avatar for jimJohnson

I am an employee at Scottrade (competition with etrade if you guys have not heard of it) and they had me start out as an intern then joined the help desk starting this summer. In the fall I will be graduating from McKendree University with a B.S. in Computer Information …

Software Development c++ visual-basic
Member Avatar for Salem
0
107
Member Avatar for s_jmp

what are the differences between these two type of commands: 1- >>> import socket 2- >>> from socket import * i mean when you get the object list from the first command it gives different object from when you get objects from the second command. so does it mean these …

Software Development python
Member Avatar for sneekula
0
158
Member Avatar for manutd4life230

all work perfectly just the substraction here's the code: [code=pascal]Program calculation; uses wincrt; Procedure menu; Begin Writeln('Options:'); Writeln('1. Addition'); Writeln('2. Subtraction'); Writeln('3. Mutiplication'); Writeln('4. Division'); Writeln('5. Exit'); End; Function GetUserInput(msg:string):integer; Var UserInput:integer; Begin Write(msg); Read(UserInput); GetUserInput:=Userinput; End; Procedure Add; var add:integer; Begin clrscr; add:=GetUserInput('Enter another number:')+GetUserInput('Enter a number:'); writeln('Result=',add); End; …

Software Development pascal
Member Avatar for manutd4life
0
120
Member Avatar for dayanandabv

Hi all, I am getting Null pointer exception while getting other applet in the same page, can guide what i am doing wrong here is demo code [code] // First applet import java.applet.Applet; public class Applet1 extends javax.swing.JApplet { Applet applet1 = null; public void init() { try { java.awt.EventQueue.invokeAndWait(new …

Software Development java java-swing
Member Avatar for dayanandabv
0
154
Member Avatar for xzaqwer

Does anybody ever succeed writing USB device from DOS ? Thx for a reply

Software Development assembly
Member Avatar for Asat232
0
99
Member Avatar for manojkumar2004

Hi all, Need some info on "how to use or implement timers/threads/polling mechanism in c language". Need to run the same piece of code on both platforms(windows + linux). Can anyone of you guys suggest me something :) Thanks in advance! ~Manoj

Software Development c
Member Avatar for manojkumar2004
0
411
Member Avatar for angelxu

Hi, I'm a starter of python programming and i've stuck on a problem. i imported a csv library into the consule and i tried to print out a particular column. but i don't want to print out the heading (which is the first row) of the column. this is what …

Software Development python
Member Avatar for kdoiron
0
136
Member Avatar for Pgmer

Hi all i want to validate the printer if printer is connected do else nothing how to get the printer status?

Software Development printer vb.net
Member Avatar for bwkeller
0
341
Member Avatar for joanam

I am having the following problem: I have written a console application that needs to allocate memory. I am now debugging the program. I do not have any problems the first time I debug. Bu then, when I find an error or the program crashes and the debugging terminates, I …

Software Development c++ visual-studio
Member Avatar for eng16danbo
0
128
Member Avatar for Shakis

is it possible to read data from a running application?

Software Development python
Member Avatar for pythonuser
0
84

The End.