43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PhiberOptik

Hey guys, I am working on my final project, and I was wondering, I am designing the GUI and if you look at the buttons I want the green and red buttons to appear 3D like the rest of them but with a colour overlay is it possible to do …

Software Development gui java
Member Avatar for PhiberOptik
0
323
Member Avatar for chasee

I'm working on a program that has a class Board, and two inherited classes that will implement different games, but I'm having problems with setting up the initial Board class. The problem is that I don't know how to make it so the board array in the protected section of …

Software Development c++
Member Avatar for mahlerfive
0
131
Member Avatar for J4YP33

I am trying to open a file after getting its path from the user. here is the code. [CODE]#include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; void main(){ const char* filepath; string input, input2; char lines[110]; ifstream infile; cout << "Enter filename (including path): "; getline (cin, …

Software Development c++ ios
Member Avatar for J4YP33
0
240
Member Avatar for clueless101

[quote] My code asks a user for a password. To properly validate the user's entry, it must include the following requirements: 1)have a length of 5 2)have an uppercase character 3)have a lowercase character 4)have a digit My loop only works for the lowercase and length of 5 requirements. Can …

Software Development java java-swing
Member Avatar for clueless101
0
129
Member Avatar for JD2000

I'm currently working on implementing a small game in C++, but when trying to compile, I get this error: [CODE]..quadtree.h:125: error: no matching function for call to 'Fleet::Ship::overlaps(const Fleet::Ship*&)' ..ship.h:40: note: candidates are: bool Ship::overlaps(const Rectangle&) const ..ship.h:85: note: bool Ship::overlaps(const Ship&) const ..ship.h:32: note: bool Ship::overlaps(const Point&) const[/CODE] So …

Software Development c++
Member Avatar for JD2000
0
135
Member Avatar for Grub

Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks

Software Development java
Member Avatar for Grub
0
369
Member Avatar for sfrider0

How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help?

Software Development assembly
Member Avatar for sfrider0
0
163
Member Avatar for serkan sendur

i have a training application which incorporates c/c++ and raima database(a database system written in c) i was able to insert some data in it but i cant read from it. the files are as follows: Books.cpp : [CODE]#include "Booksh.h" #include <iostream> #include <string> using namespace std; info bookrec; Books::Books(void) …

Software Development c++ data-structure
Member Avatar for serkan sendur
0
259
Member Avatar for DimaYasny

Hi, I am looping through some files, gathering information into an array during that loop. The array grows with the loop counter and at every point might be longer or shorter (more or less members in it) so in order to reuse the array I need to drop all values …

Software Development shell-scripting
Member Avatar for DimaYasny
0
141
Member Avatar for VernonDozier

OK, I've been reading a lot online and I think I can't do this, but I'm really hoping someone has a clever workaround. What I have is a bunch of classes with Color attributes. I'm also storing the red, green, blue, alpha values as integer attributes in those classes because …

Software Development java
Member Avatar for VernonDozier
0
143
Member Avatar for serkan sendur

i am using a c library from c++ application and i need to fill a c struct from c++ code, this is a c++ console application. it doesnt seem to work when i assign variable values using cin. what should i do ?

Software Development c++
Member Avatar for cikara21
0
160
Member Avatar for NEo4

Hello, How can I create a multi-field list box like in the picture in the link below in Visual Studio. NEo4 [URL="http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png"]http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png[/URL]

Software Development vb.net visual-studio
Member Avatar for NEo4
0
107
Member Avatar for Kennylee

I took up Visual Basic 6 as a hobby for my retirement. I have no formal traning in computer programming...taught myself everything I know. So my code may look alien to you but it works up to a point and that is the nature of my problem. I am writing …

Software Development visual-basic
Member Avatar for Kennylee
0
144
Member Avatar for babusek

Hii Folks , Sorry For this Long Question, Problem: I Want to Create 5 check boxes and i want to reorder those components using a GridBagLayout , and it's have a Container called Local_Container,after reordering of those components add to panel, so Now we have a Container(Local_Container with a label …

Software Development java
Member Avatar for babusek
0
156
Member Avatar for 4ukh

hi! how to get the field value in VBA with the help of SQL statement and assign this value to a Variable.... and then use that in the code...? thank you 4ukh

Software Development visual-basic
Member Avatar for 4ukh
0
97
Member Avatar for soniagupta98

If there are two arrays arr1[]={1,4,5,6} arr2[]={1,5} I want to get the output as arr[]={4,6} i.e i have to remove all the common elements that arr1 and arr2 have and printing the required output . Can any one give me the program in C++ for this with normal looping techniques?

Software Development c++
Member Avatar for mahlerfive
0
397
Member Avatar for chchiu

Can any one slove this question? It is really hard. [url]http://img168.imagehshack.us/img168/7080/task3vn7.png[/url] I don't know how to write it in c++ but i have write up the programing logic that should work for this question.

