199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vishy_85

hi all , i need to return the value of tempdate to the main function .... any idea how i can do that ??? [code=cplusplus] #include <string.h> #include <sys/time.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #include <iostream.h> char* incrementdate(int &func_days_int,char *tempdate) { char temp_dat[11],temp_mon[8],temp_year[5]; int cur_dat,cur_mon,cur_year; temp_dat[0] = tempdate[0]; temp_dat[1] …

Member Avatar for Ancient Dragon
0
133
Member Avatar for Leandro-AL

Hello! I have a small script which dynamically creates select tags (they are placed within divs). Each select has a [B]+[/B] and [B]-[/B] sign next to it, and if you click the [B]+[/B] it adds another select below that one, or if you click the [B]-[/B], it removes that current …

Member Avatar for Leandro-AL
0
149
Member Avatar for rEhSi_123

Hello fellow members....... I have been learning a forum creation video tutorial lately and I found few errors in them but the author is just NOT responding to my emails..... Anyhow these are the errors which I am facing: The Error I am facing is 'uid' which it says is …

Member Avatar for rEhSi_123
0
356
Member Avatar for MJV

I have a form with combo boxes and calculations based on the value of the combo box. I set a default value in the combo box on loading the form but this value is not seen for calculations unless i go and reselect it with a mouse pick. What is …

Member Avatar for MJV
0
119
Member Avatar for daniel_16

Hi, I am creating a hash table which is basically a pointer array of 6151 elements. I use it for chaining. But my code doesnt work properly. There's an error at T[i]=NULL and at function call. This is how it goes: [code=cplusplus] #include <iostream> #include <string> #include <vector> #include <fstream> …

Member Avatar for xyzt
0
584
Member Avatar for jeffc418

Hey all! I have a question that I just need a real solid answer to ;) Basically, I need a PHP script that checks values inputted by a form for special characters (only allows letters, numbers, and apostrophes). For form validation :D. I'm really not the best with regexes otherwise …

Member Avatar for pritaeas
0
105
Member Avatar for daino

Hi all This may seem relly naive but I'm only new to C++. If, in the future I want to build charting software for stock-charts, etc and want a very professional and portable widget toolkit to use with C++ which one should I use and what should I be looking …

Member Avatar for xyzt
0
109
Member Avatar for mem81

Hello, I have a form where I have to say two dropdown lists. Firts dropdown list is populated based on query from a table in access database. I have another dropdown list .I woud like in that second dropdown to show only values that are relevant to the selection in …

Member Avatar for mem81
0
113
Member Avatar for pezza

Hi, I hope I am in the right place for this... I am looking for some help with a query. Basically, I am using a shopping cart which has option groups and I have created 2 new option groups. I now need to add these option group id's to all …

Member Avatar for pezza
0
198
Member Avatar for ruwanaru

Pleas help me on this i am a new one for php and i want to upload a picture to database can u plz help me to do this ................ thanx.............

Member Avatar for ruwanaru
0
317
Member Avatar for arshad115

i m making a program which initializes a 2d Dynamic array by first asking for the number of rows and columns,and then filling the array with random characters. Then i have to check for a three lettered array in the 2D array,(Horizontally,Vertically,Diagonally). i m having problem with the conditions for …

Member Avatar for arshad115
0
279
Member Avatar for prawin@123

Hi can any one Fix this problem, I am Uploading images to a folder , There i displays images but unfortunately display only the file name and not the image can any help me, BELOW IS THE CODE [CODE][LIST=1] [*]<?php [*] include 'dbcon.php'; [*]?> [*]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 …

Member Avatar for nav33n
0
162
Member Avatar for Aamit

Hi, [code] function xyz() { <a href="<?=$rame['img_link']; ?>" ><img src="img/<?=$rame['preview']; ?>" width="<?=$w;?>" height="<?=$h;?>" alt="<?=$rame['name']; ?>" /></a> } [/code] Using function I get image and url suppose image->url=http://www.daniweb.com I want to do like... when user click on this image i want to save count(hit) into database(mysql) How to do this...??

