132,726 Archived Topics
Remove Filter ![]() | |
I have written a Windows service using FileSystemWatcher. It successfully processes one file when dropped into the target directory, but doesn't do anything when a subsequent file is dropped. Any suggestions would be welcomed. Software Development | |
Hi everyone! I just want to have random numbers which are unique. For example I want 5 unique numbers for a lottery game I am trying to make, nothing special just a console game. I was thinking of using loops and dead long boolean algerbra lines of || (OR) and … Software Development c++ | |
This has been the cause of a royal lot of frustration. I have two threads and a pipe between them. I want the first thread to send stdout to the second, and a pipe seemed like a convenient way to do this. [CODE]public PipedOutputStream p_stdout = new PipedOutputStream(); public PrintStream … Software Development api java java-netbeans | |
Hy everyone! First I vould like to say that your great! I find lots of solutions here fom my programing problems. I would like to write a calculator in Pascal/Delphi with scietific functions. For example: if I write [1,2,3]+[3,2,1], program return [4,4,4]. Does anybody have an idea how solve this … | |
Hi, I'm trying to add windowClosing into my program, so that when ran, I can exit by clicking on the X(top right corner). The bold is what i added to try making the windowClosing work. I keep getting errors though. Anyone know what I can do to fix this? errors: … Software Development java java-swing | |
Could anyone recommend some higher-level c++ programming classes that are either online, or local in Austin, TX, that a 16 year old can enroll in? All my school offers is basic java, and ive tried the University of Phoenix online, but 16 is below their enrollment age. Software Development c++ | |
Hello all!! Im a newbie when it comes to C++ and I am constructing a program that, a. reads a file called weatherdata.txt, that contains the type of weather, number of years, then the average data for the months(i did three years) b.The program displays the informations for the months … Software Development c++ | |
After creating a datasource and generating a dataset, my database has changed. How can I "refresh" the dataset so it sees these changes. One Method I have been able to do is delete the .xsd file from soultion explorer. There go my modified queries & code. Another method tried was … Software Development database-design dataset vb.net | |
I'm trying to create a function that draws with the mouse using allegro. Here is the original code: [code=cplusplus]int SCREEN_WIDTH; int SCREEN_HEIGHT; BITMAP *buffer; int sandcol; int pthickness; int mx, my, mx2, my2; void ThickLine(BITMAP *bmp, int x, int y, int x_, int y_,int thickness, int color){ int dx = … Software Development c++ | |
Hi everyone, I could really use some help on modifying this pointer program by Here are the directions I am given: Your task is to create the special functions used by this routine, which are shown in blue in the above program. The special functions are swapArgs, divideArgs, powerArgs, and … Software Development c | |
I have an unsigned char (8-bits wide, naturally) that contains 8 flag bits. Example: [CODE] unsigned char flag1:1, flag2:1, flag3:1, flag4:1, flag5:1, flag6:1, flag7:1, flag8:1; [/CODE] I would like to take this unsigned char and convert it into a bit array where each bit represents a flag. Pretty much like … Software Development c | |
I have been using this code: [code="perl"] while (($key, $value) = each (%hash)) [/code] To iterate through a hash. However, the order of the keys that it retrieves are exactly the same each time i run the script. I looked to google for answers and found the following [URL="http://www.nntp.perl.org/group/perl.perl5.porters/2008/06/msg137802.html"]bug report[/URL]. … Software Development perl | |
Hi.. I'm a beginner and just study programming. I have to make some random number. I found many solution in this site, but does'nt seem to be like i want. Please see this [URL="http://lh6.ggpht.com/_T3iApStJb64/SnMJmXJd0WI/AAAAAAAAASM/z5jEJagUjz4/s144/sudoku.jpg"]screen shot[/URL]. I have to make some simple program like sudoku game. And must put random number … Software Development c++ | |
Hi, I've tried to output pointer in decimal but can't do it [code] int a = 10; int* p = &a; cout.unsetf(ios_base::hex); cout.unsetf(ios_base::oct); cout.unsetf(ios_base::dec); cout << showbase << dec << p << endl; [/code] it still shows this output in hexadecimal format. Any reason why this doesn't work. Thanks in … Software Development c++ | |
Hello friends, i need java source code for cross matching two large access database records (1st file is of 20000records {28 columns and 20000 rows} and 2nd file is of 39000records {30 columns and 39000 rows}).I need to compare each n every cell of 1st file to the each n … | |
My problem is this. I am making a script engine using lua 5.1.4 for a game engine. At some point I want my script to be able to create an event for example a InitializeEvent (there are other events) which will be done through calling this method: [code=cpp] int ParticleSubSystem::GetIniEvent(lua_State* … Software Development c++ | |
Hello. Before i embark on the grand search for the next few days of my life (hey who needed them anyways) i wondered if this was possible cause in my head i can't imagine a program being able to do this due to a difference in email clients etc basically … Software Development client-server email python | |
hii, can anyone give me any suggestion about how i can make the program below? [B]Question:[/B] You are to write a program that will take in an arbitrary number of lines of text and output it in Pig Latin. Each line of text will contain one or more words. A … | |
Hi My "callable" function doesn't work. Who knows why? [CODE]>>> callable(print) Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> callable(print) NameError: name 'callable' is not defined >>> [/CODE] Regards, Mark Software Development python | |
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? Software Development c++ | |
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 … Software Development | |
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 … Software Development c | |
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? Software Development c++ | |
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 … Software Development | |
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 … Software Development java | |
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, … Software Development c# visual-basic visual-studio | |
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 … Software Development | |
[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 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 … Software Development | |
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 … Software Development java | |
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 … Software Development java | |
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 … Software Development c++ | |
you think so? if you do, please post some of your reasons why java is easy to understand in this thread.. Software Development java | |
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 Software Development oracle vb.net visual-studio | |
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>(); … Software Development java | |
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 … Software Development c++ | |
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... Software Development vb.net | |
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.. Software Development c++ | |
[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 … Software Development visual-basic | |
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 … Software Development visual-basic | |
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. // … Software Development c file-system | |
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. Software Development c# | |
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 … Software Development java | |
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 … Software Development algorithm encryption | |
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, … Software Development c++ file-stream |
The End.