43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cbickle

i am in a first semester programming class and this probably might seem like a dumb questino to everyone here but i have been working on this for along time and cant seem to come up with anything. i am stuck on 2 programs. the first is to ask for …

Software Development java java-swing
Member Avatar for cbickle
0
111
Member Avatar for 3Dees

Hi, i have bieng trying to write a method which takes a listbox index (1D array) and find the corresponding 2D index. I did this code with some help which get the 1D index of a 2D array. Now i need to do the reverse from listbox index (1D) and …

Software Development vb.net
0
113
Member Avatar for SubProf

Hi everyone, I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens …

Software Development
Member Avatar for SubProf
0
130
Member Avatar for ddanbe

I thought it was a simple task at first. Don't ask me why, but I wanted to display a number in it's binary form. Manipulating bits in C# seems a bit(no pun...) harsh. The best I could come up with was : [CODE=csharp]static void Displaybinary( uint i) { const byte …

Software Development display
Member Avatar for ddanbe
0
340
Member Avatar for Achupa

Hi, I had posted this question before and I did appreciate the response I got. However I still need some little help as: [B]1.In the addMovieGoers method check that every member of the collection is a human and that they are old enough to watch the movie, if not throw …

Software Development java
Member Avatar for sillyboy
0
186
Member Avatar for adam291086

Hello, I am reading this turorial [url]http://diveintopython.org/soap_web_services/introspection.html[/url] and i am trying to echo out all my wsdl method. I am trying to do this on my external web hosting server. I have got the modules installed but i am getting an internal server error [url]http://adamplowman.com/cgi-bin/test_xml.py[/url] here is the code [CODE] …

Software Development python web-server
0
88
Member Avatar for asifjavaid

Hi, I working on COM Components in VC++.NET 2005, [CODE]HRESULT hr = spCrypt.CoCreateInstance(__uuidof(Cryptographer::TMMPlayerHelper), 0); if( FAILED(hr) ) spCrypt = 0;[/CODE] I am facing an error here. I debug the code and found that "CoCreateInstance()" is returning a message "Class is not registered" an my program gets crash. How can I …

Software Development c++
Member Avatar for asifjavaid
0
175
Member Avatar for kohuke

Hi. The program works fine if i just compile and run. But for the program to get graded it has to pass a test written in python which it does not. Since i'm complete dummy at c and programming if you find to explain, dumb it down please... so here …

Software Development c os-x python socket-programming
Member Avatar for kohuke
0
132
Member Avatar for SoulMazer

First off, I know that to set an indexed variable, say, mylist[3] = "Hello". I also know that you wouldn't be able to set mylist[3] if you didn't first state: [code = python]mylist = ["Whatever", "Whatever", "Whatever", "Whatever"][/code] But, if you had a variable with an extremely large index, it …

Software Development python ruby
Member Avatar for SoulMazer
0
85
Member Avatar for meddlepal

I am having a problem with a class I am writing. I have defined a whole bunch of methods defined that the compiler is telling me in the implementation are different. The errors are: [QUOTE] 1>------ Build started: Project: prog6a, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp 1>c:\users\philip\documents\visual studio 2005\projects\cs211\prog6a\prog6a\avltree.h(186) : …

Software Development c c# c++ queue visual-studio
Member Avatar for meddlepal
0
191
Member Avatar for freelancelote

Hi, let's say I define this two classes that do not inherit from one another. I get an error at line 10: field "DataNoFather" has incomplete type. 1.Any idea what that means and how to fix it? 2. Is it possible to have a variable like DataNoSon labeled with type …

Software Development c++
Member Avatar for freelancelote
0
109
Member Avatar for volscolts16

What is a clock tick equal to in ctime??

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for Alex Edwards

I remade an equation-solver program from Java to C++, and I plan to post it soon but I would rather not until I can determine where modulus fits in with PEMDAS. To those who don't know, PEMDAS is the order in which mathematical expressions are to be evaluated. The order …

Software Development c++ ios
Member Avatar for Alex Edwards
0
7K
Member Avatar for MaxVK

