64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MattTobin

Hello~ I'm working on a project in which we are suppose to create our own class seperating the class and the implementation. When i try to compile the .cpp file im getting 2 errors on line 10: 1. new types may not be defined in a return type and 2. …

Member Avatar for MattTobin
0
111
Member Avatar for scru

So here's the deal. I learned to program with python, and C# is my second step up the ladder. I'm currently learning the language by making a Sudoku game (just porting over the code from python..nothing fancy). So I ran into a dead end just now...I know how to manipulate …

Member Avatar for scru
0
359
Member Avatar for peter_budo

How do I call JAR which is in same folder as my java file? BUT I don't want to place this JAR file into JRE>lib>ext and also I don't want to create CLASSPATH for it.

Member Avatar for peter_budo
0
116
Member Avatar for IceColdMan

Ok I have just finished the coding for this [CODE] 'This is sub for when 5 is selected Sub avg5 'Open comma delimited File open "d:\Assign.txt" for input as #assign Input "Please Enter a students ID ";stuid$ while eof(#assign)=0 Input #assign, id$,nme$,dob$,sub$,scr If stuid$=id$ then totalscr=totalscr+scr nostud=nostud+1 If nostud=1 Then …

Member Avatar for linux
0
164
Member Avatar for proxystub

cant seem to read from this my file "d.txt", i know this is quite simple code but its just not working, and yes file "d.txt" is in the same directory as the .cpp & .exe [code] #include <fstream.h> #include <iostream.h> #include <stdlib.h> int main() { char ch; //int check = …

Member Avatar for proxystub
0
124
Member Avatar for bhavna_816

