199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aishapot

[CODE]Sub retrievepic() Dim conn As New SqlConnection("data source=.\sqlexpress; integrated security=true; attachdbfilename=|datadirectory|\WAIS.mdf; user instance=true;") Dim cmd As New SqlCommand("select ImageData from ImagesStore where ImageId=@ImageId", conn) cmd.Parameters.AddWithValue("@ImageId", 3) Try conn.Open() PictureBox1.Image = Image.FromStream(New IO.MemoryStream(CType(cmd.ExecuteScalar, Byte()))) Catch ex As Exception MsgBox(ex.Message) Finally conn.Close() End Try End Sub [/CODE] This is my code for …

Member Avatar for aishapot
0
1K
Member Avatar for Alex12345

The first version was not working.. I made this simpler one, but it is not working either. It says the username or password are wrong. I also verified that it counts 0 rows with if($count==1). I am using WAMP. Thanks so much for any help. Oh and I got the …

Member Avatar for diafol
0
269
Member Avatar for saadi06

Hi, I am having a problem with 404 page.I have handled it through .htaccess and it is working fine as it redirects the page fine.But it is giving me error in my error log that file not found xxx/xxx/xxx/forums.Although I have handled 404 problem and it is working fine.But in …

Member Avatar for saadi06
0
77
Member Avatar for Vasthor

these code, I expect they work the same. using Code::Blocks as the compiler, the result is differ result = output 10 return 0 [CODE] #include <iostream> int main() { int i = 0; while(i < 10) ++i; std::cout << i << std::endl; } [/CODE] result = compile error. [CODE] #include …

Member Avatar for Vasthor
0
247
Member Avatar for irock_4you

Vince Travis Sillhouette Angeles Create a myMath class that contains the ff procedures and or methods 1. Add any number of numbers 2. Multiply any number of numbers 3. Raise a number to the nth power 4. Slope of a line given 2 points 5. Factors of a whole number …

Member Avatar for v3ga
0
121
Member Avatar for jQueryLover

may peace on you ! Guys i am stuck in a query i want to get the value of row when a image in that row is clicked.so the purpose of update by getting that row id.i got the code below but it get me the row# and col# not …

Member Avatar for jQueryLover
0
97
Member Avatar for acmarshall

Given a multiple-choice test of 10 questions with 5 possible choices (A-E). The answers are given in a text file a long with the student names. Write a C++ program that does the following: 1.Reads the key answers to an array from the input file. The key is the first …

Member Avatar for acmarshall
0
321
Member Avatar for Tobyjug2222

Hi, I've been searching around these forums for quite a while now, and can't seem to either understand or find what I'm looking for. ^ As you can probably tell, I'm a real Novice to VB! I have a text file, that my program is always adding to it, it's …

Member Avatar for Tobyjug2222
0
299
Member Avatar for VIPER5646

I have a reportviewer that prints a second empty page with the header only nothing in the body. I have searched for this issue and I learned that the Width of the report body should be equal to the page width minus the right and left Margins. So I have …

Member Avatar for VIPER5646
0
488
Member Avatar for dinamit3

How can I memory N words using only pointers[Dynamic Memory] ? I tried something but I believe it's not well coded. [CODE]#include<iostream> using namespace std; int main () { char **a; int N; cout<<"Enter the number of words = "; cin>>N; for(int i=0;i<N;i++) { cout<<"Enter word number "<<i<<" : "; …

Member Avatar for Schol-R-LEA
0
220
Member Avatar for gispe

Hi! Im doing a program in java that gets info from a database.. thing is that im seting a variable with data from one table, and one data is char and cant find the way to have the .getChar() like the rs.getString() the code is: [code=java] public ModosDeCompra_clase dameModoCompra(Integer id) …

Member Avatar for DavidKroukamp
0
3K
Member Avatar for LevyDee

For the life of me, I can't figure out what I am doing wrong! It has been sometime since I have had use for my own list type, but since std::vector is pretty worthless for what I need it to do, I need to relearn templates. [code] #include <memory.h> template …

Member Avatar for mrnutty
0
111
Member Avatar for jankeifer

