132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for levk

I'm trying to do something like this: [code]public: ULONG dispatch(char *command, size_t length, Stream<T> *stream);[/code]<< moderator edit: fixed code tags >> Where Stream is a template. I can make the class I'm putting it in a template as well - no big deal, I just don't know how anyways. Here's …

Software Development c
Member Avatar for Narue
0
101
Member Avatar for kittie

I would appreciate any help (I am very much a beginner in Java) what is this error message and also do I use init() or main() for applet? Thank you so much //JavaAirlinesApplet.java ERROR MESSAGE: /*JavaAirlinesApplet.java:8: JavaAirlinesApplet is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public …

Software Development java java-swing
Member Avatar for kittie
0
254
Member Avatar for tayspen

i cant belive that you have to have a .net framework on the computer to run the C# apps. because of this no my friends cant use them. there should be away around this does ne body know if there is?

Software Development
Member Avatar for tayspen
0
175
Member Avatar for dmart

i have the following code that reads user input characters and displays the string entered in reverse order. import java.io.*; /** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */ public class ReverseString { public String reverse(String …

Software Development java
Member Avatar for freesoft_2000
0
151
Member Avatar for jhdobbins

kinda like the last program.. just does different things.. anyway, im getting a seg fault i dont understand one bit its off of the menu function. when you input an invalid number like 8 - it says invalid but if you input 7 to quit the program it seg faults. …

Software Development c++
Member Avatar for jhdobbins
0
125
Member Avatar for ginpero

Hi everybody. I am a student taking up C programming and I need some help from you guys. My main problem is that I do not know how to start with programming, aside from that, I would like to know also whoever knows how to understand discrete structures in programming. …

Software Development c++
Member Avatar for Dante Shamest
0
182
Member Avatar for freesoft_2000

Hi everyone, I am trying to to read and write large files about 600M. The thing is when i use the normal FileOutputStream methods an exception gets thrown saying [code] java.lang.OutofMemory [/code] This is how i am trying to read the file [code] FileOutputStream out = new FileOutputStream("C:/my_life_story.zip"); InputStream in …

Software Development file-stream java
Member Avatar for freesoft_2000
0
370
Member Avatar for danny_tekle

Hi everybody i spent the last few months playing with .NET(c#). i'm considering to do a project work using c#(.net) just for my own experience. so can any one help me to pick an interesting topic to work with. Thanks

Software Development c c# c++
Member Avatar for c#dummie
0
140
Member Avatar for bsdpowa

Hello all, I'd like, very much, to understand linked-lists.I've read many texts on the subject and tried many source codes but none of them seemed to fit my needs (one from daniweb is pretty close but it's in C) so I, as desperate as I can be, beg you for …

Member Avatar for bsdpowa
0
531
Member Avatar for JavaFish

Hi I am having a bit of trouble with a do while loop. I either can't get it to stop, or it doesn't do exactly as I need it to. I am using a array called nums to insert random numbers into a binary search tree. Once the tree has …

Software Development java
Member Avatar for JavaFish
0
122
Member Avatar for Mike182

Hey, i get the following annoying link errors when i try to build my program: [quote] Compiling... power level.cpp Linking... power level.obj : error LNK2001: unresolved external symbol "int __cdecl YesNo(void)" (?YesNo@@YAHXZ) Debug/power level.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/quote] The program compiles ok, but it …

Software Development c++
Member Avatar for Mike182
0
190
Member Avatar for tayspen

ok so i have this program that i made that reconizes shortcuts and does certain thing like bring in and out of taskbar. the oonly problem is when the form loses focus the shortcuts dont work. is there any way that when the ofrm does lose focus if i press …

Software Development
Member Avatar for r0ckbaer
0
126
Member Avatar for danizzil14

As I said before im new to python and stink at math(great combination huh?) Well I've looked at Thinking in Tkinter but I still don't fully understand the concept of classes. Could you provide any help\tutorials on this subject? Help Appreciated :cheesy:

Software Development python tkinter
Member Avatar for vegaseat
0
157
Member Avatar for Jon182

Hey guys, I was just wondering when using classes to obtain a name or something like that when a pointer is used how come you don't have to use the new and delete key words. [code] class LibBook { private: char *name public: LibBook( char* = '\0') void showBookName() }; …

Software Development c
Member Avatar for Dante Shamest
0
118
Member Avatar for bandm

Hello all :p I was working on this simple program with a formula for calculating parallel resistance. I was getting all kinds of errors at first but I am still getting these few. Compiling... ResistancePar.cpp G:\VC++60\ResistancePar\ResistancePar.cpp(5) : warning C4518: 'float ' : storage-class or type specifier(s) unexpected here; ignored G:\VC++60\ResistancePar\ResistancePar.cpp(5) …

Software Development c++ storage
Member Avatar for Dave Sinkula
0
325
Member Avatar for mccarthp

Python Version: 2.1 Platform: HP Windows XP I am using Python scripts generated by ArcGIS/ModelBuilder in order to automate geoprocesses. Currently I am calling a series of scripts from a batch file that is called by the task scheduler. My problem is if there is an error the process stops, …

Software Development file-system python windows-xp
Member Avatar for mccarthp
0
233
Member Avatar for zauber

Hello, Im rather new to C, but I was struck with one curiosity as I delve into it. From what I understand, there is not supposed to be any support for string-datatypes in the language itself; you need to import libraries to get this support (where the strings are actually …

Software Development c++
Member Avatar for zauber
0
117
Member Avatar for jhdobbins

what all do i have to do to make this work... this is my class and functions... and the errors are at the bottom... do i have to overload operators or is there a much easier way? thanks. and i know the return function isnt written yet. [CODE]#include <iostream> #include …

Software Development c++ display session
Member Avatar for jhdobbins
0
130
Member Avatar for jindalarpan

hey friends i m facing one problem that on sever their is fedora core 4 and when ever temp(/tmp) is filled server go show. can any one provide me with the script that can automatically cleans up /tmp after some days or when temp is going to fill thanks

Software Development shell-scripting
Member Avatar for Cain
0
134
Member Avatar for Rete

Hi, I was hoping if anyone could help me really quickly. A section of my program needs to discern between java primitives. I've had to make regular expressions which look for the different characteristics between each primitive, but I don't know what some of them are. Below are all the …

Software Development java
Member Avatar for freesoft_2000
0
162
Member Avatar for ravinderreddy

On windows operating system How can we make a window an active window (focussed window) using c/c++ programming. I tried using SetForegroundWindow() but it is not working. AllowSetForegroundWindow() will work on Windows XP? Any how please give me an idea regaurding this.

Software Development c++ operating-system windows-xp
Member Avatar for Stoned_coder
0
184
Member Avatar for JavaFish

Hi I have a JTextpane where i will be adding instructions. I know this will not be large enough, but there is no further space on my interface, so I need to add either a scrollbar or scrollpane. I have tried a few attempts at this but cannot get either …

Software Development java java-swing user-interface
Member Avatar for JavaFish
0
2K
Member Avatar for reyhan12

I need to create a mp3 id3v2 tag viewer using assembly for a project.The problem is I don't know where to begin. Does anyone know any resource sites or tutorials on how to begin? thanks!

Software Development assembly
Member Avatar for reyhan12
0
86
Member Avatar for Rete

Does anyone know how to change the colour of text in Java? I'm getting a lot of input from my user in a program I'm writing, and it gets kinda difficult to follow with it all being one colour. Any help would be greatly appreciated =D

Software Development java
Member Avatar for jwenting
0
130
Member Avatar for indianscorpion2

hi this is srikanth from india. it would be highly appreciated if a separate forum is put up exclusively for C language.it would be very much useful to beginners. clubbing c and c++ in one forum is a little uncomfortable for the user to browse c related threads.

Software Development c++
Member Avatar for jhdobbins
0
311
Member Avatar for MrConfused

I am trying to put together a string that can be sent to the clipboard and then pasted into a spreadsheet (in this case a works spreadsheet). The problem I have is the space characted seems to be being ignored when it is a the start of the next line. …

Software Development visual-basic
Member Avatar for mnemtsas
0
305
Member Avatar for tony mcquaid

Hey there! I'm making a break timing device for work (so I can be more aware of how long I'm taking on my breaks. I'm bad at keeping track.) If someone could help me out, it would be greatly appreciated. [U]What the program does:[/U] - After I click "break" it …

Software Development display visual-basic
Member Avatar for Marikanna
0
317
Member Avatar for sleevetrick

hey every1, can any one tell me how to draw a ball or a circle in an console application vc++ and make it move around various coordinates.. basically the ball shud move arnd 4 directions. i tried printin chars but dont quite know how to go about paintin the ball …

Software Development c++
Member Avatar for sleevetrick
0
302
Member Avatar for shanenin

I wrote simple python program that rips, encodes, and gets song data from the cddb. I would like to give the user the option of customizing it to there taste. So I want to make a config file that I can store in /etc(linux fiel location). for example it would …

Software Development file-system python
Member Avatar for shanenin
0
265
Member Avatar for khan_069

Hi i have a programming problem ;) I have a set of number(there is no limit must be dynamic) and i want to find out the unique numbers from the set i.e numbers which are not repeated. Observation: 1) No. of element in set should not be limited 2) Algorithm …

Software Development algorithm c++
Member Avatar for Lerner
0
122
Member Avatar for NolanVW

Below is a program in C that I am trying to use to read in a spreadsheet (in CSV form), which I will eventually be doing calculations on and then writing out to a new file. I'm currently trying to figure out the following three things: 1) How to make …

Software Development c
Member Avatar for NolanVW
0
1K
Member Avatar for emman

While running the older version of jdk1.3.0 my bdk1.1 worked fine. Recently i installed the latest version of the j2sdk1.4 and the problem surfaced. Whenever i run the run.bat file, lot of exceptions are thrown at the command prompt. And some of the inbuilt beans won't be shown. As for …

Software Development java
Member Avatar for emman
0
208
Member Avatar for freesoft_2000

Hi everyone, I am trying to write some bits to the parallel port using the java communications port and all is okay except that i need some clarification on something. The parallel port is connected to circuit board that needs nine inputs(or better known as nine bits) Now this is …

Software Development java
Member Avatar for freesoft_2000
0
180
Member Avatar for Ghost

Hi Everyone, I'm making a Java chat application, but it freezes whenever I click "Connect." My code is attached below. Thanks. [CODE] import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; public class CinnaChat extends JFrame { JLabel lblServerIP = new JLabel("Server IP:"); JTextField serverIP = new …

Software Development client-server java java-swing
Member Avatar for freesoft_2000
0
278
Member Avatar for danizzil14

Ok new problem, I want to build off of a program I saw in a tutorial that has a "menu" and can calculate two different shapes. The two shapes are circle and rectangle. I've built it into a working order.(event bindings, buttons, area calculation programs) The program works all the …

Software Development python
Member Avatar for vegaseat
0
178
Member Avatar for nabil1983

Does neone know the code instruction to store an array of CD objects. Each entry in the array has to be a single object describing a CD. i.e: Artist Name , Album Name, Number of tracks i've written the program out but i cannot seem to get the above right. …

Software Development java
Member Avatar for NPH
0
102
Member Avatar for Rete

Hi again, I know I've asked a lot of questions, and you guys have been a really big help, so sorry for all the trouble. XD But, I've got another problem. :X I've been making a reflective program, and it's more or less working right now except of couple of …

Software Development java
Member Avatar for jwenting
0
164
Member Avatar for Drowzee

I'm making a program (using MFC) that opens a file using the c-style FILE* format rather than C++ style streams. I'm doing this because I'm lazy, and so I can use as much pre-existing code as I can. When I close the program, a destructor is called. [code] CGrid1Doc::~CGrid1Doc() { …

Software Development c++ file-system
Member Avatar for Stoned_coder
0
312
Member Avatar for JoBe

Hello ladies and gents, Have a few questions about the following example that is given: [code] #include <iostream> #include <fstream> using namespace std; int main() { char ch; int n=0; ifstream ff("aa"); if (!ff) { cout << "Can't open file aa for input.\n"; return 1; } ofstream gg("bb"); if (!gg) …

Software Development c++ microsoft
Member Avatar for Dave Sinkula
0
450
Member Avatar for cjones5499

I am ahving a problem with the do/while loop. When the YesNo function returns a yes, main() repeats;however, it prints out what is stored in the string from before. How do you clear the string in order to run the program over and over. Also, when the piglatin result is …

Software Development c
Member Avatar for Dave Sinkula
0
582
Member Avatar for umbrella

hi to all.. i need help about C programming i have problem with my project, its about that how to determine the max number using for loop ill give the output and pls give me the code plss Output: Enter Numbers: 5<--input Enter first number:1<--input Enter second number:2<--input Enter third …

Software Development c
Member Avatar for Dave Sinkula
0
444
Member Avatar for Mike182

How to i get cubic numbers into a program? Ive tried ^3, but in this line: x = creat^3; y = lines*20; z = x+y; cout<<"Your zenii for this post is " << z << ".\a" << endl; If i change the cout to call out x it calls it …

Software Development c++ first-post
Member Avatar for Mike182
0
337
Member Avatar for Mahen

Suppose i have a main.cpp file and a test.h file: /////////////////////////////////////////// //main.cpp #include <iostream.h> #include <string.h> void test(); char foo[200]; int main() { strcpy(foo, "testing"); test(); return 0; } ////////////////////////////////////////////////////////////// //test.h void test() { cout << mir << endl; } WHY IS "mir" AN UNDECLARED IDENTIFIER

Software Development c
Member Avatar for freemind
0
171
Member Avatar for danizzil14

Ok I've gotten py2exe because I have friends that want to test my programs, but they don't want to download the python program. Well I have tried to run the compiler out of MS-DOS and the Python version of MS-DOS. But every time I wind up with an error. I …

Software Development python
Member Avatar for vegaseat
0
173
Member Avatar for hkiani

Hi every one Please help me: How can i found, if there is any disk in a removable drive (floppy drive or cd drive). I am programming with C++Builder. If there is any Win API function for this. Thank you very much.

Software Development api c++
Member Avatar for hkiani
0
213
Member Avatar for cyber_aziz

hello ppl this is my 2nd post and as i said earlier, im writing a cpp program for an exam project. the project is designing a school database system neways the problem is that the the compiler hangs and terminates whenever a wrong type of data is entered i mean …

Software Development c data-structure display email first-post
Member Avatar for freemind
0
219
Member Avatar for sam1

hi everyone i am doing this course work, where i have two classes. one is the point2d that models a two-dimensional point. The second part, the rectangle class, require the use of the Point2D class developed in the first part of the coursework. i am stuck in following two functions: …

Software Development java
Member Avatar for sam1
0
152
Member Avatar for cjones5499

i need to store the piglatin words returned by each function into one string so that I can then check it for lowercase or uppercase words and change as required. I can't seem to get the return 'temp' to store into a string in main. Also, when printed out, the …

Software Development c
Member Avatar for Stoned_coder
0
2K
Member Avatar for AlanC

Hi I am from a Visual Basic background, and if you're still reading this after that admission I could use your help.. I'm trying to learn VC++ and MFC and I'm just trying to work this out. In VB, you could have either a Winsock ActiveX control or use the …

Software Development api c++ daniweb-api visual-basic
Member Avatar for Drowzee
0
224
Member Avatar for evilsilver

hey guys, have a challenge for you guys, i am making a rpg game in c++ and need some help figurin out the creatures, and items the player will have, i know i won't get many replys to this so don't expect to get all of what i am looking …

Software Development c++
Member Avatar for Drowzee
0
415

The End.