43,549 Solved Topics
Remove Filter ![]() | |
How do you check if a button was clicked in Visual Basic .NET ? Software Development vb.net visual-basic | |
Hi I have been trying to do one of the projects in the projects for beginners section that asks you to get your computer to log off after a certain amount of time has passed without any mouse or keyboard movement. I am not yet up to that bit, in … Software Development python | |
can anyone there help me about my problem in displaying a record of names,gender,annual salary and age..the inputs are the first name,lastname,gender,birthday and monthly income...i just have a hard time implementing it coz i have to use a string to deal with the name..how will i make it???just a hint.... Software Development c++ | |
[CODE=LANGUAGE]#include<iostream> using namespace std; class Nibble { private: union { int number : 4; }; public: Nibble(int=0); friend ostream& operator<<(ostream&,const Nibble&); friend istream& operator>>(istream&,Nibble&); }; inline Nibble::Nibble(int n) : number(n) { cout << "constructor.." << endl;} ostream& operator<<(ostream& nout,const Nibble& n) { return nout << n.number; } istream& operator>>(istream& nin,Nibble& … Software Development c++ | |
Is there a way to save in a text based game through the MSDOS window? I want to be able to save the variables that store the mana, health, ect of a player. Software Development c++ | |
I recently wrote a cpp file that I'm questioning. I'm unsure of whether the approach I took is correct or if it will cause damage to the heap. The goal of the project is to be able to do "clean-up" on dynamically allocated memory by storing the created object in … Software Development c++ | |
Hello, I'm newer to programming and trying to do something that has me stumped. I need to read files from a directory on a server and compare those file names to a field in a database. When I find the file names that are the same, grab a different field … Software Development c# | |
Hi, I have a gizmo attached on serial port and need to detect changes of controls signals DSR, DTR etc. no data, just changes (edge). I do it with MSCOMM.ocx and it works, but only when is CPU on idle and windows messages are delivered on time. When is load … Software Development c++ | |
I'm trying to create my own pattern (or something similar to a pattern I guess) where objects that are anonymously instantiated can still be referenced, but I'm getting weird memory results. It seems as if the free memory is decreasing when it should be increasing-- [code=java] import java.util.ArrayList; public class … Software Development java | |
All I need to know is how a good way to make sure integers between 1 and 52 wont be draw twice over in a for statement... I was thinking something like [code] srand (time(NULL)); int *drawn; //The card to be drawn int notdraw[52]; // All the cards that have … Software Development c++ | |
When I enter Unicode data as values for TextCtrl, I get the following errors: [code] UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 5: charac ter maps to <undefined> [/code] I am trying enter Burmese text (U+1000 to U+10FF). Software Development python | |
Hi guys, I tried rewriting my C-ish C++ function to true C++, but I'm failing so far: The first function (working) [code=cpp]const visualPart * entity::getVisualPart(unsigned int wantLOD){ for(unsigned int i = 0; i < visualEntity.size(); i++){ if(visualEntity[i]->LOD == wantLOD){ return visualEntity[i]; } } return NULL; }[/code] And the second (not … Software Development c++ | |
Hello, A complete Python newbie needs help. :-) I have a simple script that updates the 'note' field in a MySQL database table based on the record's id: [CODE]id=raw_input("Record id: ") update=raw_input("Note: ") cursor.execute ("UPDATE notes SET note='"+update+"' WHERE id='"+id+"'""") print "\nRecord has been updated."[/CODE] The problem with this solution … Software Development python | |
Hi guys, its me again.. I was wondering if anyone could tell me how to test a character if it is within the ASCII range, like say in the following pseudocode: [CODE] ifstream in; in.open("file.xxx", ios::binary); if(!in) { cerr << "file.xxx could not be opened. \n"; } while (!in.eof()) { … | |
I am here making my video game wondering how to make an image appear when someone clicks in a certain area. If I need an image to pop up when some one clicks anywhere within a large rectangle of space how would I go about doing that? Thanks! | |
Hi I have a program i was writing to solidify my knowledge of files and how to handle them. I seem to have hit a snag though. What the program does is create files based on a user inputted date and allows them to add content to the files (kind … Software Development c++ display file-system | |
Hi ppl, I've written a simple program with strings. this just recives the name and last name of a person, and then print it. i had a few problems with this: at first, it didnt let me define a variable as "string", it gave this error: [code=cplusplus] C2679: binary '>>': … Software Development c++ | |
Hello people, Alright, my problem is something like this. I've declared a nested struct within a class template, and i want one of the member functions of the class to return an object of type struct. Somehow, i seem to be unable to do this defining the member function outside … Software Development c++ | |
Hello progers There is a big question in my mind I know that now PHP is popular but JSP is also known . . . so can you answer which language will be popular in future | |
Hi guys, I'm having a little problem setting a string value to another string.. I have the class: [CODE] class FILENAME { public: string GetFullPath() const; void SetFullPath(string& fname); private: string fullpath; }; [/CODE] The declaration for the SetFullPath Method is: [CODE] void FILENAME::SetFullPath(string& fname) { fullpath = fname; } … Software Development c++ | |
![]() | hi again sorry i havent been only lately but i have this problem with some code for a digital phonebook. the code is this:[ICODE]p = float(raw_input("do you want to add a new person? (1 = yes, 0 = no)")) v = float(raw_input ("do you want to see the phonebook now? … Software Development python ![]() |
I am trying to create a simple C program that uses HandBrake (video converter). The only way to run this program is to have one of the (in my opinion) crappy GUIs or to type out all of the arguments in the command line. My program is simpler than the … | |
I just started teaching myself c with a book called practical c programming, and i can't figure out one of the exercises. I'm supposed to write a function that scans a character array for the character - and replace it with _. I tried doing it, but i don't think … Software Development c | |
Im making a password form and i need to make it so when the user clicks off the form, the form automaticlly comes back up again, ive searched for code snipetts alover the internet but carnt seem to find any code to do with that, any help? Software Development vb.net | |
[code=python] data = re.sub(u"\u102F*\u102D", u"\u102D\\2\u102F", data) data = re.sub(u"\u1031*\u103B", u"\u103B\\2\u1031", data) data = re.sub(u"\u1001*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1002*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1004*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1007*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1012*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1013*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1014*\u102C", u"\u1001\\2\u102B", data) data = re.sub(u"\u1015*\u102C", u"\u1001\\2\u102B", … | |
Hello! I tried searching for this error, but it seems a little uncommon, so I decided to register here. My problem is, that i would like to declare an iterator of type [ICODE]std::list<std::vector<T> >::iterator[/ICODE] within a for statement. I tried it like this: [CODE=C++]template <class T> class CSplit { private: … Software Development c++ | |
I created buttons in my coding. 100 buttons.... Each one`s name is "Button" and the row code and then the column code... I wrote a procedure that is used by the OnClick event of those buttons. Now I want to get the name of the specific one I clicked on … Software Development pascal | |
My question might be very basic but I really do not know how to do this... I need to create a structure, something that looks like a protocol (a data packet actually)...this packet consists of 3 parts header, data and trailer... The header has 3 offset bytes, 64 bytes of … Software Development c++ data-structure | |
I know this is probably a very stupid question, but I can't make the user input a string.I thought I could use cin...here is my code: [code=C++] #include<iostream> //#include<cstdlib> //#include<cstdio> #include<cstring> using namespace std; int main() { int x=0; string thing[10]; cin>>thing; //x=atoi(thing.c_str()); //cout<<x; system("pause"); return 0; } [/code] I … Software Development c++ | |
Okay everyone i am new to this post but i have a fairly easy problem (i think)... so could someone help me out? :-) anyways heres my code in python 2.4....... [ICODE] #! usr/bin/env python import pygame, sys, os from pygame.locals import * pygame.init() something = 1 def dosomething(): something … Software Development python | |
The circular list code is incomplete program with lots of feature missing, it's only one specific section that I require help with but I thought it would better to show the entirety of it to help you understand better. The section surrounded by -------------------------- is where I'm stuck, basically the … Software Development c++ | |
The following example, when executed, returns: [QUOTE]Traceback (most recent call last): File "/home/des/programming/python/OOP/test.py", line 13, in ? demonstration(6).number() TypeError: 'int' object is not callable[/QUOTE] The example: [CODE = python] class demonstration: def __init__(self,number): self.number = number def number(self): fiveup = self.number + 5 print fiveup demonstration(6).number() [/CODE] Now, I know … | |
i use an older compiler, borland c++ 3.1 and it doesn't have the bool variable type so i made my own bool type [code] enum bool { false = 0, true }; [/code] but always when i try to make comparisons or other thing i get the warning ASSIGNING INT … Software Development c++ | |
I need to know can i make a for loop to place fopen function to open a set of files like i want file1.in file2.in file3.in .......filen.in so on depending on n value i give for num of files to be created ... as i want to place set of … Software Development c | |
I've just taken a beginners project from Vegaseat and modified it to fit with a Tkinter tutorial. I'm just trying to get a Tk window that has a "Go!" button and by pressing it prints the sentence. I'm having lots of trouble. I've gained a lot from this though, so … | |
I have this code: [code] #include <iostream> using namespace std; class hello { private: char array[4][5]; public: hello(); void get_hello(){cout << "From the function: array[2][2] = " << array[2][2] << endl;} } hi; hello::hello() { char array[4][5] = { " ###", "####", "####", "####" }; cout << "From the constructor: … Software Development c++ | |
I'm trying to write a phonebook application using Tkinter. It's not very advanced, and it's mentioned in this tutorial: [url]http://openbookproject.net//py4fun/gui/tkPhone.html[/url] The full source of the tutorial's version being here: [url]http://openbookproject.net//py4fun/gui/tkPhone.py[/url] However, I'm trying to write a version myself, yet I keep getting the following error: [QUOTE] File "phonebook_test.py", line 96, … | |
hello, I have get through this problem, I want to divide these numbers but the result calculated by c++ is not right. I am quite sure it is due to the type of the variables but I don't know how to solve it. [code] unsigned long long u40=16825420246; unsigned long … Software Development c++ | |
...[CODE] Hello everyone i have some csv files that are the result of the inspection machine... these CSV files have the following layout[/CODE] [CODE],SRFF File: D:\SPI Master Program List\200-34-02\200-34-02-B-01-R.SRF ,Panel Name: Panel Description ,Units: Microns ,Date,Time,PanelId,Board,Location,Part,Package,HeightAvgResult,HeightAvg,HeightAvgUpFail,HeightAvgLowFail,HeightAvgTarget,HeightRangeResult,HeightRange,HeightRangeMax,AreaAvgResult,AreaAvg,AreaAvgUpFail,AreaAvgLowFail,AreaAvgTarget,AreaRangeResult,AreaRange,AreaRangeMax,VolumeAvgResult,VolumeAvg,VolumeAvgUpFail,VolumeAvgLowFail,VolumeAvgTarget,VolumeRangeResult,VolumeRange,VolumeRangeMax,XOffset,YOffset,Rotation,Scaling,HAVFailedFeatureResult,HAVFailedFeatures,HAVFailedFeatureMax,RegFailedFeatureResult,RegFailedFeatures,RegFailedFeatureMax,BridgeFailedFeatureResult,BridgeFailedFeatures,BridgeFailedFeatureMax ,07/19/2008,00:48:55,#280,Module 1 ,IC2,TSOP8,SOP8_1,F,138.539642,238.000000,84.000000,140.000000,P,9.226400,140.000000,P,427747.781250,729933.140625,243311.046875,486622.090000,P,26717.400391,486622.093750,P,60986780.000000,122628772.800000,34063548.000000,68127092.600000,P,3087930.000000,68127096.000000,-22.886625,-23.317499,-0.039985,-0.131595,P,0,1,P,0,1,P,0,1 ,07/19/2008,00:48:55,#280,Module 1 ,C38,0402,0402_1_3,P,131.077194,238.000000,84.000000,140.000000,P,12.636800,140.000000,P,265426.750000,470565.468750,156855.156250,313710.320000,P,5929.500000,313710.312500,P,36161180.000000,79054999.200000,21959722.000000,43919444.800000,P,2340260.000000,43919444.000000,-26.636499,-28.285000,-0.201710,-0.635564,P,0,1,P,0,1,P,0,1 ,07/19/2008,00:48:55,#280,Module 1 ,C66,0402,0402_1_3,P,146.934555,238.000000,84.000000,140.000000,P,4.062300,140.000000,P,266860.500000,470565.468750,156855.156250,313710.320000,P,15511.000000,313710.312500,P,40048568.000000,79054999.200000,21959722.000000,43919444.800000,P,235260.000000,43919444.000000,-32.004501,-21.340000,-0.163571,-1.147347,P,0,1,P,0,1,P,0,1[/CODE] so i need some help … Software Development data-structure java | |
Greetings... I am trying to get a 2-d vector filled with a records form a dataset. this is what I have: [code] int StudentNum = 1, rflds; TDataSet *Students = DSet; String stu; rflds = Students->FieldCount; //Number of fields in the dataset vector< vector<String> > dataset(Students->RecordCount, vector<String>()); while (StudentNum <= … | |
i put a image box with a image. my screen resulation is 800 * 600. but when i change it to 1024 * 768 the image show small. i want the image will change with the change of screen resuation. help me Software Development image visual-basic | |
I am trying to make it so that the user can move anyone of the 10 Label box called "lblmovebox" onto any one of the top ten blank label box called "lbldropbox". So they can pick up any one of the "lblmovebox" and drag it onto anyone of the top … Software Development visual-basic | |
Hi. I need to use a fstream variable for each instance of my class but... #include <fstream> class MyClass { public: MyClass(bool bKernel) { } std::fstream fichier; }; int main() { MyClass module(false); module = new MyClass(true); return 0; } This one wont work printing some weird errors : g++ … Software Development c++ | |
I'm having a strange problem. I have an array of strings that I need to separate into separate data members and insert into a SQL database. It all works fine, except for where I convert a string to a decimal and insert that. It works if the decimal has no … Software Development sql | |
i am trying to write a program that finds all twin primes between 1 and 100. any suggestions? [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int main() { int n1, n2, y, x; printf("This program list all the twin primes.\n"); for (y = 3; y <= 98; y += 2) { … Software Development c | |
So I'm writing a small Blackjack game and divided a class up into 2 to keep everything tidy but keep getting this little error: [i]global name 'handle_input' is not defined[/i] The code: The class being called... [ICODE] #File: handle_input.py class handle_input: ...[/ICODE] The file defining the class... [ICODE] #File: control.py … Software Development python | |
I'm trying to figure out how to use the atoi function I have wrote and understand this so far: #include<iostream> #include<cstdlib> #include<cstring> using namespace std; int main() { int x; string str="34"; x=atoi(str); cout<<x; system("pause"); return 0; } And Then I get error reports about a freakin const char?! HELP! Software Development c++ | |
I know how to open an Excel file with VB but I need help with writing an argument to see if the file is already opened, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the … Software Development file-system vb.net | |
I get an error when I try to give this button a na ction of showing a new form. It says: `"error C2039: 'poeni' : is not a member of 'IgraBobi'"`. But this "poeni" form IS a member of the "IgraBobi" solution. I added it correctly, why doesn't it recognize … Software Development c++ | |
I got this error and have no idea what it means... May i get a little help please ? error C2059: syntax error : ']' [code][ #include <iostream> using namespace std; int broj (int be, int a[]) { int br=0; int f=0; int b[200]; for(int i=0;i<=br;i++) { for (int j=0;j<=br;j++) … Software Development c++ |
The End.