43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for judge6

Hi all, I have created a Windows Forms application in Visual Studio.Net 2008. I have some group boxes on the form in order to section various controls on the page. At the bottom of my form is a group box containing a texbox used for display exception messages. I would …

Software Development vb.net visual-studio
Member Avatar for judge6
0
138
Member Avatar for FlynnLags

Hey guys, After fixing one of my earlier problems I ran into another one. Basically I'm trying to make an inherited class and add one more parameter to its constructor, but I can't seem to do it properly Here is the masterclass definition [B]Package[/B] [CODE]#ifndef PACKAGE_H #define PACKAGE_H #include <string> …

Software Development c++
Member Avatar for FlynnLags
0
204
Member Avatar for lotrgandalf

I am getting unpredictable behaviour from malloc(). Here is the code fragment: [code=c] float **t; t=(float **)malloc(sizeof(float *)*A); perror("\nError status 1:"); for(i=0;i<600;i++) { t[i]=malloc(sizeof(float)*B); } perror("\nError Status 2:"); [/code] The objective here is to have a dynamic 2D float type array. For testing purposes though, I have hard coded the …

Software Development c objective-c visual-studio
Member Avatar for lotrgandalf
0
109
Member Avatar for gufur

Hi! I just upgraded to win 7 64 bit. I have tryed it both on cygwin compiler and MinGW compiler (toolchain) Working on eclipse. My code works perfect in Linux/ubuntu environment but running in win 7 environment I have the following problem. My last cin does not work. The input …

Software Development c++ ubuntu
Member Avatar for gufur
0
402
Member Avatar for G_S

Hi, I have another question: ¿is there a method that allows me to capitalize the first letter of EVERY WORD in a given string? I know that something like: [CODE=python]a = "hello world" print(a.capitalize())[/CODE] would print "Hello world" but I need it to print Hello World. It's for a program …

Software Development python
Member Avatar for TrustyTony
0
894
Member Avatar for monkey_king

I'm having difficulties understanding and printing the max value of a size_t type. Apparantly the size_t is typedefed to a unsigned long int on my system. Is this safe to assume its the same on all c++ compilers? The 'sizeof' function returns the number of bytes(size char), used to represent …

Software Development c++ ubuntu
Member Avatar for idallen
0
1K
Member Avatar for Encrypted

I'm trying to convert a row from a matrix of Char's to a String and all I've been able to get is a bunch of memory locations. I was hoping someone can lend me a hand. Here's what I've got: [CODE] for(int c=0; c<tempBoard.length; c++){ String charArray = " "; …

Software Development java
Member Avatar for Encrypted
0
156
Member Avatar for Juniahh

So I'm trying to write a program that will display a grade depending on the user's input i.e. 90-100 (A) 80-89 (B) 70-79 (C) 60-69 (D) 59 below (F) this is what I have so far but I don't know what I'm doing wrong. :\ It assembles and it'll let …

Software Development assembly
Member Avatar for Juniahh
0
119
Member Avatar for digital_dizasta

hi guys, i am doing a final year project regarding the ontology population using information extraction. i am to use Java and GATE. i need some help in the part of information extraction as this is supposed to be coded in java. so please...help me start off my project. all …

Software Development java
Member Avatar for agugglez
0
142
Member Avatar for sasisam

i want to record report printed date and time when user click on the crystal report print button (which is in the crystal report viewer control). is there are any event like click event.. for that crystal report print button. i want to keep record of printed report. i am …

Software Development vb.net
Member Avatar for sasisam
-1
2K
Member Avatar for Sammich

hey guys, i was wondering if anyone could tell me how to separate individual digits of an integer in order to store those individual digits into an array? I need to create a circular shift method so I was just going to separate the digits of the number, put them …

Software Development java
Member Avatar for BestJewSinceJC
0
451
Member Avatar for schwarznavy

Hi. I'm trying to call a function to convert a decimal integer into a binary number (stored as an array of integers). Before I knew that I couldn't return an array, this is how I thought to implement it. Can anyone help me understand the way I'm actually supposed to …