[CODE]#include <iostream> #include <iomanip> #include <map> #include <time.h> #include <cstdlib> using namespace std; //displays the instruction of the game void displayInst(){ for ( int b = 0; b < 28; b++ ) cout << "* "; cout << "\n* Game Title: NUM-BERS *"; cout << "\n* *"; cout << "\n* …

Member Avatar for cahitburak
0
145
Member Avatar for iPanda

I have an assignment to make a code that will check what is the longest "string" of zeros inside a double word binary number, for example (in a Byte) if I have this number: 10010001 The answer will be 3. The code I've written works fine until a certain point …

Member Avatar for GunnerInc
0
113
Member Avatar for Gregor007

There's the text given (Duomenys.txt). The program removes vowels of the longest words in each line. How do you redo the program to find numbers in the line (starting with -+0123456789) and insert the word NUMBER before these numbers (in the results file). [CODE]const char Cduom[] = "Duomenys.txt"; // data …

Member Avatar for WaltP
0
160
Member Avatar for EvaL2ne

In file i have a text. Words form line to line dont raising. Word in line separate least one space.Spaces can be at line begining and ending, can be empty lines. Count how many words can be in real number. i need a function whitch can count words whitch can …

Member Avatar for WaltP
0
318
Member Avatar for happygeek

With the recent announcement of an easy way to gain root access for Android phones running 2.3.4, to add to the list of similar exploits for earlier versions and 3.0 and beyond, it should come as no real surprise that the bad guys are taking advantage of the relative weakness …

Member Avatar for Trigle
0
455
Member Avatar for mangel.murti

Hi all, i attached my campaing field with img.i want to design tables such as when adding a campings and by trigger mode selected by user based on that email should be fire frm db. i want guidance how to design or process it . confusing my side.... [ATTACH]23166[/ATTACH] any …

Member Avatar for mlesniak
0
86
Member Avatar for mang0

Hello all! I'm using the phenny IRC bot, and I've got this script, to greet people when they join a channel: #!/usr/bin/env python """ greet.py - Phenny Sahana-Eden Greet Module (c) 2011 Nolan Lum <nol888@gmail.com> """ import os, re import sqlite3 def setup(self): fn = self.nick + '-' + self.config.host …

0
126
Member Avatar for swissknife007

