199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nimbus3000

I wrote this piece of code. It is giving me an error that i cannot correct. This piece is saved the file: CE.java public class CE { private String first; private String second; private String ssn; private float rate; private float sales; public CE(String fName, String lName, String secu, float …

Member Avatar for nimbus3000
0
102
Member Avatar for k2k

My program should find any 4 letter words and change them into string "love" ... i have successfully found all the spaces and modified any 4 letter words before the spaces... however, the last word before the '/0' doesn't change... please help. btw, is there any string class function check …

Member Avatar for VernonDozier
0
129
Member Avatar for GadiK

Hi Guys, I'm trying to write a program (MFC) that while working displays a log to the user. For this log I thought I'd use an Edit Box because I can set it to be "multiline". What I had in mind is to display each new log entry in a …

Member Avatar for GadiK
0
1K
Member Avatar for shahab.burki

Hi, Can we use structures within classes as data type? if yes then please give some examples? Thanks

Member Avatar for Comatose
0
79
Member Avatar for jobi116

Hi.. I had a problem using a Control [ListView] out side its Class[main form class].. So i made that control [ListView] Static ..Now I can Add and Remove Items from The ListView with ease.. Now the problem is that i cannot use the Event's of this ListView. I need Your …

Member Avatar for JerryShaw
0
209
Member Avatar for sid78669

Hey! What i am looking for is help on how to work with databases in c#. I have basic knowledge of C# and a pretty good working knowledge of SQL. But I have never learned how to use them together. Can someone point me to a tutorial or something similar …

Member Avatar for JerryShaw
0
197
Member Avatar for ryan311

i cant load my data in listview this is my code [code]Private Sub LoadCustomerListView() Dim strSQL As String Dim objCurrLI As ListItem strSQL = "Select Lastname" _ & " , Firstname" _ & " , Address" _ & " , Idnumber" _ & " , Gender" _ & " From …

Member Avatar for Comatose
0
72
Member Avatar for BradenMurphy

Hi, I would like to know how to port this code in Delphi [CODE] a : Word; b : ^Word; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin b := @a; Inc(b^); //Display a end; [/CODE] To code in .NET, The problem is converting the pointer. The Migrating Pointer Types section …

Member Avatar for LizR
0
88
Member Avatar for TheBeast32

Hi, I'm trying to use LogonUser. I think I'm doing everything right, but I keep getting this error: 1326 (ERROR_LOGON_FAILURE). I know my user and pass are right. [Code=C++] #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <windows.h> void GetPassword(char *pass, int maxlen, char hidechar) { char ch; int len = …

Member Avatar for nucleon
0
216
Member Avatar for SoulSeek139

First, let me say I'm a huge believer in the benefits of normalization. (Though I still have much to learn about it.) That said, I can't think of any way to normalize this beyond its current form (which is kind of shoddy in my opinion.) [url]http://img14.imageshack.us/img14/7229/relations1li6.jpg[/url] I'm designing a database …

Member Avatar for SoulSeek139
0
116
Member Avatar for scru

Does Python have a concept of class properties (static properties if you may)? I know there are class attributes, but I can't just use one. It's very critical that I control what values can bet set as the class attribute, which I can use the property setter to do.

Member Avatar for Ene Uran
0
102
Member Avatar for rasingh24

Hi, I have to create a project in C# in which i have to create a XML Tree View, select a xml file from hard drive(System) it is displayed as Tree View on winform. When a [B]user selects a particular node/element in the tree view,its attributes and values have to …

Member Avatar for rasingh24
0
905
Member Avatar for papuccino1

Anyone know how I can aquire my database connection string? My professor taught me a way like so: [IMG]http://i40.tinypic.com/2v154cm.jpg[/IMG] [IMG]http://i41.tinypic.com/1059tvr.jpg[/IMG] [IMG]http://i39.tinypic.com/2le3sly.jpg[/IMG] [IMG]http://i42.tinypic.com/2eoy2qa.jpg[/IMG] However after click the new connection button the window that is supposed to open doesn't open. I don't know what's wrong. Is there any other way to obtain …

Member Avatar for sknake
0
438
Member Avatar for localp

i want to play an audio file in java without opening a player ... like an alarm ... does any1 knows how to do this.. and r there any sample codes available online ... (please provide relevant links only)

Member Avatar for localp
0
181
Member Avatar for goz101

I am doing the following report. Write a report for a large bank on the benefits that cloud computing can bring to their database system (Oracle). Could anyone tell me I can find informaion to help me do this report?

Member Avatar for peter_budo
0
100
Member Avatar for r.stiltskin

I have two problems with the focus on buttons in this project. I've pared the code down to barebones to show the problems; there are only 2 simple classes remaining & still the problems persist. It compiles, runs (java ColorView), and all that's required to see the problems is simply …

Member Avatar for r.stiltskin
0
88
Member Avatar for wendas

Just got VS 2008 for work, I am converting some items from VS 2006 to VS 2008.. But one project I want to split. So I converted the old project to VS2008. Then created a new shell project. Using the "add existing item" I tried to copy the forms in.. …

Member Avatar for LizR
0
906
Member Avatar for emilio

hi i want to create a trigger for update in mssql. in my trigger i want to know which row was updated how can i achieve this info ?

Member Avatar for Doron_
0
96
Member Avatar for michael123

I have a table in MS SQL DB, the data was recorded with redundancy, is there an easy way to remove all but keep only one, for example: [ICODE]id name age dept --------------------------- 1 alan 20 A 2 william 23 B 2 william 23 B 3 mike 30 C 3 …

Member Avatar for Doron_
0
127
Member Avatar for winrawr

How would I write a function with an undefined number of arguments? Like, how when using printf(), you write the string in the first argument and in the string use format identifiers. Then, for each format identifier you use is an argument specifying what should be put there in the …

Member Avatar for ArkM
0
517
Member Avatar for mahela007
Member Avatar for lllllIllIlllI
0
652
Member Avatar for devilz

I’m very very new in VB6.0 in my project I need a function where I want to pass month name as variable value which will be selected from a combo box by user and the function will generate the full date from starting to end along with the weekday name. …

Member Avatar for devilz
0
549
Member Avatar for jhonnyboy

hey guys im pretty new to java but im very eager to learn and want to make my first game :) I want a simple RPG game, but also want to make a GUI. I am using Netbeans as my IDE, do i need anything else to make a GUI? …

Member Avatar for stultuske
0
203
Member Avatar for mumuXdoll

im making a game, called memory game. i don't know the exact codes to make a picturebox move when clicked. i saw a game file that becomes a gif image when clicked, then it randomizes the last image every start of the game. i wanted to make something like that, …

Member Avatar for mumuXdoll
0
317
Member Avatar for ahmksssv

Hi frnds... I have some doubts regarding this PHP... 1)i need to display an add in between two pages.....i.e. when i post data from 1st page to 2nd page than, i want to display an add before redirecting the 2nd page...by using PHP or JavaScript... 2)Can we pass input value …

