132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kamyarn

Hi I want to read a string (Last name) from keyboard, concatenate it to another string (First Name) and then print it on screen. (Windows, EMU8086, EXE Template) First I declare the variables in data segment [CODE] msg1 db 0ah,0dh,"Enter your last name: $" ;prompt message msg2 db "Kamiar " …

Software Development assembly
Member Avatar for kamyarn
0
6K
Member Avatar for muse_squall08

[CODE]#include <iostream> //standard input and output #include <fstream> //file input and output #include <string> //for strings #include <exception> //catches exceptions #include <sstream> //stringstream comes from here #include <algorithm> #include <stack> #include <queue> using namespace std; bool writeFile(const string &data); //writes strings to file bool readFile(); //read file bool palin(const string …

Software Development algorithm c++ file-system ios queue
Member Avatar for WaltP
0
2K
Member Avatar for Locke123

So I'm tasked with writing a subroutine to access a certain element of an array. When the subroutine is called, the pointer that points to it is [bp+1]. How would I make it so I could access say the 10th element of this array in the sub routine?

Software Development assembly
Member Avatar for sbesch
0
183
Member Avatar for webishop

I keep getting the undefined reference error when calling a c function from c++ code: void proxy(char *str); In my funcs.h file, I use the #ifdef __cplusplus extern "C" { #endif wrapper, and include funcs.h in my c++ code. I also declare the function as extern "C" void proxy(char *str); …

Software Development c++
Member Avatar for webishop
0
2K
Member Avatar for sharathg.satya

how can i get the max date supported by a c# application i am trying to take input values of date month and year And if i am giving year 19999 i am getting error how can i solve this help me please thanks in advance

Software Development
Member Avatar for sharathg.satya
0
71
Member Avatar for lt johnson

Hello, I need a label array for my windows form so I can easily edit the text in the labels. I've found this solution: [CODE] for (int i = 0; i < 10; i++) { Label[] labels = new Label[10]; labels[i] = new Label(); labels[i].Text = "0"; labels[i].Location = new …

Software Development microsoft visual-studio
Member Avatar for lt johnson
0
159
Member Avatar for carasel

Hello Sorry about the stupidity of my question, I'm rather new to python. I'm writing a text analysation program. It reads from a text file and creates a list called 'line' which has variable length and is a list of words. I want to make a loop that will go …

Software Development python
Member Avatar for carasel
0
6K
Member Avatar for stevanity

I need to parse this document with email ids and convert them to a csv file... source. [CODE]xxxx@xxx.com; hello@gmail.com; John (john@hotmail.com);[/CODE] and so on.....lots of emails are there :D output: [CODE]NickName, Email ,xxxx@xxx.com ,hello@gmail.com John,john@hotmail.com[/CODE] Please help me. This aint a homework. Im trying to recover my emails... hehe. I …

Software Development java regex
Member Avatar for stevanity
0
131
Member Avatar for ben1996123

Hi, I want to start learning OpenGL. I have searched for some tutorials and here is what I have done: 1. I downloaded the latest version of GLUT 2. I put the DLLs in C:\Windows\System32 3. I put the libs in C:\Program Files (x86)\CodeBlocks\MinGW\lib 4. Put glut.h in C:\Program Files …

Software Development c++ opengl
Member Avatar for Moschops
0
560
Member Avatar for ng5

i have two forms in my program. The second form appears when button1 is clicked. I would like the information (textboxes) to be filled in when the second form loads. basically i have a complex calculator and when button 1 is clicked i want a second form to show with …

Software Development vb.net
Member Avatar for ng5
0
162
Member Avatar for 03hasnam

