43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pseudorandom21

C++/CLI @ runtime add a PictureBox to a tab control, I need to do this at run-time because they're to represent some data the user must be able to manipulate. I actually need them to be in some kind of scrollable panel on the tabcontrol. Any ideas?

Software Development c c# c++
Member Avatar for jonsca
0
149
Member Avatar for CodeAerial

HMm... already frustrated at it... But is there something wrong in my malloc? Everytime I try to display the record, it gives me random things as answer(see code below)? Was it that I didn't free it or was I wrong in declaring malloc itself? Thanks in advance. [CODE] #include <stdio.h> …

Software Development c
Member Avatar for CodeAerial
0
283
Member Avatar for jordan0420

Im working on my first big project, a GUI library for movie files (much like in itunes). so far i have the ability to list the movies title director and year in a list box as well as add movies to the database, however it is only text no actual …

Software Development gui python tkinter
Member Avatar for jordan0420
0
914
Member Avatar for stephy1

[CODE] File file = new File(args[0]);[/CODE] what this line of code actually mean?

Software Development file-system java
Member Avatar for stephy1
0
375
Member Avatar for stephy1

I have 3 threads. 3 are going to do a different tasks , so different run() methods. How to overload run() method?

Software Development java
Member Avatar for stephy1
0
90
Member Avatar for stephy1

