199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anuj_sharma
Member Avatar for mail2ranjan
0
225
Member Avatar for kylelyk

so I was wondering how to push int's into an array. In other languages that I learned, I can just call the push() method. But looking around, people say that I need to use priority_queue. What is it and can I use it in Allegro?

Member Avatar for William Hemsworth
0
97
Member Avatar for fulcrum9

Hi everyone, I have a problem with reading a socket for the 2nd time. I'll explain. By using TcpClient I set up a connection to a webserver. Then I perform a GET request and read it out. When I do another GET request afterwards, that works, but I can't read …

Member Avatar for fulcrum9
0
232
Member Avatar for wesduncan

okay for some reason I can't edit my other thread so I'll just make another one. Say I'm using this strtok, it runs like it should but I want it to print out the last string instead of the first when i do a printf at the end. [code] char …

Member Avatar for wesduncan
0
91
Member Avatar for SeeTheLite

If I delete a pointer, does it delete the data in the current address or all of it? example: [code] bool *dat; dat=new bool; dat=true; ++dat; dat=false; delete dat; --dat; [/code] if I printed dat, would it return true or just a random address?

Member Avatar for kvprajapati
0
97
Member Avatar for aot

I have a nice little Tkinter program but need to make the mouse cursor invisible for parts of it. I have seen ways to make the cursor change to other images, but I need it to actually be invisible. Any help? P.S. If you think it's impossible that would be …

Member Avatar for Fistroman
0
163
Member Avatar for ddanbe

In C# a struct is a bit like a class, but most of the time used for little items you might have. A struct is also a value type, while a class is a reference type. Now .NET is poorly equipped with math features. As I wanted to play around …

Member Avatar for ddanbe
0
125
Member Avatar for aashishn86

