64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dimega

Hi there, How would I go about setting a date/time to 0? Basically I want the time to be 00:00:00 so that when I use the addseconds function of say 120 seconds it reads 00:02:00 Any help would be much appreciated.

Member Avatar for selvaganapathy
0
91
Member Avatar for monkey_king

Hi I'm doing a templated matrix class, and I'd like to be able to pass a function pointer to a function that uses the rows. [CODE=c++] template<typename T> T sum(Array<T> &a){ // a simple function that return the sum of an Array T res=0; for(int i=0;i<a.length();i++) res+=a(i); return res; } …

Member Avatar for monkey_king
0
8K
Member Avatar for Stefano Mtangoo

I want to subclass My App and I hit the wall. If I don't subclass it works! WHAT IS WRONG HERE???? [ICODE] import wx ID_NEW = 10 ID_OPEN = 11 ID_CLOSE = 12 ID_SAVE = 13 ID_SAVE_AS = 14 ID_PAGE_SETUP = 15 ID_PRINT_PREVIEW = 16 ID_PRINT = 17 ID_EXIT = …

Member Avatar for vegaseat
0
113
Member Avatar for JoBe

Hi all, I have a class which contains a struct that holds some variables, string, int's. Now, one of the variables (string) in the struct is used to compare it with a name, if the name is in the struct, it has to be [COLOR="Red"]returned from my function [/COLOR]with it's …

Member Avatar for JoBe
0
140
Member Avatar for melissajohn718

Write, compile and run a C++ program named that reads in one integer that represents a total number of hours and then displays the equivalent number of weeks, days and hours, all properly labeled. Have your program only do the calculation if the user enters a number less than 30,000 …

Member Avatar for Narue
0
182
Member Avatar for jamello

Hello experts!! I have this challenge. I need to display a popup window with some controls on the clicking of a button on a page. Thereafter the contents of these controls (textboxes) on the popup window are to be transfered into a gridview on the parent form. Current status: I …

Member Avatar for jamello
0
144
Member Avatar for Jennifer84

For the code below I Select an area in a textBox that I will Mark Red. I will also change the Fontsize to [B]16 [/B]and make the selected text [B]Bold[/B] but are not sure what calls that is used for this. [code] this->richTextBox1->Select( 0, 10 ); this->richTextBox1->SelectionColor = Color::Red; [/code]

Member Avatar for Jennifer84
0
131
Member Avatar for bpacheco1227

This program is supposed to prompt for a price until (do while loop) the input box is blank and then average the numbers and display the average. I've got most of it down except the average part, how do I store the numbers the professor hasn't showed us arrays yet. …

Member Avatar for bpacheco1227
0
215
Member Avatar for Jennifer84

I am loading a txt File into a textBox with the code below. For each Line I am checking : if( LoadTopic2.substr(0, 2) == "Ex" ) If that is True I want to select that Row and mark that Line Blue. I have started some code out below but dont …

Member Avatar for Jennifer84
0
132
Member Avatar for Elmo_loves_you

Hi Guys ... Does anybody know how to force a windows forms application to restart (Close and open again) taking the user back to the first screen ? My user fills in a questionnaire, reaches the end and is asked to either perform another survey or to send data (sent …

Member Avatar for Elmo_loves_you
0
146
Member Avatar for balena

HElp.. Friday 09.19 I must present a little program for my C++ university test. I remain just a little bug. I use this code to write my file .DAT [code=C++] ofstream fileScritturaPartita(nomeFile,ios::binary | ios::out | ios::app); fileScritturaPartita.write(reinterpret_cast < const char * >(&sfidaDaSalvare),sizeof(Partita)); [/code] It works very well but in the …

Member Avatar for balena
0
151
Member Avatar for Run.[it]

Hi, just a query about versions of Microsoft Visual Studio. I last year created my C++ programs using Visual Studio .Net 2003 and have noticed that my new uni course uses 2005. Will I be unable to run my old programs in the 2005 version? Ive had compatibility issues before …

Member Avatar for Run.[it]
0
101
Member Avatar for Venom Rush

Hi all I'm trying to get a jquery progress bar working. What I'd like to know is if there is a specific command I need to include in my php or something I need to add to my php.ini file in order to report back to the progress bar. The …

Member Avatar for Venom Rush
0
144
Member Avatar for dmanw100

I followed Ancient Dragon's advice and used vectors to store roughly 1000 objects in a program I have written. Unfortunately, the vector library is not one I am familiar with. I read through the information at [URL="http://www.cppreference.com/cppvector/index.html"]http://www.cppreference.com/cppvector/index.html[/URL]. It seems getting a reference to each element of the vector is the …

Member Avatar for dmanw100
0
97
Member Avatar for henpecked1

I'm doing a lab where I must use three sorting methods, then merge sort the three arrays. While separating the larger array, I'm getting a "run time check error #2 stack around the variable x was corrupted: It does this for y and z as well. I think it is …

Member Avatar for henpecked1
0
141
Member Avatar for aarya

i am learning jsp so i wanted to know any body offer free jsp web hosting? thanks

Member Avatar for stephen84s
0
1K
Member Avatar for dmanw100

Can anyone spot the error in my code? The program will enter the last while loop but continue in an infinite loop... I figured fresh eyes may help spot the flaw! [CODE] int xlist[1500], ylist[1500], counter = 0, tempx, tempy, tempcounter; bool assign = false; while(counter < 1500) { xlist[counter] …

Member Avatar for dmanw100
0
109
Member Avatar for dmanw100

I have a program that has a custom class that I would like to create many of and access them like an array. Example: [CODE]#include <iostream> using namespace std; class Thing { public: Thing(int value) { a = value; } int doStuff(int diffValue) { a = diffValue + a; } …

Member Avatar for Agni
0
119
Member Avatar for ganil123

Hi, I am looking for a material that contains many python programs illustrating various core concepts. Please help in this regard.

Member Avatar for ganil123
0
101
Member Avatar for abu taher

I put 2 dtpicker in my project. both are for search data from backed access file. like (1st dtpicker) i select a date 16/08/08 and (2nd dtpicker) 16/09/08. i want to find data last a month or any few days. i mean i want to find a period data like …

Member Avatar for Jx_Man
0
99
Member Avatar for skippybosco

I am accessing a 3rd part API for an integration script I'm developing. It has a 3 step process in creating a userid (1. get a token 2. login as admin 3. do admin stuff) I've scripted it via server side script that is triggered on a new user being …

Member Avatar for skippybosco
0
162
Member Avatar for Jennifer84

I want to create a "Help" in an application that I do. I have attached a file for what kind of solution I am after. The solution is the same type as in VC++ 2008 under "Help" /Index? How it is constructed is with a listBox on the left side …

Member Avatar for Jennifer84
0
123
Member Avatar for k2k

i downloaded a js code and it works with its own html index file. However, if i paste the <script>............everything </script> to my index, it doens't work. I tried to put it inside <head> </head> and i also tried inside <body> </body> ... they both don't work. Any suggestion? i …

Member Avatar for k2k
0
157
Member Avatar for matejkralik
Member Avatar for matejkralik
0
100
Member Avatar for asmit1987

i am creating an application in which i require a splash screen. Now the thing is that i want my splash screen to be there without any title bar and frame border what should be the necessary code for it plz provide me with that.... thank you....

Member Avatar for Jx_Man
0
2K
Member Avatar for peter_budo

I yet did not master the skill of concurrency better say I failed on first attempt and since then did not tried, therefore I'm asking for help. Currently I working on JME application where I need to load mp3 files into Player. I'm able to do it with one file, …

Member Avatar for Ezzaral
0
136
Member Avatar for tillaart36

Hello I'm new to the forums and I want to ask some questions about grid like operations: Here I make a grid and set all cellvalues to 0. [CODE] import wx import wx.grid class TestTable(wx.grid.PyGridTableBase): def __init__(self): wx.grid.PyGridTableBase.__init__(self) self.rowLabels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] …

Member Avatar for tillaart36
0
258
Member Avatar for spinnaret

Hello All, I would like to programatically set the Column borders for a datagrid based on the column Index. So I would like Columns(3) for exampe, to have a border but not Columns(1) or Columns(2). The only thing remotely like this I can find is the datagridview grid setting. But …

Member Avatar for spinnaret
0
131
Member Avatar for bpacheco1227

Upon checking the corresponding check box, which is either Ladies Shoes, Men Shoes, Sneakers or Sandals, the program needs fill the listbox with the checkbox information. Can't figure the syntax, any help would be greatly appreciated. [code=VB] Public Class Form1 Private Sub chkboxLadiesShoes_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Member Avatar for Jx_Man
0
139
Member Avatar for EkoX

Hi masters... How i can got last 3 character from string? Ex : Daniweb -> i got "web" is this possible? Please Help me Regards

Member Avatar for Jx_Man
1
108
Member Avatar for dreamer14

[code=jsp]<%@ page import="java.lang.,java.util.,javax.mail.,javax.mail.internet., javax.activation.*" %> <% String p_to = "abc@hotmail.com"; // Please fill in your email here String p_from = "abcd@yahoo.com.sg"; // Please fill in receipient’s email here String p_subject = "Testing"; String p_message = "This is a test email"; String l_host = "smtp.mail.yahoo.com.sg"; // Gets the System properties Properties …

Member Avatar for peter_budo
0
179
Member Avatar for saikishore

Hi frnds..... i have small doubt.. here i am copying code..plz see once.. till the table ends..it works fine..the page moves to thanku page....but the feed back is not moving to the mail(mail function )........ [B][U]feedback.php[/U][/B] [CODE]<? $contact_name=$_POST['contact_name']; $contact_phone=$_POST['contact_phone']; $contact_email=$_POST['contact_email']; $contact_comments=$_POST['contact_comments']; $mail_body='<style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}--></style> …

Member Avatar for Shanti C
0
61
Member Avatar for JackDurden

My output looks like this "T h i s m y o u t p u t" and I want it to look like this "This is my output". Any suggestions? I guess what Im asking is how do you take words from a file and put it into an …

Member Avatar for Alex Edwards
0
188
Member Avatar for Clockowl

Howdy folks, Does anyone know if GCC is capable of creating a fixed length 1D array of an N-Dimensional array for reasons of speed? I've heard it matters quite a lot if one works constantly with N-Dimensional (with N != 1) compared to 1D arrays in terms of speed, but …

Member Avatar for grumpier
0
90
Member Avatar for NLCGraphics

Hi, newbie here just been going through the "Sam's Teach Yourself - PHP, MySQL" book. I've retyped the code for viewing records in an address book. My problem is this line appears to have a problem. Does it look correct? [CODE]$get_list_sql = "SELECT id, CONCAT_WS (', ', l_name,f_name) AS display_name …

Member Avatar for NLCGraphics
0
142
Member Avatar for jtok

I'm working with MS SQL Server 2005. I am trying to add two columns together, and I have more or less succeeded. However, it obviously adds the entirety of each column, rather than calculating for each row. I can't just include each column in the original SELECT statement, because it …

Member Avatar for jtok
0
93
Member Avatar for AlSal

I've been trying to find a complete list of the c/c++ libraries and all of their functions, but everywhere I look, I only find a part, never the whole thing. Is there a website where I can find such detailed list?

Member Avatar for BeyondTheEye
0
94
Member Avatar for Cindy_

Hello! First of all, sorry if my english sucks, it's not my first language >_< I want some help of you guys. I got a vector of dates named ListDate[i], and I want to do a search on it, to find the last days the user defines, for example: The …

Member Avatar for Cindy_
0
197
Member Avatar for luisrc

I found out that somebody is sending e-mails with my domain name eg= [email]xx@mydomain.com[/email].. How could you stop them from doing that?

Member Avatar for MVied
0
182
Member Avatar for Extreme

I need to make a program to check if the entered number is palindrome or not i.e. if u take a number and reverse it it will be the same old number for example if u take 121..then if u reverse the number it will be 121 and so 121 …

Member Avatar for Ancient Dragon
0
186
Member Avatar for Jennifer84

I think I have a convertingproblem when using stringstream. I multiply 0.995 * 19.99 wich is: 19.89005 The first messageBox do show because 19.89 < 19.89005. Then I convert Total to string and back to double again and do the same check if: 19.89 < NewNumber But here the MessageBox …

Member Avatar for Jennifer84
0
95
Member Avatar for unbeatable0

Hey there, I'm trying to use the SetSuspendState() function to hibernate the computer, but I have no idea what parameters I should send to it. The prototype is "BOOLEAN WINAPI SetSuspendState(BOOLEAN, BOOLEAN, BOOLEAN);" Since I'm a somewhat beginner in c++ programming, I don't really have an idea what BOOLEAN means …

Member Avatar for dougy83
0
567
Member Avatar for matua105

Hello: I am using a hardcoded user name and password to let users access a specific web page. It is coded in asp. However, I now need to have users input their email addresses, but still use the hardcoded password to access the specific page. I need to either have …

Member Avatar for matua105
0
179
Member Avatar for kux

This may sound silly. I have a class that contains a vector of pointers to instantiated objects. I want to return a refrence to that vector, but I don't want to be able to modify the vector through that refrence. Now, if i return a const reference, the vector is …

Member Avatar for dougy83
0
113
Member Avatar for dinilkarun

Hi friends.... I am using SS Tab in my form. There are 4 tabs in total. The user needs to enter a text provided on tab1 and then go to tab2. If the user clicks on tab2 without entering text in the textbox, a message box should be shown to …

Member Avatar for dinilkarun
0
146
Member Avatar for Emerald214

Excuse me, could someone help me? This code from an ebook and it isn’t wrong but it gives an error while being compiled. I don’t understand what error it is. error C2653: 'vector<int,class std::allocator<int> >' : is not a class or namespace name [code] #include<vector> using std::vector; int main() { …

Member Avatar for Emerald214
0
158
Member Avatar for harz_crazystud

[code=Java]protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); String name = request.getParameter("name").toString(); ArrayList a = new ArrayList(); int y =a.size(); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "test"; String driver = "com.mysql.jdbc.Driver"; String user = "root"; String pass = null; try{ Class.forName(driver).newInstance(); con …

Member Avatar for peter_budo
0
191
Member Avatar for Shanti C

Hello all.. Can anybody clearly explain about web 2.0??? And tel me about mashup also....

Member Avatar for nikesh.yadav
-1
541
Member Avatar for iamthwee

OK I was wondering what is the easiest way to do this? Let's say I have some arguments int main(int argc, char* argv[]) and argv[1] equals a c-style string. I want to change this to a std::string because I want to do stuff with it and I prefer working with …

Member Avatar for vijayan121
0
92
Member Avatar for bprabhumdu

Hi friends, in my vb project , hindi font doesn't set . i download the mangal font from internet and paste it in a c:windows/font folder........but it resemble like a unknown symbol... any help will be appreciated .... waititng for ur reply

Member Avatar for Drycola
0
108

The End.