Software Development c++
Member Avatar for brechtjah
0
88
Member Avatar for vagueante

Hi all, I have a small app in .net 2008, running (in systray), in many computers in my company, that has to alert the user a few times during the day's work, and sometimes ask for their input. The problem is, when, i open a form (show or showdialog), it …

Software Development vb.net
Member Avatar for Teme64
0
172
Member Avatar for christiangirl

Hey, This is the same code as my other forum for those of you who were helping me there. It is all working now, but when I go to call return_value from applicant.cpp(it has to be .cpp not .h because thats how the prof made it) Its coming up with …

Software Development c++
Member Avatar for Agni
0
105
Member Avatar for jbennet

Okay im reading in lines of text e.g "abcdefg" and I need to split the line into an array of characters where each character is stored in its own element so its like [a][b][c][d][e][f][g] I know how to do it with splitting words from poems etc... using something like txtLine.split(" …

Software Development java
Member Avatar for ~s.o.s~
0
143
Member Avatar for karang

Hi I have defined the class in C++ file as __declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config) where clsName is the class name But after I compiled the code and use the dll in .net code I am getting a run time error "Unable to find an entry …

Software Development c++
Member Avatar for Ancient Dragon
0
142
Member Avatar for christiangirl

Hey, I am having problems with this code, I think it is not linking up the whole file, because when I run it it only says "hi" 3 times. And also it keeps crashing because of best[i] = point->item->return_value(); [code] #include "applicant.cpp" #include <iostream> #include <fstream> #include <iomanip> using namespace …

Software Development c++ linked-list
Member Avatar for Agni
0
182
Member Avatar for JLopeman

Hello everyone....again. I have a program that is using a queue. I have a class member function that is to traverse the queue, and output the smallest number in the queue. Pseudo for this function is: Compare the front and front->next. Whichever is smaller, keep it. Traverse the queue until …

Software Development c++ queue
Member Avatar for JLopeman
0
69
Member Avatar for DLightman

I'm getting a strange compile error with getline. My question is if you make a statement like: [CODE] getline(is, a.lastName, ','); [/CODE] can you revert back to: [CODE] getline(is, a.country); [/CODE] Or in other words, once you set a delimiter, are you bound by that delimiter for the rest of …

Software Development c++
Member Avatar for DLightman
0
113
Member Avatar for nyalex

Hi I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot …

Software Development gui java
Member Avatar for nyalex
0
296
Member Avatar for gabec94

I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks. sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in range(splicedsent[1:])>splicedsent[0]: …

Software Development python
Member Avatar for gabec94
0
4K
Member Avatar for Now Then

Hi, What I'm trying to do is use a groupbox, that contains a radio button, two text boxes and a timer. I'd like to add any number of instances of this groupbox to a panel using an 'add' button. Does anyone have an example or pointer in the right direction …

Software Development
Member Avatar for ddanbe
0
97
Member Avatar for Tyster

Hi Folks, I have a general question about multithreading... I have a small app that is multithreaded. I have a main() class and a separate Runnable class that implements the Runnable interface. The problem I have is that the Runnable class needs to return an integer to main(). But this …

Software Development java multithreading
Member Avatar for Tyster
0
143
Member Avatar for weasel5-12

The below code, is a source code which i am trying to learn double linked lists from, as for a 2nd year assignment. For some reason my editor keeps returning the error messages [icode]'cout' : undeclared identifier 'cin' : undeclared identifier[/icode] Can someone please help me?? All help is VERY …

Software Development c++ linked-list
Member Avatar for weasel5-12
0
119
Member Avatar for hellIon

[code]stuff db 0cdh, 20h, 0[/code] wat does this do

Software Development assembly
Member Avatar for carson myers
0
287
Member Avatar for PhiberOptik

Hey guys, So I'm on the second last question of my latest homework assignment and I can not figure out what is wrong. Basically it asks you to input a date, name, amount and then prints out a check, with a word form of the name on the bottom. Well, …

Software Development java
Member Avatar for PhiberOptik
0
132
Member Avatar for Stefano Mtangoo

I have simple player with wx.ListCtrl as playlist. I first Load List through open file dialog. I populate a dictionary with filenames (populated in Playlist) as keys with their path as values. When I press play, the onPlay method calls onSetPath method which looks up for selected file from list …

Software Development python
Member Avatar for Stefano Mtangoo
0
130
Member Avatar for Stefano Mtangoo

Everything seems to be well, but NOTHING GET PLAYED!!!! :oops: I have tried and tried but doesn't work. WHAT IS WRONG???? :shock: [code=python] #media control #Copyright 2008 Evstevemd #Just media Player to play the playee import wx import wx.media as media import os, sys class MediaPlayer(wx.Frame): def __init__(self, parent, id, …

Software Development python
Member Avatar for Stefano Mtangoo
0
171
Member Avatar for dinilkarun

