199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mags11

Hi all! I am in the beginning to mid stages of my project. It's an autobody program. You get the calculations when you click Calculate. However, I can't seem to get the hours of labor box to compute to the correct amount. Whenever I put something more than 1 hour, …

Member Avatar for hericles
0
406
Member Avatar for vivosmith

Hi, I am trying to figure out allegro, and so far, so good. But I ran into this one snag in this code: [CODE]const float FPS = 60;[/CODE]Does this set FPS? Someone on another forum said no, but it seems like that it is a predefined function that changes the …

0
128
Member Avatar for Danielhuo

I am writing a program that has a few requirements. Here is what it looks like the picture that I attached. [B][COLOR="red"]The first button is used to add (append) a record to a text file containing MP3 records.[/COLOR][/B] When an MP3 is added to the file, all text fields should …

Member Avatar for NormR1
0
873
Member Avatar for ameera123

My main idea is to encrypt the document and send it to another database through the internet. There for I want to know when I send that ; Should I have to use SSL to send encrypted document? Or else Can I send encrypted document without using SSL? would appreciate …

Member Avatar for hericles
0
113
Member Avatar for ilovejava

my objective is to implement an Java to HTML syntax highlighter. The program should works like this 1) It reads in any .java source code file 2) It parses the file for keywords, strings, numbers, etc. 3) It outputs HTML markup of the source code 4) When you open the …

Member Avatar for ilovejava
0
231
Member Avatar for alencar.expro

(This code returns ERROR_INVALID_PARAMETER) Option Explicit Private Type DISPLAY_DEVICE cb As Long DeviceName As String * 32 DeviceString As String * 128 StateFlags As Long DeviceID As String * 128 DeviceKey As String * 128 End Type Private Type POINTL x As Long y As Long End Type Private Enum …

0
357
Member Avatar for aa26i