Software Development c
Member Avatar for schwarznavy
0
150
Member Avatar for Hidden_mistakes

I am trying to get music to loop in the background of a game. However im really not sure how to do this. Can anyone give me a starting point please? I am using Visual C++ btw.

Software Development c++
Member Avatar for Hidden_mistakes
0
295
Member Avatar for NathanOliver

Hey all I have been writing my own implementation of a BigInt class and I think I have most of it down. I am using a vector<int> container for my number. I'm curious to what you guys think about. This is my first program using 1000+ lines of code. Please …

Software Development algorithm c++
Member Avatar for NathanOliver
0
151
Member Avatar for donaldw

I am using MS SAPI (5.1 or 5.3) to read a script using a call like this (in MS VC++): [CODE]Voice -> Speak(script.AllocSysString(), SPF_DEFAULT, NULL);[/CODE] I want to be able to limit the total duration of the time spent reading the text to length X (hard limit). Is there a …

Software Development c++
Member Avatar for donaldw
0
186
Member Avatar for miskeen

Hello guys, I've a class with a cpp and .h files. It's a part of a large program. I would like to create an array of structs and use it wherever in the same class, i.e. I want to initialize it in a specific function and use it in other …

Software Development c++
Member Avatar for miskeen
0
162
Member Avatar for xSDMx

Here's the code I put together to create concentric circles using Python: [CODE]def concentric(myTurtle,number,spacing): for radius in range(number): x = myTurtle.xcor() y = myTurtle.ycor() myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down() drawCircle(myTurtle,radius*y+spacing) myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down()[/CODE] It, however, has a critical flaw. I need the code to be able to goto any given set of …

Software Development python
Member Avatar for xSDMx
0
753
Member Avatar for rasizzle

Hey all, Here is some code for reading Excel spreadsheets (2003 and before) with PyExcelerator. My main problem is that if I leave a cell blank, it gives me an error. I want to be able to have blank cells on my spreadsheet without any problems. Does anyone have any …

Software Development python
Member Avatar for Gribouillis
0
507
Member Avatar for ttboy04

Hello, What I want to do is reset the pig's position to 0 and it's colour to pink. I don't how if I amended the the constructor correctly so the final line sends a resetCount() message to the newly created Animal object. The above code is not working because nothing …

Software Development java
Member Avatar for ttboy04
0
270
Member Avatar for Tellalca

I got some linker error, couldnt find the mistake. What is wrong? [CODE]#include "myStack.h" //Imports the Stack header file containing the declaration of the member functions myStack::myStack() /*The stack is initialized as empty */ { count=0; } //end of Stack::Stack constructor Error_code myStack::push(const Stack_entry &item) /*If the stack is full …

Software Development c++ data-structure visual-studio
Member Avatar for Tellalca
0
173
Member Avatar for rena0514

i am trying to create a tic tac toe GUI but i am having trouble...here is my code: [CODE]import javax.swing.JFrame; public class TtTDemo { public static void main(String[] args) { JFrame frame = new JFrame ("TicTacToe"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new Main()); frame.pack(); frame.setVisible(true); } } [/CODE] [CODE]import java.io.BufferedReader; import java.io.IOException; …

Software Development gui java java-swing user-interface
Member Avatar for peter_budo
0
391
Member Avatar for dualdigger

Hi; I have a Q/A based game which randomly selects questions that are stored in access file table. I have define a vector and a stdstream that takes no of questions as input. The no of records are 300 and I want the program to select only 30 questions but …

Software Development c++ file-stream
Member Avatar for dualdigger
0
147
Member Avatar for ppotter3

I am currently writing a program called Encoding and Decoding strings with the Enigma Class. This was a class assignment, but it already has been turned in, and I would like help (I am not looking for the work to be done for me) so I may learn from my …

Software Development algorithm c c# c++
Member Avatar for ppotter3
0
2K
Member Avatar for emaduddeen

Hi Everyone, I would like to know how to make a DataView global to a particular form. The DataView is currently created and returned from a function within a public class residing in another .vb module. All help will be appreciated. Thanks. Truly, Emad Here's what the code in the …

