132,726 Archived Topics
Remove Filter ![]() | |
If I do something like: [CODE] Label _label = label1; _label.Text = "123"; [/CODE] Would label1 read "123"? Does this work for int and string? If not, how would I achieve this? Software Development | |
hellow every body i m trying to do a graphique interface using c++ but i cant know which .dll i have to use such im using visual studio c++ 2010 express edition . when i thank to use QT with vs2010 there is a lot of problemes caus i don't … | |
Hi all, I have a more philosophical question which I think might help me to better understand the interest of pointers in C++. Indeed, my background is mainly Perl and a bit of Java. I am currently implementing (as an exercise and because I work in this field) a class … | |
Hmm... can we use the continue statement in [COLOR="red"]if-else statement[/COLOR]? as i know the continue statement only can use [B][COLOR="Red"]under for loop[/COLOR][/B] right? and also is there any idea how to write [B][COLOR="Green"]pseudocode[/COLOR][/B] of for loop ? give some sample examples. thanks alot. :) Software Development c | |
Now before we start, please don't send me off on XML Serialization, I want binary for a reason. :) In the following code (and I don't even know if its correct ... it does compile), I'm trying to serialize and write a list of my class to a file and … Software Development file-stream xml | |
I am trying to remove all listbox items that contain all spaces(11).I am stuck. This code doesnt remove the items [code] for (int i = 0; i < tree.Items.Count; i++) { if (tree.Items[i].ToString().Contains(" ")) { tree.Items.RemoveAt(i); } } [/code] Software Development | |
Hello Daniweb'ers, I was wondering if you could help me. I'm developing a YouTube downloader and want to be able to convert a YouTube link into a title. Such as this: textbox1.Text = " [url]http://www.youtube.com/watch?v=Bj7_W1FuO70&feature=related[/url] " label1.Text = " Fire Like This Hardknox Me Myself And Irene " In other … Software Development visual-basic | |
I am trying to write a named semaphore, can anyone point me in the right direction. I have tried googling it. I come from a java background so i understand the theory. Is a named semaphore created in the same way an semaphore is ? Software Development c++ | |
Can somebody help me i want to send a mail for forget password n iwant to send a link of my reset password page in it please help me Thanks in advance | |
hello to all, by the way i'am new in visual basic. could any teach me how i should start my project. my project is that. its talk about accounting the proopsheet and the ledger. now this is the problem when a person created a proopsheet in excel, there is three … Software Development open-source visual-basic | |
Hello everybody, I have developed my software using NetBeans IDE 6.9: very simple, a db on a remote server, a JDBC:ODBC bridge connection in order to access it and everything was working fine, until I was ready to deploy it, and I fell in this problem of 32-64 bits conflict. … Software Development ide java java-netbeans microsoft-access | |
Hello, I made a form into Visual Studio (Window forms) and i used a webbrowser from toolbox. I want to open into the webbrowser a web page from local drive. In properties, into the URL box if I write the absolute path (ex. c:\xy.htm) it works, but how i can … Software Development visual-studio | |
I'm using the streamreader to read in a text file and using the function EndOfStream to detect the end of the text file. The problem i facing is that i'm getting this weird error message -- > [B]System Error &H80131c25&[/B] Does anyone know what this means and how to solve … Software Development vb.net | |
is there any layout manager or some other way to add a label or any other component starting from a specific point like we draw rectangles i need this because i want to move the label around with input. Software Development java | |
Hi everyone, I am quite new to C++ (coming from perl). As an exercise, I am currently trying to create a class to play with graphs. I have a class Node in which I overload the == operator (to test the equality between two nodes). At the moment, I consider … | |
I need help with a program. It’s suppose to keep track of motel reservations. A guest’s name is entered and then assigned to a room. The motel has three floors and 40 rooms (numbered 1 to 40). The program is suppose to reserve a room, cancel a reservation, and display … | |
I have 3 separate questions. I'm trying to develop a program that displays several vocabulary lists and has a row of buttons at the top for selecting the lists. These buttons don't appear until I re-size the window. Does anyone know why this occurs? Second, I've extended the JPanel class … Software Development java | |
I am using VB to query a MySQl database and populate an Excel spreadsheet. All is working well, but now I would like to start distributing the spreadsheet shroughout the company and cannot protect it. If I protect the spreadsheet the VB cannot add the MySQL data, so I added … | |
How would I make a 3,4,5 triangle print out in a GUI. I was using the drawline function, but I can't figure out how to make it so its between two coordinate points. I have some code like this to draw a line [code] // draw line coloredPen->Color = Color::Red; … | |
How would you split an existing string where a chararacter occurs into an array of strings, and store that character in a char? For example, inputting 123a5 would return {123,5} in an array and 'a' in a char. I've confused myself with this. I will greatly appreciate any help. Software Development java | |
We've to build one mini project on Vending Machine.. Our Guide have given us following topics to be covered in mini project - [LIST] [*]Normal Vending machine program working on Deposited balance - Can do it [*]Login and Password for 5 members to store their individual spares separately [*]Permanent storage … | |
I am new to c# with that in mind can some one please tell me how to call a class file that i have created in to a windows form file.for example how do i call a function that handles error logs to call and run on a form file. … Software Development file-system ![]() | |
im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx... | |
I'm trying to make some sort of database for cards for a cardgame similar to Final Fantasy VIII Triple Triad Card Game where each card has its name and scores on the top, bottom, left, and right sides of the card. I'm using arrays of structures. i can't compile it … Software Development c | |
Say I wanted to open test.html in Firefox on the click of a button. How would i do that assuming Firefox is not my default browser? Software Development web-browser ![]() | |
Hi everybody. I would like to know if its possible do dynamically manipulate the scrolling of a webpage in a WebBrowser control in my Form. Either by a page loaded event or some other event. Also if that is possible, can it be done without the control having scrollbars. I … Software Development c# | |
Hey all, I am currently trying (desperately trying if I might add) learning how to use GLUT for school. Our professor gave us an assignment to make a 2d tube of some sort, but I only managed to make a circle. The tube will be only displayed on its front … Software Development c++ | |
Hi, I have a doubt regarding inheritance of base class constructor by inherited class. I was recently going through some C++ online tutorial when I came across this piece of code: [CODE=c]#include <iostream> class Foo { public: Foo() { std::cout << "Foo's constructor" << std::endl; } }; class Bar : … Software Development c++ | |
Hello everyone.. When working with Visual Studio 2010, the "MessageBox" function displays chinese characters, instead of english ones. Example: I attempted to prompt a message to myself using the messagebox function, saying "Success!" However, the message box pops up a message in chinese, and not in english. I am able … Software Development c++ display visual-studio | |
I am confused. Here is the source: [url]http://www.learncpp.com/cpp-tutorial/28-constants/[/url] [QUOTE] Literal constants Literal constants are literal numbers inserted into the code. They are constants because you can’t change their values.[/QUOTE] Why can't we change literal constant? I mean if we want to initialize something, let say [CODE]int x = 14;[/CODE] And … Software Development c++ | |
Hello, I just finished my "Who wants to be a millionaire Game", (very basic coding), but I got some issues when I click somewhere out of the Boxes range(try it), and I'd like to add some sort of points to each question, and as they go further make the question … Software Development python | |
Hi friends, Plz anybody can tell me, How to retrieve only date from DateTime in vb.net in dd/MM/yyyy format and I have a field in table in access 2007 which has date/time datatype. Data is stored in datetime format.(04/08/2010 12:01:07 AM) I want to retrive only dates which are in … Software Development vb.net | |
I need to write an application that reads a distance in metres. The program will then convert the distance to kilometres, feet and inches, by calling methods. Here is my code so far... looking for pointers please. [CODE]import javax.swing.JOptionPane; import java.text.DecimalFormat; /** This program converts meters to kilometers, inches, and … Software Development java java-swing | |
I just started to get a grasp of classes. I can't find my answer anywhere, and I hope someone on here can answer it. I am trying to simlate a battle [B]USING CLASSES[/B] Everywhere I look on the net people in C++ don't use classes to simulate battles. You could … Software Development c++ | |
Hey guys, I'm new here. I just started learning c++ and I'm having a few problems. I have looked for one online but I found none that really worked for me so I tried to make my own. I'm trying to make a constant frame rate at 30 frames per … Software Development c++ | |
When I run my code the program adds the following before the start of my program: >>> Warning (from warnings module): File "C:/Users/Steven/Documents/CA/CA python/CAMain.py", line 142 def maxgen(fname, worksheet=1,encoding='cp1251'): SyntaxWarning: import * only allowed at module level >>> [I]The first prompt of my program would be here[/I] The code it … | |
Basically i want to make a platform game in java purely from the java 2d graphics. I have managed to link the keyListener to update variables which my graphics pane can then use to draw my images. But i cant do is get my image to refresh after the variables … Software Development java java-swing | |
So I have a method that gets a Dictionary of `List<myObj>`, then cycles through the keys of the dictionary and passes each `List<myObj>` to a separate thread. Here is some Code / Psuedo-Code: public static void ProcessEntries() { Dictionary<string, List<myObj>> myDictionary = GetDictionary(); foreach(string key in myDictionary.keys) { List<myObj> myList … | |
If someone could take a look at my Java code for Payroll Program, I need to declare Int as a double in order to produce the produce of number of employees in a department times the average salary for each employee. If someone could throw up pointers, tips, or any … Software Development java | |
Is is possible to check if the execution of a java program from python gives any error during runtime and compile time ? Any help or sample code will be of real help.. Thanks in advance | |
Hi,I am new to daniweb and would like to know the error in this code [CODE] void initpoly(struct poly *p) { int i; p->noofterms=0; for(i=0;i<MAX;i++) { p->t[i].coeff=0; p->t[i].exp=0; } }[/CODE] I am not posting the entire program because it is lengthy.I am getting the error"Expected primary expression before token ;" … Software Development c++ | |
Hey,can anyone tell me how to invoke a new application/software using c++ or visual c++. Also, gor interfacing a gui with my c++ code,should i go for vc++? | |
Hi, My script has 3 options which recieve integers. If any of those options are having a value which is less than zero i want to make them to 100. eg: if opt2 = 32 and opt3 = 24 i want to make them to 100. <code=perl> our $opt1,$opt2,$opt3; our … Software Development perl | |
oh my please help me..i;m making a simple code in c++ using dev c because i am exploring this language for my second year. i do not know why it will not display the output..i don't know how to use cin..[CODE]#include <iostream> using namespace std; int main() { cout << … | |
Below is my code: [CODE]#include "stdafx.h" #include "strlib.h" #include "simpio.h" #include "genlib.h" int _tmain(int argc, _TCHAR* argv[]) { int num1,nom1,num2,nom2,num3,nom3,num4,nom4; double nem1,nem2,nem3,nem4; string a,b,c,d; printf("Enter first name: "); a=GetLine(); printf("Enter games played for %s: ",a); num1=GetInteger(); printf("Games won for %s: ",a); nom1=GetInteger(); nem1=(nom1/num1)*100; printf("\n"); printf("Enter second name: "); b=GetLine(); printf("Enter … Software Development c++ | |
I am developing a payroll program for my programming class. I need to declare the Int as a double in order to produce the product for number of employees in a department times the average salary for each employee. Can someone take a look at me code and let me … Software Development c++ | |
Hello everybody, For the last 2 days im trying to deal with a treeview. What i want to do is to copy the structure from one tree to another. I know there are other ways to do this, but the way i want is to iterate through any node-of any … Software Development programming-construct | |
Ok, well I am new to VB, but have a general idea of it, and im trying to make a program that does the following (and it fairly simple) button 1 = Open button 2 = search and replace textbox = text to search for replace = a given, non … Software Development vb.net visual-basic | |
Hello all, this is Kimo :D The title shows all what I want, I want some advice about a book to read regarding that i'm not new in programming, I Programmed C++ before. Meaning that this book doesn't explain what's a variable, a pointer or what's a class, etc... It … Software Development c# |
The End.