199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bops

How can I execute a command like for example using system(); but execute so the program does not need to wait until the function returns before it continues. Also when executing a command using system(); can you make it so that the console window does not pop up onto the …

Member Avatar for thekashyap
0
2K
Member Avatar for doraemon

I'm studying C++ beginner book for a while and now I'm learning a function call by reference. I understand how but I don't understand why.... I solved the problem which is in my book. Problem: Create a void function called round() that rounds the value of its double argument to …

Member Avatar for doraemon
0
136
Member Avatar for shanthu123

i have to find two time stamps one at the begining of main and at the end of main and take the difference to find the time elapsed to execute the code in between.Can anybody suggest the programs or proper API s in Linux.

Member Avatar for thekashyap
0
165
Member Avatar for math_man

[INLINECODE]#include<stdio.h> void print_message(void); void print_message(void) { printf("This is a bug\n"); } int main() { print_message(); }[/INLINECODE] I'm using VS 2005 SP1+SP for Vista on Vista buisness and as I wrote in Title when I have functions in my programs and I start debugging F10..F11, and debugger encounter a function instead …

Member Avatar for thekashyap
0
139
Member Avatar for bala24

Hi guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast for safe downcasting on a polymorphic class? 2).Consider this snippet.. [code] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] A {};[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] B { public: B (A a) {} };[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]A a;[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]B b=a;[/COLOR] [/COLOR][/COLOR][/code] [COLOR=green]How …

Member Avatar for thekashyap
0
117
Member Avatar for arunprashanth

Hi what purpose of HttpSessionContext? all the session information are stored this place. Thanks inadvance arun

Member Avatar for jwenting
0
129
Member Avatar for bops

