199,114 Archived Topics

Remove Filter
Member Avatar for
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 …

Member Avatar for eskimo456
0
152
Member Avatar for tjfitz68

Hello, List below is a query that I need to somehow be able to modify so my results do not double the tblWorkOrder.iWorkOrderID rows. The reason it's happening is because the INNER join for the tblTechnician causes it to double the iWorkOrderID's when there are two or more technicians that …

Member Avatar for BitBlt
0
116
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 …

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, …

Member Avatar for mike_2000_17
0
226
Member Avatar for dyingatmidnight

I'm trying to create a database for a public library and I'm running into a snag when trying to formulate my tables based on the requirements I've come up with. Authors • Write books • Have publishers Publishers • Publish books • Have addresses and phone numbers Books • Have …

Member Avatar for BitBlt
0
197
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.

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), …

Member Avatar for woooee
0
309
Member Avatar for sherinpoulose

I have input data in excel and csv format.so depending upon whether user is giving excel or csv ,i have to use that.i have attached the code. [CODE] if (excelfileupload.HasFile) { String FilePath = Server.MapPath("~/Files/FileName.csv"); System.IO.File.Delete(FilePath); DropDownList1.Visible = true; DataSet excelds = (DataSet)Session["excelDataSet"]; DataTable samples = excelds.Tables[0]; ArrayList rowcontents = …

Member Avatar for sherinpoulose
0
105
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 …

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] = …

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 …

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

Member Avatar for dxider
0
115
Member Avatar for Braden0007

hello can somone please tell me why i cannot submit this twice i have a php form doing the validation and mailing but if there are errors in the form filling out it will send back an errorand tell them to fix it, without refreshing the form. the problem is …

Member Avatar for twiss
0
212
Member Avatar for talala

a strange thing happend, suddenly all the pages became "stretched" if before apage was like hello, user how are you? it's now like hello, user how are you? never happend to me before, any suggestions to solve it?

Member Avatar for talala
0
71
Member Avatar for twistidphreak

I want the images to change (rotate) in sequence when the page is refreshed not random like i have below. Can someone help me with this please? Also I also need text to change on refresh to because I am going to have a descritption of the image below. So …

Member Avatar for twiss
0
211
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 …

Member Avatar for NormR1
0
140
Member Avatar for abusive

Basically i have a script that outputs a list of information about a file, Here is a sample [CODE] File Size:15423 bytes File Name:Test.txt File Location:C:\home\Test.txt File MD5 Hash:1caf4a063526d84cd5b1ae6383a426d6 File SHA1 Hash:e79bfba095a8531adcb855d7c286f5c3ca93a535 [/CODE] My problem is that i want to split the data into two columns, For example "File Size:" …

Member Avatar for diafol
0
292
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?

Member Avatar for C:\>
0
135
Member Avatar for Buppy

Hello, I have a JS/jQuery based date picker - calendar. The algorithm itself is simple - a Calendar class that generates calendar, several methods for year/month change, etc, nothing that special. Since i have several independent date fields in the page, i am creating several independent calendars, for example, var …

Member Avatar for stbuchok
0
105
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 …

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] -------------------------------------------------------------------------------- …

Member Avatar for ecinevenice
0
320
Member Avatar for sngapoonage

Hi everyone, I'm having a bit of trouble figuring out what to do here. Basically I have 3 tables shown below User Table [CODE] ID Firstname Lastname etc.... 1 James Hay 2 Someone Else [/CODE] Permissions Table [CODE] PermissionID UserID 1 1 2 1 2 2 3 2 [/CODE] Permissions …

Member Avatar for Tess James
0
203
Member Avatar for jonadams51

I'm designing a new intranet system but the requirements have changed and I've now been asked to make it more scalable and to allow any content to be integrated into the site seamlessly. Currently, the site is very simple using the IIS URL Rewrite module (basically the IIS answer to …

Member Avatar for john.cooper
0
68
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)

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" …

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 …

Member Avatar for TrustyTony
0
353
Member Avatar for ivan3510

Hi! I'm getting these warnings: Warning: session_start() [function.session-start]: Node no longer exists in (file) on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at file:2) in file on line 2 Warning: Unknown: Node no longer exists in Unknown on line 0 I …

Member Avatar for Stefano Mtangoo
0
171
Member Avatar for programmer12

Hi, My codes at the moment are [CODE]mysql_query("SELECT * FROM table WHERE date = CURDATE()");[/CODE] It outputs the correct stuff that i want to show that has been uploaded that day (newest) but I want it to show it for 3 days or maybe even a week... Is there a …

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for maxlipman

Hi, I want to learn php and how to develope my own code and stuff, how can i learn php fast amd easy? Does anyone reccomend a sertain book or website? Thanks

Member Avatar for Stefano Mtangoo
0
79
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 …

Member Avatar for ChrisHunter
0
124
Member Avatar for danholding

apologies if this is in the wrong section, the situation: i have a drop down box with the values 1 - 10 [CODE]<asp:DropDownList ID="DD" runat="server" Text='<%# Bind("DD") %>'> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5" Selected="True"></asp:ListItem> <asp:ListItem Value="6"></asp:ListItem> <asp:ListItem Value="7"></asp:ListItem> <asp:ListItem Value="8"></asp:ListItem> <asp:ListItem Value="9"></asp:ListItem> <asp:ListItem Value="10"></asp:ListItem> </asp:DropDownList>[/CODE] …

Member Avatar for danholding
0
533
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> …

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 …

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 …

Member Avatar for cppgangster
0
164
Member Avatar for predator78

Ok I have known how to build classes for quite a long time now, and I understand attributes and methods. But from a design point of view how literally should I take these? For example I have a class Player and a class Table. class Player: attributes: name id methods: …

Member Avatar for predator78
0
195
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 …

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 …

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 …

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 …

Member Avatar for Mouche
0
216
Member Avatar for eduardc

I don´t understand the error: Parse error: syntax error, unexpected T_VARIABLE in /home/eduardli/public_html/web_designer/insert.php on line 21 php file: [CODE]<html> <body> <?php $con = mysql_connect("localhost","eduardli_user","-z.x,c"); if (!$con) { die('Could not connect: ' . mysql_error()); } $description = $_POST["description"]; $price = $_POST["price"]; $quantity = $_POST["quantity"]; mysql_select_db("eduardli_company", $con); mysql_query ("INSERT INTO Products (Description, …

Member Avatar for karthik_ppts
0
584
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 …

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, …

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. …

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 …

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); …

Member Avatar for kutuup
0
1K
Member Avatar for bob on whidbey

PHP and MySQL problems with ' and " have been discussed ad nausea on the web. I still don't get it. For example my db has an Author's name field with someone called O'Brien. If I create the DB with phpMyAdmin by reading in a CSV file, that field will …

Member Avatar for bob on whidbey
0
309
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 …

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

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

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 …

Member Avatar for Fest3er
0
136

The End.