132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bbman

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
Member Avatar for bbman
0
104
Member Avatar for sana_moi

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 …

Software Development c c# c++ gui qt visual-studio
Member Avatar for sana_moi
0
88
Member Avatar for sbrohee

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 …

Software Development c++ perl
Member Avatar for sbrohee
0
122
Member Avatar for gahhon

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
Member Avatar for ciint
0
119
Member Avatar for Zinderin

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
Member Avatar for nick.crane
0
170
Member Avatar for GAME

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
Member Avatar for Geekitygeek
0
137
Member Avatar for camelCase

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
Member Avatar for AndreRet
0
132
Member Avatar for $harmi

Note: NotePad.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.[code][/code]

Software Development api java
Member Avatar for JamesCherrill
0
85
Member Avatar for elsiekins

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++
Member Avatar for elsiekins
0
113
Member Avatar for kapsroks

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

Software Development email java
Member Avatar for kapsroks
0
744
Member Avatar for ZER09

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
Member Avatar for AndreRet
0
331
Member Avatar for elmoualh

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
Member Avatar for elmoualh
0
232
Member Avatar for Nexgr

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
Member Avatar for Nexgr
0
2K
Member Avatar for Reg74

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
Member Avatar for ibennz
0
805
Member Avatar for gauravk_bhanot

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
Member Avatar for gauravk_bhanot
0
3K
Member Avatar for sbrohee

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 …

Software Development c++ perl
Member Avatar for sbrohee
0
271
Member Avatar for scottjo

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 …

Software Development display vb.net
Member Avatar for leahrose87
0
167
Member Avatar for nocookies92

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
Member Avatar for new_programmer
0
2K
Member Avatar for muppet

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 …

Software Development mysql vb.net
Member Avatar for Oxiegen
0
213
Member Avatar for johnb08

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; …

Software Development asp.net c c# c++ gui
Member Avatar for johnb08
0
126
Member Avatar for Rockyboy53

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
Member Avatar for Rockyboy53
0
85
Member Avatar for rahulrulez

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 …

Software Development c++ storage
Member Avatar for ika_rees
0
664
Member Avatar for Don_leon

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
Member Avatar for saravind84
0
123
Member Avatar for wwefriend

im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx...

Software Development c c# c++
Member Avatar for wwefriend
0
135
Member Avatar for shinsengumi

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
Member Avatar for Ancient Dragon
0
207
Member Avatar for jackabascal

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
Member Avatar for saravind84
0
154
Member Avatar for Suzie999

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#
Member Avatar for Suzie999
0
167
Member Avatar for ticktock

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++
Member Avatar for ticktock
0
315
Member Avatar for el33t

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++
Member Avatar for caut_baia
0
197
Member Avatar for PixelExchange

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
Member Avatar for PixelExchange
0
175
Member Avatar for jwxie

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++
Member Avatar for jwxie
0
98
Member Avatar for gonzigg

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
Member Avatar for tbone2sk
0
343
Member Avatar for Maya Pawar

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
Member Avatar for crapulency
0
96
Member Avatar for dylgod

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
Member Avatar for jon.kiparsky
0
121
Member Avatar for dadam88

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++
Member Avatar for dadam88
0
109
Member Avatar for DaSpirit

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++
Member Avatar for DaSpirit
0
289
Member Avatar for Musing888

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 …

Software Development display python
Member Avatar for Musing888
0
1K
Member Avatar for Fedhell

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
Member Avatar for Fedhell
0
713
Member Avatar for Dudeman3000

So I have a method that gets a Dictionary of `List&lt;myObj&gt;`, then cycles through the keys of the dictionary and passes each `List&lt;myObj&gt;` 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 …

Software Development c c# c++
Member Avatar for nick.crane
0
156
Member Avatar for fr0styh3rb

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
Member Avatar for NormR1
0
185
Member Avatar for anurag.kyal

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

Software Development java python
Member Avatar for Gribouillis
0
87
Member Avatar for gaurav_13191

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++
Member Avatar for gaurav_13191
0
242
Member Avatar for mehak gupta

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++?

Software Development c++ gui
Member Avatar for mehak gupta
0
261
Member Avatar for anraevlus18

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
Member Avatar for d5e5
0
118
Member Avatar for mavs123

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 << …

Software Development c c# c++
Member Avatar for harris21
0
113
Member Avatar for qqwushi12345

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++
Member Avatar for qqwushi12345
0
109
Member Avatar for fr0styh3rb

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++
Member Avatar for arkoenig
0
120
Member Avatar for Alexpap

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
Member Avatar for nick.crane
0
245
Member Avatar for xZombeast

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
Member Avatar for Oxiegen
0
123
Member Avatar for abdelhakeem

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#
Member Avatar for abdelhakeem
0
131

The End.