199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for elbuhleini

Hi to all, php n00b here :-) I have a simple problem and would like to ask for some help... What I want to do is this: when our affiliate submits his aff ID into the form, a php script should post that ID from DB, but load it into …

Member Avatar for digital-ether
0
146
Member Avatar for DLightman

I'm getting a strange compile error with getline. My question is if you make a statement like: [CODE] getline(is, a.lastName, ','); [/CODE] can you revert back to: [CODE] getline(is, a.country); [/CODE] Or in other words, once you set a delimiter, are you bound by that delimiter for the rest of …

Member Avatar for DLightman
0
113
Member Avatar for ChintuChowdary
Member Avatar for digital-ether
0
106
Member Avatar for nyalex

Hi I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot …

Member Avatar for nyalex
0
296
Member Avatar for indianrock9

Hi all, I using PHP & MySql. Here's the situation: 1. I have a website which is a meeting place for employees & employers. Employees can sign up for an account & select the skills they have. These skills list will be shown on their resume. I have an array …

Member Avatar for indianrock9
0
1K
Member Avatar for Yilon

First, let me introduce myself. I was a pretty good C programmer, back when [and very modest as well.] I got into other lines of work and have been out of programming for several years. The other lines of work have ... you have read the headlines, right? I need …

Member Avatar for Ancient Dragon
0
170
Member Avatar for mrnutty

The program i made below is a c++ program. All I ask for is some feedback of my program. This program has a menu of option, but I have only implemented option 1,2,3,7thus far. So here is the code. [code] #include<iostream> #include<ctime> #include<cstdlib> #include<cmath> #include<string> using namespace std; void MemoryMatchingGame();//The …

Member Avatar for mrnutty
0
487
Member Avatar for mibit

Can you please help me with the source code solving this task under C++/G++ (linux) or dev C++ (windows) [img]http://mail.dir.bg/~storage/cPlus_plus111.jpg[/img] Below you can see a hint for solving Exercise P14.1 but I need to write the source for [color=red][b]Exercise P14.1 [/b] P[/color]lease help me http://www.horstmann.com/bigcpp/solutions/ch14/ExP14_1.cpp [code] #include <string> using namespace …

Member Avatar for brechtjah
0
576
Member Avatar for gabec94

I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks. sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in range(splicedsent[1:])>splicedsent[0]: …

Member Avatar for gabec94
0
4K
Member Avatar for Stefano Mtangoo

I want to wait the song to finish after it finishes, I want to call another function How do I do that in wxpython

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for squarkman

Is there a way to see why this particular javascript validator is not affecting the submission of this form. It submits with all fields empty. Here's the simple code [code=syntax] <?php if(isset($_POST["Submit"])) { require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); $toaddress = "rocky@airedale911.org"; //Change this to the email address you will be …

Member Avatar for brechtjah
0
301
Member Avatar for Now Then

Hi, What I'm trying to do is use a groupbox, that contains a radio button, two text boxes and a timer. I'd like to add any number of instances of this groupbox to a panel using an 'add' button. Does anyone have an example or pointer in the right direction …

Member Avatar for ddanbe
0
97
Member Avatar for rottmanj

I am working on a project and I have run into an issue with populating a 3d vector array. When I try to complile the code below I get the following error. no matching function for call to ‘std::vector<std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> > I am not sure where I went wrong …

Member Avatar for rottmanj
0
2K
Member Avatar for gamer12223

I am working on a program and this what I must do, Create a class based on TMoney. TMoney only contains three denominations, tdollars, twons (worth 1/5 or .2 of a dollar) and tpennies. Create an array of three Tmoney objects. Use a loop to input data into each of …

Member Avatar for gamer12223
0
137
Member Avatar for audigy642

Well, I fixed the runtime error now it just opened to a new bag of worms. I get to see the actual error thats there and it tells me that access is denied to this certain file. Easy enough, change the access to the file right? Wrong... can't find the …

Member Avatar for PirateTUX
0
149
Member Avatar for Foe89

Yes, I have the do while set to go on forever until I get on to the solving part, but while trying to shrink my program down so I can make it more modular, the O's that player 2 have are showing up as a face? I know I have …

Member Avatar for StuXYZ
0
168
Member Avatar for sfrider0

My homework assignment is to convert this c++ code into assembly. Here is the code [code] void maxInt (int xVal, int yVal, int& big) { big = xVal; if ( big < yVal ) big = yVal; return; } [/code] I have successfully created a program that will find the …

Member Avatar for low_coder
0
219
Member Avatar for Blackeagle

