132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for music_est_vie

Hello I am new to Java. I am building a video game for school - similar to the Sims game - and have encountered an issue. My group is creting all the algorithims for calculating health, keeping track of time, achievments, etc. My job is to create the graphical interfaace. …

Software Development java
Member Avatar for javaAddict
0
170
Member Avatar for onaclov2000

Hello, I wrote a little slide in box, that slides in from the edge of the screen, the problem i'm having is that I don't always know the size of the desktop if that makes sense, as well as spacially where things are, I.E. Suppose the start menu is on …

Software Development vb.net
Member Avatar for onaclov2000
0
347
Member Avatar for caovan

Hi all, I am new to threading and was wondering if this works. I have a main thread that kicks off a background worker thread. It's function is to update my sql db. There are ten steps and after each step is completed, it will update the progressbar and move …

Software Development
Member Avatar for caovan
0
340
Member Avatar for atv161

This is the error I get: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.windows.forms.dll Additional information: Class not registered And this is the line it points me to: CType(Me.Comm1, System.ComponentModel.ISupportInitialize).EndInit() Does anyone know why I would all of a sudden start getting this error? Does anyone know how to …

Software Development vb.net
Member Avatar for puneet jayee
0
1K
Member Avatar for techstu

can anyone tell me how to read from a text file, line by line....

Software Development
Member Avatar for Szpilona
0
92
Member Avatar for MeetMak

hey all, I have a class, called myClass.vb. I have a sub in it. this sub has a string variable, which has got some value. Now, i want this value to be transferred to the button_click event of a very seperate form called myForm.vb. how can this be done? Thanks …

Software Development vb.net
Member Avatar for samxcui
0
118
Member Avatar for sharathk60

Please inform me can we use C programming in all OS of Mobiles . Like J2ME, Symbian, I Phone, Apple..

Software Development apple c
Member Avatar for Ancient Dragon
0
140
Member Avatar for jsan

Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; how will the above code change when used in a website.. plz do reply fast..:'(its very urgent

Software Development
Member Avatar for kvprajapati
0
108
Member Avatar for zolakt

Hi, I'm having a lot of problem making a SAOP client in Python. I have tried various methods, but non of them seems to work for me. I have a .Net web service, available from an IIS server on another machine. I can access it trough browser, and everything works …

Software Development api client-server python
0
102
Member Avatar for dmr215

I am kind of new to c++, i usually code in java and php. This is a program that is supposed to read in an input file with very strict syntax that will either create a new stack/queue (implemented subclasses of simpleList), or push a value onto one of those …

Software Development c c# c++ queue
Member Avatar for tintin.iitk
0
165
Member Avatar for ShortYute

Basically, I formulate the website name using the version information ( IDE codeblocks SVN 6088, using autoversioning plugin ) and launch the website using *gasp* CMD... the problem is I don't want to launch a web page because ... i just want to check for updates... Also I don't really …

Software Development c ide
Member Avatar for ShortYute
0
146
Member Avatar for techstu

