199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for siaswar

I want to develop a simple application which runs on single computer (just runs in one mechine) and did not need network. Program has to store some data in database and show them for printing. I have no experience with real-word program so I confused here: If the program is …

Member Avatar for Ancient Dragon
0
271
Member Avatar for awesome_cool

I want to assign a value to the variable x which belongs to the class X using friend function. Is there any way to assign a value, say 30 to the variable x using the friend function. I tried the following code but the output is different. [CODE]#include <iostream> #include …

Member Avatar for NathanOliver
0
226
Member Avatar for LeunamP

guys can i ask something, what kind of server or database is good for Microsoft Visual Studio 2008, or VB.net thanks..

Member Avatar for riahc3
0
313
Member Avatar for csss

Im trying to do the encryption and decryption in sha1 with the help of SHA1CyptoServiceProvider. The encryption of SHA1 is performed well but i need the code for decryption of SHA1. Encryption code: string p="hai"; //input text SHA1CyptoServiceProvider encrypt=new SHA1CyptoServiceProvider(). byte[] enctxt=encrypt.ComputeHash(Encoding.Default.GetBytes(p)); foreach(byte temp in enctxt) { out=temp.ToString("x"); }

Member Avatar for csss
0
139
Member Avatar for ThatJamaican

**I have about 54 errors and I have no idea why. I've been looking through it and I see nothing whenever I change anything, more errors that are related to previous** 1>------ Build started: Project: TESTERPROJ, Configuration: Debug Win32 ------ 1> blank.c 1>c:\users\pauline medwinter\documents\visual studio 2012\projects\testerproj\testerproj\blank.c(33): error C2122: 'long' : …

Member Avatar for Moschops
0
354
Member Avatar for davy_yg

