199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coroll

Hi!, I get InvalidCastException. It says "Unable to cast object of type 'HD.MainMenu' to type 'HD.NewBookEntry'" and points to this statment "mpg=(NewBookEntry)fm" Plz help me to solve this. My code is: [CODE] FormCollection fms=Application.OpenForms; foreach(Form fm in fms) { mpg=(NewBookEntry)fm; } mpg.Dispose(); [/CODE]

Member Avatar for coroll
0
113
Member Avatar for dennysimon

hi all in form1 I place 3 button and 1 datagridview ,btn refresh,btnload , btnnew and Datagridview dgv1 1. I change the value of a cells in datagridview (right after Form1 is loaded),and then click btnrefresh 2. I click btnnew to clear the dgv1 3. I click btnload to re …

Member Avatar for dennysimon
0
266
Member Avatar for dennysimon

hello all how to express parameter with decimal (which has 2 scale) //---------------------------- mysqlda.UpdateCommand.Parameters.Add("@Name", MySqlDbType.VarChar,40, "Name"); mysqlda.UpdateCommand.Parameters.Add("@Kode", MySqlDbType.VarChar, 8, "Kode"); mysqlda.UpdateCommand.Parameters.Add("@Price", MySqlDbType.Decimal ,10,2, "Price"); //---------------------------- line 3 give me error thanks denny

Member Avatar for dennysimon
0
2K
Member Avatar for barriegrant1

im using a stored procedure to load a number of galleries and then photos within the gallery, however when linking them to the listView only the first two photos are returned. Stored procedure [CODE] ALTER PROCEDURE dbo.test AS declare @galID int Declare c Cursor For Select Distinct gallery_id From galleries …

Member Avatar for barriegrant1
0
158
Member Avatar for sajjad037
Member Avatar for dre-logics

I want any amount ending in 98 cents. Three examples: 5 euros x 1.25 euros then the result is [COLOR="red"]6.25[/COLOR] euros, the program change this to [COLOR="Green"]6.95 [/COLOR] 4 euros + 2 euros then the result is [COLOR="red"]6.00[/COLOR] euros, the program change this to [COLOR="green"]6.95[/COLOR] User type to [COLOR="red"]6.70[/COLOR]then the …

Member Avatar for Mitja Bonca
0
122
Member Avatar for skiabox

I have problem starting tomcat now that I have installed macos lion. I get the following error in catalina.out : [CODE] Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile …

Member Avatar for skiabox
0
203
Member Avatar for shivya jain

[CODE] pvt sub timer1_tick(.....................................................) dim n as login form n.show() timer1.enable=false end sub [/CODE] Is there need to set keyword before login form? i m using this code but login form is not showing at runtime. please help me to run this code

Member Avatar for shivya jain
0
88
Member Avatar for Awah Mohamed

hi guys.. how are you all?? ok, i need you help to make this happen... i want to create a system that allow people to upload big files and you all know that php time limit is 5 minutes and size limit is 5 mb max.. in case we increased …

Member Avatar for G&G Designing
0
226
Member Avatar for manchurianCEO

I have seen several posts but I haven't really got around it. I am finding out PHP is a lot more useful than I thought so I'm trying to use it as much as possible for its flexibility to modify content from a single file. Can I include the contents …

Member Avatar for G&G Designing
0
222
Member Avatar for VNexus

Hi Everyone, Most recently, I've been working on a small project to sort through multiple text files which have all the same strings. Basically, I am looking to sort through and create a text delimited file for future use. The below script is what I have come up with so …

Member Avatar for VNexus
0
181
Member Avatar for DarkPheonix

