199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vuyiswamb

Good Morning All I have a WebSetup Project and a Installer Class. I want to accept User [QUOTE]Database, Server,Username,Password and E-mail[/QUOTE] This is what i did so far. I have created a Websetup Class installer that looks like this [CODE] namespace ClassLib { [RunInstaller(true)] public class ClassLib : Installer { …

0
344
Member Avatar for sureronald

I am working on a web application and I would like to combine java script and php. I am using the window.confirm() function which gives a user an option to choose either yes or no. I am actually using this feature to end a users session so if user clicks …

Member Avatar for diafol
0
99
Member Avatar for naju

i got a problem wiht path for userfileupload for fckeditor in cakePHP i used in config.php of fckeditor as $Config['UserFilesPath'] = '/tours/app/webroot/files/images' ; for my localhost with xampp but it is not working for uploading the files with fckeditor it says '/tours/app/webroot/index.php/images' cannot be created. i think its a problem …

Member Avatar for diafol
0
110
Member Avatar for chrischavez

i Wrote some basic code on something i saw here i while ago and was wondering what people could do with it. it uses a console and you can draw on the console or the entire desktop. i was hopping there was thing people could do to add or improve …

Member Avatar for Freaky_Chris
0
1K
Member Avatar for rlaknar

Hi I am trying to connect a database through Java. I have written a program and it throws exceptions.I am not so strong in java and database connections and I am a newbie. Please anyone help me as soon as possible as its urgent!!! [B]Here is my program:[/B] [code] import …

Member Avatar for rlaknar
0
184
Member Avatar for tksrules

Hello Java Programming experts. I need assistance with the following excercise: You have been hired as a Java programmer by Real Estates Solutions Inc. Your task is to write a Java applet for their web site that would enable customers to figure out their monthly mortgage payments. The applet input …

Member Avatar for stultuske
0
99
Member Avatar for asif786

i have declared an array which i want to populate with names, as they are entered into an input box.It does not seem to work i have tried many other methods with the array but to no success. [code]Dim namearray() As String Dim i As Integer name = InputBox("Enter the …

Member Avatar for samir_ibrahim
0
3K
Member Avatar for krnekhelesh

I am making this program which checks if your floppy drive is ready or not. And so it has to check for say 20 seconds. And for this I want the program to run in the background. How do I do this? I am using Borland C++ and Turbo C++

Member Avatar for EZO
0
1K
Member Avatar for lldcrb328

Hello, can someone tell me how can I output all fields of a row in a mysql db using php? and then write.

Member Avatar for cwarn23
0
93
Member Avatar for Stefano Mtangoo

Whenever I have lists or tuple lists I have something like u' (check sample result). What does this do? [CODE=python](u'03/02/2009', u'Billing for gas', 100.0, 210.0, 200.0) (u'15/04/2009', u'paying fees for OUT', 0.0, 10405.0, 0.0) (u'03/02/2009', u'Billing for gas', 100.0, 210.0, 200.0)[/CODE]

Member Avatar for Stefano Mtangoo
0
133
Member Avatar for karthi_selva

hi, i am new to .net i need to refer the external file to my C# object ie i wrote the one program like class program { public string getname(string name) { return name; } } the next program class test { like that } in the second program i …

Member Avatar for metalla_nz
0
143
Member Avatar for theimben

On my site lots of images are being used which are currently being stored on my server. But bandwidth is increacing quite alot and I want to store them on somewhere like Tinypic or Imageshack So my request is an image uploader to a free host using cURL. What I …

Member Avatar for theimben
0
76
Member Avatar for nawabsheriff

<?php $conn = new mysql('localhost', 'root', 'adm1ns'); $sq1 ="INSERT INTO data VALUES(?,?,?); $stmt = $conn->stmt_init(); $stmt->prepare($sql); $stmt->bind_param("sss",$instance,$instance,$instance); $stmt->execute(); $stmt->fetch(); ?> i use this code to store the data in mysql given by user... in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help …

Member Avatar for nawabsheriff
0
266
Member Avatar for ntredame

I need to read the last name and five grades for 10 students from a file and calculate the average of the grades and display that information in a file. I am pretty sure I know how to tackle this, but I have no clue how to separate the name …

Member Avatar for ntredame
0
103
Member Avatar for CoolAtt

Hi. am using fgets() to read lines from a text file. the file is being updated after a few seconds. i want to read and process the last appended line at the end of the file. i tried the following: [code=c] while(true){ //infinite loop if(fgets(line,size,fp)!=NULL) process line. } [/code] plz …

Member Avatar for CoolAtt
0
722
Member Avatar for CPPRULZ

When a parameter in a function definition (for say class distance) is abc(distance a) and in the main you call this function and pass distance b, what is the relationship thereafter between distance a and b? Do there adresses become equal-if so what implications does that have in the program?

Member Avatar for CPPRULZ
0
119
Member Avatar for Ontonyx

Ok, This program is designed to output sides and angles of a triangle based upon a side and angle that is inputted by the user. When I run the program the lenghts of the sides that I receive make absolutely no sense..but when I do them in my calculator they …

Member Avatar for VernonDozier
0
128
Member Avatar for Ontonyx

Hi, I have written the below code and to finish my assignment I need to have this file save to "results.txt" and I also need the angles to come out as degrees in the output..I've tried several tutorials and I am really struggling with this..any help would be appreciated [code] …

Member Avatar for VernonDozier
0
105
Member Avatar for CPPRULZ

Hello I was researching the copy constructor and found this exampleo a website: [code=C++] #include <iostream> class Array { public: int size; int* data; Array(int size) : size(size), data(new int[size]) {} ~Array() { delete[] data; } }; int main() { Array first(20); first.data[0] = 25; { Array copy = first; …

Member Avatar for CPPRULZ
0
92
Member Avatar for sonakrish
Member Avatar for serkan sendur
0
88
Member Avatar for serkan sendur

in C# if you add @ before your string literals the escape sequences are not processed, so : you can use : [CODE] @"c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"[/CODE] is there any c++ equivalent of doing that? Thanks

Member Avatar for cikara21
0
162
Member Avatar for bharanidharanit

Hello sir, I am using VisualStudio2008 Platform. In registration form, I am having Firstname,Lastname, UserName, and Password Fields. I have connected it to the AccessDataSource. When i click the submit button i want the details to be added to the access database. What is the procedure to do it?

Member Avatar for serkan sendur
0
63
Member Avatar for tones1986

Hey all. I have worked on this in a previous post, but because of the huge difference in work needed, i have reposted it here. First off, i created a project that would input data from keyboard of a student, this student had name,ssn,dob,school id information that was needed. After …

Member Avatar for tones1986
0
108
Member Avatar for number87

Hi guys I just wanna ask what is the difference between the mode_t and st_mode when using sys/stat.h and sys/types.h libraries. I looked them up google and find most people use st_mode but never mode_t.

Member Avatar for number87
0
99
Member Avatar for FTProtocol

Ok so it logs in fine using [code=C#] public bool Login() { string postdata = string.Format("m=login&nextURL=http%3A%2F%2Fwww.ijji.com%2Findex.nhn&memberid={0}&password={1}", encode(Username), encode(Password)); string result = post(_url + "login.nhn", postdata); return !(result.Contains("You have entered an incorrect password") || result.Contains("User ID is not found")); } public string GetCookies() { return Cookies.GetCookieHeader(new Uri("http://ijji.com/")); } [/code] then it …

Member Avatar for FTProtocol
0
258
Member Avatar for abby2589

fatal error C1004: unexpected end of file found what is that problem when this error shows?? what do i need to do?

Member Avatar for CrimsonTider
0
60
Member Avatar for selder

I am sorry to take the liberty to email you directly, but I am in a really tight situation that I cannot seem to figure out. I am creating a database in MS Access. I have created several tables that I would like to link with each other. I created …

Member Avatar for HI2Japan
0
404
Member Avatar for CrimsonTider

Hey guys, I'm new to the forum and pretty new to C++. I think I'm just about finished with this project, but I've run into a couple problems. Here's my assignment: "Write class Lib and modify class Book such that this [URL="(http://cs.ua.edu/124/Spring2009/Projects/main.cpp)"]main[/URL] works as implied. For each class create .h …

Member Avatar for CrimsonTider
0
243
Member Avatar for Bill Purkins

I have a datetimepicker field with properties format set to time. I can find no reference anywhere on how to set the value of the time. i.e. today at 5 pm. it either defaults to 12:00:00 or I can set it to Now. But anything else? Can't figure out how. …

Member Avatar for Bill Purkins
0
97
Member Avatar for christiangirl

Hey, So I got this program all working except some of the output is weird pictures instead of letters. The first time it outputs it works fine, but after that it only partly works. Here's the code: [code] #include "queue.cpp" #include <iostream> #include <fstream> #include <iomanip> /******************************************* * class Priority …

Member Avatar for christiangirl
0
156
Member Avatar for jaysonperry22

[code] def main (): display_message () # get user's first name first_name = raw_input('Please enter your first name: ') print 'Hello', first_name # input total sales total_sales = raw_input('Please enter your total sales: ') # input total hours total_hours = raw_input('Please enter your total hours worked: ') # input total …

Member Avatar for vegaseat
0
130
Member Avatar for arseniew

Hello, Im trying to make jLabel component start default system browser and go to the specified page. I've tried to do this by adding listener to the jLabel and this part works fine, i have the problem with starting up the browser. I have only found system specific ways to …

Member Avatar for arseniew
0
102
Member Avatar for neighbordave

My assignment is as follows. Create a class called PursePile that can hold any number of Purse objects. The class should have the following methods: public void add(Purse p) //adds a purse to the pile public Purse findAPursesWith(String coinName) //searches the pile until a purse with the given coin is …

Member Avatar for Ezzaral
0
233
Member Avatar for k2k

i don't know why my php code within the <html> doesn't work at all. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="xsoldier2006" content="xsoldier2006, 2006, xsoldier, henry li, veteran 2006" /> <link rel="stylesheet" type="text/css" href="css/text.css"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Xsoldier_Home</title> </head> <body bgcolor="#333333"> <?php …

Member Avatar for katarey
0
145
Member Avatar for queenc
Member Avatar for mschroeder
0
83
Member Avatar for iuessele

Can anyone tell me how to write a program that displays all of the cards from a deck of playing cards? i set up two tuples, one with the ranks and the other with the suits. I cant figure out how to make the Ace of spades - King of …

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for soroushc

It's my assignment I have done almost I have completed it.But I have problem in getting input from user(the bank name)here is my assignment question. Customer often wait in the bank..!you have to ask the user the entire as many bank names as he desires and time (waiting time the …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for christiangirl

Hello, I have to make this program that has two queue's. It takes input from a file, and each line in the file has a number and character. If the number is a one, the character is stored in the highQueue. If it is a 2-5 it is stored in …

Member Avatar for Lerner
0
122
Member Avatar for mishel

hi, I got this program from one of forums: [url]http://www.perlguru.com/gforum.cgi?post=32920[/url] its something like this: ------------------------------------------------------------------------- open(IN, "/path/outModified.pl") or die "$!"; while (my $line = <IN>) { chomp($line); my @array = (split (/\s+/, $line))[6, 7, 8]; # print "@array\n"; push @points, [ @array ]; } close(IN); print '@points : ', Dumper …

Member Avatar for KevinADC
0
188
Member Avatar for perl1user

hi, i'd like to know how to get the number of regexp matches a pattern returns ex: if I have $_ = "fooFOObarBAR";$_ =~ /[a-z]/ it would return 6 thx SNIP

Member Avatar for KevinADC
0
311
Member Avatar for Stefano Mtangoo

I'm trying to grasp SQLite to do some stuffs I want it to do, but it is sometimes too hash to me :) So what i'm I wrong with this code?? [CODE=python] #!/usr/bin/ # SQLite command to be used with the applications import sqlite3 as sqlite import os class SqliteCommands: …

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for TheKebab

Hi there! I'm working on this app that will allow you to encrypt or decrypt simple lines or entire txt files. It's no "real" encryption since it's easy to crack the output lines, but it's a fun project. So far I'm just done with the first option, and the funtions …

Member Avatar for TheKebab
0
165
Member Avatar for kerek2

Hi Guys, I'm really need help for this item, the situation is i got textbox1 as a input , button1 as searchbutton abd textbox2 to display the item that been enter in textbox1. All the table from .mdb Can guide me plz

Member Avatar for Teme64
0
238
Member Avatar for BigDork

I found some very helpful articles on this site, but I'm having trouble with this one... Here is the applicable batch code: [code]@echo off > %AppData%\PROGRAM\NEW.INI setLocal EnableDelayedExpansion find "DESIRED STRING" < %AppData%\PROGRAM\EXISTING.INI > nul if not errorlevel 1 goto :FOUND for /f "tokens=1 delims=[] " %%a in ('find /n …

Member Avatar for Salem
0
120
Member Avatar for jdbarry

I have a slight problem here. I am writing a program that reads in a lot of hurricane data. As you can see in my code, I have read in information from the hurricane category array(this array keeps track of what category each hurricane was). I am trying to figure …

Member Avatar for VernonDozier
0
152
Member Avatar for I_want_to_lean

I have an app which i draw a PNG on the button and all works great until i want to redraw the whole screen. when i try to redraw the whole screen it gives me an exception and points to this part of afxwin2.h [code]_AFXWIN_INLINE CDC* CWnd::GetDC() { ASSERT(::IsWindow(m_hWnd)); return …

Member Avatar for I_want_to_lean
0
264
Member Avatar for vjp08

Hi, i have opened a file from a python sript using built in function 'file'. after reading data from that file, i closed the file descriptor and tried to delete the file but it gives an error that file is being used by another process whereas none of the process …

Member Avatar for scru
0
166
Member Avatar for k88joshi

Hello, I am working on something where i need to search and replace many variable names of a program. For example, I have a class Hello and its public variable is world, but the variable world has been changed to earth so now in the program i need to go …

Member Avatar for mitchems
0
105
Member Avatar for xtremerocker

[CODE=cplusplus] #include <iostream> #include <sstream> #include <string> #include <fstream> using namespace std; int main(void) { for(int COUNT = 0; COUNT <= 1000; COUNT++) { if(COUNT > 1000) { break; } if(COUNT <= 1000) { std::string TO_STRING; std::stringstream OUTPUT; OUTPUT << COUNT; TO_STRING = OUTPUT.str(); ofstream myfile; FILE.open ("data.txt"); FILE << …

Member Avatar for xtremerocker
0
123
Member Avatar for jaytheguru

Afternoon all, I have taken up a task where end user should be able to enter information via vb interface into microsoft Access database. This then will be displayed onto the Datagrid via VB interface. The program needs to be setup in a way that first entry by end user …

Member Avatar for almcnicoll
0
147

The End.