199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for severman

hi all could any 1 help me out. im trying to find the biggest id number in a db. the problem is that the "ID" column is saved as "TEXT"(its important to me). the language im using is PHP. 10x! tried to use this but it didnt work $resultt = …

Member Avatar for severman
0
114
Member Avatar for PinoyDev

Good day to everyone. Im just able to finish my banking system with QB SDK integration. I just want to ask help, idea or any other way to make a mathematical operation in a single textbox.Like you can perform to add two numbers in a single textbox and display the …

Member Avatar for PinoyDev
0
173
Member Avatar for Freaky_Chris

The following code snippet can be used to convert a decimal integer into any base from 2-16. This is a simple piece of code and I hope t proves useful to people. I see many people posting Decimal to Hex. or Decimal to binary, non any better than the next. …

Member Avatar for hehehe01
0
3K
Member Avatar for rhoit

[CODE=cpp]struct Table { char* aTag; char* bTag; }; int main() { Table T1; cout<<T1.aTag; cout<<T1.bTag; return 0; }[/CODE] This might be crazy but... i really need to know is there any way to so that we can only write [CODE=cpp]cout<<aTag cout<<bTag [/CODE]instead of [ICODE]T1.aTag[/ICODE] like we do in [ICODE]namespace [/ICODE] …

Member Avatar for mrnutty
0
294
Member Avatar for DARK_BYTE

Hello I'm doing my OS homework and I need to know how to read an write a 32 bit integer with the write system call Here is the code that I wrote: [code] #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include<unistd.h> #include<string.h> struct Person { char name[21]; int ch_in_name; char address[21]; …

Member Avatar for gerard4143
0
4K
Member Avatar for tkud

