132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pseudorandom21

I'm trying to draw a "selection box" with a Graphics created with an HDC to the PrimaryScreen, but it doesn't appear to update properly, as in when I draw something it tends to stay there. Am I doing something wrong, or is there something I'm not aware of? [disregard] Actually …

Software Development
Member Avatar for pseudorandom21
0
111
Member Avatar for buster2209

I'm trying to run simulataneous do while loops but whichever loop is reached first is run and the other isn't. Here's my code; [CODE]namespace sync { public partial class Form1 : Form { int s = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, System.EventArgs e) { s …

Software Development
Member Avatar for Mitja Bonca
0
138
Member Avatar for sim08u

Hi guys this is the first time ive posted to this forum, and ive tried getting my answer by asking others and google, but what i'm after is to complete an assignment that is asking me to complete a program that basically works as an ATM machine. it reads in …

Software Development c++
Member Avatar for raptr_dflo
0
3K
Member Avatar for juan92

so i am trying to learn java on my own as a hobby, because well i didn't see my self doing this for a living, and i did terrible in the class, so i am going over the text book again, and starting from scratch. i am not sure if …

Software Development java
Member Avatar for juan92
0
97
Member Avatar for hemaaaa

Hi there, I have this long Q and I must solve it to get bouns or i will fail :( Develop a statistical program to compute the famous statistics. First, create a text file, data.txt, contains several observations. Then write a java program that displays the following menu: Main Menu …

Software Development java
Member Avatar for NormR1
0
185
Member Avatar for eskimo456

Hi there I am having a frustrating and strange problem. I am building a particle system. As a result I need particles to reset there variables to be reintroduced into the system. I have had it working in the past. I run through the system once, when the particles pass …

Software Development c++
Member Avatar for eskimo456
0
152
Member Avatar for JordanHam

I have a basic questions. I have written a program in C++ and I would like to create a GUI for it. I have a book Microsoft Visual Basic C++.net that has a great tutorial, but its in clr/c++. Is it possible to program a GUI in this language in …

Software Development c++ gui visual-basic
Member Avatar for drkybelk
0
197
Member Avatar for Labdabeta

I am having some major issues with OpenGL textures. I have the following code to load a glTexture (typedef ed as a GLuint): [CODE]glTexture LoadBMP(const char *fname) { HBITMAP hBMP; BITMAP BMP; glTexture texid; glGenTextures(1, &texid); hBMP=(HBITMAP)LoadImage(GetModuleHandle(NULL), fname, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE ); if (!hBMP) return NULL; GetObject(hBMP, …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
226
Member Avatar for winecoding

I have a java project, which runs fine on eclipse. Right now, I need to run it from command prompt, like java classpath ... How to setup this classpath based on the stored ones using in Eclipse.

Software Development java
Member Avatar for jon.kiparsky
0
264
Member Avatar for srw0801

Hello, so I've been working on a simple Tic Tac Toe game using TKinter graphics GUI. However i keep getting this error, and i'm not sure why. Any help would be greatly appreciated. Heres the code [CODE] import graphics import random def constructBoard(): win=graphics.GraphWin("Tic Tac Toe",500,500) win.setCoords(0.0,0.0,3.0,3.0) line1=graphics.Line(graphics.Point(1,0), graphics.Point(1,3)).draw(win) line2=graphics.Line(graphics.Point(2,0), …

Software Development gui python tkinter
Member Avatar for woooee
0
309
Member Avatar for JSS540

Hi, I have a jFrame with a couple of jLabels, designed in Netbeans so most of the code is generated. If I want to change the text of the label, I use .setText() inside my jFrame and it works great. Now here's the problem. If I just make a String …

Software Development gui java java-netbeans
Member Avatar for JamesCherrill
0
1K
Member Avatar for thetwig

I wrote a small program to demonstrate a problem im having with a bigger one so you dont have to look thru so much code. I'm having problems when I convert a double to an integer. [CODE]#include <stdio.h> #include <stdlib.h> int main(void) { double dNum; int iNum; char sNum[15] = …

Software Development c
Member Avatar for thetwig
0
208
Member Avatar for BleepyE

Sorry guys if Im repeating myself here, but ive search through the first page of search results and didnt find what I was looking for. Basically, I need to create a Multi-Tabled Database, anyone of you who are familiar with Access will know you can use forms to browse through …

Software Development vb.net
Member Avatar for dxider
0
172
Member Avatar for ayoba01

hello i want to know how to change the text alignment example text from left to middle in listbox also i would like to know how to make the text appear automatically when i run the program example in listbox "Welcome To Atm Machine" that's the problem thanks everyone

Software Development vb.net
Member Avatar for dxider
0
115
Member Avatar for C:\>

I need to run a javascript page from my app and receive the page that results from the script on a String. This is my code: [code=java] try { URL testurl = new URL("http://www.site.com/page.html"); try { String s=testurl.getContent().toString(); System.out.println(s); } catch (IOException ex) { Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex); } } catch …

Software Development http-protocol java
Member Avatar for NormR1
0
140
Member Avatar for C:\>

I have URL like this: [code]http://www.site.com/app/index.html#secret_code=gagh362%%23atg._f46&other=5449[/code] I need to pass gagh362%%23atg._f46 part to a string. All the examples i find are for simple PHP parameter parsing and i'm having difficulties to adapt them to this case. Can someone help?

Software Development java
Member Avatar for C:\>
0
135
Member Avatar for arshi9464

i was going thru an column in a book, which says:- For both classes and structs, you use the keyword new to declare an instance. This keyword creates the object and initializes it. Now if we use new operator for structures, then why is it not stored on heap???? I …

Software Development
Member Avatar for abelLazm
0
99
Member Avatar for ecinevenice

I'm making an application associated with MS access for its database... I set one of the field to text and the other to object for images..but the object suggest to insert pictures through paint.. [COLOR="Red"]Is it possible for animated images(gif) in ms access? I'm getting stuck with bmps... [/COLOR] -------------------------------------------------------------------------------- …

Software Development microsoft-access vb.net
Member Avatar for ecinevenice
0
320
Member Avatar for anandunics

Hi All, <client> <description>KKR</description> <rits>Test</rits> <time_zone_code>US/Central</time_zone_code> <directory_code>Foler</directory_code> </client> I need to fetch the above and put it in the form HTML FORM. Note : Must make use of Xpath,(Identity Transformation)

Software Development xml
Member Avatar for anandunics
0
207
Member Avatar for shena

Hi all, I would like to format a column in datagrid with 2 conditions. The column must be entered with only "N/A" or date (DD-MMM-YYYY) format value. [CODE] If Me.grdDataGrid.DataFormats(10).Format <> "N/A" Then MsgBox "Invalid Data Entry!", vbInformation Exit Sub End If[/CODE] The code above still produce "Invalid Data Entry" …

Software Development visual-basic
Member Avatar for shena
0
2K
Member Avatar for flebber

I want to compare a list of files with extension .rtf in my directory with a list of files at a given url and download the files at the url not found in my directory. This is where I am at but cannot figure how to filter a list based …

Software Development python
Member Avatar for TrustyTony
0
353
Member Avatar for ChrisHunter

Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too. Is this possible ? if so can anyone suggest any ways to do this …

Software Development c#
Member Avatar for ChrisHunter
0
124
Member Avatar for solomon_13000

The result for the code below is "ex [6, 7, b, d] [6, 7, b]". Therefore I am wondering how did the exception take place and why is the value 3 missing? [CODE] import java.util.*; public class Exam6 { public static void main(String[] args){ TreeSet<String> t1 = new TreeSet<String>(); TreeSet<String> …

Software Development java
Member Avatar for JamesCherrill
0
124
Member Avatar for Osas106

good day all am osagie by name. i have just developed my first mfc app. now i want to go ahead to sell it to people. but : 1.how can i write a batch or whatever that will automate d installation of this product? 2. i also want to implement …

Software Development c++ cpanel
Member Avatar for abelLazm
0
86
Member Avatar for cppgangster

Hi dudes, I currently learning mfc and I wrote a modeless dialog canculator app for my job. As soon as I tried to launch the app I get error msgbox saying "inoretly installed app.."(the exe file was copied to another conputer). My target OS is xp 32, while I am …

Software Development c++
Member Avatar for cppgangster
0
164
Member Avatar for TrustyTony

This I did also after 'spying' discussions in other forum. Of course you would use sieve prime generation for bigger numbers, but I proved other simple way for a change. Slightly more advanced primes list generator would use primes % 6 in (1,5) property: [CODE]def primes(n): """ primitive non-sieve prime …

Software Development mathematics python
Member Avatar for TrustyTony
0
750
Member Avatar for neoseeker191

I'm getting an "Object reference not set to an instance of an object" error with this line of code: [code] t1.FindNode(rs.GetString(4)).ChildNodes.Add(node); [/code] Here is all of the code: [code] using System; using System.Data; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration; using System.Data.SqlClient; namespace TreeViewProject { public partial …

Software Development asp.net sql
Member Avatar for abelLazm
0
207
Member Avatar for jimJohnson

I have a program due tonight and the GCD keeps returning a 0 but when I change the following to like 2 or 3 instead of 0 it will return a 2 or 3 for gcd so something is not passing right. Can someone please show me what I need …

Software Development c++
Member Avatar for jimJohnson
0
187
Member Avatar for SCass2010

Hi everyone, I've recently started learning C++ and was wondering does anyone know any good networking tutorials for C++? I've tried searching but alot of them seem to be a bit over-complex - I've done network programming with Java in uni and a good bit of C++, but was hoping …

Software Development c++
Member Avatar for Mouche
0
216
Member Avatar for Swiftle

Hi! I'm trying to use a base class derivative in another derivative class constructor but it's not working. Here's what I have: [CODE] class A { ... }; class B : public class A { ... }; class C : public class A { C(A objA); } [/CODE] However when …

Software Development c++
Member Avatar for Mouche
0
197
Member Avatar for mwjones

I'm running into a snag using the [B]_emit[/B] pseudoinstruction, but more accurately a snag using the C preprocessor. I have an array of op codes from which I want to randomly select one and _emit it into the program's code. Here is an example: [CODE]unsigned char opcodes[] = { 0x60, …

Software Development c c# c++
Member Avatar for mwjones
0
173
Member Avatar for Thropian

I'm working on a script in python,tkinter that draws a triangle and moves it around the screen. unfortunately I can't get the arrow to move. I've tried using canvas.move() but that wants an x and a y not the set of 3 coordinates I have to make it a triangle. …

Software Development python tkinter
Member Avatar for Thropian
0
2K
Member Avatar for Sevyt

Was wondering, is it possible to create a class which has the majority of your keypress controls? Like allowing just letters or numbers in a textbox etc.... To make things clearer what i exactly want. I have a textbox on my form. This is a textbox for the postcode. The …

Software Development vb.net
Member Avatar for Sevyt
0
234
Member Avatar for kutuup

I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); …

Software Development c++ microsoft-access
Member Avatar for kutuup
0
1K
Member Avatar for meter1060

I need help. I am very illiterate in Python and the like and I have a chunk of code that checks to see if a page updates and then posts it onto a forum. I need to alter it (hopefully) to check to see if an RRS feed is updated …

Software Development python regex
Member Avatar for meter1060
0
215
Member Avatar for ndowens

[code]def cDownload(): print("Enter package name ") sName=input print("Enter download location ") sLocation=input command = "wget http://aur.archlinux.org/packages/" + sName + "/" + sName + ".tar.gz -O" + sLocation + "/" + sName + ".tar.gz" os.system(command) [/code] I get TypeError: Can't convert 'builtin_function_or_method' object to str implicitly

Software Development python
Member Avatar for ndowens
0
311
Member Avatar for ret801

ok someone please explain popen to me it runs subproccesses does this mean it can run programs from within my program? any help would be appreciated , there is not an easily spottable place that explains this. Thanks

Software Development python
Member Avatar for hondros
0
230
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Software Development shell-scripting
Member Avatar for Fest3er
0
136
Member Avatar for montjoile

Why I can't compile without the [B]using namespace std[/B] line? I need to add .h in some libraries in order to being recognized by G++, but some others works without the .h extension. Why is that??

Software Development c++
Member Avatar for Duoas
0
280
Member Avatar for nonshatter

I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB …

Software Development display image perl
Member Avatar for roswell1329
0
610
Member Avatar for BioJavaPhobic

I want to remove all lines in a text file that start with HPL_ I have acheived this and can print to screen, but when I try to write to a file, I just get the last line of the amended text printed in the new file. Any help please, …

Software Development file-system perl
Member Avatar for roswell1329
0
182
Member Avatar for Crono

Could someone explain to me what it returns? int result2 = negative(-3); System.out.println("The final answer is " + result2); [B]public[/B] [B]int[/B] negative(int num){ [B]if[/B](num >= 20){ [B]return[/B] -5; }[B]else[/B]{ [B]return[/B] negative(num + 4) + 2 * num; } }

Software Development java
Member Avatar for mKorbel
0
114
Member Avatar for tawboiid

I am trying to read a long integer value from an Access database, do some math to the number, and save the result back to the database. I've never had a problem doing this with VB6, but with C# it is throwing an error when it tries to Update the …

Software Development c c# c++ cms microsoft-access open-source
Member Avatar for tawboiid
0
2K
Member Avatar for WolfShield

Hello guys, I am pretty new at (good) programming, so I had some pretty bad code I was using until I ran across some code and decided to model my code after it. I have the code so it has no errors, but when I run it (NetBeans) it doesn't …

Software Development file-system java java-netbeans java-swing
Member Avatar for WolfShield
0
148
Member Avatar for RobBobSmith

Hi all: I would be very grateful for advice on an Xcode (3.2.2) problem. I use Mac OS X 10.6.7. I have written C++ code that requires outside code. The outside code 1) requires a license and 2) has dynamic libraries. The outside code does run in a terminal, but …

Software Development c++ ide os-x
0
169
Member Avatar for FoxInBoots

I've tried to search for a simple formula to do this but I can't find any that works for my program. I found this: (n^2+n)/2=sum, n being the last number in the "series", but it only works if the first number is 1(which mine is necessarly not, since you should …

Software Development c++
Member Avatar for FoxInBoots
0
2K
Member Avatar for vanalex

Hello everybody! I have two questions about pointers and would be grateful if someone gave me some help. 1. When we use a table's name as a parameter the table is used as an address (the address of its first element). I mean, when i call a function that has …

Software Development c++
Member Avatar for vanalex
0
112
Member Avatar for WolfShield

Hello all, I have a window with a JList inside it. I would like each line in the JList to show up in a certain font. But when I try the 'setFont(font)' method where 'font' has already been defined it say that it cannot find the symbol 'setFont(java.awt.Font)'. Here is …

Software Development java java-swing
Member Avatar for WolfShield
0
137
Member Avatar for lexusdominus

Hey, so im making this game, and at the moment im using PlaySound() which is a function of windows.h to play my sound files. Ive got a problem though, i now want to be able to play more than one sound at the same time, and only now do i …

Software Development c++
Member Avatar for predator78
0
185
Member Avatar for vb6forever

Hi experts, well, nearly 10 years after .net became the mainstream I am finally making the move to vb.net after having supported VB6 apps all this time. I have been learning vb.net 2010 but am finding it difficult to find relevant information on the COM aspect. In VB6 COM was …

Software Development vb.net visual-basic
Member Avatar for oreallabac
0
227

The End.