43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for thriek

Hey, im in need of a little help... im trying to have my .exe show an image with sdl, wait 2500 milliseconds, close the image and then return to the black console screen with my cout statments and whatnot appearing. But instead when i exit sdl, the whole program exits. …

Software Development c++ image
Member Avatar for thriek
0
411
Member Avatar for synxmax

Dear Guys I want to start creating mobile based applications and i am newbie in this field , where should i start , how to create a simple application jar file which can run on mobile devices , for example a simple interface with buttons , sound handling , graphics …

Software Development java web-design
Member Avatar for synxmax
0
154
Member Avatar for nahmartin

Hello Most of my C++ is self taught so please excuse me In my code I am writing a large amount of data to file [CODE] for(int i=0; i<itr_atoms; i++) file_out << i+1 << " 1 " << atoms[i][0] + origin_x << " " << atoms[i][1] + origin_y << " …

Software Development c c# c++
Member Avatar for nahmartin
0
195
Member Avatar for SubatomicRhythm

Im trying to work out how to do a project called pig latin in vb.net 2003... so far I've gotten it to work for a single word. If there are spaces it still acts like there is only one word with the rules (ex: monkey stuff = onkey stuffmay) I …

Software Development vb.net
Member Avatar for apegram
0
173
Member Avatar for hkBattousai

A most basic TCT connection is established with the code below: [CODE]// Initialization IPEndPoint m_IpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.71"), 5000); Socket m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); NetworkStream m_Stream = new NetworkStream(m_Socket); // Read/write operations m_Stream.Write(System.Text.Encoding.ASCII.GetBytes("Hello world!"), 0, 12); byte[] read_buffer = new byte[4096]; m_Stream.Read(read_buffer, 0, 4096); // Closing open resources …

Software Development c# socket-programming tcp-udp
Member Avatar for mcriscolo
0
349
Member Avatar for beforetheyknew

Hi guys, I'm still learning java and to code in general. How would i take a word, open a web browser, and define the word in google ? Is that even possible ?

Software Development java web-browser
Member Avatar for jwenting
0
102
Member Avatar for kevintse

Hello, everyone. I have a question to ask. According to The C++ Programming Language (3rd. Ed.) by Bjarne Stroustrup on page 405: "Members declared [COLOR="Red"][B]protected[/B][/COLOR]are far more open to abuse than members declared [COLOR="red"][B]private[/B][/COLOR] . In particular, declaring data members protected is usually a design error. Placing significant amounts of …

Software Development abuse c++ data-structure microsoft-access
Member Avatar for kevintse
0
1K
Member Avatar for darab

