199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drewpark88

Hey Guys, I need to send an HTML email with the last 4 digits of the credit card. Everything else sends fine but must be an error in my code, probably didn't do it right can someone correct me please : ) [CODE]XXXX-XXXX-XXXX-".substr{$_REQUEST['cc_number'] , -4, 4}[/CODE] * Yeah I know, …

Member Avatar for edwinhermann
0
210
Member Avatar for micmagicfly

What is wrong with the following code segment? [CODE] const int limit = 100; int eprep[limit]; int examp[limit]; for (int index = 0; index <= limit - 1; index++) { eprep[index] = 0; examp[index] = 0; } if (eprep == examp) cout << "Equal"; [/CODE] At first I thought it …

Member Avatar for Banfa
0
96
Member Avatar for Violet_82

Hi there, could anybody tell me how to compile a program and run it using Visual C++ 2005? This is what I have done: -File, New, Project; -In the menu, I choose Win 32 and then Win 32Console application; then I give a name to the project and save that …

Member Avatar for Violet_82
0
167
Member Avatar for josolanes

Okay, I've been working on my own version of a Date class and I had it working before but thought I'd try to revise the code a little at a time, after reading "Effective C++: Third Edition" by Scott Meyers I'll start with the code as I'm not too sure …

Member Avatar for mitrmkar
0
137
Member Avatar for smi ensi

I should do programme in C , but I don 't know witch struct I can use.:( question : we have congresse , where there is 2 type of activities : activity 1 and activity 2 in each one there is many activities where many people are linked in :( …

Member Avatar for Ancient Dragon
0
136
Member Avatar for Talguy

I have created a icmp ping function but it doesn't always work due to the firewall of the computer I am trying to ping. I heard you can get around this using a tcp ping. How can i construct a tcp ping packet. I did a little research and it …

Member Avatar for Talguy
0
143
Member Avatar for goodwin912

I did a project last year in VB for image processing, basically link to a folder, load an overlay and loop through the folder overlaying a watermark. I now need to get the same thing running in python to cater for cross platform use. I have translated all the image …

Member Avatar for goodwin912
0
155
Member Avatar for prashanth s j

