199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xanawa

This is my code and it is giving me an SMTP Exception. I tried to change my port to 25 but didn't work. Plus i am connected to the internet i can't figure out whats the problem [CODE]private void RecovaryEmail(string username) { ManagerUserAccount mgrUserAccount = new ManagerUserAccount(); UserAccount ua = …

Member Avatar for xanawa
0
180
Member Avatar for Pgmer

Hi All, [CODE] SELECT 'Name A ' as Column0, Some column as Column2, FROM MyTable WHERE my condition UNION SELECT 'Name B' as Column0, Some other column as Column2, FROM MyTable WHERE my condition [/CODE] I want to concatenate the rowNumber with column0 any idea how to do that? Thanks …

Member Avatar for Pgmer
0
77
Member Avatar for NPDA

String ipAddress = new String (pktIn.getData(),0,pktIn.getLength()); what the mean of this sentence??

Member Avatar for NPDA
0
91
Member Avatar for xanawa

Hi i have the following code to export a datagrid view and save it. Now i want that after the user saves the export file it opens. What to do? [CODE]private void ExportDGV(DataGridView dgv) { SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Comma Separated Values (*.csv)|*.csv"; if (sfd.ShowDialog() == DialogResult.OK) …

Member Avatar for Mitja Bonca
0
123
Member Avatar for sunita methre
Member Avatar for niel1826

Anyone Can Help Me?.. I really don't know how to save all values of grid view in database that are checked in grid view, i hope anyone can help me?.. this is really help to finish my project in school. Thanks.!

Member Avatar for shakeb@techwave
0
513
Member Avatar for Shantanu88d

Hi, I have rowcommand function, in which i m obtaining sr_no as datakey from a link button. now i want to know which row was that. How to get row index this way ?

Member Avatar for shakeb@techwave
0
280
Member Avatar for virendra_sharma

Hi , i am getting syntax error in INSERT INTO statement. getting this error on cmdobj.ExecuteNonQuery(); [CODE]string connectionstring = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=D:\website\AddContact.xlsx; Extended Properties=""Excel 8.0;HDR=Yes"";"; OleDbConnection conobj = new OleDbConnection(connectionstring); string Query = "INSERT INTO [Sheet1$](Fname, LName,PhoneNo,Email-ID) values (" + TextBox4.Text + ",'" + TextBox1.Text + "','" + TextBox2.Text + …

Member Avatar for shakeb@techwave
0
287
Member Avatar for tultul

Hi..! i just started a new thread to draw attention. I asked earlier about how to make a trial period software in this forum and the link is.... [url]http://www.daniweb.com/software-development/java/threads/363496/1557768#post1557768[/url] i found the solution of using Rampart, but i have to purchase it to fully use it. Now can we use …

Member Avatar for tultul
0
143
Member Avatar for pseudorandom21

For simulating mouse movement on windows would it be better performance-wise to move the cursor to absolute coordinates or to move it relative to it's previous location? Obviously if moving to an absolute location each pixel in between must also be reached.

Member Avatar for pseudorandom21
0
368
Member Avatar for trelokamenos

Hello people! I'm new here...but The things I'll talk about came up as I was doing independent research and it's not homework related, however I'm not sure where else I should post it except in a computer science subforum. Since it's not homework, you might want to give it less …

Member Avatar for mrnutty
0
108
Member Avatar for weblover

Hello everyone , i have a text file that contains data like this : [CODE] a1 ;AT1 ;AT2 ,CE1 ,CT3 a2 ;AT1 ;AT1 ;CE1 ;CT3 a3 ,CO1 ;CO1 ;CT2 ,CT3 [/CODE] the file is big but that's an example what i want to do is run through each line of …

Member Avatar for abelLazm
0
254
Member Avatar for solarissf

I've tried everything I can think of, does anyone know a way to find the servername on a workstation using c#. No matter what I try I cannot find the name.

Member Avatar for abelLazm
0
139
Member Avatar for butz17

Hi guys! i need some help with my program and i cant determine what to do next...i'm making a program that will output the longest word in a sentence.. here is my code... [CODE] import java.util.Scanner; class LongestWord4 { static Scanner console = new Scanner(System.in); public static void main(String args[]) …

Member Avatar for butz17
0
2K
Member Avatar for jackmaverick1

Hi! I need to know how to make global object from a local place like a function. And of course, they need to have unique names each time the function is run Could I somehow pass the a String parameter of the function to the name of the new object? …

Member Avatar for jackmaverick1
0
223
Member Avatar for eman 22

I want to sort array of int, strings or any data type. Therefore I decided to use comparable array as an input to my sort function. But I get an error when I using it. Comparable arr[]; the compiler says "comparable is undeclared identifier". I think I must include specific …

Member Avatar for cppgangster
0
325
Member Avatar for newbie14

Dear All, Below is my java codes. Currently the codes gets data from gps devices. The problem now if you notice is that I have to send twice the acknowledgement message that is w.write("$PA\n"); w.flush(); once in line 56 and 57 and once more in 85 and 86 then only …

Member Avatar for NormR1
0
182
Member Avatar for custurd122000

I have to modify the myqueue and mystack templates and make a new class called myerror in order to make the main.cpp work, im getting countless errors tho in the main.cpp Here are my errors [code] main.cpp: In function ‘int main()’: main.cpp:52: error: no matching function for call to ‘MyStack<double>::MyStack(int)’ …

Member Avatar for jonsca
0
288
Member Avatar for Jade_me
Member Avatar for Python Joe

[CODE] import Tkinter as tk import Image, time, datetime def splash_screen(): root = tk.Tk() root.overrideredirect(True) width = root.winfo_screenwidth() height = root.winfo_screenheight() root.geometry('%dx%d+%d+%d' % (width*0.8, height*0.8, width*0.1, height*0.1)) image_file = "NHK.gif" image = tk.PhotoImage(file=image_file) canvas = tk.Canvas(root, height=height*0.8, width=width*0.8, bg="black") canvas.create_image(width*0.8/2, height*0.8/2, image=image) canvas.pack() root.after(10000, root.destroy) root.mainloop() return splash_screen() my_menu()# is …

Member Avatar for Python Joe
0
499
Member Avatar for sirlink99

I have this part of my code. I have a JLabel and a JButton that are in a panel. The I place that panel into another panel that has a border layout and I set the panel containing the label and button to be "NORTH", but the JLabel does not …

Member Avatar for Ezzaral
0
934
Member Avatar for v_sriram

Hi Everyone, I am trying to write a string variable containing XML in the form of text into an iframe such that it shows up as formatted XML with the expand(+) and collapse (-) options that default in IE when opening an XML file. The first thing I tried is …

Member Avatar for v_sriram
0
734
Member Avatar for jmurph333

I am building a simple program with 3 Forms. The first Form has 2 Buttons and the other 2 are blank. I used this code: [CODE] public partial class Form1 : Form { public Form1() { InitializeComponent(); button2.Click +=new EventHandler(button2_Click); button1.Click +=new EventHandler(button1_Click); } private void button2_Click(object sender, EventArgs e) …

Member Avatar for jmurph333
0
117
Member Avatar for Tehim

I was just wondering if it can or not. Otherwise wouldn't this code work great for stopping SQL injection? [code=php] $some_post = addslashes($_POST['some_post']); if (!ctype_alnum($some_post)) { //error } else { //all good } [/code]

Member Avatar for diafol
0
366
Member Avatar for muloki

hi I'm writing a small game and need to pass an image into an ArrayList. The Image and bounds are set in Attacker Class with an ArrayList partially constructed in my GameScrn Class posted below. Have spent 2 days on this one issue and failing badly...guessing as usual, im missing …

Member Avatar for mKorbel
0
2K
Member Avatar for Jsplinter

I am using a map in the standard way. It holds keys and values and sorts them by key and works wonderfully. However, after I am through adding to the map, I need to rank the keys based on their associated values. What is the best solution? A) Take map<myKey, …

Member Avatar for mike_2000_17
0
4K
Member Avatar for vivekchandra

i notice a thing about header function in php.....sometimes we used it as 1.header("Content-type: $contenttype"); //i saw this in a dynamic page 2.header("Content-type: $image/png"); //saw this in a captcha create page 3.header("location:bird.php"); // this one i understand 4.header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); //saw these …

Member Avatar for almostbob
0
122
Member Avatar for gingerfish

how to find out whether certain elements in an array are equal to one another? for this array: [icode]int array[] = {0, 1, 0, 0, 2, 0, 0, 3, 0, 1};[/icode] i wanna know if elements under the indexes 0, 1, and 9 are same numbers well the easy way …

Member Avatar for NormR1
0
212
Member Avatar for M!ss Takishima

Hello, I make a program loop..but it doesn't work as i want ><" ! this is the OUTPUT -look careful, please- : [CODE]Welcome to our miniCalculator if you want to use add, enter add if you want to use subtraction, enter sub if you want to use division, enter div …

Member Avatar for M!ss Takishima
0
176
Member Avatar for lovell_82

Hi there, I'm trying to setup a website with a database. I want my php code to create the database and then input the data into it, however a get the error on my register page: Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*****' (using password: YES) in /fg_membersite.php on …

Member Avatar for diafol
0
539
Member Avatar for guvenc

Hi, I need to use the libraries of a commercial solver NOMAD in my C++ code. I got error LNK2001 error. I have #include "nomad.hpp". In the NOMAD handbook, the following is written. If you are using Visual C++, your programs will not link with this version of the library …

Member Avatar for guvenc
0
359
Member Avatar for Azurit

Hello, Ok. How to describe my problem :-/ I'm making a 2D drawing program. Currently working on lines. So I got a class line which holds the draw method. And I've created a list of lines + a line object. In the form I have a listbox where every line …

Member Avatar for Azurit
0
233
Member Avatar for Roelof Wobben

Hello Im trying to learn C rfrom the C book. Now I have this exercise : [code] Write a function that returns an integer: the decimal value of a string of digits that it reads using getchar. For example, if it reads 1 followed by 4 followed by 6, it …

Member Avatar for jl.lakhnai
0
223
Member Avatar for Dani

Hey everyone, As many of you know, we've been having serious database issues here on DaniWeb lately, causing the site to go down just about every single day for a few minutes. We finally got the situation resolved thanks to our database sysadmins over at Percona. While James and Cameron …

Member Avatar for Ramin2000
0
306
Member Avatar for deadelgabar

[CODE]Public Sub loginbtn_Click() If IsNull([usernamecbo]) = True Then MsgBox "Username is required", vbOKOnly, "Required Data" ElseIf IsNull([passwordtxt]) = True Then MsgBox "Password is required", vbOKOnly, "Required Data" Else If Me.passwordtxt.Value = DLookup("PASSWORD", "SYS_USER", "[SERIAL_NUMBER] = " & Me.usernamecbo.Value) Then strUser = Me.usernamecbo.Value strAccountType = DLookup("USER_TYPE", "SYS_USER", "[SERIAL_NUMBER] = " & …

Member Avatar for Ezzaral
0
141
Member Avatar for chintan_1671

[CODE] // mainfrm.h enum { logAll = 0xff }; void Log(int nIdx, LPCTSTR lpText, int nType = logAll, LPCTSTR lpDeviceName = NULL); //SesLog.h int m_nDeviceID; CString m_strDeviceName; // SesLog.cpp #include "Mainfrm.h" #include "SesLog.h" void CSessionLog::Log(LPCSTR lpText) { if(m_pParent) m_pParent->Log(m_nDeviceID, lpText, logAll, m_strDeviceName); [/CODE] error LNK2019: unresolved external symbol "public: void …

Member Avatar for Narue
0
294
Member Avatar for lovell_82

I'm trying to write php code to access my sql database. pretty new at this and was wondering for my hostname and username and that, do i prefix the web address to the username and password or what is it? I geta error saying my credentials are not correct. Can …

Member Avatar for lovell_82
0
143
Member Avatar for miguelsan

Hello I have a question regarding the function length(). I want to find out the length of the string that is inputted by the user. When I use the length() function it only counts the characters from the first word. Can somebody please take a look at my code and …

Member Avatar for Narue
0
167
Member Avatar for Princess90

his is my java assignment. I really need help with it. It is basicallY a Cyber Pet program where in you make the use of a GUI. Here is the file that you can download the whole question from. [url]http://www.mediafire.com/?gfw9c16tubdlf[/url] You gotta have 2 packages : One for the GUI …

Member Avatar for NormR1
0
144
Member Avatar for PRANOTI_N

Hello, I am new to java. I want to display the database records in JComboBox. I have 2 combo boxes. say color and object,whenever i'll select any color from combo box, next combo box should display the objects of that color. I have write one code for it, I use …

Member Avatar for NormR1
0
120
Member Avatar for lcfjoertoft

I have loaded a .TXT file into an array, and want to display each of the posts in the array in a grid. Any pointers how to start attacking this beast? Have tried using Datagrid, and failed :( I have a "Learn by doing" approach to VB.NET, so I need …

Member Avatar for twiss
0
94
Member Avatar for susheelsundar

[I]Hi, Sorry for coming back again and adv thanks for guidance My tutor gave me a assignment, couple of days before he taught me the work flow of java in eclipse, i am getting through it and i was asked to use constructors for the arithmetic operations as methods in …

Member Avatar for yangtao
0
3K
Member Avatar for genzoman

I have an array of list boxes. I need them to become disabled if the first one is checked (with an id of disabler_0), and I need them to be enabled if that box is unchecked. Right now it doesn't work. I know I'm close, but I can't figure it …

Member Avatar for twiss
0
161
Member Avatar for arshadshaikh

I have downloaded files from [url]http://sergey89.ru/files/ffmpeg-php-win32-all.zip[/url]. I add four files in c:\\windows\system32\ folder these files are : avcodec-51.dll, avformat-51.dll, avutil-49.dll and pthreadGC2.dll. And one file php_ffmpeg.dll i add in \xampp\php\ext\ folder. After restarting system and server i get following error: --------------------------- Warning --------------------------- PHP Startup: ffmpeg: Unable to initialize module …

Member Avatar for twiss
0
907
Member Avatar for Antrim

Hi. I'm programming an e-commerce/online store using servlets and a MySQL database, and I'm having some problems with the db right now. Hope somebody here smarter than me can give me a hand. There are two kinds of users, both having their own table in the db: customers and admins. …

Member Avatar for Antrim
0
191
Member Avatar for abhi10kumar

I am printing checkbox's value on combobox value using AJAX, but showing undefined. First time it ok, but When checkbox is clicked then value is set to be off, showing undefined. Here is the code. [B]Checkbox[/B] [CODE]<input type="checkbox" name="course_inactive" value="off" id="course_inactive" onclick="check(this.value); value2(this.value)">[/CODE] [B]Combobox[/B] <div style="float:right; height: 26px; padding-top:2px;" id="div_courses"> …

Member Avatar for twiss
0
167
Member Avatar for solomon_13000

Why is the output 10 and not 9?. According to my understanding the count value is assign to b. Then the count value increment. Hence the output should be 9 instead of 10. However in this case the output is 10. Why?. [CODE] package com.nowhere.blogger.core.junit; public class Bunnies { static …

Member Avatar for AnkitKumar
0
212
Member Avatar for manraj82

I have got a grid[Grid1] that build its data when a button[search] is clicked, I managed to Ajaxify it by placing it in an UpdatePanel. Before Ajaxifying Grid 1, the grid used to populate another grid[Grid2] and some other controls[Text and Labels] when a row in Grid 1 was clicked …

0
133
Member Avatar for foxwizzy

[CODE]<?php require_once('Connections/TSFH.php'); ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = "aclevel"; $MM_redirectLoginSuccess = "/users/" . $loginUsername . "index.php"; $MM_redirectLoginFailed = "/login.php"; $MM_redirecttoReferrer = false; mysql_select_db($database_TSFH, …

Member Avatar for codewall
0
152
Member Avatar for cwhizz123
Member Avatar for rubberman
0
107

The End.