Member Avatar for nav33n
0
82
Member Avatar for VRspace4

Hello, I'm writing a simple C# connectionless UDP application that communicates with a C++ connectionless UDP app. I could send from the C# to C++ using the following sets of functions fine: Send from C# to C++ C#: SendTo() C++: recvfrom() However, I'm having trouble receiving the C++ UDP messages …

Member Avatar for LizR
0
727
Member Avatar for MaxManus

I want to store two variables in an array or list in a loop to collect all my x an y, something like the append function in python, can anyone help me.

Member Avatar for MaxManus
0
174
Member Avatar for madristaa

Hello friends, I am displaying want to display Comments column. It will display the 1,2,3,4,..n where n is the number of application in proposal_application table. The code dispaly the other information with 2 different color for alternate rows. Can you please help me out to display the Comments column. Here …

Member Avatar for pritaeas
0
287
Member Avatar for tasneemnikhat

hey ol, i dnt hav much time left to solve des Q's.. can u plz guide me solving des... Fundamental Exercise /* class design, dynamic memory allocation and operator overloading */ 1. Write a program to implement Matrix class. • Implement addition and multiplication operation • row and col of …

Member Avatar for tasneemnikhat
0
121
Member Avatar for Naik Dhiren

I have a one textbox on the form and combo1 in datagridview when form is load combo1 is empty if value of text1.text is 'A' then combo1 should have below items. combo1.Items.Clear(); combo1.Items.Add("Director"); combo1.Items.Add("MD"); combo1.Items.Add("President"); combo1.Items.Add("Chairman"); combo1.Items.Add("FullTimeDir"); and if value of text1.text is 'B' then combo1 should have below values. …

Member Avatar for Naik Dhiren
0
98
Member Avatar for kevin wood

i am trying to get this code to work but there is something wrong with the array (not to good at these). the main part of the code works it is sending out the email but only ever to one registered user. here is the code i have so far. …

Member Avatar for nav33n
0
1K
Member Avatar for BradenMurphy

Hi, Does anyone know of some source code or methods that can be used to monitor the CPU utilization in Delphi?

Member Avatar for BradenMurphy
0
115
Member Avatar for AniWeb

Hello All, How I can edit rows of gridview using Command Field ‘Edit,Update,Cancel’ of the gridview? I bind the gridview with the Session variable, which contain and returns the DataTable, the coding is as follows:- [code] protected void Page_Load(object sender, EventArgs e) { GridView1.DataSource = (DataTable)Session["MyShoppingCart"]; GridView1.DataBind(); }[/code] One more …

Member Avatar for greeny_1984
0
343
Member Avatar for nosnibor

Ok is there any why i can call the base class this pointer or object from with in a derived class? Example: [CODE=cplusplus] class BASE { public: BASE () {} BASE(BASE & b){} virtual ~BASE () {} virtual void Method(){cout << "BASE::Method called"; return; } }; class DERIVED: public BASE …

Member Avatar for vicky_dev
0
1K
Member Avatar for ryan311

all i want is change all the record in my table if the pcarrier="Credit" but my problem is only one data have been changes. . [code] Set rs = New ADODB.Recordset rs.Open "Select * from Soldto where cno='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic If rs!pcarrier = "Credit" Then …

Member Avatar for vb5prgrmr
0
151
Member Avatar for prawin@123

Hi i am new to php, can any of u help me, I am storing details such as name , address, email id, phone no, fax no and all. and i am creating edit form to edit those details , i am returns almost all values except address and select …

Member Avatar for prawin@123
0
105
Member Avatar for julseypart

