132,726 Archived Topics
Remove Filter ![]() | |
Hey guy I'm wondering if there is a tutorial or example code for a C++ RPG inventory system. I've surfed the website and I only discovered to make two classes, item and inventory and to use each of them for item's detail and holding the items in a linked list. … Software Development c++ gaming linked-list | |
//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged … | |
I need help to Write a PASCAL program that reads in ten values and then sort them using the bubble sort method Software Development pascal | |
Hi, I am new to Java and is working on code in java which i need to keep a static sql script in property file and passing variable to it through java code and then iterating that property file to pass the variable value and writing that generated script to … | |
i have search box,listview and 3 labelcaption namely: fname,lname and total. my database name is students and table name attendance. if i search particular student and display in listview, once i click the name on the listview automatically display on the labels, and display total number of records of that … Software Development display listview visual-basic | |
Yo. I am making a project in vb6. The backend is MS Access 2003. Data is entered into the form and stored in the database table. The code: With cnct .BeginTrans .Execute "INSERT INTO Employee_Info (EI_CNIC, EI_FirstName, EI_LastName, EI_Gender, EI_Birthdate, EI_Country, EI_Language, EI_MaritalStat, EI_Education, EI_Designation, EI_Salary, EI_ResdAddress, EI_ResdContact, EI_Cellphone, EI_EmailID, … Software Development visual-basic | |
I'm trying to write an algorithm for a larger project that will take two strings which are both large integers (only using 10 digit numbers for the sake of this demo) and add them together to produce a final string that accurately represents the sum of the two original strings. … | |
hey, i am creating one project where i am using MDI system, so when i am opoening MDICHild in MDI Parent it adds new title bar for MDI child. I tried formborderstyle, have hide controlbox, max - min button but it dident worked ? so can anyone have any solution … Software Development vb.net | |
Hello, I would like to seek help from all experts in VB.NET (VB Language) regarding copying file from source folder to destination folder. I have a files named YYYYMMDDHHMMSS.txt. Now i want to build a small project to copy those file to destination folder. The project should work in following … Software Development file-system vb.net | |
Hi people, I would like to learn how to create database applications which store the data entered by multiple users, process the data, and provide the data as requested by the user. Is it possible to write such an application by using Microsoft SQL Server and Microsoft Visual C#? I'm … Software Development c# microsoft-access oop sql | |
I just download new version of eclipe on to my computer and it create a folder called 'workspace'. Is there way i can put all my project from my old workspace in to new workspace? i tried copying from old workspace and pasting in to new workspace. than i open … Software Development java | |
Hello, I am trying to run a simple loop and am having trouble. I would like for this loop to run through the data in an excel spreadhseet and analize column "p". Upon analisys, the macro will create a new worksheet each time it encounters a new digit in coulmn … Software Development visual-basic | |
Hi Folks As a newbie, my datagrid (dgvExamScores)has column4 and column5 (and othercolumns) column4 values depend on column5 values. Code works fine. PROBLEM: when I delete a column5 value, I expect the corresponding column4 to be deleted but this is not the case. Just where have I erred in my … Software Development vb.net | |
hey guys i need to know some of the techniques on how to shorten a very long query for example Dim SqlStatement As String = "INSERT INTO tblcenterlane(DESCRIPTION, UNIT, BEG, OT_KITCHEN, OT_F&B, OT_F.O., OT_S&M, OT_H.K., ADMIN, DEL, PULLOUT, SPOILAGE, ENDING, UNIT_COST, AMOUNT, VARIANCE, REMARKS, DEPARTMENT, DATE, DATE_DURATION_FROM, DATE_DURATION_TO, SUPPLIER_ID, CATEGORY) … Software Development vb.net | |
Hello, In my multithreaded applications, on occassion the error Que Is Empty occurs when trying to clear the que. Is there any way to prevent this from happening or catch it without causing the program to lock up? Below is the code that throws the exception. ` Private Sub Callback(ByVal … Software Development vb.net | |
Hi, I just wanna ask what's the problem with my code in retrieving image from database into a picturebox. Private Sub ShowDetails() Try Dim cn As New OleDb.OleDbConnection Dim cmd As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader cn.ConnectionString = mstrConnection cn.Open() cmd = cn.CreateCommand() cmd.CommandText = "SELECT myimage FROM employees WHERE … | |
Hi, I have given a task to write a code about approximate of pi. this is what I wrote from the other example. the task is to : (pi^2)/16 = ((-1)^k)/k+1 (1+1/3+1/5+...+1/(2k+1)) Write a program which computes and prints an approximation of pi using a finite number of terms from … Software Development c | |
Hello, I have this Windows Phone app I need to do that gets information from the Google places API about places that the user searches for. For each place I need to have a pushpin on a bing map I have inserted. The problem is that I'm a newbie in … Software Development api c# google-api open-source storage web-browser windows-api | |
I have a table with product codes, the first two chars of the product code is the product group. using the product group I'd like to test the content of certain data. Would this be proper coding or is there a better way ? if prodcust_code[:2] == "AB" do: ABsubroutine … Software Development python | |
I am writing a program that calls the memory address of different variable types. I am having troubles with getting the address locations for my array and my char pointers. Here is what I have so far: #include <iostream> #include <string> using namespace std; int main() { const int NUMBER_LIST … Software Development c++ | |
Really quick question, if I want to return the data that is returned by snesVar in videoGame as a string on every line, what is the correct code to use? def videoGame(): count = 0 snesVar = [] for data in os.listdir('/SNES/SNES Roms'): if data.endswith('.src') or data.endswith('.srm'): snesVar.append(data) return snesVar … Software Development python | |
i have put one FUNCTION (Display) in the code's but still not functional is there any way by which we can convert BCD to DEC code's and can be printed out as output I know its wrong please help me to make it right thanks [ the CODE's is for … Software Development c | |
This code is crashing, please tell me for what all I need to assign memory. Thanks #include<stdio.h> #include<conio.h> #include<stdlib.h> struct s1 { char *p1; }; struct s2 { struct s1 *p2; }; struct s3 { struct s2 *p3; }*p4=NULL; int main() { char a='a'; p4=malloc(sizeof(struct s3)); p4->p3->p2->p1=&a; printf("%c",*(p4->p3->p2->p1)); return 0; … Software Development c | |
Hello all! So, I'm giving a demo of a program that I've written for my boss. The program is loaded with test code that I use to ensure various options an routines are set properly, and show up in a listbox in the application (was going to remove it once … Software Development | |
hi, this is my assignment and my code is below too. I don't know why it does not work. #include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; int main() { int const size=20; char word[20]; char dash[size]={" "}; char guess; int number = 6; int lives; int … Software Development c++ | |
First posting here, but I've gotten a lot of help from this site. Here is my problem. I'm trying to automate some procedures for my production line. I have a word document that I have created a string from. What I'd like to is search the document for somestring after … Software Development vb.net | |
excuseme :) sorry I have some problem here, I make a simple paint using vb 6.0 I already can save the image that I load, but something like brush and pencil that I draw in the image can't include :( after I save and open it, it just the image … Software Development visual-basic | |
I have written a working templated linked list that can hold a number of Types. Each of which are created with new before sending them to the InsertNode function. in Main: CMyType* pMyType1 = new CMyType; // Create a new MyType* pMyType1->m_iData = 5; // Hold a value LLMyTypes.InsertAtEnd(pMyType1); in … Software Development c++ linked-list | |
private void decrypt_Click(object sender, EventArgs e) { v = Convert.ToDouble (txtencrypt.Text); t = Math.Pow(v, d); MessageBox.Show(Convert.ToString(t)); MessageBox.Show(""+t.ToString()); MessageBox.Show("" + Convert.ToDecimal(n)); msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n)); txtdecrypt.Text = Convert.ToString(msg); } this is the code im working now for rsa decryption. the problem im getting is the pow function return in exponential … Software Development | |
Hi, can you help me please? how to make a program where you can enter the usrnme, then enter the paswrd, but the paswrd will be written in asterisk and only read afer pressing ENTER; if usrnme is correct and pass is correct, it will say "welcome" if usrnme is … Software Development c | |
Right guys, I'm really new to this but I'm getting along ok, but I've hit a block. I need to be able to know how to search a text file in VB for a particular line and then display it. the files I'm trying to use are set up as: … | |
Hello everyone, I'm trying to make a simple telnet chat program, but I quickly came to the realisation that I don't really know how to get the client to bind to the server. I understand the logic of how I'm going to send data to a connected client, but the … Software Development client-server java | |
I want to write a program in C that will take a .wav file as an input and will output a C array i.e. raw PCM samples. I know the bitrate and have other information about the .wav file beforehand and I just want the PCM samples. The PCM samples … Software Development c | |
Firstly, i'm really new to all this bash/unix/c stuff so i will probably get some words meanings wrong here, but anyway: Im trying to make a client pass simple shell commands to the server, which executes them. They communicate locally on the same machine through a socket. I can make … Software Development c client-server shell-scripting socket-programming unix | |
Morning, I am new to xml with delphi. My problem is that i know how to build am xml file, the output is something like this: **<EXPORT> <IMPORTMODEL>1</IMPORTMODEL> <SESSION></SESSION> <STARTDATE>26-01-2011</STARTDATE> <ENDDATE>26-01-2011</ENDDATE> <VOUCHERS> <VOUCHER> <AUTHOR> X </AUTHOR> <INPUTDATE>1/23/2013</INPUTDATE> <REFERENCE>M1000009</REFERENCE> <ONDUPLICREF>N</ONDUPLICREF> <JOURNALTYPE>STANDARD</JOURNALTYPE> <DESCRIPTION>This is a test for the description of the voucher … | |
Hello, My program needs to capture the screen every 1 second until stopped by pressing the GUI button. In the GUI class I used a for loop to go infinite, but that probably does not work because it takes time to capture, & save screenshot, but the for loop fires … | |
Hello, I am creating a toolstrip and then adding a toolstripcombobox to it. My code so far is as follows: Dim tsMenu As New ToolStrip tsMenu.Name = "tsMenu" tsMenu.Dock = DockStyle.Top tsMenu.Visible = True Dim tsComboBox As New ToolStripComboBox tsComboBox.Name = "tsComboBox" tsComboBox.Visible = True tsComboBox.Items.Add("Item 1") tsComboBox.Items.Add("Item 2") tsMenu.Items.Add(tsComboBox) … Software Development vb.net | |
Hi. Does anyone know how to migrate a Merge Module project from .Net Framework 2.0 to 3.5? I have been able to move the WindowsFormApplications and msi project but got stuck with the msm. Thanks Software Development asp.net | |
Hi I want to know if I can search my database, with the help of a text box. When the search button is clicked, the results is displayed in a list box so that the user then can select the result that suits him and then add that text to … Software Development display | |
Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like … Software Development asp.net c# microsoft smartphone xml | |
can any body Please tell me how to start or call windows service installed on remote server from windows based application in c# Help will be apreaciate Thank you in advance Software Development microsoft | |
I am attempting to make an interface with textfields where the data entered into the fields is stored in a variable, and then written to an external file. I am trying to use FileWriter fw = new FileWriter() to tranfer the variable to the file, but I cannot find an … Software Development java | |
How could I add a external library to the native c++ lirary path at Ubuntu to be found by #include from source code? I have some couple of sources that I try to include them by all the codes written on my machine thus instead of coping all the library … Software Development c++ file-system ubuntu | |
I got an error with my codes? Is anybody can help me ? The Error list said Identifier Expected? the error pertains on the last Underscore in my code but i dont know how to solve the error, Hope can someone will give an Idea to make it right :) … Software Development vb.net | |
**Algorithm** step1: display 3 choices step2: user inputs one choice step3: Choice is store in one variable step4: selected choice is transfered to switch function step5: choice is compare to cases step6: a text document is created stating you choice. **This is layout of the code:** #include<stdio.h> void main() { … Software Development algorithm c file-system | |
I need help writing a program that declares a minutes variable to represent minutes worked on a job, and assign a value to it. Display the value in hours and minutes. For example, 197 minutes becomes 3 hours and 17 minutes. Unfortunately, I don't know much about programming...so, any information … Software Development | |
I am trying to set up a 12 month table summary in a bank account program. The problem I have is I am trying to figure out how to set it up correctly. Here is my class and application from the bank account: Here's the class part: [CODE]class SavingsAccount { … Software Development c++ | |
Private Sub cmdSimulate_Click() Dim comm As CommandButton Dim zi As Long, ki As Long Dim shorts(10) As Integer, count As Integer Dim temps As Integer, z As Integer, n As Integer, m As Integer, i As Integer If typeSched = 1 Then temps = 0 btnP(0).Width = Val(txtBT(0).Text) * 100 … Software Development visual-basic | |
Hello! I need a help from my code in filtering the male/female regular/contractual employees. Scenario: I have 4 checkboxes the 'cbox' for contractual, 'rbox' for regular, 'mbox' for male and 'fbox' for female. What I wanted to happen is when I check 'mbox' it will display male employees in as … Software Development open-source vb.net |
The End.