64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for TimBob12

Hi there, I am fairly new to C++ and wanted to have a go at coding my own function with parameters. However some of the parameters are arrays and I get strange errors occur. I will comment my code with a couple of other questions as well. I am writing …

Member Avatar for TimBob12
0
202
Member Avatar for Farhad.idrees

private void btnCencelProducts_Click(object sender, EventArgs e) { for (int i = 0; i < lbFinalList.Items.Count; i++) { if (lbFinalList.GetSelected(i)) { lbFinalList.Items.Remove(lbFinalList.Items[i]); } } } thats code of my button i have list box where i want to removie multible item.. when i chose more than one item so only 2 …

Member Avatar for ddanbe
0
201
Member Avatar for andrewliu

Hello, If a user logs in with an email address and I have a session to save its email address so I can pass it along to other pages, how does it work if the user decides to update their email address in their account page? Will the session that …

Member Avatar for andrewliu
0
117
Member Avatar for Macko888

Hey Guys... Brain is kind of dead on a late thursday afternoon in Cape Town, Can anybody please assist... what i am trying to do is: 1) in a table i have a column that is an array, its all in plain text 2) i have a table that has …

Member Avatar for diafol
0
311
Member Avatar for george61

This is a program for getting the sum of prime numbers of given range. The problem is that it would take hours if the limit is about 1000000. I've read about the sieve of Eratosten but having difficulties with implementing it. Could someone help to make this piece of code …

Member Avatar for WaltP
0
332
Member Avatar for Prosper92

So I've been giving a number of assignments to do but I'm stuck on one in particular now. I've to create a 2D array ([5][2]) and then say how many times ou of the 5 rows that the first row was bigger than the second. I imagined I would need …

Member Avatar for Taywin
0
1K
Member Avatar for tukky

I have a project which is 98% complete. Its basically a Shop(till) interface. I have a form that has tabs the first being the main till, second shows a listview with everything in stock and the quantity of items in stock. Im stuck on one part of the program where …

Member Avatar for codeorder
0
414
Member Avatar for neosonic

Hi I'm currently using vb6 and ms access for my database. So far the application runs good, but the rumor (or fact) that access are not powerful enough with multiple access and also it has low data limitation (around 2 Gb), it scares me. I don't want my clients to …

Member Avatar for reygcalantaol
0
836
Member Avatar for sj5536

hi, thankx for solving all my previous thread right now my problem is that i have to get width and height of pdf file

Member Avatar for peter_budo
0
227
Member Avatar for Progr4mmer

how can i get java to enter/type text into a textbox for me once i select it(click inside it) so the cursor is there. Also how would i get it to send the enter key or other "non-text" keys.

Member Avatar for mKorbel
0
177
Member Avatar for jrosh

I want to create a j2me app with some pleasing UI. I tried polish but I didn't worked well, what are the other options I have? I am looking for SVG. But I am not comfortable with xml. please help me with this. than you

Member Avatar for jrosh
0
161
Member Avatar for puvi

Hi frens.. I have a requirement, where the user selects a option from dropdown, depending on the option selected, the next 2-3 fields must get populated from data coming from db(this must happen without refresh) so i decided to use ajax. I am getting a error which i am not …

Member Avatar for puvi
0
221
Member Avatar for DotNetAmat

When I try to connect to a data base I am getting the following error. Please help me. Request for the permission of type 'system.Data.OleDb.OleDbPermission,system.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'failed. DotNetAmat

Member Avatar for muze
0
150
Member Avatar for livingsword

hi, im a beginner. i hav an assignment on Pascal's triangle. i saw some post over the topic but couldnt get it to work with my code. heres what i have done so far.... [code=c] #include<stdio.h> #include<conio.h> void main() { int a[10][10]; int i,j,c,n; clrscr(); printf("Enter how many lines do …

Member Avatar for vipinkumar512
0
746
Member Avatar for Ole Raptor

Hello, I am having an issue with my legacy app saving files to Windows 7 machines. My first thought was that I would just run the program as administrator but that helped none. I have attempted saving this image to the temp folder and to appdata but neither seems to …

Member Avatar for AndreRet
0
160
Member Avatar for drewpark88

Hey Guys, I have downloaded the [url]http://www.swis.nl/ga/[/url] google analytics class and it is working just fine. It shows a graph of things like pageviews and visitors in a graph per day. What I want is just a solid number like: Visitors Last 30 days: 1,2043 | Visitors This Month: 1,434 …

Member Avatar for pritaeas
0
108
Member Avatar for valter

Hi, I am trying to combine two arrays to a multidim one. I have two int arrays stat[] and indexes[]. So the first looks like this 34,56,78,etc holding hundreds of numbers. The second looks like this 0,1,2,3,4,5 etc. I want to end with a multidim array like this 34,0 56,1 …