please tell me how to format text in a SINGLE cell of a table. Once the following text is added. i want to format it in followinfg way. ---------------X_------------------------ Title : ball cat dog ---------X_------------------------ Title : in BOLD and Underline rest of the data in BULLETS.

Software Development visual-basic
Member Avatar for dinilkarun
0
149
Member Avatar for wizzsm

The output from this only returns the letter 'C' in the path string. Help! Wizzsm. std::string GetServiceConfig() { HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = L"SYSTEM\\CurrentControlSet\\Services\\ApirbiService"; LPCTSTR regReq = L"ImagePath"; DWORD size1 = sizeof(rgValue); DWORD Type; if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, …

Software Development c++
Member Avatar for wizzsm
0
699
Member Avatar for cassie_sanford

I am writing a project that stores vehicle information such as the model,manuf., year, etc. I have to create a second project that loads the data from the file into memory and loads a drop down combo box with the VIN numbers. When the number is selected from the box, …

Software Development vb.net
Member Avatar for Teme64
0
143
Member Avatar for robgeek

Please can someone show me how would I create a file using fstream that would take the contents from another existing file and user input sentence. for example: I have file1 with some contents The user inputs a sentence Now I want to create a file using streams that has …

Software Development c++
Member Avatar for StuXYZ
0
168
Member Avatar for eljack

Hi, I have a big problem interacting with the MS Access database. I have read again and again all the topics related to the error [B]"The number of query values and destination field are not the same"[/B] on this forum but still I can not fix. Here is my story: …

Software Development
Member Avatar for LizR
0
151
Member Avatar for kritiohri

I have to delete the records in a ms access table using vb.net when i click on a button.

Software Development vb.net
Member Avatar for kritiohri
0
2K
Member Avatar for JLopeman

To any and everyone :) As stated in my title, this is a homework assignment, so I appreciate any help or suggestions that are given. Also, per the website rules, I have put effort to this, and I'm not asking anyone to just do my work. (The program compiles and …

Software Development c++ linked-list open-source
Member Avatar for JLopeman
0
169
Member Avatar for BestJewSinceJC

I had a problem w/ efficiency - The problem was that using String concatenation was inefficient for large text files, when reading the whole file into the String. I've since thought about it, and I guess this is because Strings are immutable - so every time concatenation is done, a …

Software Development java
Member Avatar for masijade
0
141
Member Avatar for xandres

I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far …

Software Development file-system java
Member Avatar for xandres
0
203
Member Avatar for kotkata

This is part of a larger program and this is the only part that I can't get down. Right now, it runs fine once through, but telling it yes to repeat the loop at the end does not allow the user to input a new name for student once the …

Software Development c++
Member Avatar for kotkata
0
180
Member Avatar for gabec94

I am trying to write a program that shows the longest word from an input . This is what I have so far, I am not sure what to set x equal to, or if that is even right: [CODE]sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in len(splicedsent[1:])>splicedsent[0]: longestword=x else: …

Software Development python
0
75
Member Avatar for brixton

Hello there, I'm learning file I/O in c++ ATM and I'm getting a strange problem when I'm (at least I think so) following a tutorial. What I'm doing is simply writing a User object to a file and then read that same object from the file. I'm doing this just …

Software Development c++ file-system ios
Member Avatar for Lerner
0
176
Member Avatar for gabec94

I am a freshman in highschool and have just started learning Python. This week I have an assignment on while...for...and lists. I have tried this problem and this is what I got so far, I'm not sure if it is correct at all: start=float(raw_input("Enter the starting value:")) end=float(raw_input("Enter the ending …

Software Development python
Member Avatar for stephendoyle75
0
88
Member Avatar for Stefano Mtangoo

The debug process never connected back to WINGIDE: Aborting debug session I have tried repair python, no success. Also tried run IDLE same story

Software Development python session
Member Avatar for Stefano Mtangoo
0
128
Member Avatar for cloudedvision

I'm just diving back into C++ after a while of being away. I've created a simple project. But its giving me these stupid errors when I've been trying to do some OOP: main.cpp [CODE=cpp] #include <iostream> using namespace std; #include "oopy.h" int main(int argc, char** argv) { Oopy awesome; cout …

Software Development c++ oop
Member Avatar for cloudedvision
0
145
Member Avatar for PhiberOptik

Hi guys, I'm new and I'm totally stuck on a question for class! Basically we have to get the user to enter a few sentences and then change the first letter of every sentence to a capital version. I'll post my code below. (I'm not asking for the answer just …

Software Development java
Member Avatar for PhiberOptik
0
222
Member Avatar for SuperSapien

Quick question from someone very new to constructors... If the function body of a class constructor is an array, can I then use any instantiation of that class just like an array? ie: World *anthill and then later... anthill[x][y] or is that wishful thinking? [COLOR="Green"][B]-Ella[/B][/COLOR]

Software Development c++
Member Avatar for Freaky_Chris
0
184

The End.