I got error :At the constructor MyStackThreads "class , interface or enum expected" [code]import java.util.*; import java.io.*; class MyStackThreads extends Thread { Stack thestack= new Stack(); String expression; String splitexpr[]; MyStackThreads[j] { public void run() { try { DataInputStream dis=new DataInputStream(System.in); expression=dis.readLine(); for(int i=0;i<expression.length();i++) { splitexpr=expression.split(expression); thestack.push(splitexpr[i]); } } catch(IOException …

Software Development java user-interface
Member Avatar for stephy1
0
385
Member Avatar for Valaraukar

So for some reason I my brain seems be failing me :( Anyway....I have a cylinder object in 3D space and inside of the cylinder I have line objects originating at the origin (0,0,0) (which is also the centre point of the cylinder). I would like to find the exact …

Software Development c++
Member Avatar for Valaraukar
0
201
Member Avatar for mangopearapples

Hi, I was wondering how I can use this type of list: [url]http://palib-dev.com/manual[/url] On the left, there are expandable lists. How can I use them? Thanks.

Software Development java
Member Avatar for mangopearapples
0
144
Member Avatar for Insomaniacal

Hi everyone. I'm having a little bit of trouble getting a piece of code to work correctly here. Here is the code. [CODE]] filename = "./" + `random.randrange(0,9999999999999999999999999999999999)` + ".txt" f = open(filename, 'w') f.write(`data`) f.close f = open(filename,'rb') ftp = FTP('ftphost.com') time.sleep(5) ftp.login('user,pass') time.sleep(5) ftp.storbinary('STOR `filename`', f ) [/CODE] …

Software Development python
Member Avatar for jintujacob
0
241
Member Avatar for Allen 0108

I am working thru the Wrox book: [U]Beginning Programming[/U], and need some advice on getting a simple program to compile. I have Vista and use the free Borland C++ compiler. After entering in a simple C++ code, I was not able to get it to compile. When I attempted to …

Software Development c++ file-system windows-vista
Member Avatar for smTaqi
0
3K
Member Avatar for yassop

Hi all. I have a problem with my calculator. #include <stdio.h> int a, b; /* value entered by user */ char c, choice; int main() { printf("\nThis program is a calculator.\n"); printf("Enter your calculation: "); scanf("%d%c%d", &a,&c,&b); if (c=='+') printf("The answer is %d", a+b); if (c=='-') printf("The answer is %d", …

Software Development c
Member Avatar for yassop
0
241
Member Avatar for realoneomer

Hi guys, I am looking for such a perl program that matches a pattern in file and print all remaining lines below the pattern. for example. If i have a file like.. Column1 Column2 ABC DEF GHI KJL ADG MKO HGI KIO HFO PIL This is a my pattern Groupname …

Software Development perl
Member Avatar for singhabsk
0
230
Member Avatar for SolidSora

I have to make a Tic Tac Toe game for class and I have a problem with checking if the space is available when the player enters it. Everything else works fine. Here is my main: [CODE]#include<iostream> #include"tictactoe.h" using namespace std; int choice; int main(){ TicTacToe myBoard = TicTacToe(); cout<<"Enter …

Software Development c++
Member Avatar for SolidSora
0
471
Member Avatar for kay19

Well, I first made a topic about JDK commands not inputting, but fixed it now. I usually do my work in class when it comes to textpad - java, but right now, working at home. Here's my problem - I can't get it to compile. It gives me an error …

Software Development java
Member Avatar for kay19
0
513
Member Avatar for razax

Hi, This is my first post.I found interesting thing while playing with lists. [CODE]l = ['asd',"asd'das",'qw','213'] print "original list:", l print "first item:", l.pop(0) print "second item:", l.pop(1) print "modified list:", l [/CODE] [B]output:[/B] original list: ['asd', "asd'das", 'qw', '213'] first item: asd second item: qw modified list: ["asd'das", '213'] …

Software Development python
Member Avatar for razax
0
218
Member Avatar for Szeth

Hello Everyone, I need to add functionality to store the guesses the user makes in an array up to a maximun number of guesses stored in a constant. It must display a list of the previous guesses before the user guesses a number each time (excluding their first guess). Once …

Software Development c++
Member Avatar for Szeth
0
2K
Member Avatar for mugenoesis

Okay i have tried everything please can someone help me i am trying to restart this program so i have used a do while loop. The problem is that when i say n to terminating it just asks the question again do i wish to terminate every time i click …

Software Development c++
Member Avatar for mugenoesis
0
131
Member Avatar for robergto

Hi there! And Thanks for your help.- I've installed VB 5 Enterprise edition, and amn trying to begin self-guided studies of this language. When trying to use "Microsoft Common Dialog Control 5.0", as told in a book, cannot find it -> CTRL + T and Componets. Instead, have a "Microsoft …

Software Development visual-basic
Member Avatar for robergto
0
141
Member Avatar for DarknessVB

I have a form set up and on that form is a DataGridView, on that DataGridView I would like to display all of a customer's transactions. I am having a problem where the debugger is throwing me a "Syntax error in JOIN operation." and I can't proceed. [CODE] ' Select …

Software Development sql vb.net
Member Avatar for DarknessVB
0
165
Member Avatar for click_Apply

I am new to XSLT Please help, Cannot use XSLT 2.0 The group priority level lowest(Public-1) TO Highest (PRIVATE-3) Public-1 Public-2 Public-3 CONFID-1 CONFID-2 CONFID-3 PRIVATE-1 PRIVATE-2 PRIVATE-3 For example a user LDAP query gives a file <result> <DN>CN=Test User ID Priv-2,CN=Users,DC=Lab,DC=acme,DC=com</DN> <attribute-value name="memberOf">CN=CONFID-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> <attribute-value name="memberOf">CN=PRIVATE-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> <attribute-value name="memberOf">CN=Public-3,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> </result> The …

Software Development xml
Member Avatar for click_Apply
0
413
Member Avatar for indrajeet6

Hi, I've been trying to compile the following code in visual c++ 2010 Express Edition. But the output window just says: 1>------ Build started: Project: Ans7, Configuration: Debug Win32 ------ ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Code Follows: [CODE]/*Program to dynamically allocate a 2D array*/ …

Software Development c++
Member Avatar for indrajeet6
0
449
Member Avatar for vanalex

Hello everybody, I wrote a test source code about 2 classes point and circle. These classes illustrate the center of a circle (point class) and its radius (circle class). Circle class inherits point class. Here's the code: [CODE]#include <iostream> using namespace std; class point { private: int x, y; public: …

Software Development c++
Member Avatar for vanalex
0
169
Member Avatar for Jesi523

Ok, I hope I can explain this so that everybody understands. I have a database where a column has special characters in the fields. I need to remove these characters before printing them to a file. I have the following code: [CODE]public string RemoveSpecialChars(string[] args) { string[] chars = new …

Software Development assembly
Member Avatar for ddanbe
0
878
Member Avatar for Davitch

I am currently a begining Java student and have some code for someone here to look at. Now according to the NetBeans program I am using to write this code there are no errors, but when I run the code I get "Exception in thread "main" java.util.IllegalFormatConversionException: f != java.lang.Integer" …

Software Development java java-netbeans
Member Avatar for Davitch
0
89
Member Avatar for aaronmk2

Is their a way where the user could type Low to use the enum instead of typing 1? I know how to do this with strings, but am having trouble trying to figure it out using enums. [CODE] public enum Volume : byte { Low = 1, Medium, High } …

Software Development
Member Avatar for aaronmk2
0
126
Member Avatar for spitfire5295

ok so my code displays 0 every even and odd number can you explain to me how to fix this. i have a feeling it is the displayArray. This is what dispArray should do create a method called displayArray that takes an array of integers AND an integer as parameters. …

Software Development java
Member Avatar for spitfire5295
0
120
Member Avatar for triksterx

Hi everyone. Let me start by saying I have managed to learn quite a few things and solve pretty much any python problems using this site. So thanks to everyone who contributes to these forums. Now for my problem. I am having a hard time getting the .grid method to …

Software Development python tkinter
Member Avatar for woooee
0
1K
Member Avatar for atticusMom

I broke my foot and missed the first part of class where this was covered now I'm all confused. I have a password class and I must create within this class a static method of isValid that will accept a possible password value and return if it is valid. I …

Software Development java
Member Avatar for jon.kiparsky
0
142
Member Avatar for bhagawatshinde

Hi, I am getting an error while fetching the records from sql server to datagridview. Ex. I have 10 rows in datagridview first five are with one table and next five for another table. When loop goes for next table it throws an error like "timeout expired. the timeout period …

Software Development mathematics vb.net
Member Avatar for Pgmer
0
338
Member Avatar for tinamary

what is the use of constructors in java when we can intialize objects directly

Software Development java
Member Avatar for peter_budo
0
185
Member Avatar for achava

Suppose you have an xml file that has a portion that looks like: <div id="California">The cat is in the house <p>The horse is also in the house</p> <div><a href="wwww.whatever.com" /><p>Another pigeon?</p></div> </div> Since the top div here is buried somewhere within the file, I am trying to isolate it with …

Software Development xml
Member Avatar for achava
0
110
Member Avatar for sirlink99

I am making a game, but my buttons don't seem to be working. When I click in a certain area (where the button is) a screen should pop up. It doesn't. Please help. [code] // The "VirusMania" class. import java.applet.*; import java.awt.*; import javax.swing.Timer; import java.awt.event.*; public class VirusMania extends …

Software Development java java-swing
Member Avatar for sirlink99
0
112
Member Avatar for chipsch

I have an assignment where I have been asked to ask the user for input. What I am trying to figure out is if there is anyway to call and use methods of another class whose constructor requires parameters without passing them from the main class that will be calling …

Software Development java oop
Member Avatar for Akill10
0
220
Member Avatar for MasterMic

I've taken 1 course in Java and 1 in C++ and now I'm tinkering with Python (love it so far). My module I'm currently working on is designed to solve a certain puzzle. To understand the code you'll need to understand the puzzle: There is an upside down triangle with …

Software Development mathematics pascal python
Member Avatar for MasterMic
0
270
Member Avatar for mackemforever

I've just been trying to put together a small piece of code to display the Fibonacci series up to the nth term, where n is defined by the user. I have got it working in a way, it is displaying the series up the the nth term where n is …

Software Development c
Member Avatar for mackemforever
0
124
Member Avatar for remuladgryta

Hi, i'm a new learner of the ways of COM and, when trying to recode a code example found in [I]Automating Office[/I] by Lori Turner from just a demo of Word interaction into a c++ class (which i will be using in my program) i come across these linker errors: …

Software Development c++ visual-studio
Member Avatar for DJRoss
0
3K
Member Avatar for roottybrian

Hi guys... I am in need of urgent help here! I want to print more than one page on vb.net's printdocument whatever! I quite don't get it quite clearly when it comes to "e.hasmorepages=true" thing It keeps adding pages on and on and on... Please help me.. Thanks

Software Development vb.net
Member Avatar for Luc001
0
168
Member Avatar for youLostTheGame

in my C++ class we were given an assignment (as follows) and i only have one last objective with it. the user is given an option to be able to see the entire queue list and i don't know how to get the program to show that. does anyone know …

Software Development c++ objective-c queue
Member Avatar for youLostTheGame
0
147
Member Avatar for singhabsk

Hi Perl guru's My name is ABHI and i am almost new on perl i need help for below mentioned issue. Well, I have one file(xyz.txt) containing following text LT19-10-13-400922 --TID1-3039@10.100.14.163 1--RequestREGISTER LT19-10-13-405432 --TID1-3039@10.100.14.163 1--Response100 LT19-10-13-410015 --TID1-3039@10.100.14.163 1--Response401 LT19-10-13-415481 --TID1-3039@10.100.14.163 2--RequestREGISTER LT19-10-13-419800 --TID1-3039@10.100.14.163 2--Response100 LT19-10-13-426400 --TID2-3039@10.100.14.163 1--RequestREGISTER LT19-10-13-463320 --TID3-3039@10.100.14.163 1--RequestREGISTER …

Software Development perl
Member Avatar for singhabsk
0
104
Member Avatar for ben25x

I have searched and deleted on this code, but I am still stumped on where the "unresolved external" it's complaining about is. Here is the code:[CODE]#include <windows.h> #include <stdio.h> #include <string.h> #include <tchar.h> #include "resource.h" #define GETITEM(item) GetDlgItem(hWndDlg, item) void convert (HWND hWndDlg) { wchar_t ConvertTime[9], ETime[8], UKTime[8], HKTime[8], Hour[8], …

Software Development c
Member Avatar for Banfa
0
246
Member Avatar for uclaEE

Hello all! I am having trouble writing this code where I am supposed to take integers and output them as strings. When i try a number like 67 it outputs it correctly like sixty seven. However, when i try 467 it only outputs four hundred sixty. Suggestions appreciated! [CODE]#include <iostream> …

Software Development c c# c++
Member Avatar for ravenous
0
122
Member Avatar for JayWeb

Hi, I have a gridview with checkboxes in the 3rd column. I am trying to work out when they are selected. I have the following code: [CODE]foreach (GridViewRowInfo dr in gvMovies.Rows) if (dr.Cells[2].Value = true) MessageBox.Show("Row " + dr.Index + " selected");[/CODE] I get the following error: [B]Cannot implicitly convert …

Software Development
Member Avatar for JayWeb
0
111
Member Avatar for PinoyDev

Hello guys and Good day! I just want a little help on how to get the total number of space from the left until the word starts and display the total space in msgbox.. Example: [Code=vb] combo1.AddItem = " Bank " [/code] In this example the total number of space …

Software Development visual-basic
Member Avatar for PinoyDev
0
171
Member Avatar for Gsterminator

So my problem is that i'm trying to read a MyString that returns a new Mystring in which every digit -0123456789- has been replaced with a certain char. Ex: Blink182 ====>Blinkxxx [CODE]import java.io.*; import java.util.Scanner; //////////////////////////////////////////////////////////////////////////////// class Hw08 { //------------------------------------------------------------------------------ public static void main (String [] args) throws Exception { …

Software Development java
Member Avatar for Gsterminator
0
157
Member Avatar for Shodow

can you help my with the code for my cmdDone to add a new record into my database, i can't seem to get it here is my project [URL="http://dl.dropbox.com/u/9153815/Unknown.rar"]http://dl.dropbox.com/u/9153815/Unknown.rar[/URL] no luck even with tutorials

Software Development visual-basic
Member Avatar for Shodow
0
138
Member Avatar for w1mark

Hi, I have been working on this program for a while, and it is just getting plain frustrating. I'm trying to make a class(called numberType) which can take a number with up to 100 digits using a 100 integer character array and then be able to add that class with …

Software Development c++
Member Avatar for w1mark
0
123
Member Avatar for _neo_

I need to convert this C code to python. void GetChkSum(Int len, PSTR buf, PSTR res) { memset(res, 0, 4); for(int i=0; i<len; i+=4) { res[0]^=(buf+i)[0]; res[1]^=(buf+i)[1]; res[2]^=(buf+i)[2]; res[3]^=(buf+i)[3]; } res[0]=~res[0]; res[1]=~res[1]; res[2]=~res[2]; res[3]=~res[3]; } In my case, buf is bytes object. for example: buf = b'00000001TXBEG 0000' len is …

Software Development python
Member Avatar for _neo_
0
320
Member Avatar for pinsickle

I should remember this but I am rusty. I'm passing a char* [] to a function which will hold data that I have extracted using strtok. I've tested the output and it is doing what it is suppose to, at least it is inside of the function. As soon as …

Software Development c
Member Avatar for pinsickle
0
217
Member Avatar for Butterflieq

Hi everyone, I'm taking a C programming class and in addition to being unfamiliar with all of the syntax, I'm still learning my way around a new compiler. I'm currently writing a program that gets a user to input 3 numbers, then it will display the lowest to highest. My …

Software Development c
Member Avatar for gerard4143
0
192
Member Avatar for caut_baia

Hi everyone i'll keep it brief.Say i have [code] template <int k> struct A { enum {key=k}; }; template <int t> struct B { std::vector <A<y>* > vec; B () { vec.push_back (new A<y> ()); B <t-1> (); } }; template <> struct B <0> {}; int main () { …

Software Development c++
Member Avatar for caut_baia
0
98

The End.