I have a class MyDataGrid which is inherited from Datagrid which have two protected override functions. i want to register the events. for example public class MyDataGrid : DataGrid { protected override void OnMouseMove(System.Windows.Forms.MouseEventArgs e) { //dosomething } protected override void OnMouseDown(System.Windows.Forms.MouseEventArgs e) { //dosomething } Now i want to …

Member Avatar for tonakai
0
166
Member Avatar for bhavna_816

I want to set the width of the column by hardcoding it and don't want to allow it to resize at runtime. i.e. don't allow user to resize the column width. How can i do this? I have tried this code public void SetColWidth(DataGridTableStyle ts1,int colNum,int width) // { // …

0
76
Member Avatar for Shaabangbang

Hello, my prof gave us a problem from the ACM programming contest, we are supposed to write a program that takes a compressed file as input and generates a reproduction of the original uncompressed file as output, the compression scheme requires making a list of the words in the uncompressed …

Member Avatar for Shaabangbang
0
152
Member Avatar for scru

I have a dynamically creasted grid of picture box controls, and I want to add custom events handlers to them and Im stuck. Event 1: User Enters with mouse Event 2: User Leaves with mouse Event 3: User Clicks with mouse btw, they're created when the form they are on …

Member Avatar for scru
0
292
Member Avatar for exotic_ang

[B]No one seemed to help me out with my other question :sad: so was wondering if you can help me with this one. I want to validate a date so that the user is only allowed to enter a correct date. I have no idea how I could do it …

Member Avatar for linux
0
219
Member Avatar for jrcagle

Hi all, My class uses Python 2.4.3/2.4.4, pygame 1.7.1, and a livewires wrapper on top of that, running on WinXP on Dell machines. Frequently ... perhaps once per day per 2 students more or less? ... a student will attempt to open a file and IDLE will suddenly quit and …

Member Avatar for vegaseat
0
169
Member Avatar for shabina

i have a problem in trying to link my listbox with its respective field in the database. when i run my program in vb6, i get all the other records populated into my form when i click on the ADODC but i couldn't get the info i entered in my …

Member Avatar for shabina
0
612
Member Avatar for peter_budo

I'm trying to display text on GlassPane in front of image which I read in. There is no problem with image which does display but my text doesn't appear. What is wrong???? [code] import java.io.File; import java.io.IOException; import java.awt.*; import java.awt.image.RenderedImage; import javax.swing.*; import javax.media.jai.widget.ScrollingImagePanel; import javax.media.jai.NullOpImage; import javax.media.jai.OpImage; import …

Member Avatar for peter_budo
0
122
Member Avatar for mattyd

Could some one please help me the definition of "Break apart" in reference to using Macromedia Flash; I have just begun using Macromedia Flash 6.0 and have been studying tutorials to get the basic, introductory feel of it. At one point it calls to use break apart for a JPEG …

Member Avatar for mattyd
0
125
Member Avatar for scru

Apparently the ewase of programming has disappeared when I stopped using python. [code="C#"] btnPlay.BackgroundImage = Image.FromFile("\\Images\\playbtn_down.jpg"); [/code] Now I have the image in a Images folder...and I don't see why this doesn't work (from build [F5]).... this is making me very bitter......It's one of the many problems I've encountered since …

Member Avatar for scru
0
114
Member Avatar for scru

Is there anything wrong with this code? [code=C#] namespace RotnetSudoku { public partial class splash : Form { public splash() { InitializeComponent(); fclsStartScreen frmStartscreen = new fclsStartScreen(); frmStartscreen.Show(); this.Visible = false; } } } [/code] Apart from the indentation? When i run it ithe splash form doesn't close...Also, if i …

Member Avatar for RwCC
0
131
Member Avatar for mr.sweetchuck

Hi I'm trying to write a multi-formed J2ME app. I keep getting a null pointer exception in the startApp() method. [code] public void startApp() { display.setCurrent(currentForm); } [/code] I have currentForm created above and the first is mapped to it, (with the plan of mapping each new from to currentForm. …

Member Avatar for mr.sweetchuck
0
238
Member Avatar for evilsilver

ok guys and gals here's my delema, i have this code: all it basically does is define two classes, one that defines the stuff for the player and his actions, the other for the enemies (or monsters) the problem is that i have funtions in both that require i include …

Member Avatar for evilsilver
0
120
Member Avatar for SIL3NCE

I need help immediately. When/if help is recieved I will pay $20 Paypal right away. Make the script as described below and email detailed instructions in either Word (preferred) or Word Perfect format. If you don't have either word programs Wordpad will do. I need this in my hands at …

Member Avatar for masijade
0
155
Member Avatar for notfornothing21

I am just learning linked lists and I need to start off my inputing integers and outputing them in a sorted list. I have written a code and pretty confident that the code make sense, but maybe it is out of sequence is why it is not working? I am …

Member Avatar for Infarction
0
192
Member Avatar for Carson89

Hi there, Im writing a program that reads ID3 tag information of songs in a given directory and then creates corresponding folders for that Song. (Ie the folder is called the ID3 artist's name). The song is then renamed and placed into the new folder. However, i have come across …

Member Avatar for linux
0
135
Member Avatar for bhavna_816

i have a datatable and want to display the contents of datatable in a datagrid when i want to put the checkbox in datagrid separately they are visible.But if i integrate it with datatable it doesn't show the checkboxes instead it shows (null) how can i make the checkboxes visible? …

0
59
Member Avatar for millanskie

Hi to all, I have a program that will print a file automatically after downloading it from the web server, the problem is how can i delete or cancel print job already in the printer queue... i already try [code]printer.killdoc[/code] but it does not delete or cancel job that are …

Member Avatar for millanskie
0
1K
Member Avatar for edouard89

First of I would like to say hi to everyone as I am new to this forum. My problem is this. Can I some how use the [ENTER] key instead of the [TAB] key to skip from field to field? Any help would be greatly apreciated. Thank you.

Member Avatar for radu84
0
103
Member Avatar for scru

sigh... I need a way to make an image as a background for a window, and still be able to put buttons and other controls on top of it. I even tried using wxPython's wxPanel, but it proved a real pain because I found the documentation very sparce...:sad: (google didn't …

Member Avatar for vegaseat
0
2K
Member Avatar for bhavna_816

I have created a datagrid in C# Windows Application and i want to place a checkbox in it.I have tried this link [URL]http://www.windowsforms.net/FAQs/default.aspx?PageID=2&ItemID=537&CategoryID=3&tabindex=3[/URL] I am able to place the checkboxes but can't make tht checkboxes working i.e.can't able to select and deselect the checkbox items. i.e. the checkbox functionality is …

0
65
Member Avatar for MattEvans

Is it incorrect to use the precompiler like a complicated copy-and-paste tool? I've been working on a system where a few objects are processed according to exactly the same 'pattern' so to speak; BUT they are not related objects. Although it would be possible to bring some of them back …

Member Avatar for thekashyap
0
119
Member Avatar for aot

Thanks to mawe and Jeff for answering my first question. Next question: is there a way to get Tkinter to display the window without a title bar? I'm an experimental psychologist, and I don't want my participants to easily be able to exit my experiments... so hints on disabling alt-tab …

Member Avatar for scru
0
17K
Member Avatar for RisTar

Hi, im trying to create a function that gets two strings , the first string its the source , and the seconed is an understring . the function should return an int with the value of the position that the understring starts in the source string . so that if …

Member Avatar for RisTar
0
105
Member Avatar for torbecire

The a.cpp file will not read from a.h, could someone please tell me why? I asked earlier but did not get much help due to bad posting. My apologies to all you who i have burdened with my rookieness(not a word). Hopefully i did it right this time. [code=cplusplus] // …

Member Avatar for Ancient Dragon
0
133
Member Avatar for FlamingBlade

Good day to everybody, new member here! :cheesy: Using: Delphi 7 with Database Desktop I've made my tables in Database Desktop, and as soon as I tried seting up Referential Integrity, it did not let me save, which stops me from progressing any further in my project. As soon as …

Member Avatar for jwenting
0
135
Member Avatar for Venks

Hai friends.. iam doing project in j2me.. i want to get the current time in mobile in hours minutes and seconds format.. and i want to display it in mobile ,is there any way to get the time? pl help

Member Avatar for Venks
0
108
Member Avatar for Duki

hey everyone, I am including my code and was wondering if there is a prefered way to document? I have comments which describe what does what, but I'm wondering if there is a neater and/or more efficient way to do it... /***************************************************** * COSC 230 - Structured Programming * Chapter …

Member Avatar for Duki
0
100
Member Avatar for rQQt2

Hello folks I'm trying to simulate a magic square algorithm, but having some problems. The program successfully creates the magic square, but when I'm trying to print it, the VC2005 compiler says "vector subscript out of range", which it shouldnt be. Any help would be appreciated. Cheers Here's the code: …

Member Avatar for rQQt2
0
449
Member Avatar for chris99

How do I do this? In JustBasic I simply read from a text file and coverted the letter it found into an image that it loaded. I want it to load the image I need with this class: [CODE]def load_image(name, colorkey=None): """When this statement is accessed, coupled with the name …

Member Avatar for vegaseat
0
827
Member Avatar for alejo

[CODE]#include <iostream> using namespace std; int main() { char function; double num1, num2; char option; option = 'y'; cout << " Please enter two numbers: "; cin >> num1 >> num2; cout << "\n + for addition "; cout << "\n - for subtraction "; cout << "\n * for …

Member Avatar for alejo
0
119
Member Avatar for torbecire

[COLOR=DarkSlateGray]I am trying to write a file with extension h and a cpp file. When i try to compile the cpp file it gives me an error that says. [Linker error] undefined reference to `counter::counter()' . Could anyone help me out please. I am using a Dev.c++ compiler Here are …

Member Avatar for Lerner
0
97
Member Avatar for jrcagle

So this isn't a Python question exactly, but the code is in Python, so there it is. I have a mostly-working version of pacman -- currently, one monster v. pacman -- that includes the usual features: eat the power-up, chase the blue or flashing ghosts, get points. When a ghost …

Member Avatar for G-Do
0
2K
Member Avatar for bploog

Hello, I am new to this. Hope I won't break any etiquette unknowingly. I DID my homework, I believe ... I'd like to get C/C++ code which allows me to get the path of the active application, ideally in the format of char. I wrote a program for which I …

Member Avatar for bploog
0
247
Member Avatar for dahlia_06

Hello people, I am new to this community and the only reason for why I joined here is to learn and get all my doubts clarified as I am learning C++ all by myself and also I dont have any computer literate people around me in my place. I started …

Member Avatar for dahlia_06
0
123
Member Avatar for Berniceazzopard

[B]Hi[/B] [B]I need printscreens of .exe and the it not returning a copy of the screen but its returning the characters in the screen. What s the problem?[/B] [B]Urgent Help pls[/B] [B]Thanks Loads[/B] [B]Bernice[/B]

Member Avatar for radu84
0
98
Member Avatar for campkev

ok, I am new to master pages. I have created a public function called setMenu in the cs file. I can call this function fine from about half of my pages, but when i try to call it from the other half, it won't compile and I get [quote]'System.Web.UI.MasterPage' does …

Member Avatar for campkev
0
80
Member Avatar for wandie

:sad: Please could some please help me out here . I have an array. I want to count how my 'a' appear and the a must have its quotes 'a' [code][(' ', ' ', [('a', 'Scott'), ('9', 'vth')]), (' ', ' ', [('a', 'Jenny'), ('9', 'vth')])][/code] Like this one has …

Member Avatar for wandie
0
847
Member Avatar for ammochck21

can someone tell me what is wrong with this code? We are supposed to use recursion to see if the two arrays are equal. [code] int Equal(int a[], int b[], int left, int size) { if (a == b) { return Equal(a, b, left + 1, size); } else return …

Member Avatar for John A
0
121
Member Avatar for mouigher

I saw this was in a earlier post, but I need some addition help with it. I need help please to write this [URL="http://www.daniweb.com/techtalkforums/thread39939.html#"]program[/URL]. Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined …

Member Avatar for mawe
0
202
Member Avatar for iaaan

Hi, I am reading textfiles in a structure like this: [CODE] ifstream TextFile; TextFile.open("quote.txt"); while (!TextFile.eof()) { TextFile >> Quote[RecordNumber].RefNumber; TextFile >> Quote[RecordNumber].Surname; TextFile >> Quote[RecordNumber].Initials; TextFile >> Quote[RecordNumber].TotalCost; TextFile >> Quote[RecordNumber].DeliveryCost; TextFile >> Quote[RecordNumber].Guarantee; TextFile >> ws; RecordNumber++; } TextFile.close(); [/CODE] However, this needs to be put into a …

Member Avatar for iaaan
0
115
Member Avatar for mr.sweetchuck

Hi, I'm trying to write some code to connect my MIDlet to a database and I keep getting this compile error: package javax.servlet does not exist It does infact exists and I just can't figure out why I'm getting this error. :confused: What am I donig wrong? Thanks, chuck

Member Avatar for mr.sweetchuck
0
165
Member Avatar for ajay kandari

[code=c] /*factirial*/ #include<stdio.h> #include<conio.h> void main() { int n,s=1,i; clrscr(); printf("enter n "); for(i=1;i<n;i++) { scanf("%d",&n); } for(i=1;i<n;i++) { s=s*i; } printf("factorial is %d",s); getch(); }[/code]

Member Avatar for Salem
0
403
Member Avatar for bananenflip

I'm so sorry for asking but where should I insert or save C++.:rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes: I'm skilled in html [URL="http://www.daniweb.com/techtalkforums/thread71182.html#"]css[/URL] and javascript but I don't get this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Test</title> <script type="text/javascript"> function test() { alert("NIET KLIKKEN VERDOMME") } </script> <script type="text/javascript"> function startTime() …

Member Avatar for WaltP
0
89
Member Avatar for Matt Tacular

As part of my programming class, I need to go through the tutorials, and make my own program that shows off whats in the tutorial, I'm done with the class tutorial and have it all done except one part. The volume part doesn't return the right value and I don't …

Member Avatar for Matt Tacular
0
303

The End.