199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ruffio1981

I'm working on a bonus project for my C++ class. The original problem was to add two large numbers given by the professor, or more specifically, write a program that would add these two numbers. After a while I got it working, relitively easy bit of code with some pointers …

Member Avatar for DanielGreen
0
108
Member Avatar for kanuri1

hi frnds, i had gota problem, i get the date in mm/dd/yyyy format only........... when iam accessing date from database in dd/mm/yyyy format itg gets error.. the error is as "Arithmetic overflow error converting expression to data type datetime." here my code is given below [code] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" …

Member Avatar for Oxiegen
0
283
Member Avatar for ivanhny

It's probably really obvious, then again I don't know much about trees in c++. When I try to insert an integer into the tree it doesn't travel down the tree and insert the integer. I'll post the function and then the whole enchillada after. Also how can I create a …

Member Avatar for DanielGreen
0
95
Member Avatar for coolcool

Hi everyone, Am just a beginner in c++ and have wishes to become good in it..it doesn't mean i should become a expert but just a good programmer. also i have enrolled for a competition in the college which am studying which requires an application to be developed using cpp..can …

Member Avatar for DanielGreen
0
112
Member Avatar for sarithak

Hi frnds... i have been completed my project...now, i need to add the LIKE/DISLIKE for each & every article. How can i do that..i think its better to do in AJAX...but i dont know how? plz give me suggestion.... Is there any readymade scripts available on the net...i used only …

Member Avatar for hemgoyal_1990
0
188
Member Avatar for Karthika_g

Hi, can anyone help me in storing a text file data to database using C# coding. I'm not sure of the below code can anyone correct me. Thanks in advance. Note: [U]TextFile1.txt[/U] 124 Keer 22 14000.000000 125 gjh 45 12103.000000 126 sg 48 63230.000000 129 fdgd 21 65620.000000 [CODE] con …

Member Avatar for DanielGreen
0
203
Member Avatar for SQL2009

I have a database created in Microsoft SQL 2000 Enterprise Manager. I need to change the datatype for a column name EngrMultiplier in the table ProjectReCapParameter. The current datatype is INT and I would like to replace it to FLOAT. What should I do? Write a query or change the …

Member Avatar for DanielGreen
0
6K
Member Avatar for Daniel_Crouse

Hey there I was wandering if somebody chould help me becuase I would like to know how to change a forms action when you click on a button ? Or... How to load a new form in the same webpage when you click on a button? I have managed to …

Member Avatar for Daniel_Crouse
0
89
Member Avatar for catcit

Here is a problem in my hand that I need so solve it. It sounds like this: Given a number (between 4 and 30000) x, which is the greatest number that can be written as a product made from numbers that have the sum x. Example: For x = 7 …

Member Avatar for cam875
0
114
Member Avatar for benregn

Hi, I'm getting this NullPointerException in one of my classes (state). This design is done by a state machine design pattern. From debugging it I can see that insertMoney under coffeemachine>State>insertMoney is null but I can't figure out why it's null. The line with the error is almost on the …

Member Avatar for chan95
0
224
Member Avatar for sid78669

This code demonstrates how age might be calculated and filtered using the DateDiff method in SQL. Also, note that both the parameters are set to NULL by default, hence making them 'optional' to a certain limit.

0
478
Member Avatar for sid78669

I have a users table that has a table titled 'DOB', of format DateTime in MSSQL. Now, I would like to filter rows for all users who are over 30. till now i used this code: [CODE=SQL] SELECT * FROM [User] WHERE [User].DOB > = DATEADD(YEAR, @ageFrom, GetDate()) [/CODE] this …

Member Avatar for sid78669
0
142
Member Avatar for shahid007041

Hello I have a scenario in which i have to allow user to enter time in 12 hours format.eg: 10:20 AM or 10:30 PM. If User Does'nt enter properly then it should raise a error client side. i think it can be done use regular expression validatior. Any idea please …

