199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CSharpUser

Hi folks, I’m struggling with what I thought would be a relatively simple process. In my last thread ([URL="http://www.daniweb.com/software-development/csharp/threads/379458"]http://www.daniweb.com/software-development/csharp/threads/379458[/URL]), I got your help with the placement of parentheses in a Linq to XML query. I thought it was all going to be easy from there. Now I am trying to …

Member Avatar for CSharpUser
0
301
Member Avatar for David321

I'm currently using the fourth edition of Deitels "C++ How to Program", which I borrowed from the library. I'm interested in buying a copy of the textbook myself. If I buy a fifth/sixth edition will there be things that will be confusing? For example, are the concepts introduced in a …

Member Avatar for David321
0
119
Member Avatar for videoscape

i can't get my head around how i am suposed todo this really i am stuck i have looked on tons of forums mostly this forum and what i would like to do is if a person goes on this link play?p=rLoYvtMNlO then it will load the data from that …

Member Avatar for videoscape
0
203
Member Avatar for dougancil

I have an application that I'm trying to finish in VBA, and as I've never written in it, it's a bit challenging to me. I've written some in VB but the syntax isn't the same between the two for some things. Essentially, here's the logic (or lack of) that I'm …

Member Avatar for BitBlt
0
190
Member Avatar for superjj

I have a very stupid question. I use a JToggleButton. now I want to know if the setSelected is true or false. thus an if function, but how to write one because I get errors. thank for your support [CODE]if(Btn2.setSelected() = true){ }[/CODE]

Member Avatar for superjj
0
116
Member Avatar for Jeroen van Zijp

I have to build a small contactform validator in JS, which checks the fields' values when submit is clicked. I am experiencing problems with getting the email validation to work properly. This is what I've got: [CODE=js]function validate_form() { valid = true; // Validation of email input if ( (document.contact.email.length …

Member Avatar for MHENRU
0
239
Member Avatar for Upoma

I am developing a desktop based software in Java using IDE Netbeans 7 and database MySQL. Now i want to distribute this software and protect it from piracy.I want to implement online licence verification.That means when user will install the software a number based on hardware configuration will be sent …

Member Avatar for hfx642
0
739
Member Avatar for mikejs

Hi I am using the following to get the system sound question but it doesn't populate ? [CODE] Public Class SystemSoundItem Dim sound As SystemSound, soundName As String End Class Public Property SoundToPlay As SystemSound Set(ByVal value As SystemSound) End Set Get SoundToPlay = SystemSounds.Question End Get End Property[/CODE]

Member Avatar for mikejs
0
368
Member Avatar for sadsdw

Hi friends, I wrote a simple code to write in different files but I don't know where I made mistake. The function is writing the first file and after writing everything in the second file, not in the next files 3,4, 5. Can anyone help me please? Thanks a lot! …

Member Avatar for sadsdw
0
108
Member Avatar for Meonia

Hi, I'm doing a check against HTTP_REFERER after a simple form is submitted, just as an additional security measure. What's happening is that the check always fails when the script is running on the remote server, but works as intended if I test it on my localhost server. Here's the …

Member Avatar for Meonia
0
234
Member Avatar for Anuradha Mandal

[B]Input[/B] The input begins with two positive integers n k (n, k<=10^7). The next n lines of input contain one positive integer ti, not greater than 109, each. [B]Output[/B] Write a single integer to output, denoting how many integers ti are divisible by k. my code is......... [CODE] #include<stdio.h> int …

Member Avatar for Narue
0
89
Member Avatar for Rajsmethode

I have a problem,, I have to stop one Loading class on button click. I already checked some forums related to this. But didnt find exact solution. for example: [code] Public Sub LoadDropDown() Dim it As Integer For it = 0 To 1000000 DropDownList1.Items.Add(it) Next End Sub [/code] I have …

Member Avatar for omar isaid
0
847
Member Avatar for Gaving30

Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 …

Member Avatar for TrustyTony
0
444
Member Avatar for SpiritualMadMan

This is something that is really starting to bug me about Python and wxPython... In VB6 (Disallowed by my employer) I can have multiple Forms loaded at the same time. I can show and hide each and everyone of these forms any time I want to. For example I can …

Member Avatar for SpiritualMadMan
0
148
Member Avatar for Vaikkundhnaair

I would like to create a login screen with username/password. Can anyone help me? The login screen should validate username/password before the user is redirected to the next screen. thank u

Member Avatar for codeorder
0
841
Member Avatar for Mike Bishop

can someone help a newbie with .net the code i have is working fine to pass one parameter to crystal, can someone help me pass a second parameter called "line"? [CODE]Imports System.Windows.Forms Imports System.Data.SqlClient Imports OEE_NEW.Module1 Imports System.Data Imports System.IO Imports System.Data.SqlTypes Imports System.Windows.Forms.DataVisualization.Charting Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.ReportSource Imports CrystalDecisions.Shared …

Member Avatar for bklynman01
0
222
Member Avatar for adem87

ı want to update datagritview in c# . ı need to this codes.firt ı use edit and ı will edit after the termineting ı click save how can ı write ı use the access database my last codes but can not work urun = comboBox1.Text; boyut = comboBox1.Text; model = …

Member Avatar for adem87
0
102
Member Avatar for dwlamb

I have an array that is multidimensional and I need to test whether an offset exists. My reading of the PHP manual for array_key_exists makes sense for a single-dimension array. My script takes results returned from the database and arranges them this way: [code=php] Array ( [1] => Array ( …

Member Avatar for dwlamb
0
681
Member Avatar for khurram01

I am working on simulation and i need to display data to TextArea or JTable, that is generating continuously at run time. ----------------------------simulation class---------------- Class Simulation() { when Nubmer Generate call method ' updateData' in Frame Class to upload on JTextArea. } -----------------------------------frame class--------------- Class JFrame() { Method updateData(string data) …

Member Avatar for NormR1
0
1K
Member Avatar for rowen17

hi guys, im trying to loop a variable using 00 format.. ex. 01,02,03,04.......31 im going to use this for my dropdown of date. thanks!

Member Avatar for eXpertPHP
0
87
Member Avatar for ntagrafix

hi, I worked around to modifying regular expression below but i could't get what I need. I google it, many things found but not for what i want. [CODE] Dim valid AS Boolean = Regex.IsMatch(TextBox1.Text, "^(,?\d+){0,20}$") [/CODE] Allow numbers exactly like 32,1,6,32,12,21,21,54,675,8,4,3,2,9,0,21,21,21,43,744 in TextBox1. Perfect. NOW i want 20 numbers …

Member Avatar for ntagrafix
0
217
Member Avatar for shadowscape

Hello, i have created a Xor function for a DLL i am developing. I have a problem with this function as the decoded text isn't matching its original state and i am unsure as to the cause of this, please could you help me? [CODE] #define export __declspec (dllexport) #include …

Member Avatar for nmaillet
0
128
Member Avatar for pxndx

Hey does anyone know where i can find a list of projects like for school?

Member Avatar for Obadiah1
0
96
Member Avatar for lolsn0r

Ok i have made a picture ;) That will explain it a lil better. I just need to add that certain code ***|*** to textbox2.text but * can be 1 2 3 4 5 6 7 8 9 button2_click: if textbox1.text.contains("***|***") then ... Picture: [URL="http://imageshack.us/photo/my-images/43/naamlooses.jpg/"]http://imageshack.us/photo/my-images/43/naamlooses.jpg/[/URL]

Member Avatar for codeorder
0
184
Member Avatar for TrustyTony

Again "pseudo-code" for [URL="http://www.daniweb.com/software-development/cpp/threads/379255/1632559#post1632559"]C++ program[/URL]. Quite primitive and simple, but I post it anyway. Generalized to take even even number as parameter.

0
132
Member Avatar for Gaiety

Hi, if any one has any idea "how the switch statement works". does it maintain any tables internally or any other machanism? and is there any way to make the switch statement efficient?

Member Avatar for lyfzopen
0
189
Member Avatar for aloi93

To walk, the robot must receive input in meters, how long it has to walk. The robot will compute the distance it has moved every 1 meter. The process of checking the distance will be repeated every 1 meter until it finishes the movement. [B]My Pseudo code Design:[/B] [CODE] start …

Member Avatar for Adak
0
149
Member Avatar for amrita111

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); } how will it work?please explain..

Member Avatar for jnawrocki
0
99
Member Avatar for Sparhauoc

Greetings all. First of all, let me say I am NOT asking for code, just to be pointed in the right direction. I’m a newbie in php and mysql and have been teaching myself what I could learn from online lessons and tutorials (mostly w3school.com). I have found plenty of …

Member Avatar for Sparhauoc
0
593
Member Avatar for coolbeanbob

Hello, I am trying to figure out how to get the rand() function to include 0. [CODE]int value = rand() % range + 1;[/CODE] No matter what I set range to be, the lower bound is always 1.

Member Avatar for Fbody
0
177
Member Avatar for sydsine

plz solve ... [CODE]int main() { const int m=10; int &n=m; n=11; printf("%d%d",m,n); }[/CODE] can w declare &n...its not an error...

Member Avatar for himgar
0
326
Member Avatar for optikali

Hello all! I am generating a random int between 0 and 75: [CODE] public static int rand(){ int num = (int) (Math.random()*75); return num; }[/CODE] How would I generate the same range of numbers but with a 70% bias for the lower half of possible numbers? I thought I might …

Member Avatar for JamesCherrill
0
1K
Member Avatar for coco24

Hi, Im new to java and I can not figure out where I am going wrong in this code. I need to take the value from the arguments in the run configuration. I the values are in args[] array and if there is more than one argument I need to …

Member Avatar for Rameshwar Soni
0
149
Member Avatar for fibbo

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …

Member Avatar for fibbo
0
218
Member Avatar for d3zz

Hello. i have this problem with a program im coding in python. heres the code: [CODE]#! /usr/bin/python from Tkinter import * list=[".", ".", ".", ".", ".", ".", ".", ".", "."] root=Tk() def p(lol): list[0]=1 lol["text"] = list[0] def plade(): ###### ROW=0 a1=Button(root, text=list[0], command=p(a1)) a1.grid(row=0) a2=Button(root, text=list[1], command=p(a2)) a2.grid(row=0, column=1) …

Member Avatar for d3zz
0
260
Member Avatar for coolbeanbob

Hello, I am trying to get the return value from the next_number function up to the makefile function. I am getting an error that says next_number does not have a class type. EDIT: the error is "return statement with a value, in function returning 'void'" I don't understand why it …

Member Avatar for himgar
0
122
Member Avatar for Buppy

Hi, A little help here needed - i want to make a class variable (array). Some values are expected to be from a session variable. Example [CODE] public $myArray = array( 'key1' => 'something', 'key2' => $_SESSION['something_else'], ) [/CODE] With this i get an error about unexpected variable. Aynone knows …

Member Avatar for Buppy
0
92
Member Avatar for thompsonSensibl

Hi, I have an array, and it must be sorted. The array's objects have associating values. For example, an array of city details contains these information [I]per object[/I]: (String) cityName, (double) cityNumber, (int) cityNumberOfPets. [CODE] //e.g. city[0] = ("Chicago", 243.2, 14); city[1] = ("New York", 25.3, 15432); city[2] = ("Dallas", …

Member Avatar for JamesCherrill
0
158
Member Avatar for Anuradha Mandal

Which one is update software for c++ and c language. Some practice center such as Codechef,, Uva online judge , I submit a right code but they said the code has compiling error such as it does not familiar with conio.h,getch() etc. I use Dev c++. How can I solve …

Member Avatar for himgar
0
112
Member Avatar for himgar

I want to know how the structure of C++ program resembles to a client server architecture?

Member Avatar for himgar
0
86
Member Avatar for mikejs

I seem to have broken something I get this error Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.KeyPressEventArgs'. my code: [CODE] Private Sub ListControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListControl.SelectedIndexChanged Dim connString As String = My.Settings.strConn Dim conn As New SqlConnection(connString) If ListControl.SelectedIndex > -1 …

Member Avatar for mikejs
0
242
Member Avatar for newsguy

Software from boffins who used to work at the [URL="http://spacetech.dundee.ac.uk/"]Space Technology Centre[/URL] at the University of Dundee promises to reveal secrets of legacy code. Founded in September 2009, [URL="http://www.rapidqualitysystems.com"]Rapid Quality Systems[/URL] is a software development outfit that was 'spun out' of the Dundee University Space Technology Centre, and is still …

Member Avatar for jbennet
0
367
Member Avatar for UGndLord

I know these functions in C, but in C++ they doesn't work. What is replacement for these functions in C++ ? Thanks.

Member Avatar for Narue
0
3K
Member Avatar for sergent

Why almost always capital letters are used when defining macros or variables like [CODE]#define SOMETHING 432[/CODE] instead of [CODE]#define something 3243[/CODE] Also, why in macro definition x is used for example [CODE]#define macro(x) (x*x)[/CODE] Does the letter matter, and can longer variable names be used like [CODE]#define MACROSQUARE(variable) variable*variable[/CODE]

Member Avatar for Narue
0
169
Member Avatar for chandru7
Member Avatar for tiggsy
0
108
Member Avatar for D3X

Hey guys,when i go to enter the same account number as i am logged into as well as any other account and click ok the error message displays however it does not stop me from progressing to transfer money to myself. I have had a shot at it however as …

Member Avatar for JamesCherrill
0
111
Member Avatar for Anuradha Mandal

Whats wrong with this code.... [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int x,y; cin>>x>>y; while(1){ if((0<x<=2000)&&(0<=y<=2000)) { if((x<=y)&&(x%5==0)) cout<<y; //else if((x/2)>y) // cout<<y; // else // cout<<y; else { break; } }} getch(); return 0; } [/CODE] I want to print the single value of y.I do not …

Member Avatar for Narue
0
122
Member Avatar for uselessninja

hi everyone i have a search page that will search base one date... but if i search with only date (9/27/2011 ) it will only display the data from database that has the same date and time but not the whole data in that specific date: example: in my database …

Member Avatar for calebcook
0
342
Member Avatar for ellisrn

I need to write a program which will execute a factorial, but with an upper and lower bound. Here's what I've written, but it's not working. I keep getting an error message on the for command with expression syntax. Please, I've got to have this and much much more by …

Member Avatar for Fbody
0
1K
Member Avatar for somon

hi everyone here is my method in java [CODE] public void openWebURL( String inURL ) { Intent browse = new Intent( Intent.ACTION_VIEW , Uri.parse( inURL ) ); startActivity( browse ); } } [/CODE] and i'm just typing [CODE] openWebURL("www.google.com");[/CODE] in my java file onStart section but my app just doesn't …

Member Avatar for sharathg.satya
0
170

The End.