[QUOTE][CODE]using System; using System.IO; using System.Xml; namespace Task3 { class TextFileReader { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); String strn, strsn; while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. if (reader.HasAttributes) { //Console.WriteLine(reader.GetAttribute("reader.Name")); strn = reader.GetAttribute(0); strsn = reader.GetAttribute(1); //Console.WriteLine(strn); …

Software Development xml
Member Avatar for techstu
0
142
Member Avatar for n.utiu

I have been recently experimenting with Python embedding, but I stumbled across some problems. [CODE]#include <python3.1/Python.h> int main (void) { Py_Initialize (); PyRun_SimpleString("print (\"Hello World\")"); Py_Finalize (); return 0; } [/CODE] As you see it is not the most complicated code :). I have compiled in Code::Blocks using g++. I …

Software Development c++ python
Member Avatar for n.utiu
0
723
Member Avatar for subhaoviya

how this err.raise is working, when we are writing like Err.Raise Err.Number, Err.source, Err.Description what happends here? where the errors are get captured?, where to find the err num,source and description? thanks subha

Software Development visual-basic
Member Avatar for AndreRet
0
3K
Member Avatar for Roberto9

so what i have is a list of lists each individual list is a list of cards cards1 = [AS, 10H, 3D, ...ect.] cards2 = [4H, KS, 6S, 9D,....ect] ColumnList = [cards1, cards2, cards3...etc] It should print out a spider solitare tableau, but as you play the game, this columns …

Software Development python
Member Avatar for TrustyTony
0
238
Member Avatar for gregarion

Hey guys, i was looking through the internet for ways on how to solve converting roman numerals into integers and i found this method which is confusing me as im not able to understand it. [CODE]using namespace std; int main() { char rom; int n = 0; int tot = …

Software Development c++
Member Avatar for gregarion
0
109
Member Avatar for digitalsindhx

I Applied same Code on a dummy form, it worked, but when i tried it on to a Genuine <Purchase> form on which I want to work, it is not updating record, even every code Syntax is same bit by bit, i cant know where i m doing mistake, whether …

Software Development vb.net
0
289
Member Avatar for lotrsimp12345

so far I can't figure out a way to write powerset in SML :(. I see a pattern for example powerset([1,2,3]) is [] [1] [2] [1,3] [3] [1,2] [2,3] [1,2,3] Here's what I have come up with: fun add(a,L)= [a]@L fun ps(L)= ps(tl L)@add(hd L, ps(tl L)); Any help appreciated.

Software Development
Member Avatar for lotrsimp12345
0
80
Member Avatar for tikoti

Hi all, I've been working with C semaphores for a while using shared memory (ftok, semget, semop, semctl) and it works perfectly. However, I was wondering wether using these structures all processes are protected against starvation. I have made several tests with nearly 200 processes sharing a binary semaphore and …

Software Development c++
Member Avatar for tikoti
0
86
Member Avatar for betabasic

Sir.. I want to get the values from web pages using vb.net.. [U]THIS WORKS![/U] [CODE] [B]PHP[/B] <input type="text" name="sample" [B]id[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="Green"]GetElementById[/COLOR][/B]("sample").GetAttribute("value")[/CODE] but.. what if there's no [B]id[/B]. [CODE] [B]PHP[/B] <input type="text" [B]name[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="red"]GetElementById[/COLOR][/B]("sample").GetAttribute("value") ??? it cant read the value since …

Software Development vb.net
Member Avatar for Oxiegen
0
3K
Member Avatar for DawnDenise

Volunteer C++ Gurus. Thank you in advance for your time. This site has saved my sanity. I am working with my longWords function and cannot get it to stop displaying the same value (2293264). I know that my code is a little janky because I modified it from array format …

Software Development c++
Member Avatar for mattjbond
0
160
Member Avatar for hao90

sorry that i don't know i post on a correct place or not..=D my question is: How can i use the adjacency matrix like A B A 0 1 B 1 0 and write it to form of adjacency list like A -> B B -> A Hope you all …

Software Development c++
Member Avatar for hao90
0
98
Member Avatar for TomD22

Hey, I am trying to use Tkinter to provide a gui to a simple python script. No matter what I try, my tkinter window always ends up maximised, filling the entire screen. Specifying the height and width has no effect. I have tried a simple label, and tried putting the …

Software Development gui python tkinter ubuntu window-manager
Member Avatar for SgtMe
0
580
Member Avatar for chrisb76

I am having multible problems with my code. Here is what it is supposed to do: Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, …

Software Development java java-swing user-interface
Member Avatar for stultuske
0
102
Member Avatar for Anarionist

I'm trying my best to learn linked lists but am having a difficult time understanding them exactly any way debugger returns SIGSEGV Debug Info: [code] Registered new type: STL String Registered new type: STL Vector Setting breakpoints Debugger name and version: GNU gdb 6.7.50.20071127 Child process PID: 1572 Program received …

Software Development c++
Member Avatar for Anarionist
0
88
Member Avatar for ankit894u

[CODE]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { fstream filestr; for (int i=1; i<=17771;i++) filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app); filestr.close(); system("PAUSE"); return EXIT_SUCCESS; }[/CODE] guys i m trying to create multiple text files to the …

Software Development c++
Member Avatar for ankit894u
0
275
Member Avatar for George2

Hello everyone, Are there any approaches to invoke Java libraries from C/C++? Thanks in advance, George

Software Development c++ java
Member Avatar for hasrule
0
532
Member Avatar for aomran

I am getting Exception in thread "main" java.lang.nullpointerException on line 113,92,200, need help [CODE] // heap.java // demonstrates heaps // to run this program: C>java HeapApp import java.io.*; // //import java.util.Scanner; class Node { private int iData; // data item (key) // ------------------------------------------------------------ public Node(int key) // constructor { iData …

Software Development java
Member Avatar for aomran
0
148
Member Avatar for rickster11

If anyone can take a second to view my code, I would really appreciate it. I've been working on this for days. I think I am so so close. Its the Knights Tour (Knight must move to every spot on board without moving to one spot twice). It breaks when …

Software Development c++
Member Avatar for rickster11
0
175
Member Avatar for acos.carlos

Hi. So i have to do the program where we read from a file a certain amount of numbers(not more than 100), and then perform either a bubble or selection sort and a linear or binary search. I wrote the thing down and it read fine, but I can't get …

Software Development c++
Member Avatar for WaltP
0
124
Member Avatar for jprogram

Ok, so I have some code from my HugeInteger problem again. Like the title says this is totally backwards. I keep getting the exact wrong result than what should be given. I could probably sneek by the graders with it, but now it is really got me wondering. When I …

Software Development c++
Member Avatar for WaltP
0
96
Member Avatar for Duker

The page: [url]http://tldp.org/HOWTO/Bash-Prompt-HOWTO/setps.html[/url] shows the best place to change the shell prompt (which is .bashrc). However, the previous page of that document has a lot of escape sequences offered by the Bash shell for insertion in the prompt (From the Bash 2.04 man page) I found that \w (the current …

Software Development perl shell-scripting
Member Avatar for Salem
0
211
Member Avatar for sportsguy90

Hey all. I'm having trouble developing an order program. Basically I have to compare two files, and validate that one equals the other. I have figured out how to determine whether the order data is valid or not, but i'm unsure how to go about writing out which pieces of …

Software Development c++ ios
Member Avatar for WaltP
0
133
Member Avatar for tomkaczocha

Hey guys, I've got a struct array in a header file and at least two pieces of code that access that array. How do I schedule access for read and write events to that array. Where do I place my mutex_lock & unlock code? Thanks for your help, Tom header …

Software Development c
Member Avatar for tomkaczocha
0
107
Member Avatar for mommie

Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look …

Software Development algorithm c++
Member Avatar for WaltP
0
95
Member Avatar for tomkaczocha

Hi everyone, I'm trying to get the current time with this function and it's working fine, but, I'm getting the following warning when I compile with gcc 4.4.3 on Linux: [B]warning: incompatible implicit declaration of built-in function ‘strftime’[/B] I've tried using literals for maxsize and format, but that didn't help. …

Software Development c
Member Avatar for tomkaczocha
0
573
Member Avatar for crodriguez08

Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't …

Software Development c++ file-system
Member Avatar for crodriguez08
0
352
Member Avatar for tonymuilenburg

Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, …

Software Development asp.net c++ visual-studio
Member Avatar for tonymuilenburg
0
177
Member Avatar for PDB1982

First off, I'm not looking for any code or code suggestions, I just want to pass this by some people before I have to submit the idea to my professor. I want to know if this sounds like a good beginner's project for .NET: title: Music Identification Tool Actions: Users …

Software Development vb.net
Member Avatar for CSherman
0
96
Member Avatar for shubhamshah

Hey guys , im creating a messenger via VB.NET Using eBuddy, I need to have a status and in the status i need it to update every second. The status is in label3 and i tried to put this code on form load but it doesnt change constantly only once. …

Software Development vb.net
Member Avatar for shubhamshah
0
136
Member Avatar for wyett

Alright, I'm trying to generate an ODD random number between 1 and 8. [CODE] Do While (i < 4) box(i) = randomObject.Next(1, 8) Do While (flag = 0) If (box(i) Mod 2 = 0) Then k = 0 box(i) = randomObject.Next(1, 8) If (box(i) = box(k + 1)) Then box(i) …

Software Development vb.net
Member Avatar for wyett
0
126
Member Avatar for stryker4526

Alright I'm having a heck of a time figuring out what's wrong with this code. It throws an error of [quote]Error 1 'System.Collections.Generic.Dictionary<Assignment7.Station,int>' does not contain a definition for 'ElementAt' and the best extension method overload 'System.Linq.Enumerable.ElementAt<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' has some invalid arguments7[/quote] However, when I was writing the code I …

Software Development c# linked-list
Member Avatar for stryker4526
0
678
Member Avatar for jprogram

I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know …

Software Development c++
Member Avatar for Ancient Dragon
0
94
Member Avatar for jpob

Hey, i am new to python. I am making a translator in python 2.6 using basic commands. The translator is english to german. I need to use a i need to use a text file like this... at an brown braun cat raze etc. so far i have created lists …

Software Development python
Member Avatar for jpob
0
263
Member Avatar for fugnut

My first attempt at 2-dimensional arrays is not working out so well. We are to simply initialize an array and print out the results. My problem is that the data contains text and numbers.....column header is car color, row header is car make. I am getting error for lines 19 …

Software Development c++
Member Avatar for u8sand
0
182
Member Avatar for sadsack

Hello, I am new to this forum and would like to say hi to every one. My name is renny. Now I hope someone can tell me what I am doing wrong. I dave devC++ and when i compile my code then run it, a window comes up and goes …

Software Development c++
Member Avatar for Ancient Dragon
0
215
Member Avatar for jephthah

gcc supports an extended precison "long double" type typically 10 or 12 bytes but Windows XP always maps the "long double" to the standard double (typically 8 bytes) MinGW on windows XP thinks it has a 12-byte "long double" but in fact it only has the 8 byte support on …

Software Development c windows-vista
Member Avatar for Ancient Dragon
0
215
Member Avatar for DawnDenise

I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are …

Software Development c++ display
Member Avatar for DawnDenise
0
164
Member Avatar for makybe

Conversion Problem Formatting QBASIC to VB6 I am having real problems converting PRINT Using statements in Quickbasic to Printer.print statements in VB6. Is there a good book which outlines the method of formatting numbers and/or text in VB6 as I am on a merry goround trying to decipher M/S explanations …

Software Development printer visual-basic
Member Avatar for makybe
0
353
Member Avatar for dilbert_here00

Hi All, Is there any python module which provides the capability to connect & configure WiFi on Microsoft Windows? Thanks

Software Development microsoft-windows python
Member Avatar for jcao219
0
91

The End.