Member Avatar for vinay kumar rai
0
82
Member Avatar for iriz

HI All, I am trying to make an inventory/sales database in Access and VB6. Its for my computer store. Here is the case: Usually we have sales offers in our store. For example, for a complete PC system, we have different offers depending on hardware. Usually the price range changes …

Member Avatar for abu taher
0
169
Member Avatar for laelzio.mosca

I have this tic tac toe code, it`s almost working, can anybody take a look, I think the only thing wrong is in the else statement in main, but I`m not sure, I think I need to place the checkToWin and checkToBlock functions properly in main [CODE]// Laelzio Mosca // …

Member Avatar for jonsca
0
109
Member Avatar for treyk4

The title is pretty self-explanatory. I'm working on a PHP engine, and I'm trying to implement a SQL query generator. The hardest part of this will be designing the system for using the SELECT command. Are there any practices that I should try to follow when designing this, or any …

Member Avatar for digital-ether
0
159
Member Avatar for cam875

I am curious as to how software developers solved the problem of having clients in a distributed computing network working on a particular problem have answers verified. I ll relate this to what I am doing. I am making a distributed client/server program which works to factor semiprimes using basic …

Member Avatar for cam875
0
77
Member Avatar for itisnot_me

ok i have a problem and it does not seem to be the php.ini problem. what would cause my upload script for files to not completely execute and then just show me a blank page. not file uploaded and no record to the DB. i am giving the upload code …

Member Avatar for itisnot_me
0
103
Member Avatar for kanuri1

hi frnds, when iam accessing the date ,,,it willshow both date and aswell as default time. iam only accessing the date,,,,, here my coding is given below........ [code] <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1" Style="z-index: 103; left: 288px; position: absolute; top: 256px" AutoGenerateColumns="False"> <RowStyle BackColor="White" ForeColor="#330099" /> …

Member Avatar for mail2saion
0
94
Member Avatar for kong_quints

Please help me... i am trying to figure out how to control the power supply of a certain USB port using VB6.. i improvised a Locking device which is USB mode.. and when the locking device attached to the PC via USB, it will Lock and how can i cut …

Member Avatar for selvaganapathy
0
115
Member Avatar for dalymiddleboro

Hey there I am getting an unusual error message I don't quite understand. I was wondering if I could have some help. The error is " error C3861: 'Tests_weight': identifier not found" I hope you guys can follow the code and any helpful input would be greatly appreciated! Thanks in …

Member Avatar for jonsca
0
74
Member Avatar for hondros

