64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Texpert

Hi, I have this app running fine on my pc with connecting to SQL server on my localhost using windows authentication. Now I am going to deploy it on my client's server where SQL Server 2K DB is on server "abcd" with SQL Server credientials (No windows authentication) My problem …

Member Avatar for nandalanranjith
0
238
Member Avatar for Rehat

hi, I am doing a lab assignment for my C++ class and it wants us to use serveral pointer indirections for each variable. The program runs but then crashs and it seems to occur during the second iteration of a for loop in the arrayGet function. I'm not sure why, …

Member Avatar for Rehat
0
91
Member Avatar for AniWeb

hello all, I want to know that how I can determine that User has logged first time in my website, so that I can force him/her to change his/her password, which is assigned by the Administrator. I have tried to keep Session variable in the Global.asax file to maintain login …

Member Avatar for AniWeb
0
115
Member Avatar for Fungus1487

Hello all, i have recently finished work on a clients database. they now wish for one field in the database to have 10% taken off for each record. can this be performed soley through an SQL statement on the MYSQL database.

Member Avatar for Fungus1487
0
95
Member Avatar for adil7

Hi, In this , i dont know how to do nested colums. <display:table name="${form.results}" id="row" cellpadding="true"> <display:column property="firstName" value="${row.firstName}"/> <display:column property="lastName" value="${row.lastName}"/> | | |// list of columns | | <display:column> <display:table name="${row.cdList}" id="row" > <display:column> <display:table name="${row.CDSummary}" id="row" > <display:column property="cdAccountType" value="${row.cdAccountType}"/> <display:column property="cdType" value="${row.cdType}"/> </display:table> </display:column> </display:table> </display:column> …

0
67
Member Avatar for Dwasifar

First off, the standard disclaimer: I am pretty new at shell scripting, and my work at this point is mainly hacked-together ideas and pieces from other people's. Thank you in advance for your tolerance. :) I am using Ubuntu Linux 7.10 Gutsy, which has the bash shell. I wrote a …

Member Avatar for radoulov
0
377
Member Avatar for Spartan552