Hi there. I started with wxPython (Under Linux) a little while ago and I'm enjoying very much, however, there doesn't seem to be a control for working with Rich text. Iv found a few articles (mostly dated a few years ago) that suggest that such a control is on its …

Software Development python
Member Avatar for MaxVK
0
390
Member Avatar for atman

Hello., Im learning C online, and one of the examples from the internet is this: [CODE] #include <stdio.h> int CalcVolume (int length, int width, int height); void PrintIt (int vol); void main() { int volume1, volume2; int x = 8, y = 15, z = 20; volume1 = CalcVolume (10, …

Software Development c
Member Avatar for ajay.krish123
0
110
Member Avatar for joshmo

I have got two arrays. One for initializing and another for displaying. The display array always shows nothing if the initializing array has not been called. The problem now though is that if I want to insert something in a certain slot in the array nothing happens and I dont …

Software Development java
Member Avatar for joshmo
0
377
Member Avatar for ajr2812

Hi, this is my first post here so I am not quite sure how to enter codes properly, but I will do my best to explain my problem anyway... Suppose I have a new form (Form1), and I insert a combo box (ComboBox1), and the items for ComboBox1 are 1, …

Software Development delphi pascal
Member Avatar for ajr2812
0
427
Member Avatar for chebude

I am a bigginer in python and even programming. I want to use python in my thesis for reading and writing large size data. I have a little sample of code which access which runs over the lines and reads each element on a line. [ICODE]def get_site_only(pat): newpat = "" …

Software Development python
Member Avatar for jlm699
0
110
Member Avatar for Jacky1

ok lets say I have my code file in my web server and any one can call that functions in that file ( assuming they know the name of the functions ) but they can't see the actual implementation in other word they can use the implementation but they can't …

Software Development c++ web-server
Member Avatar for Jacky1
0
87
Member Avatar for Jacky1

I did make my dll file out off those two files dll.h [code] #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else /* Not BUILDING_DLL */ # define DLLIMPORT __declspec (dllimport) #endif /* Not BUILDING_DLL */ DLLIMPORT void welcome(); class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); …

Software Development c++ file-system
Member Avatar for Jacky1
0
119
Member Avatar for abu taher

I attach a file what was send by Shaik Akthar. I work with it a new access file. He use Table, I use querie. But it not work.I modify some code like: MSFlexGrid.FormatString = "<DATENOW|<NAME|<DIAGNOSIS|<REMARKS" MSFlexGrid.FormatString = "<Student ID|<Student Name|<Jamal|<Roll No" Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\DB2.MDB" …

Member Avatar for aktharshaik
0
559
Member Avatar for tonief