[B]Could u tell me why the following problem is coming on running the program where im getting the out twice each time wen i shd get it only once , wen im entering a input im getting the menu twice[/B] [CODE]import java.io.*; class Television{ private String MANUFACTURER; private int SCREEN_SIZE; …

Member Avatar for FireBlah
0
323
Member Avatar for Domtheripper

I am new to C# and have encountered a problem with the following if statement... [CODE]measurement = GetRandomInt(0, 2); measurement2 = GetRandomInt(0, 2); if ((measurement == 1) || (measurement2 == 1)) q3correct = 1; else q3correct = 0;[/CODE] The statement works around 80% of the time and i have checked …

Member Avatar for Domtheripper
0
125
Member Avatar for iThaos

Hi, I was wondering whether it is possible to use a parent class' properties without calling its constructor. In the following example: [CODE]<?php class Shop { public $location; public function __construct($location = ''){ if(!empty($location)){ $this->location = $location; } else { $this->location = 'a place far far away'; } $this->location .= …

Member Avatar for iThaos
0
214
Member Avatar for mrcpp

I want to create my own widget toolkit, and I know it's possible without external tools(QT was written in C++, and so was wxWidgets). But I don't know how to do it, and I couldn't find anything in Google. So how exactly do I create GUIs in C++ that way? …

Member Avatar for Ancient Dragon
0
418
Member Avatar for techie929

Hi, I am trying to print the values in enum. Here is the code: [CODE] #include<stdio.h> int main(int argc , char* argv[]) { char played[] = "This old man, he played "; int i=0; enum days{one,two,three,four,five,six,seven,eight,nine,ten}; enum days d; for(i=0;i<10;i++) { printf("%s %s\n ",played,d); } return 0; } [/CODE] Can …

Member Avatar for Narue
0
119
Member Avatar for rayvarde

plzz help me how can i do the 3 sorting in 1 program user input using bufferedReader plzzz... bubble sort slection sort insertion sort

Member Avatar for rayvarde
0
92
Member Avatar for empror9

hello, i'm trying to write two classes (vehicle and driver) first i want to create the class vehicle and it's attrbutes, but there is a problem when i compile the code. please see all my code [CODE]#include<iostream> #include<vector> using namespace std; // // Vehicle: Vehicle number, type, capacity, driver assigned …

Member Avatar for mike_2000_17
0
195
Member Avatar for saybabs

I need to know if there is a way a folder upload can be made through php in an email.

Member Avatar for G&G Designing
0
111
Member Avatar for javinpaul

Just wondering is there any way to modify Classpath in your program and force them to include a new directory in classpath ??

Member Avatar for JeffGrigg
0
231
Member Avatar for thecrossibear

so i need to have a script that takes input from a command and parses it for some info im still pretty new to perl, but from what i understand, to do something like that youd have something like: [CODE] while ($line = <STDIN>) { blah blah blah } [/CODE] …

Member Avatar for thecrossibear
0
161
Member Avatar for Gazzmonkey

Hi all, I got a problem with part of my application, it's an exception I've never seen before. Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: 'Public Sub New(original As System.Drawing.Image)': Argument matching parameter 'original' narrows from 'Object' to 'System.Drawing.Image'. 'Public Sub New(stream As …

Member Avatar for Gazzmonkey
0
2K
Member Avatar for tubby123

I have 2 doubts 1)what is the default value of a mutex ? Is it 0 or 1? 2)Why cant we have a code like, this to solve the Concurrency issues. I mean, i know its not possible, but this was asked to me at an interview ... [CODE]if(pid == …

Member Avatar for TrustyTony
0
134
Member Avatar for Viruthagiri

This is my normal file upload code. [B] HTML[/B] [CODE]<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="theFile" type="file" /> <input name="Submit" type="submit" value="Upload"> </form>[/CODE] [B]PHP Variables to receive file[/B] [CODE] $fileName = $_FILES['theFile']['name']; $fileTempName = $_FILES['theFile']['tmp_name']; [/CODE] Now i would like to use remote upload. So i created a form …

Member Avatar for cereal
0
407
Member Avatar for sarathsshanker

im not able to figure out the meaning of this piece of code: [code] public int void countTokens(String s) { StringTokenizer st= new StringTokenizer(); return st.countTokens(); } [/code]

Member Avatar for stultuske
0
381
Member Avatar for theCompiler

how do i determine the winner in a game rock paper scissor ? i have 10 rounds and the one who has 7wins shall be declared as the winner but how am i supposed to do that ? great help is highly appeciated :)

Member Avatar for WaltP
0
125
Member Avatar for vishalbandre

Is it possible to take video data from one online resource and convert it to another format or quality like avi to 3gp,etc from high quality to low with server side scripting languages PHP, PERL, ETC.

Member Avatar for sajjad037
0
88
Member Avatar for 2Dcube

Hello, I have to make a small game in C++ as a school project. Now, although I've made many 2D games before I'm very new to C++, and I ran into a few problems. One: I need dynamic key input. I now use getch() and it makes the program wait …

Member Avatar for WaltP
0
2K
Member Avatar for Mast3r67

Ok, so this is how things stand now. I've read few books about C++ console programming, C++ console game programming, I'm doing C++ on school and I can say I'm pretty good at it. Now, I'd like to move on the next step, to program in C++ with graphics, sound, …

Member Avatar for mike_2000_17
0
184
Member Avatar for jacksantho

Hi, I am having the table of the following details. [B]rollno subject standard[/B] reg01 maths III reg01 physics III reg01 english III This reg01 student has registered this courses. He can make changes this registered courses. How can i find the "updation"(or differences) of my table as the previous using …

Member Avatar for ppetree
0
128
Member Avatar for adem87

this a serarcing button for list on the data table but give an error please find this this work in c# with access [code] DataTable tablo = new DataTable(); tablo.Columns.Add("no"); tablo.Columns.Add("urun"); tablo.Columns.Add("model"); tablo.Columns.Add("adet"); tablo.Columns.Add("boyut"); tablo.Columns.Add("aciklama"); try { DataRow satir; satir = tablo.NewRow(); while (oku.Read()) { // here satir[0] = oku[0]; …

Member Avatar for cudahead
0
136
Member Avatar for EddyWally

Hi there. I'm writing a simple system to order certain data. Now this is the deal: I have a bunch of files with the following filename structures (stored as strings): 0000[i]_FILENAME.EXT i represents a random number. Now I want to scan whether the file has that structure, and if it …

Member Avatar for EddyWally
0
170
Member Avatar for goluman