[CODE]<?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; $i=0; if(isset($_POST['submit'])) { $mail->Username=check($_POST['UserName'],"user id required"); if(filter_var($_POST['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_POST['UserName']; $mail->Password=check($_POST['pass'],"password required"); $con=check($_POST['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_POST['name']); $_POST['rec']=check($_POST['rec'],"recipient required"); if(filter_var($_POST['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_POST['recn']=check($_POST['recn']); $mail->AddAddress($_POST['rec'],$_POST['recn']); $mail->Subject=$_POST['sub']; $mail->Body =$_POST['body'];$i=0; if …

Member Avatar for cereal
0
128
Member Avatar for Daman824

I've been trying to make a cash register program and right now this is my draft. For the program, the prices need to add up to a total which than will be calculated with HST and discount amounts. The discount needs to be the lowest number price entered from all …

Member Avatar for Daman824
0
161
Member Avatar for Albion1

how can i drow a graphic in java like the figure in the link below [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=23269&stc=1&d=1324131212"]http://www.daniweb.com/forums/attachment.php?attachmentid=23269&stc=1&d=1324131212[/URL]

Member Avatar for Albion1
0
114
Member Avatar for pikkas

Hello guys, I want to grab data from a website bet-mate.com. I tried some ready made software but as I understood you can grab data if there is an HTML table. In this website that I am trying to grab them there is no table. Can anyone advice me how …

Member Avatar for griswolf
0
148
Member Avatar for BrickZ28

Ok I have hit my next hurdle. I have though of a few ways this could be done but just cannot wrap my head around it. What I would like to do is as I am accepting membership and move the member to the members database they will be given …

Member Avatar for BrickZ28
0
205
Member Avatar for Cenchrus

Hey guys and gals, I'm just starting Python, and I was wondering if someone could translate this code into english ? from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "your second variable is:", second print …

Member Avatar for Cenchrus
0
5K
Member Avatar for khanthegamer

The code posted below is giving an unusual error which i cant get to figure out. According to me the error is caused by the definition(or maybe by the initialisation of the string array). The error is comin in the vending.cpp file in the initialisation of the [I]product[10][/I] array [CODE] …

Member Avatar for khanthegamer
0
154
Member Avatar for sgonser

Hello, I'm looking to create a disclaimer page as a precedent to viewing an exercise video. I'm currently using a standard text field (for initials) and check box (to agree). There's no problem with that. I know I can just put the form submit to open a new page, but …

Member Avatar for sgonser
0
639
Member Avatar for snowhite89

Hi.. can anyone help me.. I having problems in displaying the output read from an input file. when I run the code, it only display the output of the first character in the input file. Anyone can help me figure out the problem? & I'm using borland. [CODE]#include <iostream> #include …

Member Avatar for Moschops
0
268
Member Avatar for sjsanjuan

Hi, I'm having a trouble with dynamic redirection. I've searched for everything and did $_GET and $_POST but still not working. The $id is not returning any results. Here's my code: include_once("includes/connection.php"); global $result; putenv("TZ=Asia/Manila"); $arrErrors = array(); $oid = isset($_GET['oid']) ? intval($_GET['oid']) : 0; $package_id = isset($_GET['package_id']) ? intval($_GET['package_id']) …

Member Avatar for diafol
0
351
Member Avatar for brugernavn

hejsa, I just got a little problem.. [B]i only have one public ip.. but i need to host several websites over many local ip's..[/B] so, i need to forward the incomming requsts (from the public) to one of the local ip's.. based on the domainname.. so, [B]mydomain.com > my public …

Member Avatar for brugernavn
0
172
Member Avatar for VirusS

good morning \ afternoon \ evening i need a help in the assebly code ,, my brain about to explore !! so here's the Q: this program reads an array of integers and an integer number .the program then checks if there are any numbers in the array smaller than …

Member Avatar for VirusS
0
268
Member Avatar for stereomatching

[code] #include<iostream> #include<string> #include<vector> #include<boost/spirit/include/phoenix.hpp> #include<boost/spirit/include/karma.hpp> struct test_spirit { void read_function(std::string &result, std::string const &val) const { if(result != "memo_zero") result += val; } }; void spirit_01b() { std::vector<std::string> data; data.push_back("memo_zero"); data.push_back("memo_two"); data.push_back("memo_three"); std::string temp; test_spirit ts; karma::generate ( std::back_inserter(temp), ( karma::string[phoenix::bind(&test_spirit::read_function, &ts, karma::_1, karma::_val)] << ", " ), data, …

Member Avatar for stereomatching
0
327
Member Avatar for gourav1

[CODE]import java.io.*; class file3 { public static void main(String args[]) throws IOException { FileInputStream f1; int i; FileOutputStream f2; try { f1= new FileInputStream(args[0]); }catch(Exception e) { } try { f2= new FileOutputStream(args[1]); }catch(Exception e) { } try{ do { i=f1.read(); if(i!=-1) f2.write(i); }while(i!=-1); }catch(Exception e){}; do { i=f1.read(); System.out.print((char)i); …

Member Avatar for gourav1
0
153
Member Avatar for compulove

I have a program in C# that I would like to make a process flow chart for other people understanding the processes and functions within it. I know I can use Microsoft Visio and make it myself but I have to do this about 50 times so a program would …

Member Avatar for rotten69
0
485
Member Avatar for jeevsmyd

I'm using Turbo C++ v3 and I want to convert a string which contains hexadecimal numbers into a decimal integer. How do I do that?

Member Avatar for jeevsmyd
0
72
Member Avatar for jeevsmyd

For my SIC assembler written in C++ , I need a hexadecimal integer as the location counter. That is if LOCCTR=A and LOCCTR++ should store B in LOCCTR. Is there such an variable in C++? If so how do I make it Hexadecimal?? I know how to Initialize an int …

Member Avatar for Schol-R-LEA
0
550
Member Avatar for gourav1

[code]import java.io.*; class file2 { public static void main(String args[]) throws IOException { int b; b='A'; System.out.write(b); System.out.write('\n'); } }[/code] will anyone can tell that when i don't write System.out.write('\n'); then nothing comes in output. but after adding this statement 'A' got printed, why is it so ? secondly, i …

Member Avatar for JamesCherrill
0
99
Member Avatar for YungSoprano

Hi everyone, I'm creating a booking application for a hotel and have encountered an error on the following code; [CODE]Public Class Seaside_Hotel_DB Dim dbconn As OleDb.OleDbConnection Dim dbcmd As New OleDb.OleDbCommand Dim dbread As OleDb.OleDbDataReader Dim spath As String Public Sub New() spath = Application.StartupPath spath = spath.Replace("\bin\Debug", "") spath …

Member Avatar for YungSoprano
0
209
Member Avatar for filipgothic

I want this two echo's to stay in one line. One in center and another right like I did but not in new line echo "<a href=\"http://zafakultet.herobo.com\logout.php\"><font size=+1</font>Click here to logout!</a>"; echo "<p align=right>Username: " . $_SESSION["valid_user"]; I tried with <? ?> and it wont work. Thanks for help.

Member Avatar for diafol
0
170
Member Avatar for gourav1

once a thread enters any sychorinsed method on an instance , no other thread can enter any other synchronised method on the same instance ? what does this line mean ? also, how can one method be called by many threads at the same time on the same object ? …

Member Avatar for NormR1
0
162
Member Avatar for 03hasnam

[B]guys please help me with this. my problem is that on PaymentNewGUI class i am finding it hard to extract the entrance time from the file to be displayed on the gui if correct ticket number is added, reference to enterListener method in paymentnewGUI class thank you[/B] [CODE]import java.awt.*; import …

Member Avatar for 03hasnam
0
174
Member Avatar for whitech

I have to do my homework for passing the course :) The question is that; Firstly the starting point is (x1,y1) we get these values from user and we get a lot of two dimensional points from user.If a point is far away from the center point of the points, …

Member Avatar for whitech
0
331
Member Avatar for Simon180

Am looking for a way to search a listview for selected captain items and then for it to remove all the items that were found. demo idea to loop full list to find search string that can be changed via edit and then to delete all items that are the …

Member Avatar for pritaeas
0
135
Member Avatar for niggz

Hello. I couldn't think of any better name for the title. To the point... I have this database reader method, and In the while loop, where the liga[] is being populated, all its values are the last that is read from DB.. Clubs ID are from 1 - 10 Any …

Member Avatar for niggz
0
130
Member Avatar for hendroang

Please help me check my code especially change_form.php here's my code update_form.php [CODE] <?php $con = mysql_connect("localhost","root",""); mysql_select_db("exercise",$con); $query = mysql_query("select * from test_mysql",$con); $num = mysql_num_rows($query); echo "<center>Show database data</center>"; echo "<br>"; echo "Database data : $num"; while($num =mysql_fetch_array($query)) { echo "<br>"; echo $num[0]; echo "<br>"; echo "Name : …

Member Avatar for rotten69
0
201
Member Avatar for DevNet

Hi guys, I'm new here so please help me. I wanted to create a memory game where in the user clicks on two images and matches them. However, in the middle of creating it I encountered a weird problem - whenever I set the "Visible" property of the PictureBox on …

Member Avatar for Mike Askew
0
1K
Member Avatar for stereomatching

I would like to generate output like this common, int, optional video, double, optional by karma with the structure [code] struct attr_struct { std::vector<std::string> name; std::vector<std::string> type; std::vector<std::string> use; }; [/code] So I defined some rules for it [code] #include<iostream> #include<string> #include<vector> #include<boost/fusion/adapted/struct.hpp> #include<boost/spirit/include/karma.hpp> namespace karma = boost::spirit::karma; namespace karma …

Member Avatar for stereomatching
0
123
Member Avatar for swissknife007

[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if …

Member Avatar for diafol
0
345
Member Avatar for joshmac

I've been trying for hours to retrieve an ID from a previous insert statement to include in the next insert statement. I am not sure what I am doing on but a new fresh set of eyes can see the issue better than I can at the moment. Any help …

Member Avatar for pro_learner
0
128
Member Avatar for Hiiero

Can I not do the below code? [CODE] class box { public: box(){} box(int v){x=v;} ~box(){} int getx(){return x;} private: int x; }; ____________________________ #include <iostream> #include <queue> #include <cstdlib> #include <ctime> #include <windows.h> using namespace std; #include "Q4.h" int main() { queue<box> B; int a; cout<<"How many boxes would …

Member Avatar for jmichae3
0
173

The End.