I have 2 examples for inheritance in Java The first works but the second not. I wonder why. Does the extended class must implement constructor with [B]super()[/B] [code] class Counter { int i = 0; public Counter() { i=1; } Counter increment() { i++; return this; } void print() { …

Software Development java
Member Avatar for tonief
0
452
Member Avatar for AmyxD

Hey guys =] First I just wanted to say I am excited to have found this forum, it looks like the members are very helpful and friendly! Hopefully I'll be able to contribute what I can but I'm not very knowledgeable :P Anyway, I am to create a grading program(utilizing …

Software Development java
Member Avatar for dickersonka
0
143
Member Avatar for jaasaria

hi guyz.. by the way im using crystal report 8.5 in my project. i have already a report but the report i have is to diplay the viewer.. i want it to automatically print it, without preview the viewer.. what code shall i used? shall i use crytal report? or …

Software Development visual-basic
Member Avatar for jaasaria
0
131
Member Avatar for BestJewSinceJC

This is supposed to draw a line through the JButtons when square9 is clicked. It doesn't work but there are no errors and I don't see what the problem is. Ezzaral gave me the code to draw the line earlier. Obviously, the winning squares aren't always diagonal, so I will …

Software Development gui java java-swing
Member Avatar for BestJewSinceJC
0
81
Member Avatar for orwell84

I have this idea that I want to write an operating system. I've started to learn C++, but I have a few questions...One is, obviously, am I using the right programming language? I have looked at a few forums on this site, and it seems to be half of the …

Software Development c++ operating-system
Member Avatar for ArkM
0
148
Member Avatar for z00mit

Hi Guys, Have a question regarding the exception filter. I have a MiniDump class which looks like this: class MiniDumpHelper { public: MiniDumpHelper() { ... } LONG WINAPI exitWithDump(struct _EXCEPTION_POINTERS* exceptionInfo) { ... return EXCEPTION_CONTINUE_SEARCH; } } then i have a host.cpp class where i have a `main()` I try …

Software Development c++
Member Avatar for ArkM
0
515
Member Avatar for onidarksheik

I'm currently writing a program that requires me to check several char values using a while statement and I keep getting the error "operator || cannot be applied to char, char". My code works fine with a single value but as soon as I add || or && I get …

Software Development java
Member Avatar for onidarksheik
0
2K
Member Avatar for Xarver

I just started learning SDL so I can make games in C++, but for some reason my code fails to compile. The code: [CODE=c++] #include "SDL/SDL.h" #include <string> using std::string; int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; SDL_Surface *message = NULL; SDL_Surface *background …

Software Development c++
Member Avatar for Xarver
0
354
Member Avatar for freelancelote

This is more of a general question to see if I got the concept. I defined a class with private member data: one is an int variable and the other is a pointer. 1. Where is the int variable stored?... on the heap or on the stack? 2. Where is …

Software Development c++
Member Avatar for ArkM
0
96
Member Avatar for stan yost

When I enter a decimal into a field by the time it gets written to a recordset it has been changed to zero if the value is less than one and it is rounded up if the value is greater than one. Any suggestions?

Software Development visual-basic
Member Avatar for stan yost
0
135
Member Avatar for Nick6425fl

Hey guys, I'm working on my homework assignment and I did all the code, but I can't figure out how to display the "hours of labor required" and The number of gallons of paint required. Here is the assignment: A painting company has determined that for every 115 square feet …

Software Development c++
Member Avatar for Nick6425fl
0
1K
Member Avatar for idbgy

Hi, I'm new to Perl but I'd like to know more. For this purpose I downloaded the ActivePerl-5.10.0.104-MsWin32 .msi package and installed it on my computer OS XP Home. Xitami, PHP, MySQL were already installed, and PHP can connect to MySQL. Now I run the following code from the command …

Software Development mysql perl
Member Avatar for KevinADC
0
326
Member Avatar for BestJewSinceJC

I have a TicTacToe board and I need to draw a line through the X's or O's when someone wins. I know how to use the paint method, repaint, etc (as far as how they're called & the basics). I'm just not sure how to go about actually drawing the …

Software Development java
Member Avatar for BestJewSinceJC
0
92
Member Avatar for toolmanx

I program using Win32 API's. I compile with Borland or Microsoft "CL". I am on an XP machine. I use .cpp extensions to compile so C++ rules apply. I'm trying to get the bytes from my screen and send them to a disk file. I get a handle I call …

Software Development api c++
Member Avatar for toolmanx
0
126
Member Avatar for dimples09

I have this program and I have made the changes. Now I am trying to implement the stack within my code and im confused. I need to push the environment_types onto the stack but I dont know how. Here is what I have [code=syntax]int X=0, Y=0, Z=0 ; /* Evironment …

Software Development java
Member Avatar for destin
0
75
Member Avatar for Nick6425fl

I have 1 line in this code that I can't get to compile. I'm new to C++ and begging for some help...any advise would be appreciated. [code] #include <iostream> #include <iomanip> using namespace std; double population(double pop, double birthRate, double deathRate); void printPopulations( double startPop, double birthRate, double deathRate, int …

Software Development c++
Member Avatar for Nick6425fl
0
148
Member Avatar for atman

Hello again guys! i have a simple question how to promt user to enter a number for example 444 or whatever and for c to print it as a 9 digit number, so if its 444 c would print it as 000000444? any help would be greatly appriciated., thanx!

Software Development c
Member Avatar for yuvaraj.tr
0
99
Member Avatar for Nick6425fl

I'm a newbie at posting code so I'm sorry if I make any mistakes. The 26 line won't let me compile and I don't understand why. can anyone help me??? [code=cplusplus] #include <iostream> #include <iomanip> using namespace std; double population(double pop, double birthRate, double deathRate); void printPopulations( double startPop, double …

Software Development c++
Member Avatar for Nick6425fl
0
120
Member Avatar for kyeong

I'm having trouble implementing isalpha in the correct spot. When I put it in the if statement, it doesn't determine the palindrome correctly. It says everything I entered is a palindrome. Then I try to implement it with the int k, but then it gave me "parse error before +," …

Software Development c
0
52
Member Avatar for Nick6425fl

I can't get it to compile. Here are the instructions for the assignment: Write a program that determines which of a company’s four divisions (Northeast, Southeast, Northwest, and Southwest) had the greatest sales for a quarter. It should include the following two functions, which are called by main. • double …

Software Development c++
Member Avatar for VernonDozier
0
288
Member Avatar for DeadJustice

I can add a new node if the head is empty, but I can't attach a new node. Instead I get a null pointer error. Can anyone see what I'm doing wrong. I think I've been staring at this for too long. EDIT: Forgot to say I'm adding the Nodes …

Software Development java linked-list
Member Avatar for DeadJustice
0
1K
Member Avatar for jbennet

Okay i need this quick please i am kind of stuck basically i have got to find the highest and lowest numbers out of four integers. Is there a function in java.math or do i need to make one using a loop maybe?

Software Development java
Member Avatar for jbennet
0
107
Member Avatar for dnmoore

I have the following GUI code but my JLabel for results doesn't work when either of the buttons are pushed [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TempConverterPanel extends JPanel { private JLabel input, results; private JButton output_f, output_c; private JTextField temp, fahrenheit, celsius; public TempConverterPanel() { setLayout …

Software Development gui java java-swing
Member Avatar for dnmoore
0
97
Member Avatar for prabowoadis

Hai there, I would like to ask about currency format in Bash script let say i have $US2550000, after format it, it become $US2.550.000,00 Thanks for the help

Software Development shell-scripting
Member Avatar for omrsafetyo
0
971
Member Avatar for lostandfound

Hi all, Can anybody help me out with the connectionstring for connecting VB6 to a Microsoft SQL Server 2005 Express Edition. I have tried several documented varieties which do not work. My latest attempt was a version from [URL="http://msdn.microsoft.com/en-us/library/bb264566(SQL.90).aspx"]this website[/URL]. I downloaded the application and associated files and changed the …

Software Development sql visual-basic
Member Avatar for lostandfound
0
217
Member Avatar for ihatehippies

I'm fairly new to making GUI's in tk so I downloaded activestates GUI builder from sourceforge. It has a very straightforward drag and drop interface and is easy to pick up. However I ran into a problem trying to edit the widgets it creates. It makes 2 files, the first …

Software Development gui python tkinter user-interface
Member Avatar for ihatehippies
0
110
Member Avatar for drjekil

I ve to Write a Python program that prints a random DNA sequence in Fasta format. That program should ask for the length of the sequence and suggest a reasonable sequence name. The session should look something like: > python randomdna.py Length: 34 >MySequence TGCGCATATTGTCTAACTATGGCTGTGGCCGGA The output must be in …

Software Development python session
Member Avatar for drjekil
0
160
Member Avatar for abhi_sri08

Hi, I want to use outputs from different forms of a project and save them into a single text file that could be from a module. Please suggest any tips on this. Abhishek

Software Development file-system visual-basic
Member Avatar for Drycola
0
94
Member Avatar for monogana

hi all, if you look at the code below you will see that i am trying to get a template function to return an iterator based on the type type of one of its parameters, i cant seem to get it to work i dont want to have to pass …

Software Development c++
Member Avatar for monogana
0
174

The End.