43,549 Solved Topics
Remove Filter ![]() | |
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? | |
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 | |
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 … | |
[CODE] File file = new File(args[0]);[/CODE] what this line of code actually mean? Software Development file-system java | |
I have 3 threads. 3 are going to do a different tasks , so different run() methods. How to overload run() method? Software Development java | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
what is the use of constructors in java when we can intialize objects directly Software Development java | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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> … | |
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 | |
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 | |
![]() | 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 ![]() |
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 | |
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++ | |
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 | |
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 | |
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 | |
The End.