132,726 Archived Topics
Remove Filter ![]() | |
i have to create a program that calculates how many weeks it will take to become a millionaire given an allowance of pennies. for example... 1st week - 1 cent 2nd week - 2 cents 3rd week - 4 cents 4th week - 8 cents 5th week - 16 cents … Software Development c++ | |
I need some help with a code I'm working on. The code starts off by creating a class for types of cars. Once that's done, I have it construct a list of predetermined vehicles (all made from the aforementioned class), and then I ask for user input, to see if … Software Development python | |
I want to sort a dictionary, say that it was like this: [code] a_dict = {'2':12354, '1':12355432, '4':35342, '3':858743} [/code] How would I be able to sort it so it's like this: [code] a_dict = {'1':12355432, '2':12354, '3':85874, '4':35342} [/code] Is there any algorithms already built it? Or do i … Software Development python | |
Hi Freinds, a Complicated situation for me. i Have a 2 tables in access with the same Field saying BANF_Nr which sees like " -BANF-0001" here this 0001 is an Autonumber like 0001,0002,0003,0004 and so on i have a textbox in Form txtbanf which should call automatically the next number … Software Development visual-basic | |
I've been wanting to use ADO in a c++ project i'm working on. I was having some errors on it, and have since reverted to ODBC but i'm finding it rigid, and frenquently frustrating to work with. I'm going back and giving ADO a shot again, but simple pasting the … Software Development c++ visual-studio | |
I have to write a textual scenario for a gamming code . Should i write about the game or should i be writing about the code? Software Development c++ | |
I have a large-ish project that I'm working on. It involves lots of modules with lots of classes inside them, and everything is coordinated by the main thread. Now, I have a variable in the main thread which I need to be accessible from pretty much everywhere (by which I … Software Development python | |
I have the next piece of code: [CODE=C++] vector<ChatSession> ssid; void SessionCreator( void *ch ) { vector<string> users; ... ... ... ChatSession cs; // put chat session objects in vector array for (int i = 0; i < (int)users.size(); i++) { const char *t = users[i].data(); char t2[30]; memcpy(t2, t, … | |
Hey everybody. I have a question on how to break out of a java loop. Here is a break down of what I am doing. I have 3 arrays "chrs" and "value" and "NumTimes"; "chrs" is an array of characters that has been read in from an input file. Value … Software Development java | |
Ok i have this code to retreive data from a Table "Calendar" and the feild within the table are Id,Day ,Month and Year. When i press the button to run this code and i get the error message "The parameterized query '(@Day varchar(8000),@Month varchar(8000),@Year varchar(8000))Sel' expects the parameter '@Day', which … | |
I have a form admission and a another form attendance. When i click on save button of the admission form the id which is contained in that form should be added to the combo box on the attendance form. eg. say if i am saving the details of ID 4..When … Software Development vb.net | |
Hi, I'm making a little program that will send email. I am fine with the sockets, but I keep getting a segmentation fault and I don't know why:$. I'm trying to make a loop that will let the user enter the data for the email, ending with a '.' on … Software Development c windows-server | |
Hello, this is Metalcrunch. I've been learning C++ over the past days and I thought I'd make a calculator. So I looked over the existing code on the internet on how to make a calculator, understood it, then made my own from the very scratch. However, I'm having a few … Software Development c c# c++ visual-studio | |
I'm coming from the PHP world, and it's nice to see the similarities between C & PHP. But I have so many questions! :) This is a simple fopen() script, easily found online. What I am wondering about is the buffer variable. I think I understand that it's only looking … Software Development c | |
I want to write a script that makes sure users' home directories don't contain world writable directories, directories owned by other users, or other potential security problems. I'd like to echo any directory where one user's home directory can be modified some by another user. Can someone help me with … Software Development shell-scripting | |
Hi, here is my problem: I have created panel and put picBox in it. AutoScroll for panel is on, so the scrollbars are there. When scrollbars come to the limit, pictureBox is fitted with new image. Image is loaded correctly, but scrollbars rest in last position, i.e. they don't come … Software Development | |
Hi friends i have a datagridview on my form and i want to print this grid when user clicks on the button.i know that i have to use printdialog and printpage event.but i don't know how say that print just datagridview of this form? what's your suggestion. thanks Software Development | |
Hi, Does anyone know how to send commands to a shell that is already opened? I know how to open the shell to run a command, but how do I send another command to it? Here is what I can do Shell("C:\Backup\mysqlbackup.bat") This command runs the mysqldump command. But the … Software Development visual-basic | |
Hello, I'm a little bit new to Java and I use NetBeans 6.5.1. I just try to make a window 'by code, manual' (not drag and drop, not visually). This is my code (first I only want and empty window): [code] package javaapplication5; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import … Software Development java java-netbeans java-swing | |
I am starting some threads using AfxBeginThread and they work by monitoring a flag (sent via lParam) and once they find the flag is set, they return. However, once they do return, they aren't deleted and I get a memory leak. Shouldn't this method work fine and not cause any … Software Development c++ | |
Hello, I am trying to format a string in C# but am having trouble trying to set the width. Is there a way to use a variable int as the width instead of having to declare a static width? here is my code now... [code=c#] for (int i = 0; … Software Development | |
[code=python]from random import randrange import math def main(): print "This program will simulate the probability of rolling " print " a 5 of a knid in one throw." pos = randrange(1,7) dice = [0] *5 value = dice [ : ] for pos in [0,1,2,3,4]: dice[pos] = randrange(1,7) roll = … Software Development python | |
I have a project that I made with VS 2008, and I need it to use the 2.0 Framework and not the 3.5 Framework because they company hasn't moved to a newer Framework yet. I already have a setup project with it, I just need to know how to roll … Software Development | |
hai dani, how to add an array item into a collection in xaml.cs im trying with the following code var video = e.result; listbox1.ItemSource=video[0]; here video is the collection. Software Development | |
SORRY I THINK I ADDED THIS TO SOMEONE ESLE THREAD B4 Ok so i have a file which i read in ... then i read the data line by line and create lists basically i needed to organsise(sort the data, in numerical order which i can do no problem and … Software Development python | |
Why did Microsoft Visual C++ developers choose "Form1.h" for us to put all of our source code in, instead of a Form1.cpp? I find the Form1.h file to grow without bound; thousands of lines... in an "h" file! Walt Software Development c++ | |
Hi I Have created a software program in VB6 that a customer can use to create job cards for jobs within the printing industry. it links to a database so all the information is saved and can be amended or updated or searched. I plan to market this to potential … Software Development visual-basic | |
Hi, How to set background image of CTreeCtrl? And also how can i set different colours to different items of CtreeCtrl? | |
Hi all.. I would like to convert a hex to CString format.. I had try like below I shown, but failed to convert into CString format that I wish to.. Here is the example I tried.. CString sz; unsigned short test = 0xB0FF0000; sz.Format("%X", test); then I got sz = … Software Development c++ | |
I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and the child form is displayed within the TabPage. I … Software Development | |
whenever i compile in code-blocks for wxwidgets following error is generated but when i priview the wxform it shows the form . i really don't know what is this. ||=== banking, Debug ===| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\platform.h|196|wx/setup.h: No such file or directory| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|103|#error "wxUSE_DYNLIB_CLASS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|111|#error "wxUSE_EXCEPTIONS must be defined."| WxWidgets.org\wxMSW-2.8.10\wxMSW-2.8.10\include\wx\chkconf.h|119|#error … Software Development c++ | |
These are my examples: [code] /*int WriteFile(const char* file_name) { fstream file; try { file.open(file_name,ios.out); file << "67"; //file << "I miss you very much."; file.close(); } catch(exception& e) { cout << e.what(); return 1; } return 0; }*/ /*int ReadFile(const char* file_name) { fstream file; file.open(file_name,ios.in); if(file.is_open()) { string … | |
Hi I am 'trying' to get my head around multi-threaded programs. I have a working program (single thread) that uses a socket to listen on a particular port and exchange info with a client(s). The basic program structure is this (most declarations and error-checking removed for clarity): [code=c++] ... /* … Software Development c++ socket-programming | |
Why does'nt the following code work? [code="cplusplus"] #include <iostream> class X { public: X() : m(0) { } virtual ~X() { } protected: int m; }; class Y : public X { private: class Z { void do_something() { std::cout << m << std::endl; } }; }; [/CODE] I get … Software Development c++ | |
Hello! I have a liitle problem with my programm. I need to create programm that is making a AutoCAD drawing from a windows form. I Alrady got the everything done, but have one small problem: I can send command to autocad only once per my programm is running, if i … Software Development c# | |
hello all, I would like to create a menu named "Category" for word, which has other sub menu's. The user can install this addIn in his word and use it. I know that Visual studio provides AddIn support for word 2003, 2007. But don't know how to code this. How … Software Development asp.net visual-studio | |
Hi guyZz.. I have a POS project..... how can I stop/pause the spooling of the receipt in the printer??? b'coZz it's too many space in the paper... I need this... urgent......... Any reply/some source are really appreciated... thanks Software Development printer visual-basic | |
hey, i have my streamreader code, but im running it in a filesystem watcher program, once a certain file is seen, then read other files in the folder so i basically have the filesystem watcher set up to wait for this certain file. then i know the reader tries to … Software Development | |
i want to see all the installed font name using for each loop.i have written a code but it say object required.and it break at bold line. kindly let me know any idiea? [code=vb] Private Sub Form_Load() Dim f As Font B]For Each f In Fonts[/B] MsgBox f.Name Next [/code] Software Development visual-basic | |
Hello friends, I am trying to make a program in which there would be a text file which would contain a certain piece of information.Now the user would ask questions and the program would answer the question using the information given in the text file. This is basically related to … Software Development c# | |
hi! can someone give me some idea what kind of game is easy to do in c++? or kind of a system.. it is for our project..I'm thinking of doing text twist..can someone give some other idea? thanks very much!!! ![]() | |
Hi guys , i want to fill a textbox with a data from my mysql database and i dont know how to do it , i already searched without a result , if someone can help me i would appreciate it . | |
Okay so I am in a Data Structures class and am working on Binary Trees now so I figured I do a little project on the side to experiment. So I have a frame pop up when the program starts and it has a bunch of information to enter in. … | |
hi i need to identify characters in a image file. for example to identify words in a windows tooltip picture(jpeg,bmp,gif). can anyone help me out to do it using c# - rahul Software Development image | |
can you please draw me a use case diagram for construction. it includes: Employee Department Project Works_on Software Development java | |
okay, i usually create beg programs and they often compile. for some reason, this one is not compiling at all. i cant seem to figure out whats wrong. my objective is to prompt user to open a file named "data.txt" have HELLO WORLD printed in a scrambled version to a … Software Development c++ file-system ios ![]() | |
Hi everyone, My code is an attempt to teach myself Python. I am looking to create a series of loops using the range function to read data from excel. My problem doesn't lie with reading the data from excel, I know the functions for this, my problem is setting up … Software Development python | |
Say I have a variable, 'New', who's value is Raw_input("Enter name: ") How could I take this variable and pass it into a class? Software Development python | |
Hai Friends I want to invoke .net ?(.asmx) webservice in J2ME Application, iam using following code , but its giving Runtime Exception [B]"SoapFault - faultcode: 'soap:Client' faultstring: 'Server did not recognize the value of HTTP Header SOAPAction: urn:Welcome#GetdrawTimes.' faultactor: 'null' detail: [EndTag </detail>] "[/B] [CODE] import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import … Software Development client-server java web-server |
The End.