Member Avatar for cwarn23
0
119
Member Avatar for dmanw100

Hello, I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My insertion sort algorithm is failing to properly sort the points based on …

Member Avatar for dmanw100
0
103
Member Avatar for rayda

[CODE]import javax.swing.JOptionPane; import java.util.Random; public class guess2 { public static void main(String[]args) { int num; int guess; int diff; String input; int Diff; Random randomNumbers=new Random(); guess=randomNumbers.nextInt(100); diff= num - guess; Diff=Math.abs(diff); input=JOptionPane.showInputDialog("Enter your guess."); num=Integer.parseInt(input); for(int i=0; i<5;i++) { while(num<0 || num>100) { input=JOptionPane.showInputDialog("Invalid number!Please re-enter: "); num=Integer.parseInt(input); if(Diff==0) …

Member Avatar for ~s.o.s~
0
315
Member Avatar for rudasi

Hi, I have been trying to figure this out and I know it must be something simple but I cant get it. Why does the following code give an answer of 1. double a=8; cout<<pow(a,1/3); I would think it should be 2. Thanks

Member Avatar for rudasi
0
158
Member Avatar for Variance

Is it possible to take a label and add the caption to a database? If I try to link the label to the DataField when I run the program it obviously shows no label, and I'm unable to input the data that I need to. I know I could just …

Member Avatar for Variance
0
97
Member Avatar for Innercoder76

Hey everyone, I need help with my program it is an ipod simulator that goes like this: [CODE]/* FUNCTION - void initaPod Initialize all the slots to blank and 0 size memory*/ void initaPod (); /* FUNCTION - int addSong attempts to add a new song to the aPod returns …

Member Avatar for ArkM
0
100
Member Avatar for PinoyDev

Good day. I was able to take a nightmare of my code regarding to disable a button. This code derive from a member post in this site. it will retun errror.! [code=php] <?php if($totalbill==0) { $disabled="disabled=true"; } else { $disabled="disabled=false"; } echo "<input name="enrlclick" type="submit" class="style18" id="enrlclick" value="Enroll Now" ".$disabled">"; …

0
67
Member Avatar for soniarad

Can someone help me, I was getting an error message about SQL syntax, now I get no error message, it redirects, but database does not change. I also made sure autocommit was enabled. Any ideas? [code=jsp]<%@page import="java.sql.*,java.util.*" %> <% Connection conn = null; PreparedStatement stmt = null; String userName = …

Member Avatar for ~s.o.s~
0
144
Member Avatar for PinoyDev

Good day.! Thank you for all your support to all my thread. By the way Ive got some error regarding of mysql query. I want to load all data from the table depending on the table name on the variable.!I dont know whats wrong with my query below.! [code=php] $coursesubject=$row_reclog['tablename']; …

Member Avatar for PinoyDev
0
185
Member Avatar for viber101

why my executable jar file created in Netbeans cant write/output a .txt file. . .my program must create a text file and write with it, how can it doesn't work when i convert it to .jar but if i run it in netbeans it work fine?..

Member Avatar for viber101
0
4K
Member Avatar for azwraith69

hello everyone.. thx for droppin' i need to write a program, a recursive sudoku solver and this is what i have so far... [B]main.cpp[/B] [icode] #include <iostream> #include <vector> #include "sudoku.h" using namespace std; int main() { vector< vector<char> > rows; // Load grid rows=load(); // Check if grid is …

Member Avatar for azwraith69
0
155
Member Avatar for Stefano Mtangoo

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee …

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for localp

i am new to PHP, i typed in a hello world php program and opened it using the web browser, but the end tag "?>" is also getting displayed, could any one correct my code ... [code=syntax] <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo <b>Hello World! </b> …

Member Avatar for cwarn23
0
142
Member Avatar for ternor

Hello, this is my first post here, so thanks for your time and comprehension. English isnt my first language, so I'll be trying my best. OK, I'm in need for a tutorial where I can find examples on how to make use of files, bit operations and registers(whats a register …

Member Avatar for ternor
0
100
Member Avatar for nicck0

I've been trying on putting up large decimals on the register and when i typed: mov bx, 100000d on assembling the program it says: ...Error: Value out of range something like that.. what should i do.. can you pls help me.. thanks.. btw im using tasm..

Member Avatar for nicck0
0
170
Member Avatar for gangsta gama

Ok guys, I have a problem. I am a total noob coming to php so was was going to set it up. I was following this tutorial: [url]http://www.youtube.com/watch?v=cSN34q47BXY&feature=related[/url] I got XAMPP all set up. But one problem, my computer can save .php files. How do I get this to work? …

Member Avatar for gangsta gama
0
92
Member Avatar for shamila08

Hello! here c++ program. my problem is i need to find the permutation is even and odd. However the value +1 (even )and -1(odd) is not appear for each permutation. [code=cplusplus]= #include <stdio.h> #include <stdlib.h> #include <iostream> #include <memory.h> #define MAX 100 char num[MAX + 1]; int n; using namespace …

Member Avatar for shamila08
0
114
Member Avatar for puk

Im doing a login facility for my website iv connected it to the database but when i try to enter some values for login name and password i get the following message: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/milkitshakeit.freehostia.com/log.php on line 16 Here is …

Member Avatar for Andrieux
0
176
Member Avatar for murderotica

I've been new to c# and windows services. I've been studying for about a month and been doing a lot of basic stuff. I just want to confirm this issue to you guys. How would it applied to windows services? Would it be possible for IPC mechanism like the clipboard …

Member Avatar for sknake
0
938
Member Avatar for viswa_007

how to create desktop applications in c# using http requests and http response with iis

Member Avatar for sknake
0
144
Member Avatar for regina99

hey guys. i'm having trouble with looping a program. my assignment is to get the user to input a string and then display it backwards. i've successfully done this, but it's supposed to ask if you want to run the program again, and that's where my program fails. [CODE]public class …

Member Avatar for regina99
0
88
Member Avatar for VBNick

I literally picked up asm today. I have been trying to create a 3d software rendering engine in C++, and figured out doing things directly would be faster....but, I tried the following code: [code="cplusplus"] int _tmain(int argc, _TCHAR* argv[]) { int num, timestart, dur; timestart = clock(); for(int i = …

Member Avatar for VBNick
0
124
Member Avatar for eyewirejets

I'm trying to restrict the users input to the selected characters only. "W" "w" or "L" "l" Anything else entered, an error message should display. Can anyone please look at this and tell me what I'm doing wrong? Thank you [CODE] # User Enters either W = Win and L …

Member Avatar for jrcagle
0
118
Member Avatar for mahela007

Hi.. this is my first post on these forums. I learn python as a hobby. Will learning sequential programming be sufficient for my needs? (I won't be pursuing a career in programming. I just do it so that I can keep my self busy and because I like programming with …

Member Avatar for jrcagle
0
80
Member Avatar for Digvijaysinh

Hiii i am creating login form, and all the logic is correct by me but when i run the form it executes and inspite of i am providing the correct username and password i get the same message "Wrong login info is provided". please help me on this topic, thanx …

Member Avatar for sknake
0
92
Member Avatar for MJV

I have 3 text boxes 1TB,2TB and 3TB. I would like to multiply 1TB by 2TB and put the answer in 3TB. Can anyone help me with this code. Im new to C# and I keep getting errors. Thanks in advance.

Member Avatar for ddanbe
0
134

The End.