I will try to explain as simple as i can [B]head section[/B] <script type="text/javascript"> function randomnumber() { document.forms[0].randomnumber.value=(… } onload=randomnumber </script> [B]body section[/B] <div class="ss-item ss-text"><div class="ss-form-entry"><label class="ss-q-title" for="entry_13">Booking ID </label> <label class="ss-q-help" for="entry_13">To trace ur record</label> <input type="text" name="entry.13.single" [COLOR="Green"][B]value=""[/B][/COLOR] class="ss-q-short" id="entry_13"></div></div></div> the normal way to see my random …

Member Avatar for aa26i
0
217
Member Avatar for Ice_Occultism

I seem to be having a problem importing functions from a file whenever I use the wildcard "*". [code]from text import *[/code] Raises this error: NameError: global name '_Star' is not defined However, if I ask it to import the Function names' manually like so: [code]from text import _Star, _Zero, …

Member Avatar for Ice_Occultism
0
144
Member Avatar for sleepybug

I'm trying to do some socket programming in java. what i have is, i've written this program to create a server and client on my local machine and make separate two threads for socket input and out put in [B]Se.java[/B] file. Similarly two separate threads for socket input and output …

Member Avatar for JamesCherrill
0
1K
Member Avatar for sheennave

Hello all, In a desktop database application i encountered a really interesting situation. I write a double value into a textbox as usual. Then i convert the value into double to use in a calculation but the original value is lost ! double doubleVal = 0.0 ; doubleVal = Convert::ToDouble(textBox3->Text) …

Member Avatar for mandeepx81
0
146
Member Avatar for Beginner sarah

Hello all , i am sarah , and i am a beginner in programming now i am making my first small programm but i am stuck with something the problem is : i have an array and i have to make calculations on it sum the values in the array …

Member Avatar for ddanbe
0
160
Member Avatar for d.h.2011

Hi, I need to do a depth first search tree for the following undirected graph: 1-2-3 |...|..| 4-5 6 |......| 7-8-9 (Sorry about the graph being so unclear, the dots are just to space the lines out). It says to start at A which I'm guessing is 1? My first …

Member Avatar for nchy13
0
107
Member Avatar for terence193

The program should simulate rolling of 2 dice and add the sum of the 2 dice after they are rolled for 3600 times. Their sum ranges from 2-12. The frequency should be tallied in this order for eg when sum =2 freq =.. when sum =3 freq =.. etc This …

Member Avatar for terence193
0
132
Member Avatar for DmytriE

I've got a project that requires the user to input a capacitor's ID and its corresponding capacitance. The user can add the capacitor at the beginning or end of the list. But, I'm having trouble figuring out how to put it at the end of the list. [CODE] while( currentPtr …

Member Avatar for Ancient Dragon
0
127
Member Avatar for furlanut

On a MySQL table the Date column is set at YYYY-MM-DD with some dates shown as 0000-00-00 (Default set at NULL) where no date is available. This is OK until I display the web page that contains the php code for the SELECT query. All the 0000-00-00 dates are displayed …

Member Avatar for cereal
0
130
Member Avatar for uzn

Hi, I'm running VB.Net code that prints the error file using DOS and it is plain text file. I want it to be more informative. I want to print the error file in HTML format with or without pictures or pdf format. Any help is appreciated. Thanks

Member Avatar for MrDeveloper
0
2K
Member Avatar for VB 2012

Okay Ive got a Huge problem something that my current Programming skills will not be able to fix. Ive got a Program and a text file , this text file gets load into the list box but that's not the problem. The problem is that when i make the text …

Member Avatar for VB 2012
0
137
Member Avatar for ooops.789

hello....i am trying to read a some integers with spaces in a file into an array, say the integers in a text file are in the shown way 1 2 3 5 13 34 2 122 2 1 34 34 23 343 53 so now i wish to read them …

Member Avatar for Narue
0
7K
Member Avatar for johmolan

I have a button I use to copy a folder from one location to another. the code looks like this: [CODE] Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Const FOLDER_FROM As String = "C:\Testcopy1" ' Folder to copy from Const FOLDER_TO As String = "C:\Mappestruktur" …

Member Avatar for GeekByChoiCe
0
536
Member Avatar for JohnQ002

I have to create a program in C and not C++, that allows the user to create a file that stores names and numbers, displays them and sorts the dates by names or numbers using Bubble sorting. I know how to create a program that sorts names and numbers that …

Member Avatar for JohnQ002
0
1K
Member Avatar for vammy

Hi Guys, I need Some help in validating a particular coloumn in datagrid for duplicate values before inserting into database.Im using datatable. Please help with some example code.appreciate our help. regards, vamsee

Member Avatar for vammy
0
1K
Member Avatar for ccooldude

I have only started learning borland c++ programming a few months ago, I'm actually a math student, so my knowledge of c++ is pretty limited. I have an assignment where X represents an ant that moves around in a 7x7 grid box. It can move up, left, down or right …

Member Avatar for ravenous
0
212
Member Avatar for asif49

I have to complete a project about employees and their jobs. The requirements include: Setting multiple jobs for an employee etc. etc. Two of the obvious classes I have for this are the Employee and Job class which hold individual employees and work like this: [CODE] private Employee[] e = …

Member Avatar for JamesCherrill
0
302
Member Avatar for Slade

Hey guys next question :(. Now I have having troubles with the IMAGE data type, can anyone provide examples on how to retrieve and update the image? I have tried the following: [CODE] [size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] imgdatastream [/size][size=2][color=#0000ff]As[/color][/size][size=2] FileStream [/size][size=2][color=#0000ff]Dim[/color][/size][size=2] imgdatalen [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Integer [/color][/size][size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] imgtype [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]String [/color][/size][size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] n [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Integer [/color][/size][size=2]imgdatastream …

Member Avatar for sangita32
0
328
Member Avatar for nickliutw

I'm currently working on a program which is pig Latin. It allows a user enter a sentence. The program would take the user input and change every word in to pig latin which it takes the first character of a word and add it to end of word with "ay". …

Member Avatar for nickliutw
0
181
Member Avatar for thanatos1

I'll try to keep this simple, i have an abstract class called Shape (Shape.h) which has a few pure virtual functions, cool. so I have another class called Circle (Circle.h and Circle.cpp) which extends Shape. here's the code. (In Shape.h) [CODE]#ifndef SHAPE_H #define SHAPE_H #include "Point.h" class Shape { // …

Member Avatar for mike_2000_17
0
252
Member Avatar for manugm_1987

Hello everyone, I am very new to asp.net and asp.net mvc as well. I am stuck with the following problem please help. I have the following javascript [CODE]<script type="text/javascript"> var allMarks = []; google.load("maps", "2"); var geocoder; var lat; function initialize() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(37.4419, -122.1419), …

Member Avatar for manugm_1987
0
1K
Member Avatar for rexdon

by default i want to ask the user to enter text in textbox in pattern: _x_____. for example : 0x81A00. User should be able to allow both [B]numeric [/B]and [B]alphabet[/B]. for this i used TextBox.Mask="0x00000"; but this allows user to enter only numeric values..but i need to enter alphabet also.

Member Avatar for Munnazz
0
336
Member Avatar for phorce

Hello, I'm doing a project where I need to see which number matches to a list of letters in the alphabet. Currently I have the output as: [code] A= 5 A= 8 B= 9 B= 2 C= 0 C= 3 D= 6 D= 4 E= 1 E= 13 F= 0 …

Member Avatar for Munnazz
0
127
Member Avatar for kavi4u

hi... i started using c # .net now only... i am new t this.... i have a doubt.. can anyone help me ? here is my question i am writing a function in one form to add the values into the combo box from the table, i am using the …

Member Avatar for Munnazz
0
98
Member Avatar for gunnerone

When a person logs into my site i need to check a value in a database for their roleid, and dependent on that i need to allow/deny access to a page. I have this code but it says that the $_SESION variable 'Access' is undefined, i cant see why? [CODE] …

Member Avatar for Zagga
0
135
Member Avatar for Pirsig

[I] [/I]Hello. I am trying to write a very simple Delphi4 32-bit console app which toggles the RTS pin of the COM1 RS232 serial port. What is the simplest way to do this? I tried writing asm code (see below) but not surprisingly I got a run-time exception: [QUOTE]Exception EPrivilege …

Member Avatar for Pirsig
0
261
Member Avatar for dgreene1210

im getting the error below and I can't figure out why this isn't working. Ive looked at this for 2 days not knowing. I'm hoping a fresh set of eyes on it might help. main.c:13: warning: assignment makes pointer from integer without a cast [CODE] //HEADER FILE: #include <stdlib.h> #include …

Member Avatar for Ancient Dragon
0
716
Member Avatar for Jdan2388

so I'm using the nfl stats below in my program. i have the program reading in the file fine. I will be doing three different analysis to these stats one will be adding all the yards of every team and converting them into miles, the other will just be adding …

Member Avatar for Ancient Dragon
0
176
Member Avatar for fmasroor

2 questions that I have always wondered about: 1. On my compiler, I have to use [CODE]#include "stdafx.h" #include <iostream> #include <Windows.h> using namespace std;[/CODE] and not [CODE]#include "stdafx.h" #include <iostream.h> #include <Windows.h>[/CODE] Please explain the difference between these 2. (c++) 2. Why use pointers when the array can be …

Member Avatar for Schol-R-LEA
0
119
Member Avatar for LondonJava

I have four JFrames open in an application. I wish for one of them to be the base JFrame, and when one of the others is closed than everything except the base frame will dispose. How do I link the other three JFrames so that when any one of them …

Member Avatar for hfx642
0
480
Member Avatar for begueradj

Hello people, I found a program on internet that reads 2 text files "maze.txt" and "randomMaze.txt" in which we can find *, space, S (for start) and E (for end). It resolves this maze by using DFS algorithm. My problem is that it does not run, it says there is …

Member Avatar for hfx642
0
184
Member Avatar for javabeg123

the main purpose of this application is to ask the user for head or tail and the output the numbers of guesses + the percentage of correct. Im having trouble with finding the percentage of correct. please help me fix this problem [ICODE] public class FlipCoin { public static void …

Member Avatar for hfx642
0
222
Member Avatar for cummings15

My code complies fine but freezes when i try to run it. I Believe the error is somewhere between lines 82-115 [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> #include <cmath> using namespace std; struct domList { string domName; string ipAddress; int counter; }; void insertOne(domList list[], ifstream& inFile, int …

Member Avatar for cummings15
0
305
Member Avatar for Rez11

I am making a trivia game that consist of 10 questions. I am using a class to make an array of 10 objects. I have the program all written out but when I compile I get two errors. [COLOR="Green"]Error 1 error LNK2019: unresolved external symbol "void __cdecl displayGame(class Game,int)" (?displayGame@@YAXVGame@@H@Z) …

Member Avatar for dan1865
0
198
Member Avatar for fmasroor

I am using microsoft visual c++ 2010. when I compile, it gives me several warnings, and the ocassional errors. However, most of these warnings are in the header files that are included in the program. Is there a setting that only displays errors/warnings in the program and not the includes? …

Member Avatar for Moschops
0
535
Member Avatar for Forte1292

Ok so I'm working on an assignment for my CS class. One of the methods needs to check that a string is a valid input and the easiest way is to use the .matches method. my method is [CODE] static boolean validateCourseId(String courseId) { boolean valid = courseId.matches("^CS [1234]\d\d\d$"); return …

Member Avatar for Ezzaral
0
160
Member Avatar for Golffor1

Hello, I have a program where I am using an object array that I declare from a class. I am trying to store information from a text file into this array. I will then be doing other items like searching the array and displaying it into another text file. I …

Member Avatar for thines01
0
855
Member Avatar for parag_dekate

this is the code... I am trying to update a element from login table but it not showing any error massage or any thing execution is error free but finally whenever i check the database its not updated.. i'm using access2007 database with vb 2008.. PLEASE Help me.. [CODE] dbprovider …

Member Avatar for adam_k
0
113
Member Avatar for FreddieBambino

Right. Im trying to communicate with the expedia travel API, exchanging xml feed with them. It goes somehow like this: I send them info of the query I want, they send me the query back in xml form. Here is an example of a query I would want to send …

Member Avatar for FreddieBambino
0
228
Member Avatar for fmasroor

Using microsoft visual c++ 2010. Everything is screwing up. I want to take an input file, write to an output file, and use the lines of the input file as strings. But... On previous run, I didn't have that last printf line. So everytime I run it, it just prints …

Member Avatar for Schol-R-LEA
0
334
Member Avatar for cummings15

I have a error with a nodeType. I believe it is just one line. The error says "[Linker error] undefined reference to `insert(nodeType*,std::basic_ifstream<char,std::char_traits" and "Id returned 1 exit status" This line is the part of code that i believe is wrong. [CODE]nodeType *insert(nodeType *list, ifstream& inFile);[/CODE] [CODE]#include <iostream> #include <string> …

Member Avatar for r.stiltskin
0
152
Member Avatar for vaucro

Hi everyone i'm very new to python , only have been working with it for about a week, and I have the following question.I'm making a Lingo game in which you guess a needed word, but the first letter is always given when started I have 3 lists in which …

Member Avatar for vaucro
0
697
Member Avatar for mehdi.yazdani

Hi every body i was create some forms for uploading files. when i tried to upload some files with less than a MB there is no problem and it works well but when the size of file that i want to upload it, is over than 10 MB i faced …

Member Avatar for mehdi.yazdani
0
105
Member Avatar for Edwards8

I need to insert some rows into Excel. I know it can be done via xlApp.ActiveWorkbook.ActiveSheet.Rows("10:10").Insert() But what I need to know, is if I can use variables in place of the 10's. I need to insert rows at various places throughout an excel document, and input data into those …

Member Avatar for jvangeld
0
310

The End.