199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TrintiyNoe

[CODE]cin<<a;[/CODE] lets say the user enters 'i' if i have a variable i,i want its variable to be displayed or some arbitary "Invalid output" message, any way of doin this,instead of using n case statements in switch???? Is there a way for direct redirection?

Member Avatar for TrintiyNoe
0
125
Member Avatar for TrintiyNoe

can u tell me a way to remove the excess spaces from a sentance using Ws? or anyother way? Lets say i have "This is a sentance" I want "This is a sentance" with ws?

Member Avatar for Tom Gunn
0
156
Member Avatar for painless

plz help me out ... i m using the following code to display an image which resides on my pc (C:\Users\vivek\Pictures\firefox,JPG)... but when i run the code ....there is no compile time error..n also not any run time error..n the output is a empty frame :'( [code=java]import java.awt.*; import javax.swing.*; …

Member Avatar for painless
0
133
Member Avatar for macla
Member Avatar for Salem
0
87
Member Avatar for u8sand

Hey guys, I've been programming in consoles/visual C++. But i've been wanting to learn WindowsAPI programming WITHOUT the stupid visual interface for a while now. Could someone provide me some pointers on a good place i can learn this? Right now I'm using [url]http://www.winprog.org/tutorial/start.html[/url]

Member Avatar for u8sand
0
105
Member Avatar for u8sand

I am interested in making my own Hide to Tray program that will hide any program i choose to the tray. I already know how I'm going to do it.. all i need is to know how to hide another window. In Visual C++ you do this->Visible = false; telling …

Member Avatar for u8sand
0
76
Member Avatar for hypernova

I am searching for a book(s) which explains things like the following - 1. Difference between memory allocation of local and global (or other static variables)....? (or why i cant initialize a global variable more than once outside main and all other functions) 2. Holes in structures, and structures and …

Member Avatar for Tom Gunn
0
147
Member Avatar for Nitz

Hey everyone. I need a bit of advise on my code. Here is a sample image. [quote] ^ 20+ | | | | 15+ | | | | 10+ | | | | 5+ | | | | +----+----+----+----+----+----+----+----+> 0 5 10 15 20 25 30 35 40 Upper Left: …

Member Avatar for ~s.o.s~
0
217
Member Avatar for DezireSoftware

Hello, everybody. I'm not new with C++, or anything, it's just been about a year since I've bothered with Client/Server for MMORPG Making. I am in need of experienced coders to help me out, and teach me, to get me back up there. The engine will be free to use, …

Member Avatar for Sky Diploma
0
173
Member Avatar for kingben

Hi All... Any way to auto-increment the last inserted numerical value in the field "id" and then insert the newer value (id+1) in the database upon submitting the form ??? ...... How do i resolve that last submitted "id" ?? ..... I thought of doing that using a txt file …

Member Avatar for kingben
0
99
Member Avatar for red_evolve

Greetings. First of all, I hope I got the correct forum. ;) My final semester is approaching soon :sad: and I've got to do a final year project by then. I'd like to propose my own title to my supervisor but I do not have any ideas as yet. Well, …

Member Avatar for Nick Evan
0
967
Member Avatar for kes_ee

I am having a text file contaning the following: "int Function1 (int arg1, "0|1", char * arg2); int Function2 (int arg1, " ", char * prt1); ..." I need to open this file, split the each word and store it as global variable. I did this in Perl but now …

Member Avatar for Lardmeister
0
808
Member Avatar for athlonica

Hi Guys! I need help with something that I can't figure it out on my own. I'm working with an XSLT stylesheet that constructs some URLs that are finally presented as an html page. I want to add to one of those URL a variable that I know how to …

Member Avatar for xml_looser
0
92
Member Avatar for webish

Hi everybody, Webish is glad to join you here at Daniweb. I'm an IT entusiast and I believe it's gonna be a:) worthwhile experience in here.

Member Avatar for kvprajapati
0
117
Member Avatar for llemes4011

Hi. I started looking into JavaMail today, and I got the basics down. But when I sent a message to my friends Gmail account, it said that the message my not be from me, and was sent to spam... does anyone know why?

Member Avatar for llemes4011
0
98
Member Avatar for metinh

Hello everyone. I am trying to implement CDATA wrapping of values conditionally in XSLT. My requirements are: - If the value contains <, >, &, ", ' then it must be wrapped in CDATA in the transformed output. - if the value does not contain any of the above characters, …

Member Avatar for fpmurphy
0
803
Member Avatar for Furtano

Call by Reference with String Hello, how can I transfer a String variable with Call by Reference? Here my code: [code=c++] #include <cstdio> #include <iostream> #include <sstream> #include <string> void int_to_hex(int *dez,string hex_string); // Prototype int main(){ string hex_string; //then hex_string becomes a value... int c = 123; int_to_hex(int_to_hex(c, hex_string); …

Member Avatar for Furtano
0
199
Member Avatar for mimsc

