199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HESSENY2000

[B]welcome Dear all this my first topic in DANIweb so that I'm waiting for more than help , I try to design time calculator to calculate time by Minutes you can see code (((( Private Sub Command2_Click() If Val(Text1.Text) = 0 Then MsgBox "type any Date and Time value": Exit …

Member Avatar for AndreRet
0
117
Member Avatar for Peter_morley

Hello I'm trying to pass a key array to a function in another class and its not working. Can anyone explain to me essentially what the key array is? Is it an array of char? Well anyways here is my code I'm getting errors please help. Thanks HERE IS MY …

Member Avatar for vinayakgarg
0
208
Member Avatar for malashukla

hello to all i am here to clear my one confusion as i am stuck in somewhere logic part. i have four tables in database : state region district circle on page load i have to show the states from the database in the form of checkboxes. and when user …

Member Avatar for malashukla
0
90
Member Avatar for vinayakgarg

Hello I am developing my first game in Allegro. Till now i found it easy to use. But now i read that for running a game allegro.dll is required on computer. Tell me if it is correct. Also many people say that SFML is better than Allegro, since the latter …

Member Avatar for vinayakgarg
0
282
Member Avatar for NeilA

Hello everyone, I am looking for some instructions on learning C# for a 15 year old. He is creating some games in Unity 3d program and is doing pretty good following tutorials but i don't think he is understanding the programming concepts. I searched google but can't find anything that …

Member Avatar for jonsca
0
181
Member Avatar for Steve Mac

Hi, everybody. I would really like to know if there is anyway in which I can package two or more set up files together with my vb.net application; so that after installing the application, it automatically starts installing the other applications from the other set-up files. In my case I …

Member Avatar for Steve Mac
0
99
Member Avatar for Reverend Jim

When I try to build a C++ project I get the error message in the title line. I am trying to help my son move his development from a unix cluster to his laptop. He is running Windows XP Pro and has installed the Eclipse IDE for C/C++ Developers. The …

Member Avatar for nezachem
0
4K
Member Avatar for imti321