I use this function to add rows dynamically in a table [code] function addRow() { var tbl = document.getElementById('applications'); var lastRow = tbl.rows.length; // if there's no header row in the table, then iteration = lastRow + 1 var iteration = lastRow; var row = tbl.insertRow(lastRow); // right cell var …

Member Avatar for aashishn86
0
617
Member Avatar for lightner

Hi..I just want to ask for a help. I have an Array of Object Person which has these attributes 1.first name(of type String) 2.middle initial(of type character) 3.last name (of type String) 4.age(of type int) Now my problem is, how to sort this in ascending order? My basis of sorting …

Member Avatar for Godstryke
0
140
Member Avatar for dchunt

I want to write a program to read a audio file and classify the various symbols into the number of times they occur , I was hoping i could use a switch statement and classify the 256 symblos but now i've learnt the standard ascii set is only from 0-127,so …

Member Avatar for Ancient Dragon
0
100
Member Avatar for ghaith

Hello, I have followed a guide to use a library created in C# with the Register COM Interop option using Visual studio 2008 and .NET 3.5 (also tried on 2.0 and vs 2005) i then created a tlb from the output dll using regasm filename.dll /tlb:filename.tlb now back in excel, …

Member Avatar for ghaith
0
181
Member Avatar for jure.gregorin

Hi! I'm working on a project where I have classes displayed in a propertygrid control. Usually I could just assign some attributes to the classes, but they are generated from a scheme with a tool. So everytime I would regenerate the classes, the attributes would be deleted. So I need …

Member Avatar for kvprajapati
0
97
Member Avatar for john_beginner

[code=.cs] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { double no1, no2,ans; void commonEvent(object sender, EventArgs e) { Button b = (Button)sender; if (b == btn0) TextBox1.Text += "0"; else if (b …

Member Avatar for madz_feat
0
122
Member Avatar for zanst

Hello all, I'm beginning in Python and I need to input some information in a declared variable, like this: [code]XML = """<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <Authentication xmlns="http://xxx"> <Account>xxx</Account> <Password>xxx</Password> <Guid>xxx</Guid> </Authentication> </soap12:Header> <soap12:Body> <SendMessage xmlns="http://xxx"> <message> <From>xxx</From> <MessageBody>xxx</MessageBody> <MessageDate>xxx</MessageDate> <Subject>xxx</Subject> <Devices> <DeviceMessageVO> <Phone>[B]I need to input …

Member Avatar for zanst
0
175
Member Avatar for veledrom

Hi, I use [inlinecode]header("Cache-Control: private");[/inlinecode] to prevent page expiry problem. It is to make browser’s “Back” button work otherwise; page expires if user hits “Back” button to go back and see previous pages. I have 3 steps buying process. 1. Delivery address selection from radio boxes 2. Creadit card details …

Member Avatar for veledrom
0
91
Member Avatar for Thirusha

Hi I have been struggling with this for some time now, and am not sure what is wrong. I am using the org.json package I have this json String which looks like this: [CODE]{"2009-08-04":[{"Status":"1","Description":"sdfsdf","Task Name":"task 2","TaskId":"2"},{"Status":"1","Description":"testing 3","Task Name":"testing 3","TaskId":"3"}],"2009-07-31":{"Status":"1","Description":"read POC","Task Name":"task 1","TaskId":"1"}}[/CODE] As u can see the one object is …

Member Avatar for Thirusha
0
135
Member Avatar for kevin.cochrane

Hi there If anybody could help me with this problem it would be great. I'm a noob when it comes to c#, and I know people loathe the idea of using c# to manipulate excel files but if you had my job you would understand. I have to sort through …

Member Avatar for kevin.cochrane
0
522
Member Avatar for BestJewSinceJC

The important code: [CODE] Browser browser = new Browser(shell, SWT.NONE); URL url = this.getClass().getResource("/example.html"); browser.setUrl(url.toString()); shell.open(); [/CODE] P.S. I've carefully considered what Masijade and others told me in the other thread; the example.html file is located in multiple locations, including in the same directory as the .class file. . I …

Member Avatar for kvprajapati
0
421
Member Avatar for robben

I've current got a file which I'm trying to read and extract data from. I'm using LineNumberReader, StringTokenizer and InputStreamReader to do this. I've not had any problems for most of the file, however when I get to read the header1 (see below) section of the file I seem to …

Member Avatar for kvprajapati
0
112
Member Avatar for K?!

Hi all I'm used to programming in Java, which does support method overloading. So when starting to use PHP, I quickly found that this was not supported in PHP. But why and how is this supported with "system methods" (I don't know if that name is correct) like, for example, …

Member Avatar for K?!
0
125
Member Avatar for jino

Dear All,, I have a search query for searching 40 fields that are belonging to 5 different tables.. I have used INNER JOIN for this purpose... I have stored the search conditions into a $string variable and the result is getting correctly.. Here comes the problem.... I want to paginate …

Member Avatar for kashif farooq
0
151
Member Avatar for atch

Hi, I've written some fnc and when I tested it it works perfectly but when I switch from debug mode to release mode I'm getting error: Intrisinc function, cannot be defined. Any idea what's wrong? [CODE] typedef unsigned int u_int; int strcmp(const char* s, const char* s1) { u_int size_s …

Member Avatar for atch
0
115
Member Avatar for NoID

Hello Guys, i am currently using my localserver dont have a hosting where i can test it, so i would like to know if this basic idea will work or not. Here is the code do you think if i enter the ID it will get the email and then …

Member Avatar for NoID
0
121
Member Avatar for enyeahgo

you think so? if you do, please post some of your reasons why java is easy to understand in this thread..

Member Avatar for JamesCherrill
0
137
Member Avatar for robertmacedonia

Hello, I have this application that would let a user register (I used an ASP.NET control for that one), and then log in (I do not use ASP.NET control for the login, I am making it myself). When an user register, I am sending their data to an Oracle database, …

Member Avatar for robertmacedonia
0
147
Member Avatar for xborja

Hi Im writing in visual studio 2008 in VB.net I last porgrammend in VB 6 need help to connect to oracle 11g Database Xavier

Member Avatar for maxwik
0
141
Member Avatar for KimJack

Hello, I have a text file that is formatted as such: Volkswagen, 547, 9.78, 2 Mercedes, 985, 45.77, 35 ... I am trying to figure out how use the Scanner to read from the text file and store the information into an ArrayList of objects. ArrayList<Car> cars = new ArrayList<Car>(); …

Member Avatar for sneaker
0
3K
Member Avatar for mathavan2009
Member Avatar for VernonDozier
0
82
Member Avatar for TheAlex

I'm trying to create an image gallery/menu with text info. I used CSS to create a gallery so that when you roll over one of the thumbnails, a larger image and new text displays above (basically by changing the content from 1px wide and high, so it's 'invisible', to 479px …

Member Avatar for TheAlex
0
218
Member Avatar for cokaznsyco72

here's a function I tried to write that reverses the order of a c-string [code=cplusplus] void reverse(char *wordPtr) { char revWord[SIZE]; int count = 0, // index counter newSize = 0; // to count word size while (wordPtr[count] != '\0') { newSize += 1; count++; } cout << "The size …

Member Avatar for cokaznsyco72
0
185
Member Avatar for kerek2

Hi Alls, I got problem here to check whether the value in listbox more than one or already exist....I already do this code but it just check existing value only not count if it more than that,,,,anyone can show me the way plz...

Member Avatar for GeekByChoiCe
0
161
Member Avatar for sandeep.nami

hi guys i have seen this new line of code and surprised! mysql_connect('localhost','root','') or testFun(); i know that this is used in db connections i want to know all the applications of 'or' guys plz help me

Member Avatar for samarudge
0
79
Member Avatar for socalfoolina

Hi, I'm new at javascript. I'm looking for help with the code below. I am trying to create a nav bar with opening and closing divs (vertical tab menu). However I'd like to have the ability for the user not to have to close the div in order to select …

Member Avatar for essential
0
135
Member Avatar for 143wena

hi im new in this site and i have a problem on making a c++ program.. i can't understand it well.. can someone help me please.. im willing to understand on what will u teach on me..

Member Avatar for Nick Evan
0
161
Member Avatar for LoNe_KiD08

[COLOR="blue"] Hi guys, I am programming on a system that has a report designer. I'm using a software seagate for my report and and VB6. I'm having hard time on how to figure an idea to design a crystal report upon run time. I want to know if there's a …

Member Avatar for vb5prgrmr
0
101
Member Avatar for roachae

I'm a newbie to VB and have been given the bugfixing/maintenance task at the company I work at for one of their products that was written in VB. One of our customers is experiencing a "freeze" in the application at a certain point and the only way around it is …

Member Avatar for vb5prgrmr
0
95
Member Avatar for BigDan531

okay guys ive got this page in which i want to verify the key that the user inputs with the key in my sql database, and then it updates a row called user_okay when i click on the enter button. [code] <?php session_start(); include ('dbc.php'); //if ($_POST['Submit']=='Enter') // { $keys …

Member Avatar for pin8marian
0
97
Member Avatar for vtek

From what I can gather on the internet this is a fairly easy piece of PHP script but success is eluding me. Maybe im missing something really small like punctuation or an uppercase letter or maybe its something else. Im wondering would it be possible that theres conflict between java …

Member Avatar for jagadishwor
0
106
Member Avatar for wesduncan

Okay first post here, and I'm running into a problem. What I would like to do is read in files and have the user enter in the measurement they're looking for. This is what I have so far. [code=c]// switch.cpp : Defines the entry point for the console application. // …

Member Avatar for WaltP
0
98
Member Avatar for BigDan531

Hi all i need some help with my code. i have a page where i want to update a row 'key' in my table users with a new value that i have generated. dbc.php [code] <?php $dbname = 'phplogin'; $link = mysql_connect("localhost","root","") or die("Couldn't make connection."); $db = mysql_select_db($dbname, $link) …

Member Avatar for kvprajapati
0
86
Member Avatar for majestic0110

Hi all I have a program that interacts with files. Now I would like these files to have thier extensions changed upon processing in my program. Any good tips/tutorials you can throw at me? Many thanks.

Member Avatar for nirmalsat
0
142
Member Avatar for sunny.goyal

hello all, How to get all the opened windows reference in java. Actually, my req is like.... user will set (fix) the cordinates of all the opened desktop windows (application). And he will use a timer to switching of all the open windows, so that at one particular time user's …

Member Avatar for sunny.goyal
0
203
Member Avatar for swinefish

Hey all I'm looking for a nice simple password encryption algorithm. I'm not looking for anything amazingly military type secure, but If I could do something irreversible, I'd be happy. I've looked at a couple of google searches, but found nothing particularly interesting. Any help would be greatly appreciated. Thanks …

Member Avatar for swinefish
0
288
Member Avatar for Symbolistic

Okay I am a new programmer and I am interested in making games. I already began learning OpenGL, C++, and SDL. I need you guys to clear some stuff up for me please and also help recommend some tutorials/books for me. I want to make a 2D Pokemon MMORPG. (Don't …

Member Avatar for mrwaffles829
0
131
Member Avatar for Allison2009

Hi, We have developed a website, viz., [url]http://www.plussizebeauties.com[/url] for plus size women. This website is viewed best in Mozilla Firefox. But when you view this in IE, the top alignment is not coming accurately. Could anyone suggest reasons for this, so that I could correct my website. Thanks in advance …

Member Avatar for Allison2009
0
74
Member Avatar for goody11

Ok, I've tried literally over 100 things and still can't figure this out. I want to add strings that I've loaded from a text file to a list box. Here is my coding: [code=cplusplus] vector<string> spnV; //this is a global variable BOOL LoadTextFileToEdit(LPCTSTR pszFileName) { ifstream inStream(pszFileName); if(!(inStream.is_open())) { MessageBox(NULL, …

Member Avatar for goody11
0
699
Member Avatar for Curgol

I am trying to convert a hexadecimal character array to a binary array (unsigned char) that I can use in crypto functions using Cryptlib or OpenSSL. Basically I have a Hex representation of a key like (02726d40f378e716981c4321d60ba3a3) which as a character array is 32 characters but as a binary array …

Member Avatar for Curgol
0
489
Member Avatar for kalyan mohan

Hey guys, I have got one problem.... I am very new to wxpython. I have coded a program which takes input in the terminal and I would like to take the file as input (a photo) with an interface... like when we upload pics in internet we get a file …

Member Avatar for kalyan mohan
0
106
Member Avatar for Godstryke

Hi all, I'm a student learning Java right now, so I'm still very new to what Java can do. I've written a program to perform a word count (thanks to VernonDozier for help with case-sensitivity) but another problem has come up. The program is identifying words with punctuation to be …

Member Avatar for Godstryke
0
192
Member Avatar for Mel64

I have little experience with php & javascript hybrid pages. A friend has a webform php page that has the html form code at the bottom. The form works well but I want to take the first input text field and have it displayed in a <div> on the page …

Member Avatar for Mel64
0
118

The End.