132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BiNO

Hi I have Borland Jbuilder 2006 Enterprise installed on a Microsoft Windows Vista Home Premium OS. I was trying to make the font bigger (in the preferences menu) but something happened and now the font is very small, too small to even click on a button. (I'm not talking about …

Software Development java microsoft-windows windows-vista
Member Avatar for BiNO
0
89
Member Avatar for NycNessyness

Hello once again everyone. I would like to know if anyone could assist me on how to insert text from a JFormattedTextField and an item from a JComboBox and place them into a JTextPane. If the user enters an item name like Shoe in the JFormattedTextField and then selects an …

Software Development java
Member Avatar for NycNessyness
0
138
Member Avatar for LanierWexford

I was looking at the code snippets, specifically "Petals around the Rose” and I wanted to see how it runs, so I copy, pasted and saved the file in my text editor as Petals and now I am trying to figure out how to run the code. As always I …

Software Development python
Member Avatar for Freaky_Chris
0
82
Member Avatar for elondir

I am upgrading a VC++ 6.0 project to Visual Studio 2008. It uses STL extensively. It compiles fine on Visual Studio 6, but produces the following error in VS2008: [icode]error C2440: 'initializing' : cannot convert from 'const int' to 'MyStruct *'[/icode] The error is trapped in the STL functional header …

Software Development c++ visual-studio
Member Avatar for elondir
0
206
Member Avatar for Lukezzz

With this code I will show a message box that you can press Yes or No. What happens when pressing Yes is that a panel will be Visible. On this panel, I have a label that shows text and a progressbar that will go from Value 0-100, like the code …

Software Development c++
Member Avatar for Lukezzz
0
83
Member Avatar for Crushyerbones

I'm doing a project for college. It's not too complicated but it involves a lot of data access on a linked list. Does anyone have any tips for designing an intuitive command line gui? I'm doing things like: [CODE=C] while (current !=NULL) for (i=1;i<10;i++) printf("%d *Name: %s\n",i,current->data.name); current=current->Next; switch (get_char()) …

Software Development c gui linked-list
Member Avatar for Salem
0
111
Member Avatar for VernonDozier

I am trying to learn Visual C++, particularly the GUI components, so I tried to make a simple program where a button is displayed to a frame and when the button is pressed, a cout statement is invoked which displays a message to the console saying that the button has …

Software Development c++ gui
Member Avatar for VernonDozier
0
704
Member Avatar for bhoot_jb

i am writing a code for a stack within stack...or nested stack...whatever.. in the code..and the mainstack is a stack of substack, which in turn, is a stack of integer data.. i thought of using class template for both the stacks - mainstack and substack..but am confused with how to …

Software Development c++
Member Avatar for bhoot_jb
0
117
Member Avatar for Traicey

Guys I have this terrible problem, damn its a long story and the code is too much and the worst part is it doesnt show a thing, I have two structs and two data files, They both have the same primary key and somewhere along the way I have to …

Software Development c++
Member Avatar for Nick Evan
0
78
Member Avatar for siripong153

I'd make a basic C rpg game and I want to save data such as Exp, name, gold, ect. How can i do it in C? I went to c++ forum and saw it but fstream doesn't work on C. thank You

Software Development c
Member Avatar for jephthah
0
152
Member Avatar for kux

I have a function that recives as one of the parameters a function pointer. If i want to pass a class method as that function, how do I do it? I tryed like this: [code] class C { public: SetVector( vector<UTF16> ); }; //function prototype void function( const string sToPlace, …

Software Development c++
Member Avatar for Duoas
0
89
Member Avatar for picass0

i understand how to create a socket and assign a port to a socket. But how can i make a for loop to auto assign 21 ports to it? need some helps!!!

Software Development c++
Member Avatar for picass0
0
97
Member Avatar for yelugamraghu

How can we type cast a double number to long. I am getting wrong value, when i am trying to type cast it to long. [code=c] int main() { int s=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb; antal_minutter = (double) s / (double)takst_enhed; beloeb = ((double)((long)(((antal_minutter * minuttakst) * …

Software Development c
Member Avatar for jephthah
0
273
Member Avatar for bindiK

I need help immediately to solve the following question: can somebody suggest how to code the following? Write functions OpenFiles and MergeAndDisplay: OpenFiles syntax: ifstream *OpenFiles(char * const fileNames[], size_t count); Parameters: fileNames - a pointer to the first element in an array representing the names of text files to …

Software Development c++
Member Avatar for bindiK
0
206
Member Avatar for Nemoticchigga

All my communication using this delegate and function are great between forms, but this thread for receiving compiles and all, but then throws this error. I have posted the important sections of my code. If you think I need more, let me know. Thanks. I am getting a Cross thread …

Software Development c++
Member Avatar for Ancient Dragon
0
91
Member Avatar for ivy47469

Hi everyone, I am new to Python, I am stuck with this problem. "If your initially deposit $10000 into the account, and earns 6% interest per year, to meet your monthly expense, at the beginning each month you withdraw $500, how long the account will be depleted? if you withdraw …

Software Development python
Member Avatar for kdoiron
0
124
Member Avatar for Tyrfing

Hello, I have a program that generates several 1-dimensional arrays that I would like to conduct data analysis on. I was wondering if there was some sort of python tool (or module, or anything) that could write these arrays to a column of a spreadsheet ( in OpenOffice formatting). Is …

Software Development python
Member Avatar for kdoiron
0
168
Member Avatar for athirar

While executing programs with large lists ,i am encountering an error message: Index error:List index out of range The program works well with small lists..Can anyone suggest me some efficient methods to handle this problem?or Is there any other efficient datastructure other than lists and dictionary to serve the purpose …

Software Development python
Member Avatar for kdoiron
0
118
Member Avatar for kanjali

Hi , I want to add new windows form in the present windows application. Which should be used to get some details from user and then i want those information back into my main form. Please help me to do this. I tried but iam able to show those in …

Software Development
Member Avatar for kanjali
0
127
Member Avatar for deerslayer

Forwarn I am a newbe to the coding word! I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct …

Software Development file-system vb.net
Member Avatar for chamsups
0
114
Member Avatar for yelugamraghu

[code=c] int main() { int antal_sekunder=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb, beloeb1; antal_minutter = (double)antal_sekunder / (double)takst_enhed; beloeb1 = ((antal_minutter * minuttakst) * 10000.0) + 0.5 ; //This is used for rounding up to 4 decimals. printf("\n beloeb1 = %lf", beloeb1); printf("\n (long)beloeb1 = %ld",(long) beloeb1); beloeb1 = …

Software Development c
Member Avatar for jephthah
0
134
Member Avatar for ramiljoaquin

Hi! I don't have access to office on the server. Does anyone know an open source way to generate an xls file for download? Or is there any way of generating a file that upon download will auto open into excel? Thanks ramil

Software Development open-source
Member Avatar for ramiljoaquin
0
135
Member Avatar for ryanlcs

I am wwondering when is best practice to use pointer. [CODE]class Pen{ .... }; int main(int argc, char *argv[]){ Pen myPen; Pen *myPen = new Pen; } [/CODE] These are 2 ways to create myPen object. But what's the main diff between them? When to use it as pointer and …

Software Development c++
Member Avatar for n1337
0
82
Member Avatar for asif.ishaq

Hi, Please let me know if anybody knows that how to get schema information of a table (e.g. columns name,data type, key columns.. etc) using c++.I don't want to use system tables query and things like that.I was searching on the net and found CIndexes and other classes but not …

Software Development c++
Member Avatar for Ancient Dragon
0
385
Member Avatar for timdog345

[code] //pg 368 #1 /* void initialize (double& h, double& r) { h=0; r=0; } void getHoursRate (double& h, double& r) { cout<<"please enter how many hours you worked. "; cin>>h; cout<<endl; cout<<"please enter your rate. "; cin>>r; cout<<endl; } double paycheck (double h, double r) { double overTime, finalAmount=0, …

Software Development c++
Member Avatar for Nick Evan
0
131
Member Avatar for shobha1335

Im developing a Issue Tracker Application in struts,I have one link 'view issue' which displays all the issues as a report, for each record one update link will be there, if we click on update link it has to go to that particular record page with details from the database. …

Software Development java
Member Avatar for shobha1335
0
139
Member Avatar for kinyuadave

Hi there i've just known how to make an exe file now what am asking is how to change the icon of the exe from the default one to one of you choise like in the one cd access program.

Software Development visual-basic
Member Avatar for kinyuadave
0
160
Member Avatar for BAEdwards

I am just posting in the hopes that somenone can explain a problem I seem to be having with Turbo C++. My application basically has two forms (Form1 and Form2). Form1 is the main form and Form2 is created dynamically, as the result of a button click event, from Form1 …

Software Development c++
Member Avatar for thekashyap
0
168
Member Avatar for sonia sardana

Is there any limit on the value that progressbar hold.

Software Development vb.net
Member Avatar for QVeen72
0
74
Member Avatar for shankhs

hey I want to input a string that contain spaces such as "My name is Shankhs"; i initialized a string str; then cin>>str; but str is not taking words after spaces as if spaces are acting as a delimiter... i tried gets,getline but they does not seem to work for …

Software Development c++
Member Avatar for shankhs
0
101
Member Avatar for zawpai

Hi, Could anyone please check my sample code? I am a beginner in C++. This code is for file comparison. Whenever I run it, the compiling result is always "Usage: compiles <file1> <file2>". I think something is wrong. Please give me some suggestions how to go through the code. Best …

Software Development c++ file-system
Member Avatar for mitrmkar
0
160
Member Avatar for cebubinary

HI guys. Im a student and studying c++ that and cmd and so far i stil havent figure out how to change my current dir while my program is running. My program is that i want to make a test.txt file with a "my test file" inside it , in …

Software Development c
Member Avatar for Nick Evan
0
253
Member Avatar for bindiK

Hi, I need solution to this immediately. Can somebdy suggest what needs to be done in the following program: Write functions OpenFile and DisplayColumns: OpenFile syntax: void OpenFile(const char *fileName, ifstream &inFile); Parameters: fileName - a pointer to the name of the file to be opened inFile - a reference …

Software Development c++ display
Member Avatar for Nick Evan
0
126
Member Avatar for toolbox03

The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product …

Software Development algorithm c++
Member Avatar for Nick Evan
0
146
Member Avatar for kousarrabiya

Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file.... My problem is username and password details are getting stored in dat file in readable text format NOT IN BINARY.. Writing into file part is …

Software Development file-system visual-basic
Member Avatar for kousarrabiya
0
114
Member Avatar for cobaltbass

I'm having a little trouble with some code. I'm writing a library management program. I need to be able to input title, author, isbn, etc. in the program. When the program asks for the isbn it behaves as expected. When I enter any words the program terminates, but if I …

Software Development c++
Member Avatar for Nick Evan
0
111
Member Avatar for ArchiMedes

Hi, I'm new around here & newish to VB 6.0 as well! :cheesy: I'm using VB 6.0 to create a random access file, which has 2 fields per record . I know that all the records must be of equal length, but am wondering if there is a practical limit …

Software Development visual-basic
Member Avatar for ahmbil
0
713
Member Avatar for sonia sardana

How to add time in the format 00:00:00 in vb.net

Software Development vb.net
Member Avatar for sonia sardana
0
61
Member Avatar for nuaris

Lists have the append() function to add an item to the end of the list. Is there a similar function to add to the end of dictionaries? Update() doesn't seem to work. Example: >>> a = {'a':'a'} >>> b = {'b':'b'} >>> c = {'c':'c'} >>> a {'a': 'a'} >>> …

Software Development python
Member Avatar for nuaris
0
749
Member Avatar for Hockeyfreak889

I need to make a program that outputs a random number between 1 and 10 every half of a second. Right now i dont know how to generate random numbers or use a timer so i need lots of helf here.

Software Development c++
Member Avatar for Ancient Dragon
0
93
Member Avatar for axn

i can write to the file with no issues, but cant read. i have defined the file to append so as not to overwrite data. then i write to it [B]log_file.writelines(lines)[/B] but the reading wont work?? [B]log_file.readlines(lines)[/B] and thought i could just use log_file = open('%s' % os.path.join(logfile_path, file), 'a+r')

Software Development python
Member Avatar for bvdet
0
104
Member Avatar for Onixtender

I've got a question...we all know double arrays a[100][100], but how to change it into linked list or like" linked list to linked list" that we could transfer data like in a double array a[i][j]? 12345.... 2 3 . . . Ideas? Graph>weighted>minimal tree>neighborhood list(yes normally matrix, but i need …

Software Development c linked-list
Member Avatar for John A
0
90
Member Avatar for C-+

I am having a problem trying to divide a number. So in my in my program I have a number and I want it to divide it by 10. The problem is that the result is going to be decimal. I run my program I put the number it divdes …

Software Development c++
Member Avatar for n1337
0
140
Member Avatar for LevelSix

Question: Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). I have Followed my example code, and come up with 3 classes. Clock, which sets the outines for drawing clock objects, ClockViewerFrame …

Software Development java java-swing
Member Avatar for LevelSix
0
141
Member Avatar for Lukezzz

I want to delete a Folder that consist of .txt Files. I am trying with this code below but the member :: Delete says that it only can emty an emty folder but this folder contains .txt files. So I wonder what other technique could be used ? [code] System::IO::Directory::Delete( …

Software Development c++
Member Avatar for Lukezzz
0
209
Member Avatar for Onixtender

Hello, I've got a question how to change this function, because it should read f.e. two lines: 33333n5rr door 3333is closed 3333333 n5rrr [COLOR="Red"]nanana[/COLOR] tt4tt [COLOR="Red"]wall[/COLOR] t6tt6t then transform to: nrr dooris closed nrrr tt[COLOR="red"]nanana[/COLOR]tt t[COLOR="red"]wall[/COLOR]tt[COLOR="red"]wall[/COLOR]t (writing word instead of a digit was: nice ttt5555ttt //to: ttt[COLOR="red"]nice[/COLOR]ttt,deleting digits in first …

Software Development c
Member Avatar for Onixtender
0
142
Member Avatar for calichik

I need help with a RetailStore class. The class is supposed to do this Design and implement a class named RetailStore that holds data about an item in a retail store. The class should have the following private data members: 1. name - a string that holds the name of …

Software Development c++
Member Avatar for calichik
0
102
Member Avatar for Magic Hands

I am wondering if there is a way to read an audio file to determine when the beat is greater than a given Hz? Such as every time the bass drum hits it will tell me. I do not have any code yet, I know how to play a simple …

Software Development audio c++
Member Avatar for Magic Hands
0
86
Member Avatar for blacklocist

Hi All, I have a question and can't seem to find a answer anywhere. A normal function can void or return a object. [CODE] public void CoolFunction() { [INDENT]//Some Code[/INDENT] }[/CODE] I know you can do this. [CODE] public int ReturnOneObject() { [INDENT]return intNumber[/INDENT] }[/CODE] What I can't find or …

Software Development
Member Avatar for ChaseVoid
0
386
Member Avatar for Jennifer84

This code Gets the last Write Time from a .txt file. My Question here. [B]1.[/B] When doing that operation. Will this file be opened or is the file closed ? [B]2. [/B]If the file was opened will the file Close automatically after the Check ? [code] CurrentSourceTime = System::IO::File::GetLastWriteTime(SourcePath); [/code] …

Software Development c++
Member Avatar for Jennifer84
0
215

The End.