43,549 Solved Topics
Remove Filter ![]() | |
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 ![]() | |
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 | |
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 | |
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 | |
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++ | |
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? … | |
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++ | |
<< 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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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, … | |
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 | |
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 | |
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 … | |
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 | |
[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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
hi guys i am doing a project and i need so help plzzz [URL="http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view¤t=uu_000.png"]http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view¤t=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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
what will b the coding of a program.. "program to swap two no. using third variable" Software Development c | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
[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++ | |
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 | |
![]() | 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 |
The End.