Hello again. Thanks to all that contributed positively to my first thread. it went a long way. Now, i am here again. can someone please help me out in the case of vectors.i.e. [#include<vector>]? Please do not be angry at me for posting such oversimple questions,i am a dumb beginner …

Member Avatar for jeezcak3++
0
115
Member Avatar for osmano807

Hello! Well, I need an alternative to be able to delete files not accessed for more than 5 minutes. I already know how to do this using the system programs, but wanted something done in C++ once, to avoid bottlenecks. Is there any way to do this? (if not understand, …

Member Avatar for osmano807
0
76
Member Avatar for Striker99

I'm trying to learn C++ on my own so I figured I'd try to write a program for my data communications class. We were learning about hamming codes and I want to try to make a program that will let me do it automatically instead of on paper. I'd take …

0
109
Member Avatar for McCarrell

I am trying to reference a 2d dynamic array which i used pointer to pointers to declare. the constructors run without a problem but as soon as i run another function or an overloaded operator i get errors. Its almost like i am referencing the array in the pointers incorrectly. …

Member Avatar for Agni
0
88
Member Avatar for Ponomous

Hey, So I am trying to get several numbers (below ) to be stored in various variables. Could you look at my code and tell me what I am messing up? (trying to emulate an example from class that I missed, stupid swine flu...)) the numbers (yes there is a …

Member Avatar for Ponomous
0
132
Member Avatar for Darth Vader

I have a file that consists of dates like this: 12/[B]01/[/B]2008 12/[B]02[/B]/2008 12/[B]03[/B]/2008 12/[B]04[/B]/2008 12/[B]05[/B]/2008 Now if I will read this file from beginning to end, this is a solution: [code] String^ FilePath = "C:\\DateFile.txt"; String^ GetLine = ""; StreamReader^ Read = gcnew StreamReader(FilePath); while(Read->Peek() >= 0 ) { GetLine …

Member Avatar for sfuo
0
127
Member Avatar for AbsoluteCPP

[URL="http://www.daniweb.com/forums/misc-explaincode.html?TB_iframe=true&height=400&width=680"]Code View[/URL] In the linked page u can see that source code is properly formated, how to do that?? I am making my web, i want to know that how can i show the c++ source code on my web with proper format. Q: How to show a formated source …

Member Avatar for codejoust
0
136
Member Avatar for LaurenceJ61

Hi, I'm trying to confirm a Delete action that will remove data from a database. The code is pure php, no jscript etc as I want everything to be server side. My php file shows a form with the current data found for a venue with 1 or more 'rooms' …

Member Avatar for codejoust
0
141
Member Avatar for peck3277

Hi guys, So today I am trying to do something that is probably quite simple. But my head is all over the place and I can barely think straight! Something which is not good for a newb! I'm trying to display some text files on the web. These text files …

Member Avatar for wilch
0
130
Member Avatar for rhoit

01 Why i am not able to do this [CODE]int* px; px = new int[2][2]; [/CODE] other the [ICODE]px = new int[2*2];[/ICODE] is there any other method 02 Why i am not able do access through pointer dx by [ICODE]dx[1][2][/ICODE] other than by using [ICODE]dx[1*7+2][/ICODE] [CODE=cpp] static float mat[5][7] = …

Member Avatar for Sky Diploma
0
136
Member Avatar for atch

Hi, I'm trying to implement my own allocator using malloc and free. One thing what interests me is that in declaration of deallocate in addition to pointer we have also parameter size which suppose to be size of elements allocated with allocate but having implemented my deallocate as this: [code=c++] …

Member Avatar for atch
0
93
Member Avatar for pztrick

Hi, <--- Newbie I am trying to install the Boost libraries, specifically the Boost filesystem library. Many of the libraries are header-files only. No building. The Filesystem library requires me to build binaries... A new challenge, but I was able to pull it off. However, the binaries are located in …

Member Avatar for micwide
0
135
Member Avatar for stoymigo

Hi , I recently read this on another forum... [Quote] C/C++ are still standards for writing fast, standalone software, so you'll be wanting to work your way there. [/Quote] If I want to develop an application that has many "if statements" and many "loops" , that executes only on the …

Member Avatar for stoymigo
0
168
Member Avatar for NinjaLink

Hello. I'm having a hard time finding which block of code in this program is [B]"insert in the middle"[/B] for Link List, so I can study it. Can someone point out where it is in the program and if insert head code below is included in insert middle. Much appreciate …

Member Avatar for NinjaLink
0
114
Member Avatar for leoni

Hi All! I have a doubt about returning reference. I'll show you an example: [CODE] Vector &MakeVector() { Vector *result = new Vector<Dim>(); /*some more code*/ return *result; } [/CODE] now I can call the function MakeVector to assign it result in this two ways: [CODE] Vector v = MakeVector(); …

Member Avatar for leoni
0
147
Member Avatar for arshad115

Hi,I want to convert String^ to Int array or a char array.I am reading numbers from a file in GUI but the StreamReader Reads the Text in a String.I need to convert them to use the numbers. I have tried ToCharArray() function but it doesnt work! this function gives the …

Member Avatar for arshad115
0
2K
Member Avatar for koban_alche
Member Avatar for Tom Gunn
0
138
Member Avatar for Rabex

can s/o plz give a simple example of how recursion can be used in programming....im new to this topic so i need help i cant develop new codes myself.

Member Avatar for mrnutty
0
200
Member Avatar for poojasweetgirl

in my college i have been asked to locate a free ftp server on the local network using softwares like ws_ftp ,cuteFTP.I have downloaded ws_ftp but it is asking for server address. I may not have access to internet in college. How do i go about it? i have created …

Member Avatar for poojasweetgirl
0
92
Member Avatar for ssmeshack

Hai there, I have doing php code for form data to be send to email. But it is showing... [QUOTE]Your message could not be sent at this time. Please try again. [/QUOTE] Here is my code for html form... [CODE] <body> <div id="emailform"> <form action="email-thankyou.php" method="post" name="contactForm" onsubmit="return validateForm(this);"> <p><strong>Name:</strong> …

Member Avatar for Kruptein
0
104
Member Avatar for emilio

is there a way to convert a java.util.Date to format dd/mm/yyyy HH:mm:ss ?

Member Avatar for emilio
0
91
Member Avatar for csaund1

This program kinda works, but I have one problem. I setup this program to display a message when someone enters a negative number, but I how do I set the count back to zero. Even though mesage prompts the user that a negative number is invalid, it still calculates the …

Member Avatar for Furqanz
0
177
Member Avatar for LogicWeb

I'm trying to use an if conditional inside the skin file for my ipbpro arcade mode. The problem is when I edit and reupload, I get a blank page due to the code I'm using but I'm not sure where I'm messing up. In a regular vb template it looks …

Member Avatar for liamfriel
0
139
Member Avatar for SKANK!!!!!

help. i finally put together a script to upload only .png IMAGE files that are under a certain filesize. BUT. is there any way i can only upload the image if its dimensions are exactly 55x55? heres what i have so far: (i want it always be named avi.png so …

Member Avatar for SKANK!!!!!
0
151
Member Avatar for Arsham3

Is there good open source solution allowing to use shared memory between C/C++ and Java

Member Avatar for ~s.o.s~
0
116
Member Avatar for sandeep_1987

I want to add one row by default that contains textboxes & checkbox. How to add it. See pic As Attachmnet.

Member Avatar for vuyiswamb
0
124
Member Avatar for nope3d

...Can anybody knows how can I put a table on what type of Package type (overnight and two day package) in my program.. Since I have been troubled on how I would like to display my added data to an array and if I have choose a certain package type …

Member Avatar for javaAddict
0
133
Member Avatar for sanjaypandit

i want to search from the following table attached in zip file, my query is select * from tbl_property where acco_id='1' and count_id='1' and holi_id='1' order by add_date desc but there is a problem, i have various value in holi_id , i want to search , means want to match …

Member Avatar for sanjaypandit
0
78
Member Avatar for ayesha789

I need result which shows all the dates which expire after or within 90 days form now on(current date) but this query also shows results which already expire like it shows 27 sep 2009 which is before current date. I need only those which are expiring from today and with …

Member Avatar for ayesha789
0
96
Member Avatar for jrosh

I added a bachground color to a jpanel using [B]panel.setBackGround(Color.GRAY);[/B] I want to add some color like "[B]light blue[/B]." which do not have in the color list. how can I do. (2) how to add backgroud picture to jpanel???? (tried using [B]setBackGround[/B] but failed!!!) thankx in advance....

Member Avatar for moggz
0
478
Member Avatar for Hockeyfreak889

I am suppose to be making a program which inputs an employees name(first and last) and their quarterly sales. I am then suppose to output a table of all the employees and the quarterly sales, as well as their total sales. I am suppose to create an array of objects …

Member Avatar for javaAddict
0
87
Member Avatar for Derice

I have created an asp.net web project and deployed it in my pc with the virtual directory set to websetup1. How should i access my website? When i type my ip add in the browser, it will display my router configuration page instead. Should i include virtual directory in my …

Member Avatar for vuyiswamb
0
204
Member Avatar for keekee

I am using textpad to create my java programs because I had a problem with downloading java and setting the path in order to use it with notepad. Can someone tell me what this error mean? I don't know if it has something to do with the fact that I …

Member Avatar for javaAddict
0
115
Member Avatar for mrcniceguy

If any one have a script which can grab the yahoo,hotmail and gmail address book,i will appreciate to have it or Any suggestion on how to make me succeed in this. I wantto enable member in my site to import their address book directly from the site. Thankx.

Member Avatar for mrcniceguy
0
343
Member Avatar for ayesha789

Hi, I have inserted time in Database using CURRENT_TIME() and Data type is Time. Now I want to show the Time in AM and PM format. Please guide me. Thanks in advance....

Member Avatar for mick_sp
0
4K
Member Avatar for mz_rigel

I wrote the below code and when I try to compile it I get the following error: error C2109: subscript requires array or pointer type. Can anyone tell me what I did wrong and how I can fix it? Thanks a lot! :) [CODE] // This program writes the bombsweeper …

Member Avatar for kvprajapati
0
105
Member Avatar for abhipro

Hi, Is there any way of storing some variables, say username for a particular session in ASP.NET. E.g, If we let a user login in a page, then I want him to stay logged in for all the pages he traverses on the server. Currently, I am trying Server.Transfer and …

Member Avatar for padtes
0
139
Member Avatar for Knoxx

this is a c++ program for the simulation of gillians island i did. im a newbie in programming looking to improve on my skills. Can some assist me on how to break this code into functions. please dont rewrite the code i need just a sampler from code i can …

Member Avatar for Knoxx
0
105
Member Avatar for Mapper99

Hi there, I am trying to delete XML nodes using PHP. Here is a sample of my xml file. [code] <users> <user> <fullname>PC1</fullname> <flooor>4</floor </user> <user> <fullname>PC2</fullname> <flooor>3</floor </user> </users> [/code] Here is my code so far: [CODE] <?php $users = new DOMDocument(); $users->load("officedata.xml"); $suser = simplexml_load_file("officedata.xml"); $count = 0; …

Member Avatar for Mapper99
0
240
Member Avatar for bdub19

Alright, so the assignment which im sure you guys have seen around alot is to do a powerball type program, 1-55 for the first 5 numbers then the 6th 1-42. I set up the program, i get my random numbers. but the teacher wants you to assign a single variable …

Member Avatar for bdub19
0
136
Member Avatar for ayesha789

Hi, I am developing a Lease Management System, and I need to upload multiple files in a folder. and I want to name the folder where I want to upload in DB. Here is a code for upload a single file. first file is sendfile.php [CODE=php]<!-- The data encoding type, …

Member Avatar for ayesha789
0
351
Member Avatar for vileoxidation

Thanks to the help I recieved earlier, I figured out how to make my other header file and my other .cpp file!! So thank you for that. I am now trying to compile all of my files together, and am getting quite a few linker errors, even though the functions …

Member Avatar for vileoxidation
0
222
Member Avatar for jbennet

Hey, im looking for a good C++ IDE on Linux. Wanted features: Integrated debugger support Code formatting Syntax highlighting etc.. I hate code folding and that auto-bracket thing Preferably one thats fast. I tried Eclipse CDT but it crashed all the time and i didn't like it. I get on …

Member Avatar for jbennet
0
124
Member Avatar for thacravedawg

Ok so I have a web app that needs to a large file (up to 100mb) and then do some server side conversions. I have built a model that works locally, but now that I'm trying it on my vps its taking an insanely large amount of time and not …

Member Avatar for kvprajapati
0
105
Member Avatar for WesFox13

hello there, I have a bit of trouble figuring out how to finish a code for an assignment. I'm supposed to write a class that can generate a sequence of psudorandom integers using the linear congruence method. The trick of it is that the number generated will become the new …

Member Avatar for WesFox13
0
186

The End.