199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, How do you set the forecolor of a label progmatically??? | |
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? | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
you think so? if you do, please post some of your reasons why java is easy to understand in this thread.. | |
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, … | |
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 | |
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>(); … | |
Hello, I like to study the C++ language. explain the basic concepts. | |
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 … | |
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 … | |
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... | |
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 | |
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 … | |
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.. | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. // … | |
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) … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.