Okay, so I have a tuple for a game, and this is it: [icode]['Hondros', {'Equiped': [['none', [], 0], ['Rags', [0, 1, 0, 0], 1, 1], ['Mocassins', [0, 0, 1, 0], 1, 1], ['Gauntlets', [0, 0, 0, 1], 6, 5]], 'Equipment': [0, 1, 1, 1], 'Stats': {'AC': 14, 'Strength': 15, 'Constitution': …

Member Avatar for hondros
0
174
Member Avatar for Diamonddrake

if you have ever used adobe lightroom you would have noticed that there is an awesome sidebar with 15 or so sliders on it. they can all be adjusted from the same screen and you watch as they edit the image in real time. This is what I am trying …

Member Avatar for Diamonddrake
0
146
Member Avatar for johndoe444

Hi, What is the significance of the following format specifiers: [CODE]%10s %.10s %-10s %.15s %-15s %15.10s %-15.10s[/CODE] Thanks.

Member Avatar for WaltP
0
161
Member Avatar for LennieKuah

Hi There, I am developing VB.NET 2003 window application having problem with the FORM KEYDOWN event. Problem with cancelling the keydown event when the data check function return FALSE due to duplicate Debtor ID. How to cancel the KeyDown [CODE][B]Private Sub FrmDebtor_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles …

Member Avatar for LennieKuah
0
194
Member Avatar for vista

Okay so I working on this program where I have to input a string and then display the character distribution in that string. For example: if the input is “[B]minecode[/B]” the output should be C – 1 O – 1 D – 1 E – 2 I – 1 M …

Member Avatar for sDJh
0
6K
Member Avatar for TotoTitus

Hi, i've looked in several places for a how-to on C# DLL's. I made a windows forms application, which beside regular files, has a pure .cs Class File. I would like to extract a DLL from that file alone, how do i do that?

Member Avatar for TotoTitus
0
79
Member Avatar for LucarioWill

[CODE]public class TVRemote { //initialize variables private int channel, vol; public TVRemote(){this(0,0);} public int getChannel(){return channel;} public void setChannel(int a){channel = a;} public TVRemote(int a, int b){setChannel(a); setVolume(b);} public int getVolume(){return vol;} public void setVolume(int b){vol = b;} public void channelUp(){ channel++; } public void channelDown(){ channel--; } public void …

Member Avatar for LucarioWill
0
214
Member Avatar for itisnot_me

is it possible to have php code within jquery or do i have to use ajax to grab the values. ex of what i was trying [CODE] function blah() { //Creates the name tag $("#newitem").append("<tr><td><fieldset><legend><select name='produce'><option>--Select--</option><?=produce();?> </select></legend><table width='200'><tr><td>Ammount</td><td>On Hand</td><td>Cost</td></tr><tr id='txtHint'></tr>"); } [/CODE] as you can see that i have a …

Member Avatar for itisnot_me
0
73
Member Avatar for jlego

is there a way to start your program from the sub main() like you could with vb.net

Member Avatar for jlego
0
118
Member Avatar for H.Roger

Hello, I am developing a simple graph drawing application where each graph could be painted in internal frame. I want to call a specified function whenever an internal frame got focus. I’ve tried to add “addFocusListener” to the internal frame but it didn’t work. Multiple workspace (internal frame) can be …

Member Avatar for H.Roger
0
242
Member Avatar for asm2hex

Hello, So lately, I've been coming across this issue of mine and can't seem to find a solid way around this problem. My problem is due to the fact I'm using MYSQL C connector library. And, Attempting to gain all the Row's from my database and store them in a …

Member Avatar for Murtan
0
128
Member Avatar for Alibeg

Hi guys. I have a question - searched for it for at least an hour (i think more, but nevermind). I have this piece of code: [code=C++] cout << word.getLastWord() << "<---" << '\n'; [/code] It is supposed to call getLastWord method of class called Extract. Method returns a pointer …

Member Avatar for Alibeg
0
234
Member Avatar for tqmd1

Dear Experts I use following codes to diplay data in combobox str = "SELECT sno,name,city FROM employees" cmd = New SqlClient.SqlCommand(str, con) da = New SqlClient.SqlDataAdapter(cmd) dt = New DataTable da.Fill(dt) With ComboBox1 .DataSource = dt .DisplayMember = "name" .ValueMember = "sno" .SelectedIndex = 0 End With Table has three …

Member Avatar for thecoat
0
134
Member Avatar for Carrots

Hi, I have a web site. On index.php I have a HTML link to admin/admincp.php By simply adding a htaccess file to the directory 'admin', will the admin directory and it's contents be fully protected? I only want it to be possible for me to access mysite.com/admin/admincp.php, because I am …

Member Avatar for Carrots
0
143
Member Avatar for fawkman

Hi Guys I am working on a php page that allows the user to upload files to thei proile. I managed to fina an open source upload class. Currently I have the code uploading the file to an images folder on the web server and that file is renamed to …

Member Avatar for fawkman
0
129
Member Avatar for pyguy420

Im trying to write a code for a colour picker, so a user can pick 4 different colours and then it would return them so i can use them in a different par tof the program, but its not working properly and i can work out why. any ideas? [CODE]def …

Member Avatar for woooee
0
114
Member Avatar for handyman_uk

Hi everyone i am looking for some help with a little java script i am no programmer so i need alot of help i have a marquee tag on my page that slides in some text from right to left once and the stops and remains on the screen have …

Member Avatar for handyman_uk
0
121
Member Avatar for Alibeg

I guess i'm missing something basic, but i'm new to C++ and do not know how do these streams behave. Can someone please explain why no text is printed to the screen in the following example: [code=C++] #include <iostream> using namespace std; int main (void) { char *ptr = NULL; …

Member Avatar for Alibeg
0
163
Member Avatar for Karthika_g

Hi, I want to display a particular row of a text file and delete a particular row using C by having account no. as reference.. Can anyone help me in this. Sample.Txt: 1234567890 James 24 50000 1234567891 Allen 32 46500 1234567892 Robert 41 13600 1234567893 Smith 29 49000 Thanks in …

Member Avatar for Karthika_g
0
140
Member Avatar for michelle1

Hello there, Is there a library in C which provides a way to defines planes, lines and points as well as vectors. And is also then able to find the intersections of these? I'm not familiar with C at all and am not too sure where to begin searching for …

Member Avatar for michelle1
0
89
Member Avatar for imclumsy

Hi I am new to javascript and I am trying to get rid of an object expected error. Here is the line I'm getting an error at [code] <td></td><td></td><td align="center">To print this quote click <a href="/broker/OfferSummary.asp?QuoteKey=<%=vQuoteKey%>" target="blank" onChange="enablePRINT()" checked = "checked"> HERE.</a></td> [/code] here is the function enablePRINT() [code] function …

Member Avatar for imclumsy
0
115
Member Avatar for su-moose

Hello.. This is my first time posting here, and I'm hoping I can find some help I have missed about a week and some of my programming class, and I am very behind. I haven't been able to figure these out on my own. I need to write a practice …

Member Avatar for FlamingClaw
0
98
Member Avatar for ceyesuma

The name of this question is jsf_dao_interface Hello and Thank you in advance for any assistance. [B] System info: [/B] netbeans,glassfish,MySQL [B] The Purpose of this post is: [/B] I am trying to learn to use an interface. I was wondering if someone was familiar with using and or had …

Member Avatar for ~s.o.s~
0
139
Member Avatar for amitverma

i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data. [CODE] $(function() { $("#submit_js").click(function() { $.post("user_submit.php", { comment: $("#comment").val() }); }); });[/CODE] upon finishing the Firebug consoloe shows this: [CODE]<html> <body> Your vote …

Member Avatar for furutani
0
212
Member Avatar for Damon88

I have a component which hooks up with the paint event of assigned control and draws on its surface, Whenever i make any changes to the component i need to resize the form or control at design time in order to see the changes. I want to ask if there …

Member Avatar for Damon88
0
2K
Member Avatar for girl.java

hello can anyone help me with this [CODE] import javax.swing.*; public class Q6 { public static void main ( String args [] ) { int nv,np,ns,nc; int c=0 , v=0 , p=0 , s=0; String input = JOptionPane.showInputDialog(null,"please Enter the statement") ; for (int i=0; i<input.length ( ); i++) { …

Member Avatar for tux4life
0
98
Member Avatar for rutaba

Hi.. How can i apply my master page to all other pages while working on ASP.net using Visual studio 2005? i create master page name master but when i create another page named default.aspx there is no option to add the master page to that page? kindly help me out.. …

Member Avatar for giahmed
0
101
Member Avatar for ramkinkarpandey

Is there any way by which i can get HTTP Response code out of Exception. Actually i need to take few action based on Http Code 403 (Server busy). Thanks for any kind of help.

Member Avatar for sknake
0
146
Member Avatar for spxChrome

I been at this for to long so I will give somebody else a shot at this. I have a text box that has a string in it that I will use for a SQL statement. Under the text box I have two trackbar controls. I want to be able …

Member Avatar for spxChrome
0
105

The End.