199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for apbarratt

Hi guys, I would like to add a char to the end of a char* So imagine the following: char* test = "ABC" I want to add D to the end of it to get test == "ABCD" for the sake of argument, I can not use strcat as I …

Member Avatar for apbarratt
0
187
Member Avatar for DanniStacey

Hi, I have been ask to do this: Write a function wallOfEyes that takes three parameters (radius, width and height) and displays, in a window of exactly the right size, a “wall” of brown eyes of the given radius and dimensions. E.g., the function call wallOfEyes(50, 4, 2) should give …

Member Avatar for richieking
0
90
Member Avatar for youlichika

I need a jqeury animate effection. when I click img1.jpg, img2.jpg will animate right 200px, but I have too many divs and other html elements, I tried many times, it also failed. How to write correctly? Thanks. PS: h1, the font is on the top of image, and b class="effect" …

Member Avatar for Airshow
0
140
Member Avatar for anthonys1mom

Hi. I am writing a program to read user input numbers until '0' is entered. I then figure out if each number is even or odd and find the average of all the evens and all the odds (even average is one number, odd average is another.) I have it …

Member Avatar for anthonys1mom
0
917
Member Avatar for Jimbomcdeans

Hi all, I am a long time creeper on the forms and first time poster. Is there a way in C# to take data from a text box, and send the data out to a serial port? I want to use this method to bypass a bar code reader, which …

Member Avatar for Jimbomcdeans
0
131
Member Avatar for ladyclark