Member Avatar for Momerath
0
2K
Member Avatar for honey61399

I am new in vb.net please help. [CODE]Public Class Form1 Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress RichTextBox1.Text = " Not available " RichTextBox1.Select(RichTextBox1.Text.Length, 0) End Sub End Class[/CODE] I want this code to pass not available like" Not available Not available Not available " …

Member Avatar for Pgmer
0
192
Member Avatar for rjbrjb777

hello, what book will you suggest me to read if i want to learn gui using c language.?

Member Avatar for rjbrjb777
0
96
Member Avatar for dspjm
Member Avatar for dspjm
0
1K
Member Avatar for dhruv_arora

hey, i started learning javascript programing n i wrote this simple code to test, it isn't working, here's the code :- [CODE]<script type="text/javascript"> { function mltest() { var fnmae=document.myForm.fName.value; var mName=document.myForm.mName.value; var lName=document.myForm.lName.value; var rtxt; rtxt="Your full name is : "; rtxt+=fName; rtxt+=mName; rtxt+=lName; var finalName=""; document.myForm.finalName.value=rtxt; } } </script> …

Member Avatar for dhruv_arora
0
187
Member Avatar for luweegee

i have a forum wherein a user can create a topic,delete and edit a topic. and i have a admin panel that can delete a topic,edit and locked a topic or closed. I'm done in delete,edit and create what I'm looking for is how can i lock the topic if …

Member Avatar for floatingDivs
0
106
Member Avatar for leiger

Hey everyone, Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X. When I need to store a serialised object, I'm …

Member Avatar for leiger
0
187
Member Avatar for WildBamaBoy

Just as the title says, how can I detect double clicking in a ListView? I'm trying to emulate browsing through a directory with windows explorer.

Member Avatar for WildBamaBoy
0
109
Member Avatar for ntrncx

i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { …

Member Avatar for ntrncx
0
109
Member Avatar for raffiq_eddy

Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from …

Member Avatar for raffiq_eddy
0
985
Member Avatar for 24x24

Ok, I have three main tasks. One: I need to create a 2 dimensional array that is 8x8 and consists of randomly generated numbers that range from 0-3. I'm assuming the Math.random will be used inside of a for loop with a limit set for length(8) and range(0-3) somehow? Two: …

Member Avatar for 24x24
0
257
Member Avatar for Karkalash

Hiya I'm relatively new to data structures and using push_back. I'm trying to build a small dictionary program that assumes that there is no words (and definitions) in the dictionary when you first launch it. What I then need to do is ask for a word then definition to start …

Member Avatar for VernonDozier
0
222
Member Avatar for sayakyi

Dear All, I have a question again with my very old PHP project code(it was very dirty code) :-). It is a simple Dictionary Search program. Currently when the Search Data not found in the mysql database, it just show the blank result. How can i add some String for …

Member Avatar for sayakyi
0
269
Member Avatar for Incubator

How can i read some number from a text file and then go back to read some other information? All i know, is read it from the beginning to the end, but even when i check something for ex if(fgetc(in)!=...) goes forward one character, and all this messes up my …

Member Avatar for WaltP
0
151
Member Avatar for yapkm01

I'm newbie to JSF and i am confused on this portion written by Cay Horstmann in the Core Java server faces: ======================================================================================= The code: [CODE]public class QuizFormBean { private UIOutput scoreComponent; private UIInput answerComponent; // PROPERTY: scoreComponent public UIOutput getScoreComponent() { return scoreComponent; } public void setScoreComponent(UIOutput newValue) { scoreComponent …

0
142
Member Avatar for blahbla

hi i have a lab to do and i'm stuck on how to start a method i have 10 coins and i want to write a method that tells me the fewest amount of coins needed to add up to 100 - 1 dollar coins are randomly generated - values …

Member Avatar for blahbla
0
431
Member Avatar for anirban1087

Hi, I am working with PHP. I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table. I can have a drop down, but in a drop down , …

Member Avatar for SolidSolutions
0
167
Member Avatar for Usmaan

Hi guys, Sorry the title is vague. Couldn't come up with one. Ok so I have a int variable which is, let's say, of the value 5. Now I want to create a string which contains underscores, so: "_____" the amount of underscores is the same value of the integer. …

Member Avatar for Momerath
0
119
Member Avatar for anirban1087

Hi, I have two questions 1. Is it possible to add short cut keys in my php application, show that the user can access different menu items using them? 2. How can I print something directly to a printer without showing them on screen using php?

Member Avatar for diafol
0
91
Member Avatar for toolmanx

I was trying to send mouse positions to my status bar in a larger program. I could not get them to write more than one position to the status bar, then it stops changing. To test why, I wrote a small window using one "Do Paint" function first. I still …

Member Avatar for zeeshanciit
0
541
Member Avatar for anirban1087