Hey fellas, I need some help doing on action changes This is what I got. I have a loop that has the form name "autoEmailRedirect" [code] <form name="autoEmailRedirect" method="post" action="autoEmailContact.jsp"> <td valign="top" class="paddingLeft10 paddingTop9"> <div class="paddingBottom2 boldFont paddingTop20"><%=(String)autoName.elementAt(i)%></div> </td> <td class="paddingTop9 paddingLeft" valign="top"> <div class="paddingBottom2 paddingTop20"><%=(String)autoEmail.elementAt(i)%></div> </td> <td class="paddingLeft11 paddingTop9 …

Member Avatar for sysel
0
92
Member Avatar for llemes4011

I'm writing an Email Client, and I need a JSplitPane that splits 4 or 5 JPanels instead of 2. I looked around and didn't really see anything that looked like what I need. I need it so I can adjust the size that is allotted to the subject, sender, date, …

Member Avatar for llemes4011
0
834
Member Avatar for nickj

Hi, Is it possible to have a subquery within a case statement and perform greater than / less than comparisons on the value returned in the subquery? i.e. [code] select case (select price from product) when < 100 then 'cheap' when < 150 AND > 101 then 'fairly expensive' else …

Member Avatar for cgyrob
0
164
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
463
Member Avatar for krokodajl