Hi all, for the following string I want to search a pattern The string is lcpstr = "2008/03/25 log:true lcp: 78888 -> 100 lck=0 to=900 un=5840 l=0 BMN" If I take the pattern as "lcp: 78888", pattern checking is successful when I give the following statement: temp = re.search("lcp:"+" "+'[0-9]+'+" …

Member Avatar for snippsat
0
123
Member Avatar for faizal4cool
Member Avatar for ShawnCplus
0
112
Member Avatar for mrcniceguy

hi everyone! i`m trying to display a friend of a friend from a friend table,but i dont know how to do it. i have a table called friends,which has id,friendid and userid fields. Now i want if a member loggin, to be displayed a list of friends of his friends …

Member Avatar for mrcniceguy
0
115
Member Avatar for BigPandaCake

What I'm working on is a video rental project in visual basic 2008. I have a local database which contains info on DVDs, Members and a table for current rentals. [B]The columns i have in the current rentals table are:[/B] MemberID | DVDID | DaysOnRent | DateRented | DueDate | …

Member Avatar for BigPandaCake
0
187
Member Avatar for micmagicfly

What is the side effect in the following function? [CODE] int ExamPrep (int param1, int& param2) { if (param2 = param1) return param2; else if (param2 > param1) return param1; else return param1 * param2; } [/CODE] A side effect is defined as the result of an operator, expression, statement, …

Member Avatar for Spartan-S63
0
130
Member Avatar for ITgirl2010

This is the question i was given --------------------------------------------------- Here is a program that prompts the user to enter a student’s marks, and then prints out whether they have passed or failed a unit. '''calculate a students grade given their final mark''' def calcFinal( asg1, asg2, exam ): final = asg1 …

Member Avatar for snippsat
0
165
Member Avatar for garyinspringhil

I'm a newbie so please be patient... :) [CODE]def canvas(self): import qt self.setCaption('My Canvas') c = qtcanvas.QCanvas(self) # <- gives the canvas a parent QObject c.resize(315, 207) v = qtcanvas.QCanvasView(self) v.setGeometry(QRect(200,590,321,211)) lay = qt.QVBoxLayout(self) lay.addWidget(v) v.setCanvas(c) l = qtcanvas.QCanvasLine(c) l.setPen(qt.QPen(qt.Qt.black)) l.setPoints(10,10,390,390) l.show() v.show() c.update() l1 = qtcanvas.QCanvasLine(c) l1.setPen(qt.QPen(qt.Qt.red)) l1.setPoints(20,60,10,230) l1.show() …

Member Avatar for garyinspringhil
0
139
Member Avatar for albert101

Hi everyone, I am new to Java and more recently Swing. I was wondering if anyone would be able to show me a way of inputting a value into a text box, and being able to use this to calculate a sum for example. Also I am interested to know …

Member Avatar for albert101
0
91
Member Avatar for BuhRock

Can someone help me with error trapping. For instance, if I asked the user to input only a numeric type, 0-9. Then how would I go about creating an error message if the user inputs "hey." I know that I could easily use the Try, Catch statements but I want …

Member Avatar for chaospie
0
141
Member Avatar for MTW1989

[CODE]include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; int i,j, score[numofgamesinseries][numofplayerson… char …

Member Avatar for MTW1989
0
196
Member Avatar for mytime19

Hello Everyone, I am trying to extract integer values from 2 int variables i have created in my database table "mytab". The data or table values i have extracted on console and its working fine. But i want to use the values as x,y coordinate for my label i have …

Member Avatar for mytime19
0
813
Member Avatar for qwertyui

i have 2 list contaning 4 element i must create 2 new list which contain 2 element 1st new list must contain an element from each original list 2nd list must also contain 2 element apart those of the 1st new list

Member Avatar for woooee
0
175
Member Avatar for unbrknchane

Hey Guys, So I am working on a program in class that asks for the age of your dog and translates it into human years....needless to say overly easy and boring. So I want to get into adding sprites to C. My first question is where I can find some …

Member Avatar for jephthah
0
240
Member Avatar for max1million

I need to bit reverse 8-bit integers. eg 208 (11010000) becomes 11 (00001011) This works but it's too slow: [CODE] private short MyReverse(short a) { int[] order = new int[8]; for (int i = 0; i < 8; i++) { if ((a & Convert.ToInt32((Math.Pow(2, i)))) != 0) { order[7-i] = …

Member Avatar for ddanbe
0
221
Member Avatar for davethebear10

I have to get three pieces of information from the files i have 1. The name of the owner of the file which appears after the pattern tag <foaf:name> 2. The ID of the owner of the file which is embedded in the filename, e.g., http%3A%2F%2Ftalk.ie%2Fvbulletin%2Ffoaf.php%3Fu%3D12 belongs to user 12. …

Member Avatar for woooee
0
253
Member Avatar for rumpleteaser33

Hi I'm doing a project where I need to have people register by entering a username and password. When they click register I want them to be added to the database, but I'm having trouble doing this. Can anyone help? This is my first time using VB. This is the …

Member Avatar for rumpleteaser33
0
238
Member Avatar for danizzil14

ok I had looked on the internet and found one form of running an exe file from a py script, i goes like this. [CODE]import os os.system("c:/windows/iexplore.exe") # Or wherever it lives[/CODE] Problem is, whenever i run the script with the appropriate path loaded in, i get the following: [CODE]Traceback …

Member Avatar for o0b3600
0
373
Member Avatar for alcx88

I am not sure what this means and I get it all the time. Can someone help me fix this code? [ char add_account(account_t a[]) 7 { 8 int i, N=1000000; 9 char ch; 10 char str1, str2; 11 int m=20; 12 13 for(i=0;i<N;i++) 14 { 15 if(a[i].number==0) 16 { …

Member Avatar for jephthah
0
2K
Member Avatar for guht

I have a VB.NET application created in Visual Studio 2005. The application uses crystal reports. It works fine on the developer machine, but I am receiving the following error on a client machine: System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=11.5.3700.0 This is a standalone executable and not distributable …

Member Avatar for kjohnston
0
1K
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Member Avatar for Sodabread
0
209
Member Avatar for kevinwcaulfield

I am new to PHP, and I have this website. I want to know if i can have a page that is password protected (i know how to do that part), where the user can edit a variable from a text area. Example: if i had a $news variable, and …

Member Avatar for diafol
0
102
Member Avatar for rajeshswain

Hello, I am creating a windows application to draw 3d cubes. I am preferring to give all the details of the cube in the code itself i.e. dimensions, colour etc.. Suppose there will be two cubes, say with different dimensions and we provide the details with the manner that is …

Member Avatar for superbokey
0
561
Member Avatar for Yeen

I have to use a queue in an solitaire assignment, but I'm having some trouble using the linked list Queue class that I made. It won't take arrays at all. [code] class Testing { public static void main (String [] args) { Queue testlist = new Queue(); // testing Queue …

Member Avatar for lafigueroa
0
795
Member Avatar for keithyg

[B]SHA1 my password fields all at once by running a query, I need to know how to write the query[/B] What I want to do is update all password fields in my database to be SHA1 Can anyone help me to run a query to update all fields as I …

Member Avatar for drjohn
0
2K
Member Avatar for shahab_qureshi

[COLOR="Red"][B]we want to add functionality like "run" in windows.[/B][/COLOR] [COLOR="Green"]add one text box and button under button write this code [/COLOR] --> [CODE] System.Diagonestics.process.Start(TexBox1.Text);[/CODE] now run it. here you have to give name of processes. for example process name for windows media player is [I][I][B][COLOR="Green"]wmplayer[/COLOR] [/B]so when you write this …

0
45
Member Avatar for southtucky

First let me say I am thankful I found these forums for assembly, and that I am a complete newbie. I've been reading documentation, and even bought a book on learning assembly, however, there is still one question I have that baffles me. I would appreciate it if someone could …

Member Avatar for NotNull
0
154
Member Avatar for Cap'nKirk

Hi all, I have a file download counter on my website, [URL="http://www.madtogger.co.uk/page/software"]here[/URL], that I am playing around with. The files are stored in a folder on my server and their filenames are used to populate a mysql database. What I would dearly like is for the filename without it's extension …

Member Avatar for Cap'nKirk
0
144
Member Avatar for majestic0110

Hi all just a quick question, what code do I use to make user input of RETURN(enter button) defaulting to an OK button on a windows form? thanks for your time.

Member Avatar for shahab_qureshi
0
132
Member Avatar for Rahul8389

hiiiiiiii friends i want to get path of current directory . tell me as soon as posible

Member Avatar for shahab_qureshi
0
87
Member Avatar for SgtMe

Hi guys! I am in the process of making a game...similar to this one: [url]http://www.miniclip.com/games/nfl-lateral-collateral/en/[/url] I am using the following code to detect key presses: [CODE] pygame.event.pump() key = pygame.key.get_pressed() if key[pygame.K_LEFT]: ... [/CODE] How can I detect if a key is released? I have seen this done with using …

Member Avatar for tbone2sk
0
14K
Member Avatar for MyrtleTurtle

This is my first question here. My latest assignment is to create a random walk program using a 2-d array. The program worked fine until I tried to put this code into a function: [CODE] for(int i = 0; i < 100; i++){ //reset field of flowers for each attempt …

Member Avatar for Fbody
0
246
Member Avatar for moobaa

Hi dani-webbers... I am endevouring to build an application that drags in data from multiple sources, and compiles this into a single page in which users can then click through to the item on the desired site. Most of the sites I want to include provide an API, but one …

Member Avatar for diafol
0
106
Member Avatar for eyal27

Hii !! I try to update excel file by using Odbc and Oledb objects with out success. my problem when i try to update string in cell that the Odbc "think" this cell is have different datatype. how can i force the Object to put string at cell that have …

Member Avatar for eyal27
0
962
Member Avatar for Sinha's

Hello Everybody, I have used inner join with two tables to join them and tried to calculate the sum of rows. Now the table descriptions are- Table1- agent_business_collection (it stores business collection of an agent of different business packages) Table2 - agent_business_commission (it stores commission of an agent against different …

Member Avatar for woodsrr
0
181
Member Avatar for tkpanther

I have been given an assignment to create a random race program where 2 different lines race. How the lines travel is determined by a random number generator, but that is not the issue I currently have. I am suppose to create a window that is 500x600, with the x- …

Member Avatar for ssmokincamaro
0
194
Member Avatar for b1izzard

Hi to all, I have installed VS2008 pro in Xp sp2 pro. I have a problem with positioning of the controls while in the Design mode during a webpage development. Whenever I Add a "BUTTON" or any control in the form and want to drag it anywhere within the form …

Member Avatar for amitshrivas
0
98
Member Avatar for amalashibu

Hi, I had a problem when display the total amt from sql to textbox ------------------------------ create table get(Currentdate varchar(200),Expenses varchar(200),Amount decimal(38,2))-this a table ------------------------------ asp.net codings -------------------------- mycomm.CommandText = "SELECT sum(Amount) from get" dr = mycomm.ExecuteReader While dr.Read() TextBox6.Text = dr.GetDecimal(2) End While dr.Close() -------------------------------------------------------------- Error: Index was outside the …

Member Avatar for amitshrivas
0
175
Member Avatar for ntombazana

ive just started c++, n im not really good, even with the simple programs, couls someone help me with this? thanx Question 3 (10 marks) Concepts: • Static local variables Implement a function to track various details regarding a list of exam results. Download and extract prac6-q3.tar.gz and read the …

Member Avatar for emilo35
0
146
Member Avatar for Pankaj18

Hi, I am using RegularExpressionValidator to validate EmailID where ValidateExpresion is:: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* Actually i want to validate EmailID that can also contain spaces. example:: < [email]raman@gmail.com[/email] >,<raman@gmail.com>,< [email]raman@gmail.com[/email]> I want to validate all of the above Email IDs as Valid. Please help me Thanks in advance

Member Avatar for woodsrr
0
113
Member Avatar for ueoptimum

[CODE]#include <stdio.h> #include <iostream> #include <conio.h> #define p printf #define s scanf float np, in, ir, pf, ad, md, re, rr,pfl,al; char bn[20],bc[5],rn[10], c[10]; main() { system("title Application No. 2"); system("color F4"); do { p("\nEnter your name please: "); s("%s", &bn[20]); p("\nEnter your code (A-C): "); s("%s", &bc[5]); p("\nEnter your …

Member Avatar for Pynolathgeen
0
257
Member Avatar for xzero_x

class Employee { private String last; private String first; private String title; private int age; static int count = 2; public Employee() {++count;} public Employee(String last, String first, String title, int age) { this.last = last; this.first = first; this.title = title; this.age = age; } public String getLast() { …

Member Avatar for jwenting
0
105
Member Avatar for gamerprog

So, as a project for funzies, I decided to make a basic game where you run around the screen and get into fights when you encounter skeletons. However, I'm nowhere near the fighting parts yet. So far, the main character only appears when he moves (no idle animation), erases rocks …

Member Avatar for Pynolathgeen
0
329
Member Avatar for mundee

New to the Java world. Can .jsp work on Windows based platform also, oppsoe to Linux? ~Mundee

Member Avatar for masijade
0
72

The End.