64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nahiyan

I am new to PHP and I discovered a new trick, I want to create a script and if $pagea=1 then it will display the contents of page [B]a[/B] and so on but I want to know how to make a button or anything that is kinda like link and …

Member Avatar for Ole Raptor
-1
108
Member Avatar for G_S

Hi I'm using python 3.1 and Windows. My program writes xml code to a text file, the problem is that windows needs to know that this file's encoding is utf-8. Right now it does write the proper code, but other programs (firefox, for instance) fail to read it because it …

Member Avatar for Gribouillis
0
187
Member Avatar for MrBlack

There is an error , it is cannot find Symbol [CODE] import java.sql.*; public class Main { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String connectionUrl = "jdbc:mysql://localhost/mytestdb?" + "user=root&password=PHP"; Connection con = DriverManager.getConnection(connectionUrl); } catch (SQLException e) { System.out.println("SQL Exception: "+ e.toString()); } catch (ClassNotFoundException cE) { …

Member Avatar for MrBlack
0
4K
Member Avatar for G_S

Hello, I am making a file comparing program, and I want it to display line numbers permanently, like any normal text editor does. Is it possible to do this with tkinter? thanks

Member Avatar for G_S
0
2K
Member Avatar for niehaoma
Member Avatar for niehaoma
0
106
Member Avatar for lupis

In my webconfig file, I am using Forms authentication and I have: <forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="30"> and my default.aspx page is protected as it should. After logging with the proper credentials I am directed to the protected default.aspx page, however when viewing other pages of my website in …

0
80
Member Avatar for akssps011

I am having problem in using a virtual function across several files. I have this code: myPlugin.h [CODE] #include "myprojPluginInterface.h" #include "myproj_export.h" class MYPROJ_EXPORT myProjPlugin : public myprojPluginInterface { public: virtual ~myProjPlugin(); virtual myProjPlugin * newInstance() const = 0; virtual int speed() const; virtual int direction() const; protected: PositionProviderPlugin(); }; …

Member Avatar for akssps011
0
96
Member Avatar for MrBlack

this is my simple application , i try to updata ,but it is not working, in this example it shows only first reocrd and, try to update first record(i want to know the method of updating, so i can updates other records too) data base has only two fields id,name …

Member Avatar for MrBlack
0
111
Member Avatar for lupis

I have a multiview control with two views, with the first one loaded as default. On that form I have two textboxes which are both connected to a requiredfield control. I also have one submit button control for the textfields, and a linkbutton control to show the second view in …

Member Avatar for lupis
0
91
Member Avatar for intes77

Hello im having problems with my code. i wanted to make a program that would let me enter anything and then place each one of them inside the array. [CODE]import java.util.*; class charAt { public static void main(String[]args) { Scanner input=new Scanner(System.in); String[]sample=new String[52]; String enter; int x; System.out.println("Enter something"); …

Member Avatar for intes77
0
6K
Member Avatar for intes77

i am having problems in reading the contents of my .dat file. the contents of my .dat file are the following: 10.20 60.20 70.20 25.25 1.1 2.2 3.3 4.4 my expected output should look like this: --------- --------- --------- --------- 10.20 60.20 70.20 25.25 1.10 2.20 3.30 4.40 but when …

Member Avatar for intes77
0
151
Member Avatar for daudiam

java class files are not loaded into memory till the time they are referenced. If this is true, then the use of import statement is just to save a bit of typing. Is it the case ?

Member Avatar for JamesCherrill
0
131
Member Avatar for revski

Hi i am looking to use a totally custom built UI with a piece of software i am writing in delphi. i have ofc seen this done many times in programs like itunes and windows media player etc, where the standard windows aero frame is not used... i have never …

Member Avatar for revski
0
176
Member Avatar for leiger

I'm trying to list a bunch of buttons vertically, but am having problems even getting that much done. I'm pretty sure I have the scroll pane working (it just isn't being used yet so I can't test it). This is part of an assignment so I'd prefer not to post …

Member Avatar for leiger
0
2K
Member Avatar for RingmasterTJ

Hey everyone, So, for my C++ course I am implementing a Binary Search Tree. In this Binary Search Tree we are to create a function to copy the values of a passed array into a Balanced Binary Search Tree that will render a correct inorder traversal. I.E. an array of …

Member Avatar for wieczorek1990
0
252
Member Avatar for lupis

To start with I a am a newbie and I know I have done this wrong, probably in my webconfig file. These are my settings in the webconfig file: [CODE]<forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="30"> <credentials passwordFormat="Clear"> <user name="xxx" password="xxx"/> </credentials> </forms> </authentication> <authorization> <allow users="?"/> </authorization>[/CODE] For my login.aspx …

Member Avatar for lupis
0
130
Member Avatar for kdcorp87

i find this code in a forum [CODE]using System.ComponentModel; using System.Drawing; using System.Windows.Forms; static class Program { static void Main() { string pointText = "11, 19", rightToLeftText = "Inherit"; Point point = Parse<Point>(pointText); RightToLeft rtl = Parse<RightToLeft>(rightToLeftText); } static T Parse<T>(string text) { // might need ConvertFromString // (rather than …

Member Avatar for kdcorp87
0
337
Member Avatar for Bluefox815

I was writing a program and wanted to write a struct that's used to match an input string and print a corresponding output. However, I ran into a very unexpected problem. This code gave me the compile error below. [code] #ifndef MATCH_H #define MATCH_H #define TOTAL_WORD_PAIRS 2 typedef struct { …

Member Avatar for Bluefox815
0
305
Member Avatar for adams161

Hi, I have a list of a few thousand names. I actually have last name, first name, phone number, etc and more info. I'm going to make a class to contain the data. so I'll have like a people object with for example a last name field. I'm going to …

Member Avatar for adams161
0
125
Member Avatar for white feather

I get this error when i write to my C drive using an ObjectOutputStream [CODE] List<String> strings = new ArrayList<String>(); strings.add("test1"); strings.add("test2"); strings.add("test3"); IO.IO.writeListToFile("C:\\Users\\coconnor\\Documents\\Java\\ToolKit\\", strings); [/CODE] [CODE] public static void writeListToFile(String location, List<?> list) { ObjectOutputStream p = null; File f = new File(location); try { p = new ObjectOutputStream(new …

Member Avatar for white feather
0
5K
Member Avatar for beforetheyknew

Hi guys, I'm doing a dissertation on the skills necessary to do a CS degree, within which I'm going to design a website that assesses prospective CS students and their ability to cope with the harder more technical and analytical skills. I'm basically just looking for some experienced perspectives, brainstorming …

Member Avatar for Bluefox815
0
710
Member Avatar for HappyTron

Hello Guys, I am trying to read lines from .xml file using a C program. Basically what program does is read the date, and if the current system date is in the range of the date range given, it fetches some data from the next lines in the date. However,my …

Member Avatar for Bluefox815
0
155
Member Avatar for muddy900

Hi guys, I'm trying to read a file which contains text in arabic. The file text is aligned from right to left. But when I read it, the output is from left to right. Is there any way to align it from right to left? I'm trying to display the …

Member Avatar for muddy900
0
93
Member Avatar for ceyesuma

I can't seem to find the correct way to add an alias in a select statement. Is there a way to do this using an embedded Apache derby database? The usual way will not work. ex: [icode] SELECT uid AS User,fName AS First,lName AS Last FROM table[/icode]

Member Avatar for ceyesuma
0
718
Member Avatar for Nitin Daphale

In my desktop application am using following .net functions [CODE][COLOR="Green"]GC.Collect(); GC.WaitForPendingFinalizers();[/COLOR][/CODE] [COLOR="Red"]I just want to know that, is there possibility that WaitForPendingFinalizers() will wait for indifinite time ? If so ,what is the way to get out of it so that my application can proceed further.[/COLOR][QUOTE][/QUOTE]

Member Avatar for Jorge65100
0
1K
Member Avatar for ceyesuma

Hello: I have created a Desktop that interacts with a embedded db. I also have crated a flash program that opens and runs itself in any web browser. My inquiring is to find out if I can create a button to launch this flash program from my Java app? Also …

Member Avatar for NormR1
0
330
Member Avatar for lewashby

[CODE]import sqlite3 def find_details(id2find): db = sqlite3.connect("surfersDB.sdb") # grap surfer data from database db.row_factory = sqlite3.Row cursor = db.cursor() cursor.execute("select * from surfers") rows = cursor.fetchall()[/CODE] In the code snippet above from "Head First Programming", the syntax for the database code is poorly explained. Is row_factory a call, method, or …

Member Avatar for lewashby
0
140
Member Avatar for ErlendHL

Hi. I make a new array, p: [CODE]p=[[x]+[0]*(y)]*z[/CODE] then if x=1, y=2 and z=3, the array is: [CODE][[1, 0, 0], [1, 0, 0], [1, 0, 0]][/CODE] But now, the problem steps in. If I now say that p[0][0]=2, then the array is: [CODE][[2, 0, 0], [2, 0, 0], [2, 0, …

Member Avatar for ErlendHL
0
94
Member Avatar for zeeven

Guys help me 3 of my thesis proposals were rejected and i can't think of a better one now Here are my topics: 1. Multiple CP brand PC Suite 2. Music Composer 3. Facial Recognition Our professors want us to focus on networking, online systems, or database. Please help me. …

Member Avatar for angelicdemOOn
-2
128
Member Avatar for himit

Hi, I have an XML: [CODE] <A> <B> <C>a</C> </B> <B> <C>b</C> </B> <B> <C>c</C> </B> </A> [/CODE] and I need the output as [CODE] <X name="a"> <Y name="b"> <Z name ="c"/> </Y> </X> [/CODE] i don't know how to write the XSL for it, tried few things but couldn't …

Member Avatar for fpmurphy
0
123
Member Avatar for Nitin Daphale

[COLOR="Green"]Table Name => PropDocument Column1 => propertyid ( foreign key from Property table ) Column2 => documentid ( foreign key from Document table ) The error ( in the attached image ) comes when I try to delete the record. This error comes often when there are 2 records with …

Member Avatar for Nitin Daphale
0
95
Member Avatar for culebrin

Hi, I have a website on NET 2.0, there I have a textbox and after I change the text on it with a js function, try to save on the DB (I have to click on a imagebutton to save it), but on the postback the textbox.text property has the …

Member Avatar for ja3_bhende
0
2K
Member Avatar for krea2r

Hey there all. I wanted to know if there was a way to use php to validate form. Well in more detail, I wanted to know if it was possible to print a msgbox using php telling the user he has missed some thing rather than having to display a …

Member Avatar for jaini817
0
196
Member Avatar for Ebisu

Hey i have so far set up a form to save data into a database and i am using: [code] con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0.;" & _ "Data Source = F:\Database1.mdb" con.Open() [/code] I tried saving the database as i did with images in the resource folder and used my.resources but this …

Member Avatar for Teme64
0
2K
Member Avatar for Feanorith

Hello, I have to make a very basic paintlike program for school, and I've ran into a problem I have no clue how to solve. I hope one of you friendly forum-goers can help me out. Here's the problem: I have a class called Figuur (shape in Dutch) and * …

Member Avatar for Feanorith
0
148
Member Avatar for Ebisu

Hi, i have a access database with two tables, one for customer and one for booking. I then have a form application i made in VS 2008 which lets a user enter details such as their name phone number ect into text boxes. All of the information the person enters …

Member Avatar for finito
0
232
Member Avatar for tomtetlaw

When I run my code, I get "Run-Time Check Failure #2 - Stack around the variable 'string' was corrupted." I have looked everywhere in my code for a source of this error, and I can't find one, I've also looked where a buffer overrun could occur. The variable string is …

Member Avatar for tomtetlaw
0
163
Member Avatar for Nitin Daphale

My project is simple desktop application. I want to transfer(upload) a file from my desktop to the another machine which is server of my machine.(One machine to another ) There is nothing to do with web service. Can anybody send me help ? Thanks in advance.

Member Avatar for Nitin Daphale
0
317
Member Avatar for wlalth

Hi, i wrote a patch system. It check the links and download them, if the files not same with the users files. All steps are working, i have only one problem. First download is perfectly complated, but when DownloadFileAsycn fired second times, its don't work. It creates strange file of …

0
53
Member Avatar for leiger

Python works fine in the console, but I'm having problems using python in a Java program. In case someone here has any ideas, I'm posting a link back to my original post (please reply there and not here): [url]http://www.daniweb.com/forums/post1246152.html#post1246152[/url] Thanks!

Member Avatar for leiger
0
154
Member Avatar for sdhawan

Hi Guys, I am reading a text file and i want to store that file ina string, below is my code, can anyone tell me what am i doing wrong [code] private void toolStripButton1_Click(object sender, EventArgs e) { // OpenFileDialog dialog = new OpenFileDialog(); FolderBrowserDialog dialog1 = new FolderBrowserDialog(); parser …

Member Avatar for kdcorp87
0
102
Member Avatar for Excizted

Hi people, I'm trying to compile my C++ project under Windows, which it should be able to. I've got a whole bunch of dependency libraries. When I compile everything seems fine until these error pop up: [CODE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\rpc.h(27) : error C2598: linkage specification must be at global scope 1>C:\Program …

Member Avatar for Excizted
0
916
Member Avatar for sasTReSS

Hello everyone, i have a problem in my code. I want to make 2D vector with type char and the char read from a file, because i want to make it as dynamic array regarding the size of input can be different. Here is my file: bla.txt ------------------------------ K1, K2. …

Member Avatar for sasTReSS
0
204
Member Avatar for CFROG

I'm toying around with a script to allow users to search for other users based on certain criteria contained in their profiles. Anyhow, some of the attributes on the user profiles are things like what they are seeking like dating, someone to talk to, etc. I decided to serialize the …

Member Avatar for CFROG
0
93
Member Avatar for lewashby

[CODE]def find_details(id2find): surfers_f = open("surfing_data.csv") for eash_line in surfers_f: s = {} (s["id"], s["country"], s["average"], s["board"], s["age"]) = eash_line.split(";") if id2find == int(s["id"]): surfers_f.close() return(s) return({}) lookup_id = int(input("Enter the id of the surfer: ")) surfer = find_details(lookup_id) if surfer: print("ID: " + surfer["id"]) print("Name: " + surfer["name"]) print("Country: " …

Member Avatar for TrustyTony
1
250
Member Avatar for jv_05

Excuse, I need to work with data bases. In a little research I made, I found that python has a library call sqlite3 but I don't find information of how I use it. So if anyone can explain it to me I'll be so thankful. PD: I need this because …

Member Avatar for vegaseat
0
363
Member Avatar for alphaOri

I'm using python and I want to be able to create an object of a base class and have it initialize the object using the __init__ of a subclass. I use a function defined outside of the classes to determine which subclass' __init__ method should be called. I found a …

Member Avatar for alphaOri
0
151
Member Avatar for Jennifer84

Hello I have a form where I have a lot of code perheps about 1000 pages. Now in an event I have 160 lines of this code that I show below. I am showing 2 lines to give an example here: [code] for(int i = 0; i < 6; i++ …

Member Avatar for Jennifer84
0
652
Member Avatar for EireJoker

Hello Daniweb :) I am currently doing a programming assignment for college and have hit a brick wall. I am getting an error while trying to fill a combo box. [CODE]Private Sub Form_Load() 'Fill the Network List With adoNetwork.Recordset [COLOR="Red"] Do Until .EOF[/COLOR] If !Networks <> "" Then cboFilterNetwork.AddItem !Networks …

Member Avatar for arjunad
2
156
Member Avatar for oliv1

Hi I've set up a website which gathers results from a mysql database which allows the user to sort the results according to some preferences in 2 separate select lists. It works as long as you make a selection from both boxes before submitting. I would like for results to …

Member Avatar for oliv1
0
112

The End.