[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty …

Member Avatar for Spartan552
0
115
Member Avatar for Spartan552

Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks.

Member Avatar for Spartan552
0
143
Member Avatar for eleonora

hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance !

Member Avatar for ShawnCplus
0
185
Member Avatar for lookof2day

Hi ! I'm trying to find the substring in a shell script as given: [code] #! /bin/bash HTML="<html><body>OK</body></html>" OK="OK" OFFSET=`expr index $HTML $OK` OK_LEN=`expr length $OK` var1=`expr "$OFFSET"` echo $var1 var2=`expr "$OK_LEN"` echo $var2 INPUT=`echo | awk '{ print substr("'"$HTML"'",var2,var1) }'` echo $INPUT [/code] But on running it does not …

Member Avatar for ghostdog74
0
134
Member Avatar for everlast

[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; class Matrix { public: Matrix (int =0, int =0); ~Matrix (); Matrix (const Matrix&); void operator = (const Matrix&); Matrix operator + (const Matrix&); Matrix operator * (const Matrix&); Matrix operator - (const Matrix&); int* getMember(int =0, int =0) const; //returns pointer …

Member Avatar for everlast
0
145
Member Avatar for Dark_Knight

Hi. Below are two pieces of code. This first one works fine: [code] char str[] = "Hello World"; char *b; b = &(str[3]); *b = '3'; printf("%s\n", str); [/code] However this second one results in a segmentation fault. [code] char *str = "Hello World"; char *b; b = &(str[3]); *b …

Member Avatar for WolfPack
0
296
Member Avatar for peter_budo

Just getting into XML and other X-stuff so this may sound little silly as I'm thinking more ahead of I'm currently reading and able to do, but here it goes...:twisted: Take simple example of CD collection. Currently with use of XSL i'm able to display my XML document as table …

Member Avatar for peter_budo
0
81
Member Avatar for Venom Rush

Hi guys and gals Just curious to know if it's possible to select the 3 latest entries in a table. Would be an added bonus to my project. ;)

Member Avatar for Venom Rush
0
107
Member Avatar for Venom Rush

Hi there What I'd like to do is store a paragraph in a column and pull roughly the first 200 characters of the paragraph and display them on a page as a snippet. Is this possible? If so could someone give me a link or code snippet on how to …

Member Avatar for Venom Rush
0
140
Member Avatar for nu2cpp

I am using BCB6 so I hope this is the right forum. I am using asyncpro's TApdComPort component for serial communication. I need to send 12 bytes and receive 22. I can send the 12 bytes using putblock(..). But I can't figure out how to reeceive my data. Also, I …

Member Avatar for nu2cpp
0
541
Member Avatar for lostandfound

Hello there, I am trying without much success to display multiple columns from a database where the selected data is dependant on specific common data. I have tried using an SQL statement with a Jet 4.0 OLE DB connection. SELECT Name,Date,Action FROM Track WHERE SerialNumber="1" with the output displayed in …

Member Avatar for lostandfound
0
158
Member Avatar for squidd

ok so basically I am writing a small program that does a few different things in Delphi 2007. I am very new to coding and so I hope that my terminology will be up to par. If not, please forgive me. I am loading text files into a ListView... I …

Member Avatar for Raged
0
465
Member Avatar for omega3387

Well I need some help understanding some sections of code. I'm a complete newb at web development so all explanations are greatly appreciated. I am having trouble understanding how to set the attributes of an object. I have a myProject object declared in the global.asa file and then I am …

0
55
Member Avatar for ssvetkoff

I am writing a program that calls system( "c:\pathtofile.exe" ) to launch another program. Does anybody have a suggestionon how to make it so the console window doesn't show up.

Member Avatar for ssvetkoff
0
108
Member Avatar for Karkaroff

In the following code, the object is not being written into file in line 30 [ICODE]stfile.write((char*)this,sizeof(item));[/ICODE] When line 26 :[ICODE]stfile.read((char*)&ob,sizeof(item));[/ICODE] is hidden the object is written into the file. Please help!!! [CODE=C++] fstream stfile; class item { int code; char name[25]; int price; int qty; public: int getcode() { return …

Member Avatar for Karkaroff
0
133
Member Avatar for Venom Rush

I have a drop down menu the is populated with event names from a DB. What I'd like to do is have the form submit after click on one of the event names in the drop down list. At the moment I have a submit button for this. I don't …

Member Avatar for fatihpiristine
0
565
Member Avatar for eranga262154

Hi all, I've created two columns on the list view as follows. [CODE] ColumnHeader colHed; // Header one colHed = new ColumnHeader(); colHed.Text = "Name"; colHed.Width = 100; this.lwDetails.Columns.Add(colHed); // Header two colHed = new ColumnHeader(); colHed.Text = "Address"; colHed.Width = 200; this.lwDetails.Columns.Add(colHed); [/CODE] Then on a separate function I …

Member Avatar for eranga262154
0
130
Member Avatar for Basanagouda

I am able to Validate for 9.1 decimal Validation by regex expression "[0-9]\{0,9\}\.[0-9]?$" but If I call in KeyPress last character entered cannot be in textBoxVariable.text. Qusetion : I want to do e.handle=true; for keypress , if textBoxVariable.text Value not satisfy regex condition. Any solution? Thanks in advance

0
62
Member Avatar for Vagelis44

Hi, I want to make some kind of monitor for my PC and i want to have CPU load in form like "top" (something% , ex 23%). So i use C and : i'm opening the file /proc/stat and read the first line : cpu 92208 2282668 19432 79824 739 …

Member Avatar for Belrog
0
139
Member Avatar for lemymatair

Hello World! (to all of you DaniWeb guys!) I want to build 3D Online Chat but I don't know how to start. Does anyone can tell me how to send message between 2 PC? (An output of this message I want to show in 3D character's shout box.) Right now …

Member Avatar for lemymatair
0
142
Member Avatar for xfactornos

I have been writing my program and everything works like it should unless the user inserts a character then the whole thing blows up... how can I fix this. Is there something I can add to block characters from being added? any help would be appreciated! here is my code: …

Member Avatar for xfactornos
0
124
Member Avatar for Dark_Knight

Hi, I am trying to create a method that accepts a pointer to a (static) string so that it can modify the string. I have something similar to this: [code] void modifyString(char **pstr) { char *str = *pstr; // Make changes to str ... } void doSomething() { char str[] …

Member Avatar for Dark_Knight
0
134
Member Avatar for Spartan552

Hi. Do you know how to get and set cursor position in C language? I know this can be done using GetCursorPos and SetCursorPos from Win32 Api but I want it to work on several OS so I cant use Win32 specific functions. Thanks.

Member Avatar for Salem
0
193
Member Avatar for jdseader

I need to query a database on a server. As a first step, I have written the following Java code to just make sure I can access the database. I thought that the Try-Catch blocks would take care of the exception problem, but apparently they do not because when I …

Member Avatar for jdseader
0
1K
Member Avatar for majestic0110

How can I view a single xml file I wrote using IE. Have browsed to directory where I saved the file but I gat an error from IE : The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click …

Member Avatar for majestic0110
0
129
Member Avatar for gusbear

when i start my program i write import graphics * def main(): but then when i try to create a button it doesn't work anyone know the problem??thanks

Member Avatar for Ene Uran
0
2K
Member Avatar for rajatC

How to output to an excel file and how to read from it?? i have done the writing part...to use [inlinecode]"\t"[/inlinecode] for moving to next cell in same row and [inlinecode]"\n" [/inlinecode]to move to next row... and is there any special format to save that excel file..because when i save …

Member Avatar for jacki
1
6K
Member Avatar for anallan

can someone help me regarding my program? i am tasked to create a program called string censoring. it asks for two strings then it removes the characters in the first string which are similar to those in the second. Ex: 1st string= new york yankees 2nd string= absolutely result= nw …

Member Avatar for anallan
0
672
Member Avatar for yarita

I am just beginning in a C++ class and I am having a hard time setting up the code for using a modulus operator. The problem assigned has user input as name and hours worked. The program is to output the name, weeks worked, days worked, and hours worked based …

Member Avatar for Arpy Giri
0
154
Member Avatar for OmniX

I have been trying to restrict the uploading of images based on size and format. At the moment I have the size working but not the format. Ive tried different code but im favouring something like this: [code] if($_FILES['file_image']['type'] == "image/pjpeg") { CORRECT FORMAT else { INCORRECT FORMAT } [/code] …

Member Avatar for OmniX
0
333
Member Avatar for everlast

is there a way for me to write OOP programs in c++ for Texas Instruments TI 89 graphic calculator?

Member Avatar for everlast
0
1K
Member Avatar for pepipox

Dear all In advance, thank you for your help. I am trying to initialize an object in C++ depending on certain parameter. Below is the source code I am using. if(ARG::metrn==metrnSMD) EventStream<complex<Lambda>> evstrTrain(fileTrain, evlsTrain); else EventStream<Lambda> evstrTrain(fileTrain, evlsTrain); if (ARG::FRandomEventOrder()) evstrTrain.SetRandomOrder(true); I am declaring and calling the constructor for 'evstrTrain' …

Member Avatar for pepipox
0
153
Member Avatar for eesti44

Hello, I am still working on the self study thing. I have decided to do or attempt to do a project that requires a header files with 2 other source files. The header file was given in the book. It is as follows: #ifndef GOLF_H_ #define GOLF_H_ //golf.h -- for …

Member Avatar for eesti44
0
141
Member Avatar for bcm

I got it but my problem is that I want a text should scroll at the bottom of the form from right side of the screen to the left side of the screen want the text to scroll at the bottom of form from rightmost end of the screen to …

Member Avatar for Ole Raptor
0
141
Member Avatar for ceyesuma

I have a netbeans demo program with clasess and libraries the whole bit. I need to understand these lines of code because I need to click on the button I added:caputure the string in the jtextbox;put it into a query and put the resultset into a list and then display …

Member Avatar for ceyesuma
0
150
Member Avatar for majestic0110

Hi all, I recently started to work for a company who uses XML. I am new to XML, and was wondering if anyone could give me any pointers as to what I should look out for (potential problems) and a decent online tutorial? The company will be training me, but …

Member Avatar for majestic0110
0
104
Member Avatar for bcm
Member Avatar for bcm
0
83
Member Avatar for Taffd

I've created my own forum and would like to display username - from users table title - form topics table and a count of comments - from replies table I 've got the first bit sorted ok SELECT username, title FROM users, topics WHERE users.userid = topics.userid ORDER BY RAND() …

Member Avatar for nav33n
0
77
Member Avatar for rajatC

I recently saw this function in one of the online test paper i was going through. And i came to know that this is a standard library function but i dont know anything about it. And it is related to some Parent process - Child process kind of things. And …

Member Avatar for rajatC
0
125
Member Avatar for ineuw

I built a web page form, where the action is set to "mailto" to my email address. I already scripted the client side using Javascript and I wish to know if I can use Javascript for server side scripting as well? I do not know PHP, nor Perl, and prefer …

Member Avatar for ~s.o.s~
0
112
Member Avatar for kashmir323

I started c++ a few days ago and I am trying to make this program for my math class just to test myself. This is my code. [CODE]#include <iostream> using namespace std; int main () { int goldennumber; int finalnumber; int ratio; cout<<"Welcome to Easy Golden Ratio Finder!\n"; cout<<"\n"; cout<<"\n"; …

Member Avatar for kashmir323
1
89
Member Avatar for jayDC

I'm using the VB6 Standard Toolbar Control. I would like to basically do this: [code] Private Sub MDIForm1.Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) [/code] Which cannot be done. I'm looking for a some along these line. I have tried this code in a timer, but it seems to make the button click …

Member Avatar for SCBWV
0
725
Member Avatar for kanui

Can anyone help me with this code? I have been trying to output the url as a link but I cannot manage to do so. The url comes out fine in text form but when I try to output the url as a link I either get an error message …

Member Avatar for kanui
0
190
Member Avatar for lydia21

hi i want to create the database retrieved datas as hyperlink using php.i have sent the code.please tell me how to edit the below code <html> <head> </head> <body> <form> <table> <tr> <td><font color="red">View All Posting</font> </td> </tr> <tr> <td><a href="care.php">Create New Users</a></td> </tr> <?php $hostname = "localhost"; $username = …

Member Avatar for kanui
0
184

The End.