Hello, I am trying to debug a simple hello world program [CODE]namespace TestProject { public partial class frmMain : Form { public frmMain() { InitializeComponent(); } /// <summary> /// Function to create Message Box with /// with text "Hello World" /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void …

Member Avatar for nssltd
0
113
Member Avatar for speedkreature

This is my second day with Java. So far, I'm enjoying it quite a bit. It has the structure of C++ that I like, and with so much more utility (lots of type conversion built in)! I've written a console program that allows a user to input text. That text …

Member Avatar for Ezzaral
0
338
Member Avatar for genzoman

I would very much prefer one that works with IE. My current code only allows for an element to become visible, but I would much prefer if it faded in. Thanks in advance, kids! [CODE]<html> <head> <title>title</title> <script language="JavaScript"> function fncShow() { document.getElementById('box1').style.visibility = 'visible'; } function fncHide() { document.getElementById('box').style.visibility …

Member Avatar for genzoman
0
141
Member Avatar for vedro-compota

I wish you all the correct code)) Hi) There was a problem reading the file. Actually, I want to read from file command for MySQL (originally, this team is destined for Orcle, but I think it will be right for MySQL). I think the problem in the encoding (I do …

Member Avatar for vedro-compota
0
400
Member Avatar for mbarandao

hello: I'm working on this code that receives a variable via url and performs a mysql search for records using the value of the variable as the key word. I'm using the following code --which I'm currently using successfully on another section of my project, but experiencing problems in a …

Member Avatar for mbarandao
0
331
Member Avatar for SaaDwTk

I need an code to go this page: [url]http://steamcommunity.com/groups/KiFFERSTUEBCHEN/members[/url] And grab the data beetwen: [url]http://steamcommunity.com/id/[/url] and " [CODE]href="http://steamcommunity.com/id/otti">threeD</a><br />[/CODE] so it will grab in this case the word "otti" Theres a lot of lines like that, so i need a code that grab all the specified words of the page …

Member Avatar for thomas49th
0
189
Member Avatar for aikiart

Hello, I've got a simple program where i'm trying to a Char array with a string, but even though the program in debug mode shows that the string Phone = Phone, it is not adding a new line when the string starts with Phone. Can anyone tell me why the …

Member Avatar for Ancient Dragon
0
161
Member Avatar for programmer12

Hi, Im trying to have a section that shows the Total and Quantity at the top after customers are logged in and if they dont have anything in their baskets/cart then show Total = 0.00 and Quantity = 0. The Codes work fine when the customer already has something in …

Member Avatar for programmer12
0
184
Member Avatar for LianaN

Hi! How could I create/delete a directory on the remote machine using FTPClient of org.apache.commons.net.ftp.*; ? The code used to save a file on the remote machine is shown below. But I would like to update it for creating/deleting directories. Thanks! [CODE] private void saveAttachedFileToRemoteMachine(String pathToFile, DefaultMutableTreeNode selectedNode) { FTPClient …

Member Avatar for LianaN
0
940
Member Avatar for bob24bob

I have recently made a guessing game code and I am now trying to make it so when you enter a number above 3, it will give a print command that i will write. I don't need help on the print command, I just need to know what the string …

Member Avatar for TrustyTony
0
168
Member Avatar for barevhayerable

Hello I have a > b(for example) I need to generate random number x that belongs from a to b for example a = 9, b = 16 x has to be x > 9 and x < 16 I use cstdlib.. but can't guess how to do it (using …

Member Avatar for arkoenig
0
351
Member Avatar for LianaN

Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a …

Member Avatar for LianaN
0
188
Member Avatar for spring_patel

hello, i'm vasant...recently visited an online tutorial for creating java desktop database application here is the URL [url]http://www.netbeans.org/kb/docs/java/gui-db.html#running-outside-IDE[/url] ... everything works fine...when building and executing the application from within the NetBeans IDE..6.7 but as instructed in that tutorial...when I tried to run the .jar file after exiting the netbeans IDE, …

Member Avatar for Ezzaral
0
163
Member Avatar for berwick53

Hi, Im trying to make a caesar cipher, but a windows error comes up when running. Where have I gone wrong?? Sam [CODE]///////////////////////////////////////////////// /// /// /// NAME: SAM BERWICK /// /// DATE: 18/11/2010 /// /// PROJECT: CAESAR CIPHER /// /// /// //////////////////////////////////////////////// #include <stdio.h> /// Stand In/Output #include <string.h> /// …

Member Avatar for NP-complete
0
87
Member Avatar for jaylou

Hi all, I am adding code to a SharePoint 2007 list where I want a calculated field to be a colored square based on a status column. I have all the code I need to create a colored round bullet, but I would like the bullet to be square or …

Member Avatar for jaylou
0
104
Member Avatar for StaticX

Hello, I am having some trouble with getting my menu to respond to a mouse click.I have 2 items on my menu, "New" and "Exit", and they are using the actionlistner like so [CODE] newFromMenu = new JMenuItem("New Screen"); newFromMenu.addActionListener(this); [/CODE] and then my action event [CODE] public void actionPerformed(ActionEvent …

Member Avatar for StaticX
0
69
Member Avatar for Finki

So im putting together a program that decompositions numbers on prefactors. Example: 252=2^2 3^2 7^1 and 1944=2^3 3^5 Put this into tuples: (wont use split, just for example) >>> split(252) [(2, 2), (3, 2), (7, 1)] >>> split(1944) [(2, 3), (3, 5)] This is the code that determines whether a …

Member Avatar for Finki
0
207
Member Avatar for lifeworks

Hi Ive written my own MVC framework, which uses the mod_rewrite apache tool... first part of the url is the controller and second part is the 'action'... some of my controllers have functionality which is publicly available, and other functionality which i want to restrict to logged in users... i …

Member Avatar for quasipickle
0
441
Member Avatar for mani_1991

hai, friends i have problem in inserting image into mysql database using a small java program.... here is my code for inserting image into database............ [CODE] import java.io.*; import java.sql.*; class ImageUpload { public static void connection() { Connection con=null; Statement st=null; PreparedStatement pst=null; try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("driver is loaded"); …

Member Avatar for SasseMan
0
244
Member Avatar for murtazamzk

[B]<html> <head> <title>New Page 11</title> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <script language="JavaScript1.2"> if (document.layers) document.captureEvents(Event.KEYPRESS) function backhome(e){ var targeturl="index.htm" if (document.layers){ if (e.which==104||e.which==72) window.location=targeturl } else if (document.all){ if (event.keyCode==104||event.keyCode==72) window.location=targeturl } } document.onkeypress=backhome </script> </head> <body> <p align="center">Hit The(H) key on your keyboard to send you to a home …

Member Avatar for hielo
0
102
Member Avatar for Waldek

Hi All, I have a problem with a datagridview (7 columns) of which last 2 columns are combo boxes. The datagrid view was set in design view with column names same as a table called OccRecStaff but without a datasource. Although the datagrid view works perfectly for the first 5 …

Member Avatar for Waldek
0
162
Member Avatar for deniseblue

I am doing a inventory assignment, I think I have completed the code, but when I try to run it I get <no main classes found> I am using NetBean IDE 6.9.1 It also tells me: Created dir: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist Not copying the libraries. Building jar: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar To run this application …

Member Avatar for apines
0
231
Member Avatar for debashishnit

I am calling the callAjax function in the HTML body as below : <center> <h3>Request Tracking System</h3> <table width="70%" border=0> <tr> <td width=100% valign=top> <table width=100% cellpadding=8 cellspacing=0 class=bord border=0> <th colspan=2> <button type="button" onclick="javascript:callAjax('m');return false;">Requests for me</button> </th> <th colspan=2> <button type="button" onclick="javascript:callAjax('o');return false;">All Requests</button> </th> </table> <br/><br/> <div …

Member Avatar for hielo
0
409
Member Avatar for genzoman

Can someone please tell me why this code isn't working? I'm fiddling around with designing a site and trying to get my JS bearings down. I'm wondering why the second option isn't making the drop down list disappear. Thanks in advance! [CODE]<html> <head> </head> <script language="JavaScript"> function fncShow() { document.getElementById('box').style.visibility …

Member Avatar for genzoman
0
158
Member Avatar for libathos

I want to make a button in a root window.My question is should i draw it or shoud i make a new window in my root window?

0
101
Member Avatar for NichtSoGut

So basically it involves sodding scanf(). [CODE]int NumericalAnswer; int score = 0; main() { printf("Question 1: What's 4 x 3?\n"); scanf("%d\n", &NumericalAnswer); if (NumericalAnswer == 12){ printf("You got it right!"); score += 1; } }[/CODE] Output [ICODE]Question 1: What's 4 x 3? 12 9 You got it right![/ICODE] As you …

Member Avatar for Narue
0
115
Member Avatar for fahadyousaf

program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 …

Member Avatar for JamesCherrill
0
129
Member Avatar for Buffalo101

Hey guys, I'm trying to code a testing app which will display questions on a JForm for a period of time. I need a way of keeping track of time so I know when the user's time is up. What should I use? So far, I've found these: [B]javax.swing.Timer[/B] [B]java.util.Timer …

Member Avatar for Buffalo101
0
1K
Member Avatar for muncher10

i need to move[CODE]if(fright <= 45 && fright >= 35) System.out.println("Pressure is in range"); else System.out.println("Warning: Front right tire pressure is out of range"); [/CODE] to TirePressure but have it still print out right after i imput the tires pressure not after i imput them all and i cant figure …

Member Avatar for jon.kiparsky
0
89
Member Avatar for ivanhuk

For a homework assignment I need to make a stoplight cycle from red to green to yellow back to red. I tried using a thread.sleep method when I press a button to cycle through but it only goes to the last sleep & setColor statement. I know this is probably …

Member Avatar for JamesCherrill
0
166
Member Avatar for LianaN
Member Avatar for LianaN
0
120
Member Avatar for anandhikrishnan

Hi All, My parent window is dash.html. From this i call a pat.jsp file which is a child window to dash.html. I wrote a function in dash.html function feed_refresh(){ getGlaceCompleteDashBoardResult(1); } this function `getGlaceCompleteDashBoardResult(1);` is included in a .js file in dash.html file. Now from the pat.jsp i call the …

Member Avatar for hielo
0
109
Member Avatar for Barnifericus

Okay so in class my professor was going over this code: [CODE]class BinaryTreeNode<T> { protected T element; protected BinaryTreeNode <T> left, right; BinaryTreeNode (T obj) { element = obj; left = null; right = null; } // constructor BinaryTreeNode public int numChildren() { int children = 0; if (left != …

Member Avatar for sharathg.satya
0
255
Member Avatar for Mylsamy

Hi all, I want to built tristate checkbox using Javascript. There is lot of examples for this problem.. All have processed with Images. But I want to use this with out image. Can anybody help me out of this problem? Thanks, Eagerly waiting Myl

Member Avatar for Airshow
0
185
Member Avatar for bops

Hey guys. Well I'm getting that irritating warning on my site when loading up a specific page. [CODE]Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/d6ayr7/public_html/webdevelopment.php:1) in /home/d6ayr7/public_html/masterpage.php on line 2[/CODE] I've encountered and solved this problem before by moving session_start() to the …

Member Avatar for dennishall
0
304
Member Avatar for mikesowerbutts

Hi, I have a C# pdf library called PdfSharp which I use to create PDFs. I have a page (print.aspx) which instantiats the class which creates the pdf in the Page_Load() event handler. for some reason when I am running this through IIS, the process for the app pool (w3wp.exe) …

Member Avatar for mikesowerbutts
0
1K
Member Avatar for Altarium

Howdy Folks, I'm working on a program that does a bit of color-coding in a datagridview. My problem is that when a row is selected, the color-coding goes away since the normal behavior for the datagridview is to change the back-color to blue and fore-color to white. What I want …

Member Avatar for Netcode
0
134
Member Avatar for di.miller

Hi, I am using VB 2008 Express to connect to an Access 2007 database. I have a combo box named cboYEARMONTH that is populated by the database. I have this part working great. When the user selects a YEARMONTH with the combo box I want the SelectedIndexChanged event to initiate …

Member Avatar for Netcode
0
87
Member Avatar for caramia

Hi everyone, I hope you can help me. I am using vb.net and trying to delete a row in an access database. Firstly, I find the row and confirm there's record. If there's a record I ask for deletion. I am using the values submitted via a text box. Here …

Member Avatar for Netcode
0
2K
Member Avatar for jpknoob

Hi all, i decided to try and make a php shopping cart with sessions and manged to do so with the help of online turorials and references. However, i decided to try and pass over multiple items form a table, but i must have gone wrong somewhere, as some of …

Member Avatar for jpknoob
0
78
Member Avatar for it_1

Hi friends, any body just give how to call store procedure from php with mysql function not using mysqli function...

Member Avatar for dev.vini
0
295
Member Avatar for asif786

I have a compilation error using bluej java. Here is the code: [CODE]while input.equals(!"q")[/CODE] This is the error I get: '(' Could you please help me thanks :) If i add to a semicolon to the end like this: [CODE] while input.equals(!"q");[/CODE] I still get the same error.

Member Avatar for asif786
0
114
Member Avatar for ou812buti81b4u
Member Avatar for proloy11

Hi, In a login.jsp page, I logged in by a user. Now by pressing the back button we can move to the login page also. If I log in this time by different user then old session getting reflected. How can I invalidate a session when we move to the …

Member Avatar for alex.antony.a
0
150
Member Avatar for prathameshz

hi.. i had developed ' [url]http://www.wooadvertising.in/[/url] ' this site using Jquery. when i use the another Jquery it doesn't work.. i am trying to solve this problem but i cant. can anyone solve this problem

Member Avatar for @developer
0
146

The End.