I am a beginner in openCV and C++ as well.I am stuck in a particular place while trying to implement face recognition in open cv. I have the stored training images in a folder called data the images of first person is stored like 1_john1.pgm 2nd image of first person …

Member Avatar for goluman
0
1K
Member Avatar for jimFan

Dear all, I experienced an unexpected error when using getline() to get input from a file like this: a.out < inputFile Part of the code is shown below [CODE] ........ while (true) { cout << "Enter a command: "; getline(cin, input); cout << input << endl; } ......... [/CODE] The …

Member Avatar for p9v9n261
0
461
Member Avatar for TrustyTony

Inspired by Computer Science forum post, I did this code. I prepared it Shedskin compatible, and it runs quite nicely indeed. Even interpreted the algorithm is faster than full sort. Here interpreted test for the module, shedskinning this test would show better time for sort solution. Python version has benefit …

Member Avatar for TrustyTony
0
372
Member Avatar for ClimaxBeetle

[CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ds As New DataSet Dim da As New OleDbDataAdapter Dim cb As New OleDb.OleDbCommandBuilder(da) Dim cn As New OleDbConnection Dim cmd As OleDbCommand Dim sql As String 'sql = "INSERT INTO Employees(GivenName, LastName, Gender, JobPosition, Month, …

Member Avatar for adam_k
0
326
Member Avatar for Mahkoe

I've been coding in c++ for a while now, and I use string variables quite a lot. One day, I stumbled upon a char* which can also be used to "store" a string of characters, and it's been bothering me ever since that I don't really know what a string …

Member Avatar for Mahkoe
0
183
Member Avatar for gunjannigam

I want to have two textfields which will have the following validations 1) Both should be Integers 2) The value in one textfield should be a integer multiple of other I have used two JFormattedTextFields to this. This is what i have done till now [CODE] NumberFormat updateFormat,sampleFormat; updateFormat = …

Member Avatar for mKorbel
0
277
Member Avatar for shibunath
Member Avatar for Purkinje
0
2K
Member Avatar for arlir

Hi guys, A good day to you all! I am trying to bulid a simple data base but two errors at compile time apparently are holding me back from running my program. I have tried to figure them out but my efforts are are proving worthless and that's why am …

Member Avatar for muktigeek
0
234
Member Avatar for techlawsam

Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code. Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n"). Im wondering how …

Member Avatar for techlawsam
0
2K
Member Avatar for Xufyan

here why should we have to write [B]c=1[/B] ?? i couldn't understand the logic of writing c=1 :s... please just explain the logic [CODE]void main(void) { int a,b,c=1; a=5; for ( b=a; b>0; b--) { c*=b; } printf ("The Factorial of %d is %d\n",a,c); getch(); }[/CODE]

Member Avatar for muktigeek
0
652
Member Avatar for VIPERHlr

Hi, I desperately need help for my java assignment. I am required to make an encryption/decryption program using netbeans. It basically takes the users message and encrypts it into characters and vice versa for decryption. My teacher say it has something to do with using arrays. There are 2 main …

Member Avatar for peter_budo
0
137
Member Avatar for 080346

Hello every body; i hope you all are fine, i need help on my project where i got stuck; i have a page where user browse and then upload the swf file, i want to extract all the existing images from that swf file when user click on upload button..... …

Member Avatar for sDJh
0
639
Member Avatar for creative_m

I want to define a vector of TextBox (or any compnents) in VC++ project (windows form). I wrote : [code] std:vector <TextBox^> txt_box; // //then I push the elements back in the vector using txt_box.push_back (textbox1) // //... // for all the text_boxs in my form [/code] but this code …

Member Avatar for Ancient Dragon
0
292
Member Avatar for Waynef

Hi, This piece of code works in chrome & IE but not Firefox, can anyone see why? [CODE]function openimage(a, b, c, d) { var b = document.getElementById('photo' + a).value; var c = document.getElementById('album' + a).value; var d = document.getElementById('clicks' + a).value; if (d = 1) { jQuery.facebox({ ajax: 'profile/previewphoto.inc.php?photo=' + …

Member Avatar for Waynef
0
130
Member Avatar for j12034

Our project proposal had already been approve it is intitled "The Adventures of Rico". We are planning to use flash, but our knowledge about this game development is limited. The plan is will create a 2d animation, and use actionscripts but we don't have much the idea how to code …

Member Avatar for martina.jones
0
175
Member Avatar for hari_kiran

hello...i just installed oracle 10g in my pc but i dint get username and password for sql*plus......plz help me

Member Avatar for abhay yadav
0
174
Member Avatar for Arjun_Sarankulu

I am new to Asp.net How can i do insert, update , delete on gridview using Ajax I have search a lot but didnt find

Member Avatar for kvprajapati
0
81
Member Avatar for KBL

Hey I have a slight problem here, I got my php login script, But it doesn't do what I want it, anyways when I enter details into the login box, if it is invalid I want it to refresh the page and say invalid login, but all it does, is …

Member Avatar for vibhaJ
0
246

The End.