hi all. ok i have been able to create an error message - if the user tries to delete a row which has not been selected first; but it still deletes from the gridview... [CODE]void DeleteRowButton_Click(Object sender, EventArgs e) { LinkButton btn = sender as LinkButton; GridViewRow row = btn.NamingContainer …

Member Avatar for greeny_1984
0
115
Member Avatar for myth3_16

Hi All, I was wondering if anyone could help me with this one. If you want to see what I have at the moment goto [url]http://www.personally-yours.co.uk/indev/test/state_dropdown.php[/url] This page has two drop downs, the bottom one is populated depending on what is selected in the top one. What I want to …

Member Avatar for anish.anick
0
129
Member Avatar for Mehwish Shaikh

hello friends: I am a student of Assembly language and making some programs to have an insight of this language.. along with i am also supposed to submit a project at the end. I've made this program, which'll convert tempt from celsius to fehrenheit and vice versa..It's compiled in masm611 …

Member Avatar for Mehwish Shaikh
0
1K
Member Avatar for rouse

I am looking for a PHP tutorial or a script to write a small email contact form in OOP not the procedural method. I would like to use the mail server connected to my hosting services as opposed to sending it through Google. Thanks! WBR

Member Avatar for rouse
0
58
Member Avatar for BobLewiston

I installed SQL Server 2008 Express, basic edition (SQLEXPR32_x86_ENU_Bootstrapper.exe, version 9.0.30729.1) without any problem. Then I attempted to install AdventureWorks Sample Databases for SQL Server 2008 (SQL2008.AdventureWorks_All_Databases.x86.msi). This attempt failed because SQL Server 2008 Express, basic edition doesn’t support Full-text Search, which AdventureWorks requires. So I uninstalled SQL Server 2008 …

Member Avatar for BobLewiston
0
208
Member Avatar for babyfrostie

hello, how can I display a data (ex. course) in a drop-down list whenever I add a data? thanks!

Member Avatar for ahmksssv
0
99
Member Avatar for ViRiPuFF

Hi I have a site with 2 pages. The first page consists of a set of input fields where the data input by the users will end up in a db when the user clicks the submitt button, creating a new record. As well as this on click the users …

Member Avatar for greeny_1984
0
92
Member Avatar for monolith45

Hi there! I have written a program with fixed costs for a vacation. I need to add sales tax in for the total amount but this needs to be floating. Also, I had intended this to be a user input based program, but without knowing the float code for calculation, …

Member Avatar for vmanes
0
142
Member Avatar for kamae

Can anyone help me how to do this? It will test if it is valid or invalid. Input Output name_123 Valid name123 Valid 123name invalid 123_name invalid this will test if the variable name declared is valid or invalid.

Member Avatar for vb5prgrmr
0
86
Member Avatar for RahulV

[code=visualbasic] Private Declare Function Function_Name Lib "user32" () As Datatype [/code] I've found such lines used in many VB6 projects and tutorials. What is it? What actually is this used for? Are there more such function? How to find out more such function/properties? A detail explanation will be helpful and …

Member Avatar for vb5prgrmr
0
5K
Member Avatar for Duki

Hey guys, I'm getting an error at lines #9 and #14. Could someone tell me what I'm doing wrong? [code=c++]StackType::StackType(const StackType & st) // copy c-tor { if ( st.topPtr == NULL ) topPtr = NULL; else { NodeType * stptr; // pointer to source Stack NodeType * p; // …

Member Avatar for Duki
0
178
Member Avatar for firoz.raj

can anybody tell me why i am getting type mismatch error in checkinput function.Here is the code what i have written.error is generatiing from bold line. [code] Private Function CheckInput() As Boolean Dim row As Integer, itemCode() As Integer 'At first always Test for Empty TextBoxes If Combo1.Text = "Dept …

Member Avatar for vb5prgrmr
0
178
Member Avatar for denniskhor

[code] import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; import java.io.*; public class PartOfSpeech extends JFrame implements ActionListener { private JButton btn1,btn2; private JTextArea txtAreaArticle; private JTextField txtField1,txtField2,txtField3; private JMenuBar jmb; private JMenu fileMenu; private JMenuItem out; public PartOfSpeech() { setTitle("PART OF SPEECH SYSTEM"); Container con=getContentPane(); con.setLayout(new BorderLayout()); jmb=new JMenuBar(); …

Member Avatar for denniskhor
0
80
Member Avatar for nexusdarkblue

Hi everyone, It seems my struggles with structures have continued. In my current program, I'm trying to pass an array of structures into a function. I've declared my structure in a separate header file using [B]typedef [/B]to define a new type called 'flight'. But when I try to compile my …

Member Avatar for nucleon
0
240
Member Avatar for ash_85

I can encrypt with ENCRYPT ------------ $pass = $_POST['sort_code']; $query = "INSERT INTO customer(sort_code) VALUES (AES_ENCRYPT($pass,'key'))"; the above code take a value from form and puts in the database as encrypted value. The field type of the sort_code in my database was varchar but now i have changed to BLOB. …

Member Avatar for ash_85
0
92
Member Avatar for chiurox

Hi, I'm writing this code where I want to match a string with a signature. A wildcard '?' would mean it can skip 1 character. A wildcard '*' means it can skip 0 to 32 characters. For example, say I have: string "screwed" and a signature "screw?d" These two would …

Member Avatar for Ancient Dragon
0
456
Member Avatar for lehe

Hi, These days I have to install a higher version of bash under my $HOME on my office server. I hope to make the new bash automatically run both when I ssh to my server and when I boot into my office computer which loads my $HOME on the server. …

Member Avatar for eggi
0
166
Member Avatar for leestotch

Hey friends, Started c++ not to logn ago and took right to it, up until now I have had no problems whatsoever. Now, with my specific assignment I have absolutely no idea what do to. I dont even know where to begin. I feel foolish and embarrassed and I'll i …

Member Avatar for VernonDozier
0
123
Member Avatar for rasingh24

Hi, i have a project in which i created two classes `TreeDisplayform(Form.cs)` and MytreeNode class in same namespace. TreeDisplay class contains all the GUI related stuff like Browse button textbox, TReeView. I want the user to select a XML file through browse button which will be displayed in textbox.The Xml …

Member Avatar for sknake
0
115
Member Avatar for mrnutty

I am trying to rotate the object by a input of key. I dont know why the object is not rotating. I used glRotatef(x,0,0,1); //where x is declared as float : here is my code : [code] #include<GL/glut.h> GLfloat x = 10; void initGL() { glEnable(GL_DEPTH); glDepthFunc(GL_LEQUAL); glClearDepth(1.0f); } void …

Member Avatar for MattEvans
0
119
Member Avatar for rajeesh_rsn

Hi I had a php page with some datas. When a visitor visit this page I need to show a div until the page loads completely... I tried many but cant.... Please any one help me with right idea or a bit of script ...... Thank you for your time …

Member Avatar for rajeesh_rsn
0
119
Member Avatar for Akhilleus

I'm having a hideous problem with a program I'm working on involving a map with pointer keys. The keys are pointers (to objects on the stack) and the data are pointers (to objects on the heap). It's the list of references for a handle class, so that if handle.destroy() is …

Member Avatar for Akhilleus
0
187
Member Avatar for Ganahonic

[CODE]#include<stdio.h> int function() { int test1; int test2; addit(test1 + test2); return(0); } void addit(test1 + test2) { printf("Sum is: %d",test1 + test2); }[/CODE] Whenever I define a void function in C with an operator in the parameters, I always get the error: error: expected ')' before '+' token How …

Member Avatar for Dewey1040
0
82
Member Avatar for Gagless

I have to write a program that outputs the length and width of a rectangle and then calculates and outputs the area, using a class called rectangle... I thought I was about done, but when I run the program it says width, length and area are being used without being …

Member Avatar for Gagless
0
132
Member Avatar for dirbax

Hi , is it possible to transform the following code to math [code=cplusplus] int F( int n ) { int r=0; int mid=n/2; for( int i=0 ; i<n ; i++) { if( i<mid) r+=1 ; if( i==mid) r*=2 ; if( i>mid) r=pow(r,3) ; } return r ; } [/code] and …

Member Avatar for Rashakil Fol
0
122
Member Avatar for cppnewb

Hi. I have a program that goes a little like this: [CODE] // Include files, etc... int main() //code... [COLOR="Green"] if (input == "logout"); { return main(); } [/COLOR] // rest of the code [/CODE] Now, every time the program goes to main, the values previously stored in the varibles …

Member Avatar for nucleon
0
130

The End.