132,726 Archived Topics
Remove Filter ![]() | |
i made a bank program, it askas the users to put in their account number. it works with a while loop. i ask for the person to enter 1 to start or 0 to stop. i need help on how to display all the account numbers that were entered once … Software Development c++ programming-construct | |
pretty much here is a rough outline of what i have done [CODE]struct monster { int health; int armor; monster *nextaddr; }; int main() { int num; monster *pointer; printf("how many monsters do u want"); sscanf(%d, &num); pointer = (monster*)malloc(num * sizeof(monster)); //Here i need some kind of LOOP to … Software Development c c# c++ linked-list | |
I'm just learning how to use templates so I don't really have any experience with them, and I can't seem to understand what I'm supposed to do ... there's apparently an issue with the showWeaponSpecs: error C2783: 'WS AssaultRifle::showWeaponSpecs(void)' : could not deduce template argument for 'WS' : see declaration … Software Development c++ | |
Hi, I'm making a simple utility for browsing an intra-net site using VB.net webbrowser and for reasons outside my control, everything requires a passcode to be accessed. So, for example, [CODE]Index.html[/CODE] is blocked by the company server but [CODE]Index.html?pass=123456[/CODE] is allowed. Is there a way to get the web browser … Software Development vb.net web-browser | |
Hi I am totally new to C programming (been using java for about 1 year) and have a question about pointers/linkedLists. So what i am trying to do is create a linked list and insert a new node as the head of the list...below is my code: The error I … Software Development c linked-list | |
Hi, I'm trying to develop a program that will, if a condition is not met, display an error message without having to close the background window. If I use [ICODE]Application::Start[/ICODE] It returns an error saying that the only one window can be open a once blah blah blah. I'm looking … Software Development c++ | |
hello, Actually, i want to play sound file from [COLOR="green"]resource[/COLOR]. I am using [COLOR="green"]WindowMediaPlayer[/COLOR] Control for window application. But there is only option is "[COLOR="Red"]URL[/COLOR]" (Property of control) to play sound file. I don't want to use [COLOR="Red"]URL[/COLOR] property. Because my sound file is present in the [COLOR="Green"]Resource[/COLOR]. Any body … Software Development asp.net c# file-system flash | |
I am new to Visual Basic I'm a student and im working on a payroll calculator program I got it to where it will display user input now i have to get it to calculate pay based on which radio button is selected im doing this one at a time … Software Development finance pay-per-click vb.net visual-basic | |
When having a class: [code=cplusplus] class X { int data_; void f() { //shall I cache var data_? by doing int cached = data_ //and instead of this: if (data_ >= 0 && data_ < 1000 || data_ < 0 && data_ > -1000)//first version { //do something } else … Software Development c++ | |
Is it a good programming practice to not use getters and setters in trivial parts of code? Software Development c++ | |
[CODE]Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.Navigate("http://examplesite.com/") End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted getItems(WebBrowser1.Document.Body.InnerHtml.Split(vbCrLf),) End Sub Private Sub getItems(ByVal arLines() As String, ByVal selectedListBox As ListBox) selectedListBox.Items.Clear() '// Clear in case the webpage … Software Development vb.net web-browser | |
I need a timer that will change the text of a combobox which is binded to a database. My Application which is based on hospital management wherein a doctor has to visit rooms within 6 hours. If 6 hours elapse the combo should show "need......" and if not something "......" … Software Development sql | |
Hi guys, this is the first time for me to post something, i'm really a big fan of the site and so far every time i get stuck in something at uni i come to here. so thanks for helping me survive so far. anywho, i'm here because i need … | |
Hey, so I'm creating a program that creates a SHA512 hash. I have a problem though. I try to encrypt the word 'test' and I get this encrypted hash as: ?&??J??I???? ???a??w.G????? ?z???????O????{72??_???oW? Which isn't a SHA512 hash. Here is my code so far, maybe you can help me. [CODE=VB.Net] … Software Development encryption vb.net ![]() | |
Hi, is it possible to get the list of last life added in a folder with java? i don't want to get the lastmodified file which return a date or time. i want to get the file name of last added in a folder. Thank you all Software Development java | |
I am having a problem using the common dialog in PyQT. For some reason, when I try and import 'QFileDialog', I get a not found error, same with importing QDialog. I am on Py 2.7 (was 2.6) using 'PyQt-Py2.7-x86-gpl-4.8.2-1'. I can import QTCore and QTGui just fine. I thought PyQT4 … | |
Hello everyone, My company uses control numbers to keep track of all of our inventory for every product that is entered into our warehouse. (ex. G123456789, T987654321) 1st Alphabet followed by 9 digits of numbers. Most of the time, these control numbers are scanned into the system by using a … Software Development vb.net | |
Write a program that simulates an Internet connection error. Display a MessageBox that notifies the user of the error and provide three buttons: abort,retry, and ignore. If the user chooses Retry, display a message indicating the connection succeeded. If the user choose Ignore, display a message indication that the user … Software Development | |
WHAT I WANT FROM THE FOLLOWING CODE IS THAT IF CONNECTION IS OPEN THEN SWITCH USER TO LOGIN FORM IF CONNECTION IS FAIL TO OPEN THEN SEND USER TO CONFIGURATION FORM WHERE THE NEW PATH FOR DATABASE CAN BE DEFINED. IN THE FOLLWING CODE IF I REMOVE THE DATABASE FROM … Software Development open-source vb.net ![]() | |
Hi there) Tell me please -is there any picturebox method to redraw it in C # ? Thanks in andvance.....) Software Development | |
Hi! Could someone please give me any idea on how to add a background image to JInternalFrame without subclassing. Below I provide a code snippet, but the line [ICODE]jif.setBackgroundImage(backImage);[/ICODE] is incorrect. Please, help me to fix this error. But I don't want to create a subclass, e.g. MyJInternalFrame. Thanks! [CODE] … | |
hi guys)) please -someone who use MS Visual C# Express Edition - tell me is there System.Math (with mathematic functions) library there? Thanks in advance!) Software Development c# | |
I understand how to use properties. What I would like to know is... Properties are designed to stop direct access to an variable Can anyone give an example where if the property was not used and the variable was written to directly..this would cause a problem? Thanks James Software Development | |
Am I correct assuming that a reference to an object will not call the object's destructor when the reference goes out of scope? The code I attached supports my assumption but I'm not certain if its correct...Any comments? [code] #include <iostream> class myint { public: myint():itsvalue(0) {} myint(unsigned long val):itsvalue(val) … Software Development c++ | |
How to let the button set to it "latest" text because i suppose to set the button's text to "booked" and the foreground to red. However, everytime i re-run the program, the button re-set. I know i should do something on constructor, but how? Here is my coding.. Thanks for … Software Development java | |
Have written code for a game, a letter is randomly choosen by the programme and then the player has to pick the same one with the sequence getting longer and longer, the choosen letter is added to an arrayList for the game and then when the player picks a letter … Software Development java | |
how do i include classes in my code. my lab notes say i need to include classes. [code] #include <iostream> #include <string> #include <stdlib.h> #include <cstdlib> #include <fstream> using namespace std; void login(); void Members(); void PassChange(); string inuser; string inpass; string user; string pass; string tempass; string data; string … | |
Is it possible to somehow use the winsock API on a unix machine? | |
I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return … | |
I am creating a Pool.java code for class final and all we need to do is to create a program that calculate the volume of the pool after the user enters the size of the pool. I have only one line where my code is giving me a error. The … Software Development java java-swing | |
I have a Seat Class and I'm trying to get my main file to access the Seat class and it's not working. Here is my code: My seat class: [CODE]#include<iostream> #include<iomanip> #include<string> class Seat{ public: char name; bool available; Seat(char name, bool available){ this.name=name; this.available = available; } Seat(){ name="A1"; … Software Development c++ | |
Hi, I need help with concatenating several bits values to one big value. For example: lets say I have these char variables which I want to concatenate to one value. [code] unsigned char x = 0x02; //00000010 unsigned char y = 0x01; //00000001 unsigned char z = 0x03; //00000011[/CODE] and … Software Development c++ | |
what is the difference between procedure and functions?? Software Development c | |
Hi .... i got one problem.... i am doing a project. I use StreamReader to read my content in one file. i need to change tht file into the string type. Then, i need to change the string type to string array....who know how to do this one.... Software Development | |
Hi to any an d all that read this thread. I have a VB.NET App that creates forms from a template. I am having problems getting them to communicate with each other. Is it possible to send data from one textbox in the first instance to the same textbox in … Software Development vb.net | |
In the below code, iam calculating the time taken to calculate the Square Root of first 30000000 numbers. But there is a weird thing happening: [CODE] import java.util.*; public class Cache { public static void main(String args[]) { for(int j=0;j<=1000;j++) { ; } float[] a = new float[30000000]; long as … Software Development java | |
Hi everyone, I am not getting how to enter values to that array. Please some one give me a solution. typedef struct user { int array[10]; }user; void main() { int i; user *tmp; printf("enter array values"); for(i=0;i<10;i++) { scanf("%d",&tmp->array[i]); } for(i=0;i<10;i++) { printf("[%d]\n",tmp->array[i]); } } Software Development c | |
Can somebody please help me code a form that will perform a search on a database and retrieve the datas into separate textboxes according to the rows. And also I only know understand c# language. i would be gratefull if anyone could help me out. Thanks....Thanks Software Development | |
Dear All, I am using an adapted code from the web for sending sms via gsm modem. Now I would like to modify to read sms message from database table and send it.So I would like to programme it to read on every 30 second from the db process and … Software Development java | |
I've changed some of the code but the animation plays when you keep pressing the space bar. I want it to animate my bullet across the screen just by pressing the space bar(not by pressing the space bar mulitple times). Thank for your help! *Note: the old code was posted … Software Development java | |
How to make the form size automatic setting the size equals to the screen. or Maximize the whole form including the form components. Software Development vb.net | |
Hi, I want to send no emails with attachments.But i dont know anything about sending emails.Im using windows 7 visual studio 2008. I was looking for help on internet. According to them I installed IIS.I think it is IIS 7. How to check the version of IIS? Also smtp is … Software Development email visual-studio | |
Hi I Have a form that contains around 30 Labels and 30 Pictureboxes. I have a piece of code that on form load that steps through the labels and changes the text to a file name from a directory. This all works fairly well however: I need to be able … Software Development vb.net | |
I would like to copy and paste special values in excel using VB6 during report generation. But pastespecial is not working. Its throwing error 1004 Paste Special method worksheet failed. Below is the code. can you please advise [CODE]xlTmp.ActiveSheet.Range("H7:H23").Select xlTmp.Selection.Copy xlTmp.Sheets("Consolidation").Activate xlTmp.ActiveSheet.Cells(6, 4).Value = P(N) xlTmp.ActiveSheet.Cells(8, PS).Select xlTmp.ActiveSheet.PasteSpecial xlPasteValues, xlNone, … Software Development visual-basic | |
Hi, I just want to ask a simple question.. hopefully. I use package and deployment wizard to create my software's installer. My software can be run by using a lot of pictures and document that because it contains millions of pictureboxes. Those pictures must be located in the same folder … Software Development visual-basic | |
Hello. I am having trouble with my menu and buttons (which are just pictures that change when you scroll over them). One of my buttons works perfectly, but when I coded the rest in the same way (at least I think so) they dont work. Sorry for the long code. … | |
I am having issues with the compiler in checking to see if a piece of a string is empty or not. I have a feeling this is simple, but today has not been my day with this code, but I am still doing my best. Ty tableRow is a std::vector<std::string> … Software Development c++ | |
Dear Freinds I want that when i save combobox value it take starting two characters only from textbox and save it Software Development vb.net | |
I imported a picture onto another picture and I am wondering how to get rid of the white around the smaller picture. Software Development java | |
when the space key is pressed then the menu apears, but when you press the resume button (cont) then the menu should dissapear, but it doesn't. please help. Thanks [code]// The "ArrowKeys" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class ArrowKeys2 extends Applet implements KeyListener, Runnable, MouseListener, MouseMotionListener { … Software Development java |
The End.