199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SEOKRU

Hi , I have this problem, where I want the query to find slimier results, Like '%BandName%' for a static query it's easy, but when I use a string from a textBox I am not sure what should be the syntax. [code] public static DataRow SearchByBandName(string bandToFind) { return DbUtils.SelectDataRow("SELECT …

Member Avatar for SEOKRU
0
80
Member Avatar for freshfitz

Can anyone put a quick patch on this script I want it to send the email even if a file does not exist right now I get an error if I try to send it with no file [CODE]<%@ Page Language="C#" %> <%@ Import Namespace="System.Web.Mail" %> <%@ Import Namespace="System.IO" %> …

Member Avatar for kvprajapati
0
154
Member Avatar for shuda009

I'm writing a program where I have a variety of input commands. Lets say here are my three commands: info playlist # quit info - gives me information quit - terminates the program The problem: playlist # - The command playlist # means I need to cout a number of …

Member Avatar for jencas
0
106
Member Avatar for brandongood

Hello, I am working on a java program that finds perfect numbers. I need to make it run more efficiently by touching up the computation I have in my factorSum method. Heres what I have so far: [CODE] public static int factorSum(int testNum) { //Initialize local variable accumulator to zero. …

Member Avatar for brandongood
0
192
Member Avatar for manojjena1982

Hi! all Let me explain the problem:- I have two tables A(aid,aname,adesc),B(bid,aid,bdesc). I want a query which will extract all records of 'aid' in 'B'. means aid bid aname bdesc 1 1 qw eeg 2 null re null 3 4 sd v tyuy 4 null dffg null Hope to get …

Member Avatar for mail2saion
0
79
Member Avatar for kenny.tor

Dear all, First time posting. I have a piece of javascript like the following. What it does is when you click on the text 'Click me', it will prompt you for password; if you enter 'test', it will show the url 'picasa' in a div. The code works in FF3 …

Member Avatar for essential
0
159
Member Avatar for gagan22

Hi all, I have made 2 drop down box naming client, project . All values in this drop down box are coming from database. I am fetching all value through sql query. First drop down box is showing all client which are in database. Second drop down box is also …

Member Avatar for gagan22
0
136
Member Avatar for StewartS

Hi! Is there any consensus as to the best way to handle dynamic button clicks? The buttons are being created dynamically and conditionally placed, depending on business logic. Our problem is that on clicking such a button, the postback calls the Page_Load but not the Button_OnClick. I notice that if …

Member Avatar for kvprajapati
0
444
Member Avatar for zack.walters

what is array of void and why am I getting it in the following program? I finally have the first part done where I can loop the input. However, I cannot figure out what this array of void is. I'm getting "declaration of 'lastname' as array of void" in lines …

Member Avatar for ArkM
0
140
Member Avatar for squinx22

Are there any chances that I could resize an image using the fileconnection inputstream? FileConnection fc = (FileConnection) Connector.open("file:///" + filePath + "/",Connector.READ); InputStream fis = (InputStream) fc.openInputStream(); I want to resize the image from here because if I use Image.createImage(fis); I am encountering "Out of Memory error", if the …

Member Avatar for kvprajapati
0
222
Member Avatar for sgsawant

When I tried to compile my HelloWorldApp.java file using the following command: javac HelloWorldApp.java it worked (for being able to do this simple thing I had to change a lot of variables). But then when I tried to Run the program using: java HelloWorldApp it gave me the error: Exception …

Member Avatar for sgsawant
0
393
Member Avatar for dinilkarun

Hi All, I have the following string: "AND Category 07|Spec 01|ABC 01 AND Category 07|Spec 02|XYZ 02 AND Category 07|Spec 03|PQR 03 " It is stored in a string variable. I want to remove only the "ABC 01", "XYZ 02", "PQR 03", etc from the original string. The new string …

Member Avatar for dinilkarun
0
150
Member Avatar for Abbygail

Hey guys, I have been learning c++ while working with memory management i seem to have gotten stuck, There are 2 classes Stack and Queue the stack works on the LIFO principle (last in first out) and the queue the opposite FIFO (first in first out). Now the program runs …

Member Avatar for ArkM
0
285
Member Avatar for satin

Hi.. i want to use mysql without installing on client system.. So i planned to use mxj.. but this was not helping .. It is trying to access my mysql which i installed.. Can somebody help me.. Iam using mysql-connector-java-5.1.5-bin.jar,aspectjrt.jar,mysql-connector-mxj-gpl-5-0-9.jar,mysql-connector-mxj-gpl-5-0-9-db-files.jar files.. Process i followed: 1. Set the classpath for all …

Member Avatar for kvprajapati
0
156
Member Avatar for Truffy

Hi, I am writing a code that will get a file in the linux server(server.logs). Can anyone help me out with that. I am using a java se in a windows. and i dont knw how to retireve file on it. I need to log the files and parse the …

Member Avatar for Truffy
0
116
Member Avatar for azjherben
Member Avatar for newbiecoder

Hi, I want to write a code which takes an array of 20 characters and deletes all spaces between characters, it should leave only letters. For example: input :[B] d a n i w e b[/B] I want to make it :[B] daniweb[/B] I wrote this code, but it didn't …

Member Avatar for ArkM
0
118
Member Avatar for arosemena

for example, the blogs, how they divide the entries in pages? i have kinda of a idea like if ur on page 2 and ur blog shows 5 post per page the $row=mysql_fetch_assoc would execute 5 times before starting to post, thats the only way i can think about, is …

Member Avatar for Tulsa
0
78
Member Avatar for newbiecoder

Hi all, I decided to learn PHP, I am an Ubuntu user, I installed, php5, mysql, apache2.2 and phpmyadmin. But I don't know where to put the files to see them on my web browser, when I write [CODE]http://localhost/phpMyAdmin/[/CODE] I get [CODE]Not Found The requested URL /phpMyAdmin/ was not found …

Member Avatar for Tulsa
0
136
Member Avatar for Nperic

Just recently we were given an assignment. We had to construct a GUI which maps out tomtom(navigator) coordinates into google maps and linear graphs. For bonus marks a feature was to be able to change the language of the gui (english to spanish etc) Our tutor had instructed us that …

Member Avatar for jaka.ramdani
0
108
Member Avatar for sarithak

Hi frnds.. this query having a small error at where condition....plz solve this.. [CODE] $sql="insert into customer (sizeindustry) values ('$sindustry') where (sno = '$sno')"; echo $sql; mysql_query($sql)or die(mysql_error()); [/CODE] $sql= insert into customer (sizeindustry) values ('Small') where (sno = '4') error: You have an error in your SQL syntax; check …

Member Avatar for sarithak
0
78
Member Avatar for havejeet

Hi all, In my windows application written in C#, I am calling one windows utility...but it is likely to fail the execution of that windows utility execution...How do I log the error of that utility into my C# application? regards Jeet

Member Avatar for havejeet
0
102
Member Avatar for wyahaw

I have a web site and am trying to produce an RSS feed for it for when things are changed. The following code is the RSS generated (from dreamweaver). Google Reader acknowledges it as a valid feed, but some other RSS feeders, such as Bloglines, do not recognise it as …

Member Avatar for shree2006
0
230
Member Avatar for Dhaneshnm

i am using vs 2005.can i have rich text box for a web form? i am not finding it in tool box.if rich text box is not possible ,how can i have text box with rich text features in a web form?

Member Avatar for shree2006
0
110
Member Avatar for shuda009

Hi, I'm new to the C++ community hope you guys can give me some guidance. The program I'm making is suppose to read information from a file called music.txt Inside this file there is information about songs in the following format: Bandname, Songname, Duration of the Song, Here a partial …

Member Avatar for Stinomus
0
1K
Member Avatar for love_dude1984

Hi. with reference to my previous posts, im able to write a text file with a specific values from excel sheet. i just wanted to knw how to get rid of the prompt of " there is an existing file, do you want to overwrite it ?" i tried Application.Displayalerts=false …

Member Avatar for love_dude1984
0
92
Member Avatar for DarthPJB

Hello, my first post here, mostly due to every question I placed on google the answer is here (normally answered by a fellow Anime fan called Narue, someone's got their thinking cap on ^_^) Anyhow the problem is as follows, I'm writing a 2D game engine using DirectX9 (not relivent …

Member Avatar for Stinomus
0
774
Member Avatar for leviathan185

Hi, I was wondering if there was another way to redirect a user to an other page other that the header("Location: URL") function. My problem is that I am itterating through a buch of if statements and if i use the header function it gives me an error as the …

Member Avatar for leviathan185
0
139
Member Avatar for LostByte

Ok so im totally new to C++......we use Dev in our labs I cnt seem to figure out how to store the column of a text file into an array. I understand how to input the file usinf ifstream.The columns have Lastname(initial), Id#, Age and Gpa. i thought js doin …

Member Avatar for Topi Ojala
0
129
Member Avatar for gsingh2011

How would I make a program that can insert text into a text field in another program? Or click a button in another program?

Member Avatar for Stinomus
0
126
Member Avatar for jonnytabpni

Hi folks, In my c# epos app, i have a method which does two things: It calls a method to update the Form with the change to be given to the customer. It then calls a method to print the receipt to the serial printer. Even though the update Form …

Member Avatar for serkan sendur
0
92
Member Avatar for fpx-studio

Hey guys. I'm working on my game engine, and I'm making development diary. I hope you like it. Youtube video: [url=http://www.youtube.com/watch?v=XxKdFTcF9N8]Development of FPX-Game engine episode 2[/url] New things: -Level files and loading system -Viewer -Game Editor -Sky Cube/Box -Small demo game, screenshot of it: [img]http://img89.imageshack.us/img89/8681/1842009engine.png[/img] enjoy.. p.s. what do you …

Member Avatar for fpx-studio
0
89
Member Avatar for s080072

[U][B]5x5 MATCHING WORDS AND IMAGE [/B][/U] Each time the user plays the game, the application should reshuffle a matching pair of ten words into the 5x5 Matrix. Include 5 pair of words and 5 pair of matching graphics. New Game button should terminate the current game and clear everything on …

Member Avatar for crazyhorse09
0
104
Member Avatar for Beauti

Hello Once again I must seek help from those who know what it is that they are doing and I am not... Right now we are usng Visual Studio 2005 for VB and C++ and my visual studio is defaulting to C++ upon opening the program. How do I stop …

0
55
Member Avatar for payamrastogi

Hi, I 'm using c#.net(3.0),I want to extract audio from an AVI file(Audio/Video file *.avi) in wav format(*.wav) could anyone please tell how to do this using C#.net. please don't suggest this link-http://www.codeproject.com/KB/audio-video/avifilewrapper.aspx (as the example given is not working on all *.avi files). thank you

Member Avatar for Diamonddrake
0
478
Member Avatar for leviathan185

Hi. I am having problems getting PHP to insert data into a MYSQL data base. I am using the following variations of syntax. [code=php] mysql_query("INSERT INTO table member VALUES ('$var1', '$var2', '$var3')") or die("couldn't add new user"); [/code] and also with session variables as well [code=php] mysql_query("INSERT INTO table member …

Member Avatar for leviathan185
0
1K
Member Avatar for joker21

Hi, i created a program but i need some help. I made it so the user must enter the ip address and then click the button CONNECT. But in java it outputs the same thing. Is there any way i can get rid of it and just start the program …

Member Avatar for joker21
0
218
Member Avatar for LegendaryXM90

I'm making a game for a project due this Tuesday. You're in a dungeon with rows and columns, and for each coordinate there is a cell and there are 3 trap cells that you instantly die from if you walk into them. Also, you die if you hit 3 walls. …

Member Avatar for LegendaryXM90
0
140
Member Avatar for vr4indian

Hello Friends I am developing an application in C# , basically it intercept all the event of Visual Source Safe. Earlier code was in VB.net but Now we are migrating to C#. Now I am unable to find replacement of following funtion of VB. --------------------------------------------------------------------------------- VB code Starts here: --------------------------------------------------------------------------------- …

Member Avatar for Diamonddrake
0
160
Member Avatar for ganbree

Okay, I've got a serious problem with std::vector, the code I'm working with is huge and it's got vectors left, right and center. The problem is that one of the vectors is having to reallocate itself elsewhere. This is causing the references to point to random things. For illustrative purposes: …

Member Avatar for ArkM
0
96
Member Avatar for lardshow

i've had a pretty good day today up to now.... i have a method calcFinalOCAS() which should take an average of a list, replace the lowest value (if its lower than the substitution score), do the average again. now this works but when its compiled and i run it but …

Member Avatar for lardshow
0
85
Member Avatar for kimbirdy09

Hello everyone, i have been trying to complete this program on a letting agency where a user gets a choice of options 1. Add a property 2. Remove a property 3. Display all properties 4. Exit the system I have no idea what syntax to use within each case option …

Member Avatar for Zibo
0
100
Member Avatar for omotoyosi

Hello, please, i am developing an application which is initially working fine but i later copied it into an hard drive to another system which am currently using but the problem is that after copying it, any image i add into it will not display at runtime. i mean the …

Member Avatar for Teme64
0
76
Member Avatar for caps_lock

[code] import java.io.*; import java.util.*; public class MainTwo { public static void main(String[] args) { for(File file : File.listRoots()){ search(file); } } public static void search(File f) { ArrayList<File> arrayList = new ArrayList<File>(); f.listFiles(); arrayList.add(f); System.out.println (f.getName()); } } [/code] Why does it print nothing?

Member Avatar for caps_lock
0
161
Member Avatar for Bythos

Hi folks, Fresh newbie here. I'm taking a c++ class and I'm just a beginner. We have started to learn pointers and I discovered some puzzling behavior while messing around with the address operator [ICODE]&[/ICODE]. Here is my code snippet: [CODE] char letter = 'a'; int integer = 1; char …

Member Avatar for trillionaire
0
224
Member Avatar for Lothas

I'm having some problems trying to solve an apparent circular dependency in a project of mine. I'm working with OpenGL and FLTK to create a Robotics Simulation. The problem is that I've created a Class FLGLWindow which basically manages a window with rendering capabilities. I also have a Menu class …

Member Avatar for Ancient Dragon
0
357
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; public class keyboard { public static void main(String args[]) { String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau"}; JButton j[] = new JButton[s.length]; for(int i=0;i<s.length;i++) j[i].setText(s[i]); JFrame f = new JFrame(); for(int i=0;i<s.length;i++) f.add(j[i],JFrame.LEFT_ALIGNMENT); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); } } [/code] I need Instant Help!. Code is giving me …

Member Avatar for Majestics
0
111
Member Avatar for ganbree

I'm trying to port some existing C++ code to OS X. The problem is that it doesn't want to load files to read from them. The code bellow illustrates this problem; when run from Finder it outputs "Failed to open input file.", however when run from Xcode it runs correctly. …

Member Avatar for Narue
0
140
Member Avatar for Mr Bin

[B]Please help me how to do it. Thanks![/B] A 5-star hotel has 3 room types below: - Room type A, Price 80 USD / day. - Room type B, Price 60 USD / day. - Room type C, Price 40 USD / day. Room rental is calculated by formula: Price …

Member Avatar for tux4life
0
115
Member Avatar for tomata2

Problem Description: Multi automobile movement simulation in a multi lane road Consider a road (street) consisting of NL lanes with NC cars moving in one direction. Each car has to move in a certain lane with possibility of changing lanes. Each lane is divided into NP positions. Cars movement is …

Member Avatar for VernonDozier
0
106

The End.