Software Development dataset vb.net visual-studio
Member Avatar for emaduddeen
0
220
Member Avatar for scorpio222

hi. i am creating a new csv file pro grammatically in C# where i am going to take values from a csv file that is already present with me. consisder this csv file, firstname,lastname,middle,company,email xxxxxx,xxxxxxx,xxxxx,xxxxxxx,xxxxx yyyyyy,yyyyyy,yyyyyy,yyyyyy,yyyyyy zzzzzz,zzzzzz,zzzzzz,zzzzzz,zzzzzz I need to read certain values from each row of this file and …

Software Development
Member Avatar for scorpio222
0
201
Member Avatar for charqus

Hello guys. I made a Windows Form , with some buttons. Each button contains a windows form. If i press a button , the new windows form appear above the Principal Windows Form. But , if I don't close it , and i press another button , the new windows …

Software Development
Member Avatar for kvprajapati
0
76
Member Avatar for neosonic

Hi All, I have 2 picturebox in vb6. Both of them has the same dimension and the slightly different picture. they are house plans, one for the ground floor and another one for the upper floor. I want to overlay them. But how can I do it? If I am …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
455
Member Avatar for onlinessp

hi, I want c# source code for process killer as task manger -> it forcefully kill the process which i want <->it may be system process

Software Development
Member Avatar for privatevoid
1
172
Member Avatar for pritesh2010

hello everyone i had created 5-6 crystal report in my vb.net project with back end sql server 2005 and i had given my path for crystal report. after this i had creted setup and deployed at customer machine but there it dosn't shows any report instead of it gives an …

Software Development vb.net
Member Avatar for kvprajapati
0
182
Member Avatar for onlyonebui

Hello everyone! Please Give me some guidance if u have any idea. im doing a database using vb6 and access. im viewing my database data from access to vb using listview. each data in database have its own picture or image to display. in the form where i put the …

Software Development display image listview visual-basic
Member Avatar for tsmvasanth
0
242
Member Avatar for Imberto

Hello, i'm having trouble getting this program to work. It works when i just directly put in the file name, but when i try to use args and i pass it threw the command line. i can't get it to work. I've been testing stuff but i can't seem to …

Software Development java
Member Avatar for Imberto
0
110
Member Avatar for lwschjang

Basically, I have a price quoter that I am working on. The way it should work is: The user selects the quantity of cards from the combo box. In the textfield a price displays once selected. (i.e. 100 = $8.95). (I have this segment working already.) Next the user selects …

Software Development gui java java-swing
Member Avatar for moutanna
0
126
Member Avatar for pirateninja1111