[CODE]import javax.swing.*; import java.awt.event.*; import java.awt.*; public class Login extends JFrame{ JButton SUBMIT; JPanel panel; JLabel label1, label2; public static int accessGrant = 1; JTextField username; JPasswordField pw; public Login() { label1 = new JLabel(); label1.setText("Username: "); username = new JTextField(15); label2 = new JLabel(); label2.setText("Password: "); pw = new …

Software Development java java-swing
Member Avatar for NormR1
0
147
Member Avatar for serdas

hi, is it possible to have two different version of java on linux centos5 currently it is running 1.6.0 - which i would like to keep it that way sinse i have red5 but i also need 1.4 for a gaming server ES gaming server is asking to use at …

Software Development gaming java
Member Avatar for serdas
0
371
Member Avatar for 03hasnam

[CODE]ImageIcon tenP1 = new ImageIcon("10p.gif"); tenP = new JButton("", tenP1); ImageIcon twentyP1 = new ImageIcon("20p.gif"); twentyP = new JButton("", twentyP1); ImageIcon fiftyP1 = new ImageIcon("50p.gif"); fiftyP = new JButton("", fiftyP1); ImageIcon pound = new ImageIcon("pound.gif"); onePound = new JButton("", pound); ImageIcon twopound = new ImageIcon("twopound.gif"); twoPound = new JButton("", twopound);[/CODE] …

Software Development java
Member Avatar for 03hasnam
0
3K
Member Avatar for mc3330418

With this function I'm finding the highest average, but after I find it I want to find the name that goes with the highest average. I'm pretty sure I need to use the index of the highest average but I don't know how to do it. [CODE] void findHighest(int numItems,string …

Software Development c++
Member Avatar for Ancient Dragon
0
72
Member Avatar for omer620

Hi frnds I am having some kind of problem in strings.. I have to write a String program whose output is like this Let the string is :- Enter string : "Computer Programming" C Co Com Comp Compu Comput Compute Computer Computer P Computer Pr Computer Pro Computer Prog Computer …

Software Development c++
Member Avatar for omer620
0
193
Member Avatar for ristojoseph

[CODE]protected void Update_Click(object sender, EventArgs e) { //string query = "update [user]" ; //query += "set name ='" + "@name" + "',"; // query += "phone ='" +"@phone" +"'"; // query += "where (id = `@id`)"; string que = "UPDATE [user] SET "; que += "[name] =@name, [phone]=@phone1 WHERE (id …

Software Development
Member Avatar for thines01
0
106
Member Avatar for tchiloh

I trying to remove a row from datagridview. it removes on datagridview but not from the database" [CODE] dataGridView1.Rows.Remove(dataGridView1.CurrentRow); [/CODE] how can i remove it? and if i have this colums in the database: AB || AC || AD || AE and on datagridview i have only : AC || …

Software Development
Member Avatar for sasanka panda
0
347
Member Avatar for smurfy

Hi , In Visual Studio CLI. I have randomly generated numbers(zero to nine) which are a,r,g,b . One by one they are meaningless . Together they create a color code for different products. For example : [ICODE] id a r g b i 1 1 5 9 i+1 6 0 …

Software Development c++ visual-studio
Member Avatar for smurfy
0
147
Member Avatar for 65piano

First of all, I'm new to GUI so I may have made some terrible mistakes.. right, so I have a two dimensional array of buttons and I need to identify which button in the array is clicked, hovered over, and hovered off. For now I just want my program to …

Software Development gui java
Member Avatar for JamesCherrill
0
202
Member Avatar for monica23

Good day expert, am trying to direct user to a web page if login is okay in python but does not work [CODE] if username==okay and password == okay: # direct to success_page.py print "Location: success_page.py\r\n"; else: direct to errorpage.py [/CODE] the code does not work as the web page …

Software Development python
Member Avatar for inuasha
0
228
Member Avatar for bond00

I've looked everywhere and I'm sorry if I'm missing the obvious, but I'm irritated out of my mind trying to find this solution. All I want to do is start an application with arguments in a new window (cmd.exe or linux terminal). I don't care about piping the data from …

Software Development python
Member Avatar for inuasha
0
6K
Member Avatar for joankim

Hi there guys. I am soon halfway through AP computer science, where we learn Java. Right, now, I'm doing some extra credit programs, both for fun, and to learn this stuff better. However, I got stuck on a few of them, and I really need some advise. I have already …

Software Development java
Member Avatar for zeroliken
0
144
Member Avatar for imperialguy

Following is the system and software info [b]Platforms: Windows XP and OSX Lion Activestate Python 2.7.2 wxPython2.9-osx-cocoa-py2.7 (for OSX) wxPython2.9-win32-py27 (for Windows XP)[/b] I am trying to create a UltimateListCtrl using ULC_VIRTUAL and ULC_REPORT mode. I would like to know how can I put a checkbox beside the first column …

Software Development os-x python windows-xp
0
218
Member Avatar for almuy

Hi, I created an application in C# winforms. Sometimes disabled textboxes in my application loose their value (i.e. they become empty valued). Has anyone evre encountered that same problem and has a solution to resolve it ? Thanks in advance for you advice, Alex.M

Software Development c#
Member Avatar for almuy
0
299
Member Avatar for sotos

search button for vb 2010 ultimate in access 2007 database and filtering on a datagrid Hi all! I am trying to make a search button which filters a datagrid. First of all, I have a tab and on this tab a have a datagrid (dgr1). When I load this tab, …

Software Development microsoft-access seo vb.net visual-basic
Member Avatar for sotos
0
484
Member Avatar for roona

Hay every one Hay everyone I need help I have project in subject programming languages about make one idea on two languages c and java . I have made it in java and c++ but I couldn't in c This is the code in C++ [CODE]// Link.cpp : Defines the …

Software Development assembly c c# c++ oop visual-basic
Member Avatar for VernonDozier
0
242
Member Avatar for trisha0906

how to do error trapping in textbox where the user cannot abuse the space bar. for example: i want to type hi h i

Software Development abuse vb.net
Member Avatar for trisha0906
0
113
Member Avatar for agent154

I've googled a bit and managed to find a few articles on how to add controls from within a running application, but neither seem to explain it in a way that suits my needs. I wonder if anybody can help me understand how I can go about this, or direct …

Software Development
Member Avatar for agent154
0
127
Member Avatar for man7tomani

how i can load all custom fiel and add to combobox ? and how i can set tag to send new post ? xmlrpc - c#

Software Development c# xml
Member Avatar for man7tomani
0
80
Member Avatar for manaila

I have the following URL which I want use to access the content in a remote Apache Tomcat server from a C-based client: [CODE]char url[] = "POST /myDir HTTP/1.1\x0D\x0AContent-Type: text/xml\x0D\x0AContent-Length:60\x0D\x0A\x0D\x0A<root><mygreeting>Hello, World!</mygreeting></root>\r\n";[/CODE] However, I get the response [B]"HTTP/1.1 505 HTTP Version Not Supported"[/B]. I have googled and found that this may …

Software Development apache c client-server
Member Avatar for manaila
0
163
Member Avatar for jeffpro

Alright, I need help for a shooting game I'm working on. I current have a box that is 3d ( x, y, z) I'm trying to perform a check to see if my cursor is inside this 3D box. I understand how to make it 2d by using the max …

Software Development c++
Member Avatar for mrnutty
0
110
Member Avatar for AndyPants

Hello... I'm working on an application that contains a "BackgroundWorker", the "BackgroundWorker" worked fine but after I started to change some stuff it gives me an error ("Exception has been thrown by the target of an invocation.")... I used a breakpoint to see where it happens, the exception gets thrown …

Software Development multithreading vb.net
Member Avatar for AndyPants
0
1K
Member Avatar for kris kannan

hi, i want to know if there are any libraries for image/video processing in c/c++ with a compatibilty that it can later be adapted to DSP, without much difficulty. thanks in advance.

Software Development c++ image video
Member Avatar for kris kannan
0
419
Member Avatar for jamojo

Hello Everyone, I am using apache POI 3.7. I am trying to replace the value of a table column in a word document (docx). However, what I have done is it keeps appending the value of the current value in the document. But if a table column value is null, …

Software Development apache java
Member Avatar for jamojo
0
3K
Member Avatar for Tigerwatch

I've made a 3d game simulation with animation and all the controls. But whenever i jump, the player remains up in the air without coming back down. Also the player can simply walk through walls. I'm using " colonel - z " for the player and "universe.dbo" for the environment. …

Software Development c++
Member Avatar for Tigerwatch
0
162
Member Avatar for TylerMTC

Hey all, just wondering if anyone can find a problem in my piece of code for trying to work out the total cost. When i run the program and click the cost button, it only returns a value of £0.00 for insurance cost and total cost. Any help much appreciated. …

Software Development vb.net
Member Avatar for ChrisPadgham
0
139
Member Avatar for newbie14

Dear All, I can insert data into mysql db already via my C codes. The only problem now I need insert the time in this format "2011-12-11 09:01:02". How can I format this in my C codes? Thank you.

Software Development c c# c++ mysql
Member Avatar for newbie14
0
82
Member Avatar for kanyonb38

Hello Visual Basic Coding Experts, I have other application that I have not made myself, but can do what I am looking to do. I want a code to keep a form on top of all the forms in my application. Not Topmost, which keeps it open onto of all …

Software Development visual-basic
Member Avatar for hkdani
0
232
Member Avatar for mrbungle

My app is using MySQL. Right now, the IP/Port, username and all that stuff is hard coded in a string. [CODE]Public urlMySQLDatabase1 As String = "Server=173.201.88.22;port=3306;Database=DBName;Uid=DBName;Pwd=DBpassword;"[/CODE] So all the code that needs this string gets it here. But I was thinking- what if later in the future I need to …

Software Development file-system vb.net
Member Avatar for mrbungle
0
467
Member Avatar for Jenna1994

i am trying to make this shape using java ********************** ********************** ***************** *************** ************ *************** ****************** i have TRIED at the bottom as u can see but i am unable to get this shape i am confused [code]public class courseforuni { public static void main (String [] args) { int …

Software Development java
Member Avatar for zeroliken
0
108
Member Avatar for manou324

Hello! I'm trying to make a class,but an error comes up.I have also an another class named Ticket.Thanks for your help! [CODE]import java.util.*; public class TicketPool{ ArrayList box= new ArrayList(); public void AddTickets () { box .add(new Ticket ()); } public void DisplayTickets (){ for (int i=0;i<box.size();i++){ System.out.println(box.get(i)); } } …

Software Development java
Member Avatar for manou324
0
206
Member Avatar for mediachicken

This is actually an Objective-C question. I'm trying to implement a way to loop through pixels and map the colors to "curve" data. I was wondering the easiest way to do this. Is there a prewritten algorithm for curves anywhere? I don't want a graphical curve grid, I just need …

Software Development algorithm image objective-c
Member Avatar for radu_
0
326
Member Avatar for Halogen1

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: [url]http://www.daniweb.com/software-development/cpp/threads/242338[/url] My situation is a bit different because I HAVE to use a combination of functions and a class in the …

Software Development c++ client-server gaming
Member Avatar for Halogen1
0
504
Member Avatar for Pelle_3

I am learning C++ .net programming and was wondering why the code for creating a messagebox is [CODE=C#]MessageBox.Show("Hello, World!");[/CODE] in C# and [CODE=C++]MessageBox::Show("Hello, World!");[/CODE] in C++. Why is the dot substituted with a double colon in the C++ code? My source: [url]http://msdn.microsoft.com/nb-no/library/z9w2f38k[/url]

Software Development c++
Member Avatar for Pelle_3
0
448
Member Avatar for Labdabeta

A friend asked me how to write and use a DLL in C++. I told him that I had to check and make sure my understanding was accurate. So here I am. Would this work as a DLL: myDLL.cpp: [CODE]#include "myDLL.h" void DLL_EXPORT ConstructMyInt(myIntStruct &i){i.val=0;} void DLL_EXPORT DoSomething(myIntStruct &i){i.val*=i.mul++;} BOOL …

Software Development c++ microsoft
Member Avatar for Labdabeta
0
155
Member Avatar for Ares08

Hi guys, I am fairly new to python. The problem I am having is manipulating the data that I read from a file. Example: if a line of the file is Monday = 0800, is it possible to break up that line so I can read Monday and 0800 separately …

Software Development file-system python
Member Avatar for woooee
0
156
Member Avatar for learner guy

well i have made a .txt file (for save /reload blah blah ..) ..i want it blank before program runs ..how can i do it - or is there any way i can create a new file every time overwriting the existing file

Software Development c++
Member Avatar for Dman01
0
13K
Member Avatar for lbmve

Good, I'm doing a work in assembley. where I have to reverse the string using recursion: Only by using the following commands: - LOCO, Lodder, ADDD, SUBD, LODL, ADDL, subl, PUSH, POP, PSHI, POPI, CALL, Retn ... trabid:. string "hello world" main: . ... ... rec: # recursive function that …

Software Development assembly
Member Avatar for Schol-R-LEA
0
106
Member Avatar for libathos

I am using a JFreeChart from this link [ICODE]http://www.java2s.com/Code/Java/Chart/JFreeChartCategoryStepChartDemo.htm[/ICODE] the format of the datasetUtilities.createCategoryDataset is (new String[]{..,..,},new String[]{..,..,},data).Is there any way that i can pass an already filled arrays for countries and years? [CODE] public Chart(String tablenm,final double[][] data,String[] countries,String[] years) { super(); final CategoryDataset dataset = DatasetUtilities.createCategoryDataset( countries,years, data …

Software Development dataset java
Member Avatar for libathos
0
198
Member Avatar for noobprogrammerr

Hi, does anyone knows how to read wcf file using xdocument or xelement ? I would like to retrieve out the data from my database using web client instead service reference method. Does anyone have articles on that or the codings ?

Software Development
Member Avatar for thines01
0
237

The End.