43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bobbysox

Hi, I'm new to python, but I want to start learning :) I just wondered if anyone could tell me how to use a variable from a function outside the function?

Software Development python
Member Avatar for sravan953
0
86
Member Avatar for NinjaLink

Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - …

Software Development c++ file-system
Member Avatar for NinjaLink
0
273
Member Avatar for Lethys

Hi [CODE] void Connect() { try { ST = new WebClient().DownloadString(first_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { try { ST = new WebClient().DownloadString(second_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { if (ST == "") { DateTime dt = DateTime.Now; string c = string.Format("{0:d/M/yyyy HH:mm:ss}", dt); label5.Text = …

Software Development
Member Avatar for serkan sendur
0
109
Member Avatar for catcit

Hello! I need to create a progress bar and up to this our this class [URL="http://code.activestate.com/recipes/492230/#clast"]http://code.activestate.com/recipes/492230/#clast[/URL] is the best class that fits my needs. I posted my problem at comments. Thanks, Danci Emanuel

Software Development python
Member Avatar for vegaseat
0
566
Member Avatar for atch

Looking through boost random library I've come across literal something like 331u. Does anyone can explain to me what this u is about? [code=c++] void seed(uint32_t value = 331u); [/code] Thank you

Software Development c++
Member Avatar for Dave Sinkula
0
160
Member Avatar for Bladtman242

Hi, this code is merely for testing a coulpe of functions for use in a bigger program, therefore this code alone may seam silly, but there is a point to it:) When i run this and press "1" the program just terminates, pressing "2" or "whatever here" works fine however? …

Software Development c++ ios
Member Avatar for Bladtman242
0
534
Member Avatar for Covinus

whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it

Software Development c++
Member Avatar for Tom Gunn
1
1K
Member Avatar for arbrophy

<< split from [url]http://www.daniweb.com/forums/post865360.html#post865360[/url] >> I'm using Visual Studio 2008 and I don't see the 'Advanced' option in the properties menu. Is it hidden somewhere else?

Software Development c++ visual-studio
Member Avatar for arbrophy
0
124
Member Avatar for W0T4N

Hi, I have problem with tray icon, when my processor is 100 % working, sys tray icon loading fails. I do not know how to fix this. I made easy testing program for that, i have thread with critical priority and it make processor 100 % working. During that sys …

Software Development c++ microsoft
Member Avatar for W0T4N
0
191
Member Avatar for VibhorG

Hiii i am making a window application in C#, in which i want to compare the entered string word by word with the form heading(text property). I mean when user enter the string, then on button click system should match each word of the string to the heading of the …

Software Development
Member Avatar for VibhorG
0
288
Member Avatar for AutoPython

Okay, so, my main problem here, is that I can't get my parameters from my function name to work with the other variables from the function. Here's the code: [CODE] def next_block(x): p1 = 2 p2 = 2.3 p3 = "c" p4 = "String" p5 = "3.4444" return p1, p2, …

Software Development python
Member Avatar for Gribouillis
0
135
Member Avatar for Whilliam

Hello. I'm trying to make a calculator with JFrame. I'm only gonna make the appearance of the calculator (not functioning). The numbers and operators are supposed to be arranged this way: 7 8 9 + 4 5 6 - 1 2 3 x # 0 * / however, I only …

Software Development java java-swing
Member Avatar for Whilliam
0
2K
Member Avatar for phoenix911

hey hey... just want to know, if theres some kind of way to prohibit the user from entering data into a combobox... i dont want to use a list box... to must space taken, and no point in disabling it... as then i cant select an item... please help thanx …

Software Development asp.net
Member Avatar for pilipino93
0
143
Member Avatar for yonghc

The program was successfully compiled using Borland 5.02. The program controls the input type by user using ASCII codes. The input mode is similar to QuickBasic's INKEY. The program is working and tested okay. Much effort had been put in, but the problem is that the subroutines for handling string …

Software Development c++
Member Avatar for Frederick2
0
606
Member Avatar for sardonic

I am using Microsoft visual c# express 2008 ide. I want to cycle thru my open files - I know there are a couple ways to do this but I want to be able to click on the name of the open file on the tab that is above the …

Software Development c c# c++ ide
Member Avatar for sardonic
0
100
Member Avatar for AssaultM16

Hi!. I am having some problems with functions scopes again. I need to use one array initialized in one function, in a different function. I have searched on how to pass the array by reference or value ( and I truly don't know if that's what I need) but I …

Software Development c++
Member Avatar for AssaultM16
0
105
Member Avatar for lotrsimp12345

show_int_vector method RETURNS MEMORY LOCATION FOR EVERTHING EXCEPT FOR LAST VALUE. main [code] #include "my_int_vector.h" #include <iostream> using namespace std; int main() { my_int_vector b(0); b.push_back(10); //b.show_int_vector(b); b.push_back(122); b.show_int_vector(b); //b.push_back(20000); return 0; } [/code] Interface [code] class my_int_vector { public: //constructor to create an array my_int_vector(int intial); //prints out the …

Software Development c++
Member Avatar for lotrsimp12345
0
121
Member Avatar for jbisono

Hello all, I created a crystal report which works perfect local but in production work partial, it means that there are 3 specific values that the report does no retrieve, is there any particular reason why this happen?. thanks.

Software Development
Member Avatar for jbisono
0
152
Member Avatar for 42Wired

I am trying to write an API (called logEvent) for an outdated os-level logging function. I would like to call it in the following manner. [CODE=cpp]logEvent << "string"; // or logEvent << "string" << 123 << 0.456 << ... ;[/CODE] I'm trying to accomplish this by overloading the stream operator, …

Software Development api c++
Member Avatar for 42Wired
0
131
Member Avatar for msr

Hello, In order to introduce myself to C# and, in particular, Visual C# I decided to make a small program with 'windows forms'. At the moment I have some questions: 1) Im using a grid (dataGridView). I'd like a menuStrip (I dont know if is exacly that component) to appear …

Software Development c# windows-vista
Member Avatar for msr
0
141
Member Avatar for fayola

I have a helper script that will grab weblogs for a particular domain, if called by itself from the MS-DOS command line it works as intended, but I'd like to call another script to call this script multiple times for the multiple domains, but it's only running the first call …

Software Development shell-scripting
Member Avatar for fayola
-1
134
Member Avatar for kaizen_duck

Produce a complete C++ game that resembles the “Hang Man Game”, where the player is required to guess a given number/character/word. The player will be given a limited number of guesses. Each time the wrong answer is given, display an appropriate figure that changes accordingly. You may refer to the …

Software Development c++ gaming
Member Avatar for kaizen_duck
0
223
Member Avatar for Slippy-D

I am creating an automation tool, to stop users messing with files, the thing is, my tool needs to work with an ini file which doesnt yet exist... heres how i create the ini file... String iniPath = @"C:\test.ini"; File.Create(iniPath); that sets me up with my ini file... the thing …

Software Development file-system
Member Avatar for Slippy-D
0
101
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Software Development c
Member Avatar for Salem
0
88
Member Avatar for serkan sendur

i get an exception when i am trying to save an xml document. the interesting thing about this problem is i dont get it when i deploy the pocket pc application using visual studio. when i create my smart cab project and run this in pocket pc, the same application …

Software Development visual-studio xml
Member Avatar for serkan sendur
0
424
Member Avatar for kz07

Is there any way to go to a specific line of a text file and print it to screen? I used getline to do this, but what if i need to enter a number and the program will go to that line number and print it to the screen. is …

Software Development c++
Member Avatar for Ancient Dragon
0
4K
Member Avatar for stoymigo

Hi, we are running a windows server 2003 os on our network. The application i develop needs to be able to move files to folder that the user running the app can't access. The application already stores the user details of the administrator , how can i use those details(username,password …

Software Development windows-server
Member Avatar for stoymigo
-1
529
Member Avatar for serkan sendur

when i build the smart cab project i need to right click on dependencies and click refresh. then i need to build the project again to see those dlls in the output folder. is this a known bug i dont know, but because of this i need to add all …

Software Development
Member Avatar for serkan sendur
0
102
Member Avatar for hmortensen

Hi all, I’m doing some automation for a nightly deployment of some software. My program should: Open a program Send shortcut key press to the program Push a button And close the program again. So far I can open the program, bring it to front, send shortcut keys, but I …

Software Development c++
Member Avatar for hmortensen
0
434
Member Avatar for Piya27

Hi All, My update query refuses to update the data in the Excel sheet via OLEDB connection. I am able to insert and retireve the records but could not update. Though my syntax is correct and when I execute the query using ExecuteNonQuery, it shows no error no exceptions but …

Software Development vb.net
Member Avatar for samir_ibrahim
0
253
Member Avatar for redreed

hi guys i am doing a project and i need so help plzzz [URL="http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png"]http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png[/URL] at this link u can find a pic this a small part of my project the problem is that i want everything that i type or want to display like welcome to the back blah blah …

Software Development c++
Member Avatar for redreed
0
286
Member Avatar for ddanbe

I'm using VS 2008 C# Express edition here. Try to use a CheckedListBox, which I think is just a fancy ListBox. In designmode I can set the property SelectionMode : None (? rather strange for what I think is a list of checkboxes) One MultiSimple MultiExtended When I select one …

Software Development
Member Avatar for chundachovis
0
413
Member Avatar for matMalo

Hi guys, I've a problem calling a 'parent' PyQt4 method from inside an object that inerits it. Here is the code: [ICODE] import sys from PyQt4 import QtCore, QtGui class ItiaQPushButton(QtGui.QPushButton): def __init__(self, txt): super(ItiaQPushButton, self).__init__("Hello") print super(ItiaQPushButton, self).__doc__ #QtGui.QPushButton.setText("BO") def setText2(self, txt): self.setText(txt) #super(ItiaQPushButton, self).setText("PROVA") class Window(QtGui.QWidget): def __init__(self, …

Software Development python
Member Avatar for Gribouillis
0
151
Member Avatar for Behi Jon

Hi ... Is there a way to write a program in c++ that get a decimal number and convert it to its equivalent in hexadecimal without using arrays ? A bit guidance please .... Thanks ...

Software Development c++
Member Avatar for Nick Evan
0
158
Member Avatar for D.JOHN

Dear experts, I am new to the subject of bitwise operator. I know some of the basics like the gates and how the gates function eg. and gate, or gate, exclusive nor gates. And also how to change decimal numbers to binary numbers. But I am not quite sure about …

Software Development c++
Member Avatar for D.JOHN
0
707
Member Avatar for jrosh

i added Jcheckboxes to a jpanel. They can't be aligned vertically. They always appear horizontaly or vertically with very large spaces between them. How can i allign them as i want....(with out using netbeans)

Software Development java
Member Avatar for masijade
0
102
Member Avatar for priyairani00

what will b the coding of a program.. "program to swap two no. using third variable"

Software Development c
Member Avatar for priyairani00
0
90
Member Avatar for F2guy

I have class eventqueue_t which is derived from the abstract class event_storage_t. When I compile the code I get: make mpixlcxx -c -O3 brain.cpp mpixlcxx -c -O3 config.cpp mpixlcxx -c -O3 connection.cpp "eventqueue.h", line 17.29: 1540-0408 (S) The base class "event_storage_t" is declared but not defined. make: *** [connection.o] Error …

Software Development c++ queue
Member Avatar for F2guy
0
261
Member Avatar for katwalatapan

Hello, I would like to work on POSIX thread programming using TC v3.0. The required libraries for its development are STL (that's what I got from some online research). Could anyone please let me know: 1.) Where to download STL libraries. 2.) How to configure them with TC v3.0 3.) …

Software Development c
Member Avatar for Ancient Dragon
0
139
Member Avatar for AutoPython

Okay, I have yet another question that I could not find.I noticed that you can't set variables in for loops without having to do something (like in batch). I've tried googling it and doing a site search, I have gotten no results. So what would the code or command be …

Software Development python
Member Avatar for AutoPython
0
104
Member Avatar for kernel>panic

Hi I am just wondering if it would be possible to add compression to this encryption program I have? It will compress the file before it encrypts it for faster encryption time. Thanks for your help.

Software Development c++ encryption
Member Avatar for DdoubleD
0
226
Member Avatar for asafoatse

pls a little help to a :-/guy, In my main method am working on a collection of numbers in an array. I want to sort the numbers efter then would like to see which index number holds the value 14. As you can see in what i did so far …

Software Development
Member Avatar for jatin24
0
141
Member Avatar for pilipino93

Hi there. I was wondering how on earth do I transfer information from Form1 to Form2. For example, like, I type in form1 textbox "hello there" and in form2, if it is open, it will dis play ''hello there'' in its textbox or in a message box, something like that. …

Software Development
Member Avatar for sknake
0
153
Member Avatar for ctrl-alt-del

Hi all! Well, this time I have a... funny problem. One that in my logic should not exist. I'm trying a very simple thing, centering a PictureBox in the middle of my form, both horizontally and vertically. The PictureBox is called "CP_PB_Main" [CODE] CP_PB_Main = new PictureBox(); CP_PB_Main.Height = 150; …

Software Development
Member Avatar for sknake
0
136
Member Avatar for roberto usu

I have a structure containing [ICODE]struct XboxFriends { char gamertag[SIZE]; char name[SIZE]; char country[SIZE]; char city[SIZE]; char favoriteGames[SIZE]; int age; };[/ICODE] this code is supposed to keep track of my xbox friends. I also have written a function [ICODE]void searchFriends(vector<XboxFriends> &friends) { string gameName; cout << "--- Favorite Game Search …

Software Development c++
Member Avatar for vmanes
0
100
Member Avatar for sixstorm1

Hi everyone, I have a modal dialog box which is called by the main thread. This dialog has no parent (appears at center screen, overlapped, and shown in taskbar). When the user clicks "Save" in the dialog, the dialog procedure receives the command and displays a save file dialog (GetSaveFileName). …

Software Development api c++ html-css windows-api
Member Avatar for sixstorm1
1
246
Member Avatar for zydaru

Hy, I want to create several mdb files. Done that,I've created several tables, populated them, but I want to protect them by a custom password. How can I do that? :icon_confused: Thanks!

Software Development
Member Avatar for zydaru
0
333
Member Avatar for Miganders

[code] #include <iostream> #include <windows.h> //---------------------------- using namespace std; //---------------------------- int main () { long int numbers=1; bool on = true; while (on==true) do { cout << numbers*4; numbers = numbers+1; Sleep(500); } }//--breaks here [/code] how come the loop not work?

Software Development c++
Member Avatar for Miganders
0
109
Member Avatar for mahela007

Hi.. I would like to know how to create a variable while the program is being executed. Here's what should happen. The program asks for an input from the user and then creates a variable who's name is the value of the input and then assign's a value to it. …

Software Development python
Member Avatar for The_Kernel
0
257
Member Avatar for Ajantis

Hello people! I am working a little with JAVA programming. And I have a couple of assignments left. When they're both done, I graduate! :) However, I'm not fully familiar with threads. So I don't know how to solve these problems. I thought that perhaps someone could lead me in …

Software Development java
Member Avatar for TheWhite
0
157

The End.