Hello, I have this codes: <div id="contactform"> <div id="contactform"> <?php require_once('recaptchalib.php'); $error = array(); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (isset($_POST['submit'])) { if( ($name !='') && ($email !='') && ($phone!='') && is_numeric($phone) && ($message !='' ) ) …

Member Avatar for AARTI SHRIVAS
0
116
Member Avatar for lukas.vandendijssel

Hello, I know I shouldn't use mysql_. So I have a mysql_query which updates my table (for a hit counter). However, when I open the page, I get to see this: > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for lukas.vandendijssel
0
186
Member Avatar for mgunia

Hello, I want to re-arrange my existing macros in the excel file. I have a macro which goes to the specified sheet and checks column R if there are commas. If it finds the commas it replaces it to dots. Column R is called Email. But in some of documents …

Member Avatar for mgunia
0
338
Member Avatar for joshfizzle

This is my first program apart from the infamous "HelloWorld" one. The purpose of this program is to simulate a lottery number generator. The program is printing numbers which is great, but it isn't behaving like how it should. It's supposed to print 100 number combinations and it only prints …

Member Avatar for joshfizzle
0
230
Member Avatar for naphets

I have a bash script that executes @ init level 3. I would like to "wrap" (for lack of better word) this bash script in a php script. Use the power of php to supress any output from the bash. Also display only the splash logos (like what you see …

Member Avatar for naphets
0
457
Member Avatar for kimangel

hi experts, i have problem saving my logout entry could not be saved on database. Password & username textbox is in the login form on form 1 and lbldate & lbltime is on form 2. Log-out click is a Menu editor on form 2. Pls help me check my code. …

Member Avatar for AndreRet
0
180
Member Avatar for chrisaddicted
Member Avatar for meetjatin88

which one should be preferable from the following two nested for loops: 1. for(i=0;i<100;++i) { for(k=0;k<10000;++k) { <lines of code> } } 2. for(k=0;k<10000;++k) { for(i=0;i<100;++i) { <lines of code> } } why?

Member Avatar for mike_2000_17
0
192
Member Avatar for IT_Techno

hi every one, iam try to build aconnection to sql database using sql string inside my c# class, but i cannot use ConfigurationManager i donot know why ? iam beginner in c#. i have read in enternet, i need Configuration Manager dll file but it doesnot work with me. what …

Member Avatar for IT_Techno
0
103
Member Avatar for smurfy

Hi to Dear Daniweb Members, The application populates data from database into JTable in Netbeans. It has 2 classes. First class retrieves all data from Employee table using Derby. Second class creates the GUI with a JTable component inside it. However i got the following messages. I am so confused. …

Member Avatar for stultuske
0
2K
Member Avatar for smurfy

Dear Daniweb Members, First of all sorry my english writing. I installed JavaJDK 7u13 with NetBeans 7.2.1 and db-derby-10.5.3.0-bin.zip on a fresh OS. Then i set the environment variables according to their relative paths as seen below. By using ij the test database and the test table created, records inserted …

Member Avatar for stultuske
0
2K
Member Avatar for andrew.ferrebee

im having a little troubele with this problem. i am working on an intrest calculator and have hit a snag.its saying there is error with my Math.pow punction can someone help please. ill add what i have so far below import java.util.Scanner; public class Calculator { public static void main …

Member Avatar for radhakrishna.p
0
240
Member Avatar for smurfy

Dear Daniweb Members, First of all sorry my english writing. I installed JavaJDK 7u13 with NetBeans 7.2.1 and db-derby-10.5.3.0-bin.zip on a fresh OS. Then i set the environment variables according to their relative paths as seen below. By using ij the test database and the test table created, records inserted …

Member Avatar for radhakrishna.p
0
429
Member Avatar for Dani

As many of you know, DaniWeb now has an API. It (optionally) uses OAuth 2.0 and it supports both server-side and client-side implementations. The server-side method I have down pat. However, I had to hack together the clientside implementation, and although it works, I'm not sure it's done "correctly". I …

Member Avatar for Dani
0
911
Member Avatar for ian111

php.ini file not being read Cannot get my php.ini file to be read. Running freebsd5.3 with apache2.0.53 with php5. php5 loades as a module. The server is runing fine with all sites working well. And the php scripts are being read fine as well. In fact everything is working fine. …

Member Avatar for Nika111
0
957
Member Avatar for buckeyemike

when you write code in the main function if you put functions in the file all you do is nameoffunction(); to call it. now my question is this lets say you have a menu in a class. call it bank. in the main to call that function . ive tried …

Member Avatar for mike_2000_17
0
217
Member Avatar for dfn77

Hi, I am using Kendo Web UI and am trying to filter a listView using multiple rangeSliders. I've seen a few examples of filtering, but never with a listview using range sliders. Pretty much all of the examples I've seen involve filtering a grid with a dropdown. I am curious …

Member Avatar for LastMitch
0
482
Member Avatar for wollacott

N 10*N 100*N 1000* N 1 10 100 1000 2 20 200 2000 3 30 300 3000 4 40 400 4000 5 50 500 5000 6 60 600 6000 7 70 700 7000 8 80 800 8000 9 90 900 9000 10 100 1000 10000 Hi, [code=c] #include<stdio.h> int main() …

Member Avatar for Ancient Dragon
0
631
Member Avatar for dewdropz

Hi I am looking for some information regarding VT102 escape codes. Are there any tutorials on this anyone can recommend? Basically, what I need to do is overwrite these print statements within the for loop to my screen: for (int i=0;i<5;i++) { printf("Enter the current price of the product: "); …

Member Avatar for rubberman
0
228
Member Avatar for TheTimeCat

A Very Good Morning to you, Hi and how do you do ? I hope your day is going great. I would like help writing a CPP Function() with the following criteria :- It is to search for 4 digit numbers in a Pick 4 Game. 1. Given a 2D …

Member Avatar for ravenous
0
279
Member Avatar for TheTimeCat

This is a program to generate possible combinations Somehow everytime I run it - in VS2012 I get this error - "Expression:Vector Subscript out of range" ? Can someone please help to get this code working ? A Big Thank You !!! :D #include <iostream> #include <vector> class CombinationsGenerator { …

Member Avatar for ravenous
0
950
Member Avatar for ebanbury

Hi I have successfully engineered a login.php system, complete with logout.php, forgotpass.php and the associated functions which go with that. My users can log in and log out of the system and go to the pages directed to them without a problem. I was then asked to create a second …

Member Avatar for ebanbury
0
133
Member Avatar for syazreen.rahman

i want to filter contents in a table which is showing only all the informations filter only by month and years only. i need the solution ASAP because my task aint gonna complete just because of this problem. this is my HTML table form : <asp:HyperLinkColumn Text="Link" Target="_parent" DataNavigateUrlField="CompanyName" DataNavigateUrlFormatString="../DefaultBilling.aspx?id={0}" …

Member Avatar for LastMitch
0
248
Member Avatar for nostalgia

Hello, I'm trying to code a genetic algorithm in java but my code doesn't seem to be working as it should. I think the problem lies within my roulette wheel selection method. Can anyone spot it/point me in the right direction on how to solve it? private static Individual[] rouletteWheelSelection2(Individual[] …

Member Avatar for M4trixSh4d0w
0
3K
Member Avatar for christie.smoot.3

Once I have logged in, the "loggedIn.aspx" page is to display: IP Address: Contact: Date: I am able to get the IP address to display, but really have no clue on how to show both the username and current date. This was a conversion from .asp to c#.net Here is …

Member Avatar for LastMitch
0
164
Member Avatar for triumphost

http://i.imgur.com/kWrBizl.png In the above Image, I generator a Sudoku Matrix of 9x9 values. Is there any way I can allow user to enter individual values by moving around the caret and typing? Basically, I want them to just be able to change the values displayed on the screen by moving …

Member Avatar for tinstaafl
0
173
Member Avatar for Sci3nc3F1cti0n

I'm writing a program that will keep track of every Anime/Manga I watch/read(I'm an avid fan). I'm trying to make a database in order to keep track of all of the titles of the Anime/Manga. My problem is that when i try to add a new title to the existing …

Member Avatar for Sci3nc3F1cti0n
0
226
Member Avatar for hwoarang69

i dont understant why its not going inside "error_01 or error_02" if statment? if user enter username and hit sumbit than it goes in "worked" if statment but if user dont enter any thing in usrname it still go in "worked" if statment. <!-- login form --> <form method ="POST" …

Member Avatar for M4trixSh4d0w
0
194
Member Avatar for adrian.mcguinness

Hi I have been getting an error when posting a page on somee.com. Here is the error I get when loading my page: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module …

Member Avatar for LastMitch
0
504
Member Avatar for hwoarang69

i have project folder name: website_test package name: hello_servet testing_01.java web.xml index.html i need help with servlet name. i think iam names wrong. for ex is servlet-name the class name or project folder name?? web.xml file: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <servlet> <servlet-name>website_test</servlet-name> <servlet-class>hello_servet.testing_01</servlet-class> …

Member Avatar for LastMitch
0
212
Member Avatar for toth.attila.7921

Hi! I want to make a CONVERTER. I designed it, so I just have to program some buttons. The problem that I have is weird. I programmed a button that says : CONVERT TO METER. After I build the program, I get ERROR C1075 : end of file found before …

Member Avatar for tinstaafl
0
849
Member Avatar for pucivogel

So, i want to display data from a table in my db (Mysql), i click the buttonto get the data, it sends request via Ajax and Ajax calls getdata.php file. The table which is supposed to return the data returns in everyfield the written code like "$head" and "$value". I …

Member Avatar for AleMonteiro
0
245
Member Avatar for meetjatin88

Hello Everyone i am trying to write a program for printing all the combinations of a string.I do not want any help regarding the algorithm but i need help figuring out why this program is giving the error message "First-chance exception at 0x761bc41f in word.exe: Microsoft C++ exception: std::out_of_range at …

Member Avatar for meetjatin88
0
244
Member Avatar for ryan.maure

I am having a runtime error happen when I run my program and can't seem to figure out why. It is happenning on my insertion sort function. I also am going to have to do a selection sort with this and aany help would be greatly appreciated. Here is my …

Member Avatar for ryan.maure
0
295
Member Avatar for sunn shine

can any one give me the pdf link of this book Computer Graphics using open GL 3rd Edition by F. S. Hill, Jr. and M. Kelley to download? thanx in advance!

Member Avatar for ddanbe
0
116
Member Avatar for Helianthus

Ok, so I am working on the hangman game for a school assignment. I have everything doing what I want except for one issue: No matter how many letters are in my word, the number of dashes is always one more than I need. For example: say the word is …

Member Avatar for Helianthus
0
868
Member Avatar for wids101

Please enter your starting balance: 200 What would you like to do? B...Show Balance D...Deposit W...Withdrawal Q...Quit B Your balance is 200.000000 Press any key to continue . . . i put my set precision to 2 and it's printing 6 zeros. how come?

Member Avatar for vmanes
0
99
Member Avatar for gkaran487

I have a string as [Ian Wood P. M. Visscher] [Ian Wood L. Mengersen] [Ian Wood] [P. M. Visscher Ian Wood].I want to write this string into two dimensional array. (i.e) String a[0][0]=Ian Wood ,a[0][1]=P. M. Visscher,a[1][0]=Ian Wood, a[1][1]=L. Mengersen and so on.Every time when I would give input, the …

Member Avatar for JamesCherrill
0
271
Member Avatar for dhayalanbalakrishnan

Guys I am trying To send a mail using C++ code i found from the net , when i compiled it it says In function `_Z13ChilkatSamplev': [Linker error] C:/Users/dhayalan/Documents/mail.cpp:10: undefined reference to `CkMailMan::CkMailMan()' [Linker error] C:/Users/dhayalan/Documents/mail.cpp:14: undefined reference to `CkMailMan::UnlockComponent(char const*)' [Linker error] C:/Users/dhayalan/Documents/mail.cpp:21: undefined reference to `CkMailMan::put_SmtpHost(char const*)' [Linker …

Member Avatar for Moschops
0
337
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
229
Member Avatar for ray.chappel

I am working on a project that is suppost to work with 3 xml files. The program is suppost to ask which file you would like to import. It then makes a new folder in the current directory. The program is supposed to create a new file in the created …

Member Avatar for ray.chappel
0
373
Member Avatar for pucivogel

I get this error Notice: A non well formed numeric value encountered in C:\wamp\www\agenda\index2.php on line 178 on th following line : echo ' <b><a href="engine/changedate.php?date=' . date("Y-m-d", $dtime) . '">' . date("Y-m-d", $dtime) . '(' . $days . ')</a>:</b><span title="' . $recordSet->fields["description"] . '">' . $recordSet->fields["title"] . '</span>'; any …

Member Avatar for pucivogel
0
160
Member Avatar for sahil.bhatia.18

Hi experts, My website (PHP+mysql+javascript) khabarfast.com hacked 4 times from unknown hackers. Need suggestion for get rid of hacking.

Member Avatar for sahil.bhatia.18
0
237
Member Avatar for castajiz_2

I m having a problem when sending my c# projects to a friend via e-mail. Before sending i use WINRAR to compress it however when the other side gets the mail and when it tries to open it, it get s an error ouptut saying: "application not found". When going …

Member Avatar for TnTinMN
0
4K
Member Avatar for rajeshmishrabca

I'm a sybca student. and till nw i kw c,c++,RDBMS,D2K,data structure. can i able to develop a software using this skills? if yes then plz tell me the steps for that. thank u!

Member Avatar for rubberman
0
150

The End.