so all i want to do is roll 1 die repeatedly and add it to a total until the total is equal to or greater than 31 this is what i have got to so far [CODE] import java.io.*; import java.util.*; public class comp { public static void main(String[] args) …

Software Development java
Member Avatar for Sephladaj
0
116
Member Avatar for BestJewSinceJC

How can I create a semaphore using the above functions that will allow [I]any[/I] process access to the semaphore? I've been playing around with global variables for hours thinking I was doing it wrong, but now I believe I was misled. I think the problem is that the other processes …

Software Development c
0
79
Member Avatar for R3k

I'm having a problem when declaring a TCPListener in C# 2010 Express, and it is causing me a little hassle. It gives me this error when I declare one and I am not quite sure why? [QUOTE]The type or namespace name 'TCPListener' could not be found (are you missing a …

Software Development assembly
Member Avatar for R3k
0
207
Member Avatar for kjaved373
Member Avatar for godflesh231

i have been trying to debug this program for about 2 days(not the whole days, just when ive been coding) and i still cant find the source of this bug. i have been trying to create a class factory system for a game that i want to make. first, let …

Software Development c++
Member Avatar for godflesh231
0
123
Member Avatar for BobbieJean

Hi, I'm supposed to write a program using super and subclasses to calculate monthly payroll for 5 employees. There are 4 types of employees, salaried, hourly, commissioned, and base plus commissioned. Anyway, I've gotten it to build with no errors and it runs almost like it should but since it …

Software Development java java-swing
Member Avatar for kvass
0
2K
Member Avatar for BobbieJean

[COLOR="Red"]Hello, I had put this question in another thread and I got a response that seemed to explain it well but I just seem to keep going in circles and I'm still just not getting it. So I need some more help. The other thread started getting pretty lengthy so …

Software Development java
Member Avatar for javaAddict
0
183
Member Avatar for cyon

Given s.ss or seconds accurate to the hundredth place, what is the most effective way to convert it to the string mm:ss.s? Here is my current attempt: [CODE]import time def convert(t): print time.strftime("%M:%S",time.gmtime(round(t,1)))+str((".%01d" % (((round(t,1))-int(round(t,1)))*10))) t = float(raw_input('Enter time in s.ss: ')) convert(t)[/CODE] However, the results don't seem quite right: …

Software Development python
Member Avatar for TrustyTony
0
563
Member Avatar for Gl0mby

Hi, I apologise to seemingly plague this forum with different problems but I'm stuck on another project. I've a series of forms setup in my windows form application that deal with deliveries. I've made it so that one can add a new order, edit the order and delete the order. …

Software Development
Member Avatar for Gl0mby
0
107
Member Avatar for ku95

currently writing a program, and for some reason I'm getting these two errors which are really bugging me. I've tried adding the brackets and changing the statement and still no luck. If there is a possible solution that would be grateful. [B]Please note that I have solved the bracket error, …

Software Development java
Member Avatar for Dukane
1
151
Member Avatar for rasizzle

Hey guys. I just started using portable python and I have to say this module is great. It helped me bypass some problems transferring modules between win32 and win64 cpus. So my question is for all you portable python users is: do you have to install python for each new …

Software Development python
Member Avatar for rasizzle
0
182
Member Avatar for urbangeek

[CODE]#include<stdio.h> #define sqrt(x) x*x int main(){ int x=5; int y=sqrt(x+1); printf("%d\n",y); return 0; } [/CODE] The answer is 11. Can anyone explain why? thanks

Software Development c
Member Avatar for urbangeek
0
91
Member Avatar for soUPERMan

hello, was wondering how to sort a list which has different data types according to the data type, Example if a list containing 'person' objects. a person object wil have a name, gender and age like so: person1 = person(name, gender, age) so if i have 5 objects in a …

Software Development python
Member Avatar for soUPERMan
0
86
Member Avatar for mansoorhacker

hello respected developers. i am using datagrid for my medical clinic application. i want to save data from the datagrid to the datatable, and then save it to the appropriate table in the database. plz help me in this aspect. thx.

Software Development
Member Avatar for kvprajapati
-1
80
Member Avatar for jeffhorton1965

In the following code I am calling a function from a pthread: [CODE]pthread_create(&threads[t], NULL, dnssearch, (void *)buffer)[/CODE] I need to pass the string (buffer) to a function and the have the function pass a string back. What am I doing wrong in the function: [CODE]void *dnssearch (void *buf) { char …

Software Development c
Member Avatar for jeffhorton1965
0
203
Member Avatar for zango

Basically, here is what the program is supposed to do: 1. Create a ResistorClass overloaded assignment (=) operator function which shall do the following: * Overload the assignment operator ( = ) to assign all m_dptrRes data values of an object of class ResistorClass to another object of class ResistorClass. …

Software Development c++
Member Avatar for zango
0
130
Member Avatar for alok4u

Hello friend... i'm doing a j2me proj it is "banking application on mobile(using netbeans nd mysql database)" as my final yr proj... as i'm a fresher,i hv no clear idea about j2me.....my proj hv following specification. 1.login 2.balance enquiry 3.fund transfer 4.view mini transaction.. I'm able to login user successfully...bt …

Software Development java
Member Avatar for alok4u
0
81
Member Avatar for BigPandaCake

I've been trying for hours to do this and can't figure it out.. I'm trying to add a new record to a table in my local database.. Heres the SQL code im using at the minute.. I keep getting this error "The data was truncated while converting from one data …

Software Development open-source sql vb.net
Member Avatar for BigPandaCake
0
249

The End.