Is it possible in C++ to have a function that returns a 2-D or indeed an X-D array from a function, with a specified type such as.. [code=c] char [][] myFunction() { char a[][]; //Do something with array here return a; } [/code] Also, if this can be done, can …

Member Avatar for iamthwee
0
819
Member Avatar for erlkz

i'am newbie on using Tkinter, and i need help for my application i make application small calculator, but i can't make it just like standard calculator on MS Windows please Help me i wan't my application calculator like this :

Member Avatar for vegaseat
0
93
Member Avatar for machine

Hi im using switch to access some member functions through object [U]s1[/U] of that class [code]switch(choice) { case 1: s1.Now(); break; case 2: s1.create(); break; case 3: s1.display(); break; case 4: s1.change(); break;}[/code] Is there a way to change/use only a part of a function? For example for case 2 …

Member Avatar for machine
0
79
Member Avatar for ss339

Hello... I would like to know if C++ is actually used in games development... I understand it's to create or update the game engine, such as say unreal, though is t used for more? thanks

Member Avatar for Salem
0
105
Member Avatar for laugh

hi.. i need help with this program. this is a program to turn 'ON' and 'OFF' 1 LED using 2 push buttons. the underline statement suppose to wait for button press. but it is alway false even i have press the button. is there any one who can tell me …

Member Avatar for Salem
0
105
Member Avatar for anthmaina

I have written a script for a drop down menu on my site which on mouse over the menu item changes from blue to yellow and show the drop down item but now I'm stuck,i want to use background images instead of colors.On mouse over, it changes from image A …

Member Avatar for butjeffsays
0
228
Member Avatar for amtallah

hi all , i want to make function that remove any space before sentance (i.e if user enter multi space before your comment remove it ) and if enter multi space only this function return empty string .

Member Avatar for Ezzaral
0
101
Member Avatar for Jishnu

Hi, I am trying out a bank account program using the corejava package. I am getting a run-time eception when I create a new account & am unable to trace where the error is. Plz help. I am giving the code below. [CODE] import corejava.Console; /**************************************************************** **cLASS bANKaCCOUNT REPRESENTING THE …

Member Avatar for Ezzaral
0
261
Member Avatar for quintoncoert

I 've read Narue's answers in another game thread but there are still some things I would like to ask. what kind of c++ works best for games? can one use any kind. the main reason for using c++ is, i assume, to take up as little space as possible …

Member Avatar for Narue
0
145
Member Avatar for Teresa_Hall

Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no …

Member Avatar for Narue
0
238
Member Avatar for bala24

Hi all, I was reading about some stuff about References in C++ and got into a debatable topic.. Is references same as a constant pointer to a variable or not. I got some info. to support the topic [URL="http://www.codeproject.com/useritems/References_in_c__.asp"]here[/URL]. At the same time, something that says otherwise [URL="http://www.cprogramming.com/tutorial/references.html"]here[/URL]. Can you …

Member Avatar for bala24
0
125
Member Avatar for Toktam
Member Avatar for vrgurav
0
263
Member Avatar for Toktam

[B]Hi everyone, Is there any option for rm to remove a directory with no prompts?Actually I know about rm -r but by this option I have to answer lots of questions... Cheers, [/B]

Member Avatar for vrgurav
0
135
Member Avatar for saasbs

Hi all, i did code in jsp for "change password" when user want to change his password he have to enter his old password and then new password. if he enter wrong password there will be error msg display "sorry you have entered wrong password, and if he enter correct …

Member Avatar for suvitha_raj
0
162
Member Avatar for push

how to work servlet, jsp programs at eclipse 3.0.? Please give any online tutorial site for larning eclipse, and seting up envirnomets for eclipse. Please help me for this.

Member Avatar for suvitha_raj
0
73
Member Avatar for shweti

i am a beginner and working in vb 6.0 as frontend and ms access as backend hello ! i have following tables party:- partyid,lastname,firstname,address,areaid,profid profession:-profid,profname area:-areaid,areaname route:-routeid,routeno,routename routearealink:-routeid,areaid i am using msflexgrid control to enter/modify/delete party details which includes area and profession also.For that i want to use a moveable …

Member Avatar for AV Manoharan
0
124
Member Avatar for ArchanaB

Hi.. Am newbe to ASP.net, facing problem while using vaidation controls. I have a form where in have used ADD,EDIT,SEARCH, CLEAR buttons. When i press an edit button datagrid can be viewed. But when i use validation controls error messages are displayed if I click on edit,clear, add or search …

Member Avatar for phani.vattikuti
0
101
Member Avatar for arun_daniweb

Hi, I have setup connection with GLUE directory. and getting some attribute also, which i am specifying in search array parameter, but not all. i need to fatch all attributes and their value. even i m not able to fetch the schema also. I don't know what is problem, as …

Member Avatar for arun_daniweb
0
90
Member Avatar for ssimkhan

I've tried to run the BankServer.java class for several hours and this is the error it gives me: G:\Distributed Objects\Exercise 3\BankServer.java:11: cannot find symbol symbol : constructor BankImpl() location: class BankImpl BankImpl b = new BankImpl(); I have other classes orf the Bank interface, BankImpl and BankClient but they're all …

Member Avatar for stultuske
0
155
Member Avatar for shahnazurs

Freinds, i couldn't able to use backspace in the solaris OS! whenever i do it is printing character like ^?. So what i does is just executed command like stty erase ^? then it is working. Can we have some permanent solution for that? my shell is C shell, i …

Member Avatar for karenjones
0
128
Member Avatar for deep_3657

Hello, I want to know is it possible to access and modify content of a Excel worksheet dynamically inserted as OLE object in a form. I wish to check and update values of various cells by cell number of the worksheet, but not being sure if possible. thanks in advance

Member Avatar for AV Manoharan
0
177
Member Avatar for dudegio

Hello guys! I am editing a program regarding billing system done in Php and MySQL and generated using the Code Charge Studio. I have problem in validating a newly entered data. What i want is to check if the billing statement number is existing or not and will not saved …

Member Avatar for dudegio
0
100
Member Avatar for kalitherenegade

I am thinking of developing commercial software to rival microsoft office. qiet clearly i cant do this alone i mean it would take like forever and ever so if anyone is interested lets get talking

Member Avatar for AV Manoharan
0
141
Member Avatar for kpillsb39

What i have to create is a program that establishes 2 structs with arrays of CD Albums and then search the arrays for album names and display the album name, Artist or group, songs and their track numbers. My question is; [COLOR="red"]have i missed something in the code?[/COLOR], because it …

Member Avatar for hinduengg
0
241
Member Avatar for jaepi

Hello there, anyone here knows what is the function or library in Linux that corresponds to the win32 functions/library given bellow. library - #include <Windows.h> functions - GetDiskFreeSpaceEx()、GetFileAttribute()、GetModuleFileName()、GetFileVersionInfoSize()、GetFileVersion( ) Thank you!

Member Avatar for jaepi
0
707
Member Avatar for phalaris_trip

I basically need to write a program that will display all images in a directory, sequentially, and either create or open an existing corresponding text file, and allow a user to write/dictate into it. (e.g. So working in a directory containing one.tif, two.tif and three.tif, the program will open/create one.txt, …

Member Avatar for phalaris_trip
0
181
Member Avatar for laugh

Hi.. I'm new in programming microcontroller in c. And I was given an assignment to write a simple program to turn 'ON' and "OFF' the LED by pressing push buttons. The microcontroller i'm using is PIC18F4620. And i'll need 1 LED and 2 push buttons to program this. I have …

Member Avatar for Salem
0
123
Member Avatar for rinko

I am using Apache 2 with windows web server 2003 on the windows XP. I have problem using exec() command. My safe_mode is off. Does anyone know what can be the reason why exec() does not function? It is interesting that immediately when I restart the Apache server exec() command …

Member Avatar for pritaeas
0
102
Member Avatar for arunprashanth

Hi In any project we can set values to the session.and get value from the session. which place or path the session information to be stored. Thanks in advance

Member Avatar for jwenting
0
82
Member Avatar for karthic_victory

Respected Seniors & dear friends I want to know which tutorial is the best one to learn from basics of java. Please give me any links

Member Avatar for Ezzaral
0
148
Member Avatar for lotsofsloths

Ok, say im using the cmd prompt version of MSVC++(or the windows app type), how do i post a project on daniweb, HTML, or any other website(or like a quick luanch desktop icon)?

Member Avatar for ~s.o.s~
0
325
Member Avatar for kpillsb39

I want the program to have the user select either Y or N to display the list of albums in the array, if the user entered Y to display the list of albums then have the user enter a name for an album from the list to search the array …

Member Avatar for ~s.o.s~
0
101
Member Avatar for sadaka

Hello you guys. I'm very excited since I'm so close to finishing my project. However before I'm totally done I am kind of stuck on this error message when compiling. It says "[COLOR=red]cannot find -lobjc[/COLOR]." Have anyone seen this before? [U]What does it mean?[/U] I've added my entire code if …

Member Avatar for Ancient Dragon
0
143
Member Avatar for dajiebuda

I have a code generated with netBeans. It use org.jdesktop.layout. I have the file swing-layout-1.0.jar. But I don't know how to compile and run mycode.jave with that jar file. Please write full comands if possible. I'm so new to java that every step use me 2 hours - 2 days. …

Member Avatar for Ezzaral
0
164
Member Avatar for Prozeen

Hi all, I have 3 labels, with 3 captions (i.e. integers)... Label 1 = 1 Label 2 = 3 Label 3 = 2 What I want to do is search all these labels and find out what the highest number is (in this situation it's 3) so that I can …

Member Avatar for Prozeen
0
442
Member Avatar for bops

Basically I'm writing a function to change all the '|' characters in a string passed as a parameter to '\n' characters. Seems simple enough to do, but I get one of those "Application has encountered a problem and needs to close. We are sorry for the inconvenience." messages. [code=c] char …

Member Avatar for Narue
0
118
Member Avatar for dajiebuda

I copy and paste code generated from NetBeans into a java file. To run it, I got message "package org.jdesktop.layout does not exit" What should I do? Thanks ahead.

Member Avatar for peter_budo
0
136
Member Avatar for quintoncoert

i have a form which i have to protect with a password. this form is called from a user form which does not have any passwords on it. which means anyone can access it. in order to accomplish the security i placed a password in an access database but the …

Member Avatar for quintoncoert
0
94
Member Avatar for dotcom123
Member Avatar for AV Manoharan

I advice you to desist from this almost imposible task. And I am of the openion that you are not even aware of a fraction of the tremendous potentiality it offers for simple office management to very powerfull computing- options integrating small office to corporate bodies spread over miles apart. …

Member Avatar for w_3rabi
0
110
Member Avatar for alex905

well here is the part of my script that is malfuctioning. [CODE]require "config2.php"; require "config.php"; $result = mysql_query( "SELECT `sum` FROM `subs`" ); $sq = mysql_fetch_assoc($result); $value = $sq['sum']; $val = preg_replace('/$/', '', $value); ?> <br> <?php echo $val; $query = mysql_query( "SELECT title, threadid FROM `thread` WHERE forumid = …

Member Avatar for coolkartik
0
133
Member Avatar for Barefootsanders

I need to return some HTML code stored as a text data type in my database. Is there a way to return this HTML effiencly through PHP that will execute this code when HTML parses the page? Currently I have this: [CODE]$result = @mysql_query("SELECT * FROM sponsors"); $num_rows = mysql_num_rows($result); …

Member Avatar for macneato
0
632
Member Avatar for ruhi

hello everyone, how to write exit code in visual studio.Net so that whole program closes on button click event? And how Message box is created, also how to take input from user as we do in javascript using prompt command? Can anyone help me in this..... Thanx in advance.

Member Avatar for ruhi
0
175
Member Avatar for mrark

i want a calculator project just use applet not swing or frame i hav but i took just input through mouse but dont perform any operation

Member Avatar for mrark
0
103

The End.