see this code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root",""); mysql_select_db("phplogin"); $query = mysql_query("SELECT * FROM `users` WHERE username ='$username' and password='$password'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while($row = mysql_fetch_assoc($query)) { $dbusername = $row ['username']; $dbpassword = $row ['password']; } if ($dbusername=='username'&&$dbpassword=='password') { echo …

Member Avatar for Zagga
0
155
Member Avatar for bh_superman

Just a couple of problems I'm working on-- can anyone help. Thanks. 1. You are making changes to an existing ASP.NET application. The application contains a DataSet object, dsProspect. The page you are changing displays prospect data from the dsProspect DataSet and includes an Update button. You define a new …

Member Avatar for Shoaib Siddiqui
0
256
Member Avatar for iwanttolearnc

im reading a text file that contains data in a fashion similar to this $1.2.3.4.5.6$ %7.8.9.10.11.12% *a.b.c.d.e* what i want to do is read only data enclosed by '$' and skip to the next line if the data contained are not. written below is my code. im kind of stuck …

Member Avatar for iwanttolearnc
0
139
Member Avatar for abeautifulmind

Hi techies, i'm a final year student of B.Tech in C.S from India, for final year project i'v chosen e-commerce, the platform would be Java, using jsp for coding, dreamweaver for designing...n ms access for data base. Guys, pls help me out in deciding how should i go about it.....i …

Member Avatar for ahmed e-com
0
3K
Member Avatar for aligajani

I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() …

Member Avatar for aligajani
0
176
Member Avatar for itisnot_me

i am just learning how to code for oop and i have an error that i have not seen Fatal error: Class 'queryUpdate' not found in testingfile.php on line 28 line 28 [CODE] $queryUpdate = new queryUpdate($table, $fields, $condition); [/CODE] what i am trying to run. which is in another …

Member Avatar for R0bb0b
0
368
Member Avatar for EngSara

Hello.... I am running a C++ program that takes an N array and reads a from a file. One requirement of this project is that it returns an elapsed time of each function so the function efficiency can be calculated based upon an input. I am attempting to implement the …

Member Avatar for menauman
0
6K
Member Avatar for daviddoria

Please excuse my newness. Currently I know how to execute a php script by simply naming the script [filename].php and browsing to that file on my webserver. I have also learned how to parse and display an xml file using php. What I want to do is have a .xml …

Member Avatar for P0lT10n
0
1K
Member Avatar for novice20

can anyone suggest a simple method to define an enum in python. as some examples floating on net, i used class Animal: DOG=1 CAT=2 print Animal.DOG but it doesn't seem to be working...

Member Avatar for novice20
0
126
Member Avatar for gpta_varun

Hi All We all have read a lot about utility of copy constructor. I have a simple question .Consider the code below. Is it ok to directly copy one object's content onto other ? [CODE] Class A { ...... }; main () { A * obj_1=new A(); // Next the …

Member Avatar for Fbody
0
163
Member Avatar for raden1

I am making a simple python game. I would like to be able to restart the game based on user input. You have a certain amount of guesses to guess which way to coin falls. If you lose you would get the option of restarting, instead of just breaking the …

Member Avatar for ultimatebuster
0
139
Member Avatar for dennishall

Hi: I'm having an issue posting to MySQL using the animated_form.html below. My objective is to have 4 db entries posted to MySQL when the user clicks on the <a href="javascript: submitform()"><input alt="Show Results" id="btn_results" src="a_data/form_btn_show_results.png" type="image"></a> image. The form uses jquery and it produces 0 results in MySQL. Using …

Member Avatar for dennishall
0
207
Member Avatar for Swapnilkadam
Member Avatar for romel.bunag
0
99
Member Avatar for rawtea

Hi! I'm trying to write a program that converts an inputted decimal number into its hex equivalent. Here is the source code along with the .h files: [code] .286 .model small datas SEGMENT byte PUBLIC 'data' newl DB 10,13,'$' msg_hex DB "Hexa: $" msg_zec DB "Dec : $" tabela DB …

Member Avatar for rawtea
0
305
Member Avatar for Mr_PoP

[CODE] #include "includes.h" int main() { SYSTEMTIME st; GetSystemTime(&st); ofstream syslog; //st.wDay= 30 syslog.open("today"st.wDay".txt"); syslog.close(); system("Pause"); } [/CODE] bt idk how to make it this line is completly wrong syslog.open("today"st.wDay".txt"); can anyone help me :)

Member Avatar for Mr_PoP
0
85
Member Avatar for jimJohnson

I have a couple quick questions with the program that I am doing. This program is a hi\lo program and here are my remaining issues... 1. When I click the high or low button in my program it does not make changes to my token (I want the default tokens …

Member Avatar for Unhnd_Exception
0
113
Member Avatar for ivyg
Member Avatar for ivyg
0
122
Member Avatar for khurram.1987

Hi, i am trying to connect to MySQL database [ICODE]mysql[/ICODE] using JAVA .. using code given below, [CODE]import java.sql.*; public class dbExample{ public static void main(String[] args) { System.out.println("Listing all table name in Database!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; …

Member Avatar for khurram.1987
0
161
Member Avatar for mojo1979

Hi, I'm pretty new to scripting so need some help... Basically I have a 1TB drive that hosts hundreds of .mdf files. What I want to do is search this drive for these .mdf files, zip them, and then delete the original .mdf file permanently. Any advice/help would be greatly …

Member Avatar for cfajohnson
0
103
Member Avatar for ckdoublenecks

can someone help with this? nothing works beyond the // *############# [CODE]<script> function $_(IDS) { return document.getElementById(IDS); } function calculate_paid() { var amtpaid = document.getElementById("amtpaid"); var rentdue = document.getElementById("rentdue"); var prevbal = document.getElementById("prevbal"); var hudpay = document.getElementById("hudpay"); var tentpay = document.getElementById("tentpay"); var datepaid = document.getElementById("datepaid"); var late = document.getElementById("late"); var …

Member Avatar for ckdoublenecks
0
122
Member Avatar for phpDave

Hi, I am trying to display multiple images on a search page. If name comes up in search so does image under same user id. It works only for one image for all names same. Example: Facebook, same name found in search but different images. I'm thinking a do while …

Member Avatar for phpDave
0
122
Member Avatar for Wouldbecomp

Please help me to open at html file from the server ,edit and save it, using php. The code below returns a blank page i.e. no syntax errors but no output. home.htm is the exact name of the file on the server and it has 776 permisions. $openedfile =fopen(home.htm,'r+'); //open …

Member Avatar for diafol
0
136
Member Avatar for gurupts

Plz any one can help me... i have only one table in an ms access database(2007).that table contain two fields only ID,Name.i want to search that table using ID(primary key) and result should show the name of particular id. In a vb.net(2008) form i put one text box,one button and …

Member Avatar for ShahanDev
0
593
Member Avatar for michd77

Having a problem that I cannot seem to get over. Simply trying to do a post of an xml string to a web site. Seems to work fine, until I hit a certain size of the string, then it fails. I have searched for other methods, but am coming up …

Member Avatar for michd77
0
185
Member Avatar for Unhnd_Exception

[code] ''' <summary> ''' Returns a new copy of the bitmap passed in. The new copy is rotated ''' to the specified degree and resized to fit its new bounding box. ''' </summary> ''' <remarks> ''' The Original Bitmap should be the bitmap that has never been rotated. ''' If …

Member Avatar for Unhnd_Exception
0
941
Member Avatar for saurabhtiwari

Hi I am trying to count the rows from a table at the same time I want to update the new column I m trying the following code but not getting results please help me.... [code] string str1 = "SELECT Extrausage FROM perclientreport WHERE Bill>0"; cmd = new OleDbCommand(str1, con); …

Member Avatar for ShahanDev
0
114
Member Avatar for like_bilal02

Dear Freinds I want to get two rows out of 6 columns in datagrid from database out of 6 columns so kindly give me a query of this programme but give me linq to sql query thanks

Member Avatar for ShahanDev
0
65
Member Avatar for Resentful

I apologize for the vague topic title, but the actual topic title would be very long. Is it possible that after you find a string, backup until you find a specific character and copy it? For example, I am looking for "bread". The text is milk8andbread. Would it be possible …

Member Avatar for Unhnd_Exception
0
111
Member Avatar for steven8579

I need help with printing support. i followed a tutorial on dreamincode.net for printing and now i need help. When i print, it prints out two pages the first one has 0 in it and the second one has 00 on it. I am trying to get it to print …

Member Avatar for steven8579
0
148
Member Avatar for rtk1865

I have a unit conversion program that needs to take in a float and 2 strings from standard input. My previous solution was: [CODE] float orig_quant; char *orig_name = (char*) malloc(MAX_CHARS); char *new_name = (char*) malloc(MAX_CHARS); fscanf(stdin, "%f %s %s", &orig_quant, orig_name, new_name); [/CODE] However, this only works if the …

Member Avatar for Narue
0
23K
Member Avatar for BleepyE

Is it possible to have a feature where the application checkes for updates every 7 days or each launch? If so, please could someone point me in the correct direct to adding this to one of my applications. Thanks

Member Avatar for BleepyE
0
258
Member Avatar for cuckas

Dear friends, hello to you all as this is my first thread - question to the forum. This is my problem, which is a school exersize: I create a linked list which contains three numbers r,c,d per node From this list I have to create a hash table htable[7] with …

Member Avatar for ambageo
0
338
Member Avatar for stljim

Hello everyone, I'm _very_ new to xml, especially converting using an xslt. Here's my source XML generated by Eeye Retina. This data is being used by MS Access and I don't need all the data from the original XML. When I try to run the MS Access app I get …

Member Avatar for iceandrews
0
272
Member Avatar for kjanardhanam

The following code snippet is throwing error if i use the mkpath command.Can any one help please? i get the following error message: D:\perl_prj>perl ex2.pl a.csv mkdir IDS/CPIDS : Invalid argument; The filename, directory name, or volume label syntax is incorrect at ex2.pl line 28 [CODE]use File::Path; #get file name …

Member Avatar for d5e5
0
230
Member Avatar for BleepyE

My code has all of a sudden gone strange. Example 1: When I click my save button nothing happens, when I double click the button in the designer, it creates a new sub called "save_click_1" Example 2: My linklabel is no longer working. Double-clicking it in the designer ccreates a …

Member Avatar for BleepyE
0
74
Member Avatar for hao90

i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how …

Member Avatar for hao90
0
114
Member Avatar for vbx_wx

[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks.

Member Avatar for vbx_wx
0
96
Member Avatar for dbphydb

Hi, I have the below script which downloads few files from server and writes the file size, start time and download time to a file. Now i want a header for that file. The script does so, but when i run the script again, again the header is appended to …

Member Avatar for woooee
0
179
Member Avatar for alexandernst

I'm trying to convert LPWSTR to LPSTR withi this: [CODE] LPWSTR *argvw; int argc; argvw = CommandLineToArgvW(GetCommandLineW(), &argc); LPSTR argv = new CHAR[argvw->size()+1]; WideCharToMultiByte(CP_ACP, 0, argvw->c_str(), -1, argv, (int)argvw->size()+1, 0, 0); [/CODE] but I'm getting this: [CODE] main.cpp:14: error: request for member 'size' in '* argvw', which is of non-clas …

Member Avatar for Ancient Dragon
0
601
Member Avatar for totalwar235

i am just trying basic C++ GUI and i ran this code from a tutorial site. [CODE] #include <windows.h> int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow) { MessageBox(NULL, "Hello World", "Testing", 0); return 0; } [/CODE] when i run it, it executes and makes a animation of …

Member Avatar for totalwar235
0
116
Member Avatar for altarek

what is the problem? i have this message when insert? [QUOTE]Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4'', `data_no` = ''1'', `note_date` = 1293628283, ' at line 4[/QUOTE] and this is …

Member Avatar for diafol
0
165
Member Avatar for sheztc1977

Hi, I am trying to create a league table. There are eight teams. The teams and their results are added to a text file on one form. The teams and results are seperated by a comma. On the second form i have a label where I am trying to display …

Member Avatar for sheztc1977
0
741
Member Avatar for discovery-power

Hi All, I have created a form called new users, I have added my data source, draged over the objects I want from the dataset onto the form and all is well appart from the fact that I cant delete records. To add them I simply click the add button, …

Member Avatar for discovery-power
0
112

The End.