Hi, i' having a small problem with panels. i want the panel always to have the same size even when empty. in my program that i'm writting, i can see that the panel doesnt fit all the area where i put it ( i noticed that as i have different …

Member Avatar for Ezzaral
0
159
Member Avatar for Tyster

Hi Folks, I have a general question about multithreading... I have a small app that is multithreaded. I have a main() class and a separate Runnable class that implements the Runnable interface. The problem I have is that the Runnable class needs to return an integer to main(). But this …

Member Avatar for Tyster
0
143
Member Avatar for mmeclimate

Hi, I'm new to Python and I was given an unknown (supposedly binary) to read. The problem is that I am not sure on how to real the 'actual' data. I have opened the file as: [code=python] f = open('/home/mmeclimate/test/test.dat', mode='rb') f.readline() [/code] The output from readline is: [code] 'MO00\x14\x00\x00\x00\x00\x00\x00\x00\\\x00\x00\x00\xb8\x00\x00\x00\x14\x01\x00\x00p\x01\x00\x00\xcc\x01\x00\x00(\x02\x00\x00\x86\x02\x00\x00\xe4\x02\x00\x00B\x03\x00\x00\xa0\x03\x00\x00\xfe\x03\x00\x00\\\x04\x00\x00\xba\x04\x00\x00\x18\x05\x00\x00v\x05\x00\x00\xd2\x05\x00\x00.\x06\x00\x00\x8a\x06\x00\x00\xf2\x06\x00\x00^\x07\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x05 …

Member Avatar for mmeclimate
0
2K
Member Avatar for cproud21

I am to design an applet that produces a six sided polygon in which the coordinates are set according to the location of the mouse when it is clicked. I am struggling setting each of the clicks to the correct point. I have tried many things, however have not been …

Member Avatar for Ezzaral
0
171
Member Avatar for MaRtO

Hello everyone, I just started learning c++ and I started with creating a programme that gets your wan ip adress. Just because it covers some basic stuff. Getting the content of the website works fine. But the parsing doesn't really work. If tried with sscanf, but it didn't work. Also …

Member Avatar for Salem
0
86
Member Avatar for weasel5-12

The below code, is a source code which i am trying to learn double linked lists from, as for a 2nd year assignment. For some reason my editor keeps returning the error messages [icode]'cout' : undeclared identifier 'cin' : undeclared identifier[/icode] Can someone please help me?? All help is VERY …

Member Avatar for weasel5-12
0
119
Member Avatar for hellIon
Member Avatar for hellIon
Member Avatar for PhiberOptik

Hey guys, So I'm on the second last question of my latest homework assignment and I can not figure out what is wrong. Basically it asks you to input a date, name, amount and then prints out a check, with a word form of the name on the bottom. Well, …

Member Avatar for PhiberOptik
0
132
Member Avatar for inktri

I'm trying to write a DNS server and I need the IP/name mappings to delete themselves after a given number of seconds. How can I accomplish that? Thank you

Member Avatar for kux
0
446
Member Avatar for dstat

Hello Again, Again being a novice at MS Acces 2003 this is definitely outside my ability. I was told that using visual basic it is possible to show a month calender in a form instead of just entering the date in a field. The user should be able to have …

Member Avatar for Swarv
0
88
Member Avatar for PomonaGrange

Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address …

Member Avatar for PomonaGrange
0
153
Member Avatar for StainlessSteelR

For a class assignment we need to make a C++ program in putty of the game war. It has to have 7 functions; it's suppose to use a time() function and srand() function in the dealRandomCard() function. The output should be asking you how many cards you want to play; …

Member Avatar for VernonDozier
0
733
Member Avatar for leolim

i am newbie to this could anyone show me how to retrieve the data from sql server and export the data to txt file? in vb.net windows application?? i want the same row and column of data retrieve from sql server to be insert and stored in the text file …

Member Avatar for leolim
0
148
Member Avatar for Stefano Mtangoo

I have simple player with wx.ListCtrl as playlist. I first Load List through open file dialog. I populate a dictionary with filenames (populated in Playlist) as keys with their path as values. When I press play, the onPlay method calls onSetPath method which looks up for selected file from list …

Member Avatar for Stefano Mtangoo
0
130
Member Avatar for cugetare

Hello, I am having a bit of a problem.... I wrote a perl script that generates a report in excel. I am using cygwin perl. I made two batch files one calls perl directly and the other calls a makefile that calls perl. Admin: make and batch work perfectly Power …

Member Avatar for cugetare
0
179
Member Avatar for baby_1

Hello people i created this code: <script langauge=javascript> function baby(a,b) { document.p.text=a; document.p.cat[b].checked=true; } </script> <form name="p" > <input type="checkbox" name="cat[10]"> <input type="checkbox" name="cat[11]"> <input type="text" name="text"> </form> <a href="javascript:baby('Hello',10);">Click Here</a> when i click on The "Click Here" the textbox show me Hello but the checkbox doesn't work and dosen't …

Member Avatar for kb.net
0
149
Member Avatar for afg_91320

im making a grade book code using functions and SINGLE arrays (multi arrays would be easier, but my teacher wants this in our code) outline: from main() ask the user for info about 4 students ---> use functions getStudentInfo() 4x (once per student; im assuming this will have the students …

Member Avatar for mrboolf
0
300
Member Avatar for Birdie010

Please review the code below, I'm not able to determine why I'm receiving the error message: " Conversion from DBNull to type String is valid. Any help is appreciated. Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged If txtSearch.Text = "" Then lblAdvice.Text = "Enter characters …

Member Avatar for Teme64
0
90
Member Avatar for cwarn23

I have just started learning php-gtk 2 but am a bit stuck. First is that are there any php-gtk 2 debuggers or error loggers that I can use because at the moment, if there is a bug in my script, the exported exe file made from my php-gtk script is …

Member Avatar for martin5211
0
138
Member Avatar for Stefano Mtangoo

Everything seems to be well, but NOTHING GET PLAYED!!!! :oops: I have tried and tried but doesn't work. WHAT IS WRONG???? :shock: [code=python] #media control #Copyright 2008 Evstevemd #Just media Player to play the playee import wx import wx.media as media import os, sys class MediaPlayer(wx.Frame): def __init__(self, parent, id, …

Member Avatar for Stefano Mtangoo
0
171
Member Avatar for dinilkarun

please tell me how to format text in a SINGLE cell of a table. Once the following text is added. i want to format it in followinfg way. ---------------X_------------------------ Title : ball cat dog ---------X_------------------------ Title : in BOLD and Underline rest of the data in BULLETS.

Member Avatar for dinilkarun
0
149
Member Avatar for wizzsm

The output from this only returns the letter 'C' in the path string. Help! Wizzsm. std::string GetServiceConfig() { HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = L"SYSTEM\\CurrentControlSet\\Services\\ApirbiService"; LPCTSTR regReq = L"ImagePath"; DWORD size1 = sizeof(rgValue); DWORD Type; if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, …

Member Avatar for wizzsm
0
699
Member Avatar for stuuuu

Hello, I'm creating a simple voting program. Everything works apart from that the program wont calculate the % total of votes for each candidate. It displays each candidates percentage as 0.00%. I've tried everything to see why it does this but I'm fooled :( [code] import uulib.*; public class Candidates …

Member Avatar for stultuske
0
122
Member Avatar for krammer

How would I empty my linux trash from python? Would I just do a simple os.remove? Or is there an easier way? I am also working on deleting all files within a directory, for multiple directories. I have found this: [CODE]#!/usr/bin/env python import os def nukedir(dir): if dir[-1] == os.sep: …

Member Avatar for krammer
0
283
Member Avatar for mlohokare

Hi Everyone, I am Mahesh. I am new in Javascript. I am creating a web page using XSLT. But for that I need help for javascript. Problem Statement ***************************************** There are several <img>s in output html page. images id are randomly generated using xslt. in that img tag there is …

Member Avatar for mlohokare
0
269
Member Avatar for harsha_abraham

I am getting the following error “The ConnectionString property has not been initialized’, while executing the below portion of code.checked that the below connection string is having value and not null. (Data Source=NAWINSQL050;Initial Catalog=AlbatrossDB; Integrated Security=true) objFormatOut = FormatDepartment.Format.FormatSelectById(m_intOutputFormat, oConn)<—--error occurs(The ConnectionString property has not been initialized’) in the below …

Member Avatar for reena12
0
209
Member Avatar for cassie_sanford

I am writing a project that stores vehicle information such as the model,manuf., year, etc. I have to create a second project that loads the data from the file into memory and loads a drop down combo box with the VIN numbers. When the number is selected from the box, …

Member Avatar for Teme64
0
143
Member Avatar for robgeek

Please can someone show me how would I create a file using fstream that would take the contents from another existing file and user input sentence. for example: I have file1 with some contents The user inputs a sentence Now I want to create a file using streams that has …

Member Avatar for StuXYZ
0
168
Member Avatar for Anjali.want4u
Member Avatar for digital-ether
0
144
Member Avatar for dips255

hi, i need some advise regarding storage of data is it good to store data in files rather than storing into database? (eg data like comments or additional features of products that users advertise on our website.) will it help for speed optimization.

Member Avatar for dips255
0
148
Member Avatar for cwarn23

I have been working on a function which creates a 1 million digit value of pi but php is treating a theoretical numeric variable as a string. Below is the code I used and for now I have put a small limit on the digits but it is line 22 …

Member Avatar for digital-ether
0
98
Member Avatar for eljack

Hi, I have a big problem interacting with the MS Access database. I have read again and again all the topics related to the error [B]"The number of query values and destination field are not the same"[/B] on this forum but still I can not fix. Here is my story: …

Member Avatar for LizR
0
151

The End.