Hello, I need some tips to develop an application(Windows Forms, C#). My app will read/write data to/from database. I wonder to know how can I develop displaing some message during reading or writting data to database. I will be grateful if you support me with any ideas.

Member Avatar for sknake
0
88
Member Avatar for mands

Hi I need some help, I currently have a timer that counts down and what I would like is when the times runs out it then displays text or html (answer to question). I currenlty have the timer counting down and a seperate js show answer link that will show …

Member Avatar for essential
0
1K
Member Avatar for jamojo

Hello Everyone, I am using ths class as my reusable SQL select for my queries in other classes. But when I used this in other classes, it generated me this error: java.sql.SQLException: Network error IOException: Address already in use: connect Can anyone give me some idea or advise on how …

Member Avatar for jamojo
0
179
Member Avatar for nlvraghavendra

Hi guys I'm creating a web application with language support. So i've defined the languages using .resx resource files. After building and compiling the application i get .resources file in the dll file. After delivering the product to the client, the client may want to change some values that has …

Member Avatar for sknake
0
95
Member Avatar for TrintiyNoe

Hey,i just came by an example where,a string was split off using strings, the input was something like, "342c234" basically, a string where it is full of numbers and in between a char, i used ascii values in a for loop to split them,but somebody just did some sort of …

Member Avatar for TrintiyNoe
0
111
Member Avatar for gagan22

HI all, I have done some work using javascript and css and html. Let me explain whole work: there are two select box one is for adults and other is for childs. I have done all rows are by default are invisbile when we select 2value from adults its will …

Member Avatar for Thirusha
0
90
Member Avatar for stevnlon

I wonder if i could pick anyones brains on somthing? [CODE]public void show(String add) { try { statement.execute("select * from Staff_Details WHERE Address2 =" + add); [/CODE] This is a section of code im working on. The string variable add at the end of the SQL statement is not working …

Member Avatar for masijade
0
137
Member Avatar for cyrogathoni
Member Avatar for mr_scooby

Im trying to make a simple windows form that records the date based on a click on a month calendar, the distance driven and time taken based on text box inputs. Im ok with arrays in console mode but no idea when it comes to forms/button click events. this code …

Member Avatar for ddanbe
0
107
Member Avatar for ermithun

Hello All please help me understand the below code snippet, [code=syntax] LDAPControl** LDAPControlSet::toLDAPControlArray() const{ DEBUG(LDAP_DEBUG_TRACE, "LDAPControlSet::toLDAPControlArray()" << endl); if(data.empty()){ return 0; }else{ LDAPControl** ret= new LDAPControl*[data.size()+1]; CtrlList::const_iterator i; int j=0; for(i=data.begin(); i!=data.end(); i++,j++){ ret[j] = i->getControlStruct(); } ret[data.size()]=0; return ret; } } [/code] please note in the above code, data …

Member Avatar for Sky Diploma
0
81
Member Avatar for r0n

hi everyone how should i move the data of the multiple text file to another text file... (for instance you have two text files readFile1.txt and readFile2.txt and you have to move the data of the two text files in another file which is writeFile.txt ) how should i read …

Member Avatar for r0n
0
4K
Member Avatar for gingank

I'm a newbie in VB i want to ask if have a vb form 1 if i press the command button "ADD" it will call out the form i do vb form 2 so what is the coding for it ah?? Help me thank you

Member Avatar for pmyk
0
122
Member Avatar for lotrsimp12345

here's my code, don't see why it doesn't print out [code] #include <iostream> using namespace std; int main() { cout<<"enter a passage into input to find out how difficult it is to read\n"; string passage; cin>>passage; char letter; int space=0; while(letter!='\n') { if(isspace(cin.peek())&&letter=='\n') { cout<<"from space"; space=space++; } } cout<< …

Member Avatar for Nick Evan
0
243
Member Avatar for ayesha789

Hi, I want to calculate age of the person using this code [CODE=php]<?php /*** a date before 1970 ***/ $dob = strtotime("april 20 1961"); /*** another date ***/ $tdate = strtotime("june 2 2009"); /*** show the date ***/ echo getAge( $dob, $tdate ); ?>[/CODE] but it gives error [ICODE]Fatal error: …

Member Avatar for digital-ether
0
160
Member Avatar for scholar

Hi Friends, I am trying to make an application which will have a configuration form.That form would be having next and previous buttons. Clicking on next button should display different content on the same form. Please suggest different ways to accomplish it.

Member Avatar for sknake
0
215
Member Avatar for iantoya

I have a final project coming up....I have been thinking of ideas about e-learning with voip, a house security system with electric power monitor, and an inventory and sales system with travel logs through sms. Is it possible to create those proposals into reality? Thanks for the advice. My apologies …

Member Avatar for iantoya
0
417
Member Avatar for scholar

Hi friends, I am trying to add multiple LABEL controls in my program using a GROUP.I am using the folllowing code [CODE]Label newlabel = new Label(); void functionname(..... , ....) { int i = 0; foreach (string s1 in s2) { newlabel = new Label(); newlabel.AutoSize = true; newlabel.Text = …

Member Avatar for ddanbe
0
313
Member Avatar for mbabaali

i have a problem with this code amay any one help me am doing a class project but stuck here is the code its bring an error Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in C:\wamp\www\kawempe_HC\staf.php on line 7 Warning: mysql_fetch_row(): supplied argument is not a …

Member Avatar for mbabaali
0
101
Member Avatar for Kusno

I got this source code from internet. This source purpose is to call ASP.Net function or method from JavaScript. [CODE] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default5.aspx.vb" Inherits="Default5" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Developed …

Member Avatar for Kusno
0
175
Member Avatar for pardeep3dec

Hi friends, Can u tell how can i connect to ms access table from a remote pc within LAN. I want to make a small programme for database manipulation on LAN. Whose database will be stored on a single pc and another can access that data from remote pc within …

Member Avatar for eloelo22
0
130
Member Avatar for maheen123

Hi I want to update a database record using vb forms. Im using a button for this purpose...how can i do this.. is there any way like in oracle that just a commit statement save changes.. here i need to write all fields and assign their values in db... please …

Member Avatar for eloelo22
0
89
Member Avatar for plgriffith

Hey guys. I am running a php script (locally) which runs through a loop several hundred times. Each time through the loop the same computation is done with the exception of two input variables being different. The input variables are obtained with a MySQL query based on the counting variable …

Member Avatar for digital-ether
0
122
Member Avatar for babbu

i want to enable or diable some controls on another form depending on the action in the current form. how can i write the code for this in the current form

Member Avatar for kvprajapati
0
101
Member Avatar for teked

Hi i want to display the version number of my application in VB6, I know the solution is going to be really simple.. please help!

Member Avatar for teked
0
4K
Member Avatar for ermithun

Hello All Can anyone provide me a sample code, executing which generates a segmentation falut. need to understand how it works. Thanks.

Member Avatar for tux4life
0
189
Member Avatar for ayesha789

Hi, Its Ayesha, I am new to PHP and MYSQL , I am working on a Project in which I have to give rights to one user to UPLOAD a JPEG picture Using Browse . So Any one can Help? I want to store my JPEG Files in a Folder …

Member Avatar for diafol
0
104
Member Avatar for blueandyellow

Hello. I've hit a brick wall on an assignment for class. I've included the instructions and what I have gotten so far. My major problem is converting the number for days of the week to the actual day. Any help will be greatly appreciated. Thanks! Insert code into the Clock …

Member Avatar for ithelp
0
371
Member Avatar for TrintiyNoe

Hey,can u ppl tell me a simple way of converting a string into a integer? I have something like [ICODE] string str1 ("1000"); string str2 ("2000"); [/ICODE] i wanna convert them into integers and add them,any idea how?

Member Avatar for TrintiyNoe
0
128
Member Avatar for sassenach

I am using wysiwygPro editor and i want to be able to display the menu titles coming from the database. This is an example layout: [code] $editor->links = array( array('title'=>'Home', 'URL'=>'/'), array('title'=>'About Us','URL'=>'/about/', 'children'=>array( array('title'=>'Company History','URL'=>'/about/history.php'), array('title'=>'Franchise Information','URL'=>'/about/franchise.php'), array('title'=>'Shareholders Information','URL'=>'/about/shareholders.php'), )), array('title'=>'Services', 'URL'=>'/services/'), array('title'=>'Contact Us', 'URL'=>'/contact/'), ); [/code] So this …

Member Avatar for sassenach
0
161

The End.