Hi Friends I have about 10 hour recorded sound and now i need when user click in one button from that sound minutes of 6:45 play and then after 5 second it stops how i can do it(not from at the beginnig i want it start from 6:45 reapet not …

Software Development
Member Avatar for kvprajapati
0
132
Member Avatar for pritesh2010

how to disable menu strip sub items in vb.net application.

Software Development vb.net
Member Avatar for kvprajapati
0
110
Member Avatar for DarkT

Hi everyone. We were given a homework to code a hash table. The objects and their members were given by our professor and we were only supposed to implement the functions (Add, Remove, Contains and Print), so I shouldn't change the objects. I should also do a copy constructor and …

Software Development c++
Member Avatar for DarkT
0
2K
Member Avatar for amby

i want to convert string into byte....this can be done in vb.net..can somebody help me in doing this in vb6.0..here the simple code.. Private Sub Form_Load() Dim str1 As String Dim i As Byte i = CByte(Val(str1)) Text1.Text = i End Sub but this code still not able to convert …

Software Development vb.net visual-basic
Member Avatar for boopathi33
0
314
Member Avatar for SecurExpert

Hi guys, I gat a VB project for a hospital information management system, almost in completion. The issue is that, i want it to collect information from the user installing it. Information like maybe the database name, etc and the likes, you know relevant information necessary for the program to …

Software Development vb.net
Member Avatar for SecurExpert
0
135
Member Avatar for himit

Hi, I am trying to parse an xml which i am getting in a variable in my xsl. till the time i do not have any namespace in my xml i can parse all the tags of my xml from my xsl, however, for any tag with a namespace i …

Software Development xml
Member Avatar for himit
0
123
Member Avatar for teg1989

I'm an extreme beginner with Python (this game is the first time I have ever seen it) so please bear with me. Creating a simple dice game. Place a bet. Three dice are rolled, if any are the same value you lose. If you win, you get double your bet. …

Software Development python
Member Avatar for ~s.o.s~
0
2K
Member Avatar for 3cats

I have looked around on this forum and none of the past posts really addressed my issue. I created a .txt file with cust no first and last name. I open the file and read in the first line of the file, this part works well. And it displays to …

Software Development c++ file-system
Member Avatar for 3cats
0
168
Member Avatar for mahela007

I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine …

Software Development puzzle python
Member Avatar for mahela007
0
366
Member Avatar for white feather

[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated

Software Development java
Member Avatar for BestJewSinceJC
0
152
Member Avatar for drummy

Greetings community, I've exhausted all ideas and patience and turn to the community at large for help. I have data formatted as an ASCII text file with easting, northing, and depth fields. I've attempted an arrayList with some success, but there has to be a better and more efficient approach. …

Software Development vb.net
Member Avatar for drummy
0
170
Member Avatar for chec13

Hello, I just started trying to learn c++ a few days ago. Right now I have run into probems, which, has always happened when I try to learn a programming language. Can anyone help me fix this simple multiplication program? [CODE]#include <iostream> int Multiply27( first, second) { cout << "in …

Software Development c c# c++
Member Avatar for chec13
0
167
Member Avatar for Naloth

I'm getting errors at every occurrence of my void definitions. "expected primary-expression before "void"" and "expected ';' before "void"" at my "void displayMenu ()" "a function-definition is not allowed here before '{" token" "expected ',' or ';' before '{' token' " At every future occurrence of void. Any ideas? I've …

Software Development c++ data-structure ios open-source
Member Avatar for Naloth
0
162
Member Avatar for g2gayan

Hello,.. Im a New Guy to this forum and 1st of all;... Hi :twisted: im a newbie to c# programming as well ,,, anyway.. i have a huge issue .. here is what s going to happen.. [CODE] if (txtPath.Text != "") { FileInfo fn = new FileInfo(txtPath.Text); string p …

Software Development file-system
Member Avatar for g2gayan
0
370
Member Avatar for gnarlyskim

I'm working (well have been for the past few weeks) on a polynomial class to do different things between two polynomials: multiply, divide, get remainder, subtract, add. The coefficients are stored in a pointer to an array listed under private and the degree (also the amount of slots in the …

Software Development c++
Member Avatar for gnarlyskim
0
88
Member Avatar for Sthe

Hi guys I'm completely new to programming, but would like to learn how to create crosswords in j2me, can someone help me with a source code...thanx:)

Software Development java
Member Avatar for peter_budo
0
127
Member Avatar for pinsickle

Probably a dumb question but, How can you tell if a "split" has occurred all the way up a btree? Would it be that the parent pointer would be NULL? Like I said probably a dumb question. I've got my BTreeNode class working (including the add) but the BTree class …

Software Development c++
Member Avatar for pinsickle
0
118
Member Avatar for God Coder123

I'm new to the code blocks ide. How exactly do i change the colours within the code window? Also how do i make code blocks portable as i use it on a number of different computers. any help would be much appreciated >_<

Software Development c++ ide
Member Avatar for God Coder123
0
387
Member Avatar for ultimatebuster

[CODE] # What exactly is the difference between: class Test: pass # and class Test2(object): pass [/CODE]

Software Development python
Member Avatar for vegaseat
0
81
Member Avatar for SgtMe

Let's say I have this: [CODE] class main: def add(self): print '1 + 2 = 3' [/CODE] I then want to be able to call the add function again from within itself. Like this (BUT THIS DOESNT WORK!!!) [CODE] class main: def add(self): print '1 + 2 = 3' self.add() …

Software Development python
Member Avatar for SgtMe
0
82
Member Avatar for jkrause

Hi all! I have two combo boxes: cboRepairCategory (plumbing, landscaping, etc) and cboVendors. I am using Stored Procedures in SQL to store the data from my database and then load them into the combo boxes. The cboRepairCategory will be loaded first. Once the user has selected what type of repair …

Software Development vb.net
Member Avatar for jkrause
0
122
Member Avatar for Noliving

When eval an equation does it follow the PEMDAS rules? For example: 2.0-1.0-3.0*6.0+5.0*4.0 when evaluated equals 3.0 when evaluated by python. To me that doesn't seem correct, I get a much larger number than 3.0 When I evaluate in python eval("6/2*3") it should equal 1 but in python it equals …

Software Development python
Member Avatar for Tech B
1
211
Member Avatar for john_prince

Hi, I've a csv file consisting of two columns - one with "Last Name" and other with "Email Address". I would like to match Last Name ( not an exact but a contain match), and if didn't match, populate third column with "0". Does anyone has a perl script to …

Software Development perl
Member Avatar for john_prince
0
107
Member Avatar for Xufyan

how can i add the last value to the current value using loop..? i tried so much but didn't find the answer :( [CODE]void main(void) { int numbers,add,sec; clrscr (); for (numbers=1;numbers<=49;numbers++) { for (sec=numbers;sec<=numbers;sec=numbers+sec) printf ("%d ",sec); } getch(); }[/CODE] here the loop is from 1 to 50, i …

Software Development c
Member Avatar for Xufyan
0
102
Member Avatar for fyp

how could I creat a file at desired folder? Below is my code and what I want to do is 1)I open the "newfile1.txt"and read the first line(e.g Cat) from this file 2) and then create the Cat.txt at "C:\user\user\Desktop\history" Currently, I could creat Cat.txt at the folder where my …

Software Development c++
Member Avatar for fyp
0
104
Member Avatar for ttboy04

I am trying to override setColour in the subclass callled ObjectB in the public void setColour(Colour xColour) method. So the OBjectB cannot change to purple. Can you see where I have gone wrong because the ObjectB is currently changing to purple colour. Please reply only if you know the answer. …

Software Development java
Member Avatar for ttboy04
0
93
Member Avatar for Obsidian_496

Hello. I have a small problem in my home assignment. A neverending loop occurs, if user enters everything but digits, when I expect him to enter only digits. How do I allow only int type variables to be entered by user? The value user enters is the index number of …

Software Development c++ linked-list
Member Avatar for Fbody
0
183
Member Avatar for DaveTran

[CODE] for (int i = 0; i < 10; ++i) { i > 5 ? MethodA(i) : MethodB(i); } [/CODE] When trying to do the above I get this error [I]Type of conditional expression cannot be determined because there is no implicit conversion between 'void' and 'void' [/I] Does this …

Software Development
Member Avatar for DaveTran
1
1K
Member Avatar for thuyson

[CODE]private void button1_Click(object sender, EventArgs e) { string m1; m1=cbmanganh.SelectedValue.ToString(); myds1.DSPT.DefaultView.RowFilter = "MaNganh='"+ m1 +"'" [COLOR="Red"]and[/COLOR] "Nam ='" +tbnamhoc.Text + "'" [COLOR="Red"]and[/COLOR] "HocKy ='" + tbhocky.Text + "'"[COLOR="Red"]and[/COLOR] "KhoaHoc= '" +tbkhoahoc.Text + "'"; dataGridView1.DataSource=myds1.DSPT.DefaultView; }[/CODE] error: expected ";" after each "and" Thank you so much!

Software Development
Member Avatar for kvprajapati
0
80
Member Avatar for abar_sow

I need a java code for downloading files from the internet ..For example I want to download doc,pdf files from the internet means i have to do it through my code ..So can anyone help me

Software Development java pdf
Member Avatar for peter_budo
-1
889
Member Avatar for ceyesuma

Hello and thanks in advance for your time. Trying to learn how to throw App Exceptions. Is there any way to get this exception from properties so I can pass it to a JOptionPane? Model Resources UserException=Subscription failed. \ Please try another email address. ProfileException=Must Select a Profile \ UnenrollException=Unsubscription …

Software Development java java-netbeans
Member Avatar for ceyesuma
0
120
Member Avatar for ygarin

Hi everyone! I wrote a Python 2.5 application, with GUI from Tkinter module. To make it short, the user has to load a file and can start to work on it. I made it Windows executable with py2exe, and installable with Inno, with a file association setting. So now, if …

Software Development file-system gui python tkinter
Member Avatar for Gribouillis
0
410
Member Avatar for jemz

hello can you help me when i click the add button it will not add to the database.it will generate an error..can you help me please hoping for your positive responds...here's my code,please see my attachment.... [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.JPanel.*; import java.sql.*; public …

Software Development java java-swing
Member Avatar for jemz
0
210
Member Avatar for jemz

hello please help me on this i don't know how to trap the duplicate id_no..example if i have already added this id_no H-1010..then if i input again it should prompt that id_no is already exist on your database..please help me on this..hoping for your positive responds ..thanks in advance

Software Development visual-basic
Member Avatar for jemz
0
144
Member Avatar for LMat619

Hello everyone! I am new to this forum (and C programming) but I hope that I will be able to master C help anyone out with problems in the coming months. But I am having trouble with my own program for an assignment. I am asked to simulate a user …

Software Development c
Member Avatar for WaltP
0
249
Member Avatar for bigdawgg

I am attempting to write some code that will open a sequintal file into arrays and will then can use the data to calculate monthly payment. the text file is as follows 1 5 10 20 50 2.5 4.1 5.3 7.1 8.3 With the top row being yrs and bottom …

Software Development c c# c++
Member Avatar for jwenting
0
191
Member Avatar for Hummdis

I'm using Python and the Python CGI module to do some web development for a system's administrative access page. The problem I have is that the current features allow you to reboot the system, power off the system and stop/start/restart system services. The system is very limited in what's running …

Software Development apache python
Member Avatar for Hummdis
0
375
Member Avatar for kjock002

i'm writing a program that reads the lines of a file. each line has a name and and number separated by one space. i want to split the string but i only want the number because i'm using it in calculations. i've skimmed through the python docs and i'm still …

Software Development python
Member Avatar for TrustyTony
-3
232
Member Avatar for adam321

[CODE][/CODE] def Given(rn): Given_lengths = [0] * 1000000 def rn2(n): if not Given_lengths[n]: Given_lengths[n] = rn(n) return memoized_lengths[n] return rn2 def cycle_length(n): if n == 1: return 1 if n % 2: return cycle_length(n * 3 + 1) + 1 return cycle_length(n / 2) + 1 def problem(i,j): for x …

Software Development python
Member Avatar for jcao219
0
175
Member Avatar for nici0306

I have three classes in the program. This is a part of my assignment. I am doing it for the first time; so you might find something stupid in there.. as i have just tried to get the output my way or based on the assignment requirements. I have one …

Software Development client-server java
Member Avatar for nici0306
0
167
Member Avatar for prashanth s j

Hi all, I tried running the following code. [code] #! /usr/local/bin/python import threading import time print "Press any key to start timer!" input() threadBreak = False def TimeProcess(): while not threadBreak: print "How are you?" print (time.time() - startTime) startTime = time.time() threading.Thread(target = TimeProcess).start() input() threadBreak = True input …

Software Development multithreading python
Member Avatar for woooee
0
116
Member Avatar for lwschjang

I'm pretty lost on this. I have no idea how to get my program to work. Basically, when an option is selected a price should show up in the text box automatically. Thank you all for your help. Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JComboBox cannot be cast to javax.swing.JTextField at …

Software Development java java-swing
Member Avatar for lwschjang
-1
4K
Member Avatar for thriek

ok I'm confused... my class is empty, apart from an inclusion file, but has alot of errors that i cant understand.... Here's the .h file: [CODE] #ifndef creator #define creator #include "stdafx.h" class creator { public: creator(); ~creator(); } #endif [/CODE] And here's the cpp file: [CODE] #include "creator.h" creator::creator() …

Software Development c++ visual-studio
Member Avatar for Nick Evan
0
12K

The End.