Hi, I am having some problem to integrate my PHP & JS codes. The PHP code - [CODE] <?php for($i=1;$i<=3;$i++) { ?> <input type="text" id='rate<?php echo $i; ?>' /> * <input type="text" id='quantity<?php echo $i; ?>' onChange="updateValues(THIS);" /> = <span id='amount<?php echo $i; ?>' style="border: 2px solid black;padding:2px;"></span><br /><br /> …

Member Avatar for anirban1087
0
143
Member Avatar for fsl4faisal

i want to implement multicast using python can anyone tell me how can i get information on socket programming in python?

Member Avatar for woooee
0
166
Member Avatar for zaki

I have a code that I call from `Button_click` event. The code adds a new row to the table and attempts to add onclick element to every td element in the new row. Somehow, onclick does not work. Any help is appreciated. Here is the code: function insRow() { var …

Member Avatar for giveitarip
0
3K
Member Avatar for klemme

Hi everyone! I am new to PHP and aat the moment trying to create a login to an admin area of a website with a simple CMS backend. I have found this code whicj I have tried to look at/learn from and implement into my own website, but I am …

Member Avatar for klemme
0
221
Member Avatar for bibiki

Hello people. I have the following class. [CODE] public class Model{ private Kutia[][] c; public Model(Kutia[][] x){ c = touch(x); } public void touch(Kutia[][] k){ for(int i = 0; i < 8; i++){ for(int j = 0; j < 8; j++){ if(k[i][j].occupied()){ touchHorizontal(k, i, j); touchVertical(k, i, j); } } …

Member Avatar for bibiki
0
200
Member Avatar for zachattack05

If I start a new thread, and that thread executes a method that is contained in a referenced dll, how do they signal each other? Would this be considered a cross-process EventWaitHandle? It doesn't seem like it would be considering that the thread is started in the same process. I …

Member Avatar for zachattack05
0
139
Member Avatar for stan2000

I'm trying to write a program which allows a person to enter the number of days they have worked. Their hypothetical salary is 0.01$ per day and doubles everyday (0.02$ on the 2nd and 0.04$ on the 3rd day etc...). For each day, the day number, pay for the day, …

Member Avatar for Arbus
0
154
Member Avatar for bettybarnes

my deletecommand delete all my rows whenever i delete a row..but when i view it again the other rows still there and the i deleted is actually deleted.. here's my code for da.deletecommand [CODE] da.DeleteCommand = New SqlCommand("Delete from Admission_Record WHERE Patient_ID = @Patient_ID", cs) da.DeleteCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = ds.Tables(0).Rows(bs.Position)(0) cs.Open() …

Member Avatar for bettybarnes
0
113
Member Avatar for joeywheels

I'm having difficulty figuring out how to append two user inputs into a list as a tuple. I would also like to call the list and enumerate the list (e.g., 0. dog_name:dog_breed). I'm not sure how to call display or if it is even written properly. Here's what I have …

Member Avatar for woooee
0
153
Member Avatar for dspjm

For example, I want to write a minesweeping. I know the interior algorithm, but I don't know how to start creating a gui. How should I get started? Thanks.

Member Avatar for JamieLynnSEO
0
247
Member Avatar for bettybarnes

hi everyone i got this error Cannot insert explicit value for identity column in table 'Patients' when IDENTITY_INSERT is set to OFF. i set identity to Yes in sql server 2005..whenever i run my code i get this error message here's part of my code [CODE]Private Function GenerateCaseNumber() As String …

0
75
Member Avatar for james6754

Hi. Implicit: the compiler does the work for you Explicit: you have to specify what you would like the compiler to do. are the above statements true? I have just read on MSDN that an abstract method is implicity virtual. One is not implemented and one is, so is this …

Member Avatar for ddanbe
0
137
Member Avatar for hughesadam_87

I have a series of data files with large headers. Here is an example: [COLOR="red"]SpectraSuite Data File ++++++++++++++++++++++++++++++++++++ Date: Fri Feb 25 13:43:55 EST 2011 User: group Dark Spectrum Present: No Reference Spectrum Present: No Number of Sampled Component Spectra: 1 Spectrometers: USB2E7196 Integration Time (usec): 11000 (USB2E7196) Spectra Averaged: …

Member Avatar for hughesadam_87
0
151
Member Avatar for jacksantho

Hi, Please see the below one : [CODE]#!c:/perl/bin/perl use CGI qw(:all); print "Content-type:text/html\n\n"; print <<EndOfHTML; <html><head><title>Print Environment</title></head> <body> <FORM action="sample.cgi" method="POST"> First Name: <input type="text" name="first_name"> <br> Last Name: <input type="text" name="last_name"> <input type="submit" value="Submit"> </FORM></body> EndOfHTML[/CODE] From this, i don't know to proceed. There are two text box with …

Member Avatar for d5e5
0
2K

The End.