199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DaniwebOS

When dealing with larger programs and your starting from scratch should you split classes using headers and the .cpp files from the very beginning? I am looking for a suggestion because I find 200-300 lines all on one file really annoying to scroll up and down or even when its …

Member Avatar for DaniwebOS
0
70
Member Avatar for passcode121

Hi, i am having a really hard time solving the following problem. it looks really simple, but i cannot find a good implementation for it !! if you have a good algorithm please tell me about it, thanks The Problem: Source File: coindst.c/ cpp/ pas/ java Input: coindst.in Output: coindst.out …

Member Avatar for passcode121
0
1K
Member Avatar for mosquo

Hi everyone, this is my first time using daniweb, so helo! I have a major issue with building a menu from a query. I have the following, a query built from a join from 4 tables my query returns the following Id cat name sub 2sub con 3 1 axle …

Member Avatar for diafol
0
116
Member Avatar for gazsroeposc

Hello! I have an ipv6 address in a string, like 2001:0db8:0000:0000:0000:0000:1428:57ab I have to store it in two __int64. how can i convert this? Thx

Member Avatar for gazsroeposc
0
2K
Member Avatar for DaveTran

I have a class which stores my camera settings [CODE] public class SaveData { public CameraFreeLookSettings CameraSettings; /// <summary> /// Parameterless constructor for XML Serialization/Deserialization /// </summary> private SaveData() { } public SaveData(CameraFreeLookSettings cameraSettings) { CameraSettings = cameraSettings; } } [/CODE] I'm trying to save those settings using a SaveFileDialog …

Member Avatar for DaveTran
0
212
Member Avatar for kardklub

i have this piece of code i would like to validate using javascript. I have the validation code already , all i would like to know is how do you send a changeable variable to javascript i.e [CODE] while($row1 = mysql_fetch_array($result)){ $sel = ($row1['productid'] == $row['productid']) ? "selected=\"selected\"" : ""; …

Member Avatar for kardklub
0
288
Member Avatar for desert564

Polybius Square is a table that allows someone to translate letters into numbers. To give a small level of encryption, this table can be randomized and shared with the recipient. In order to fit the 26 letters of the alphabet into the 25 spots created by the table, the letters …

Member Avatar for desert564
0
1K
Member Avatar for anup.maverick

Hi, I am using asp.net 2.0, SQL 2005 Express Edition. I have created one database, thats working fine on local host. But when I transfered files to my hosting server, Then its giving me [COLOR="Red"]Error:- Invalid value for key 'attachdbfilename'.[/COLOR] My connection string is as follows:- data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|DataTestingServer.mdf;Database=DataTestingServer;User Instance=true …

Member Avatar for kaar3k
0
1K
Member Avatar for rbeach1955

when managing rules I receive the below error: Invalid postback or callback argument. Event validation is enabled using in configuration or in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is …

Member Avatar for rbeach1955
0
112
Member Avatar for dr.4030

i wanna to upload some images for my banners but i want to send special formats to my db like jpeg and png i wrote some things like this <? %name=$_FILES['imgfiled']['name']; $size=$_FILES['imgfield']['size']; $type=$_FILES['imgfield']['type']; if ($type==image/jpeg) //i wanna upload png files too. but i dont know how to add it. exactly …

Member Avatar for dr.4030
0
108
Member Avatar for Kath_Fish

hi...now i want to save my output in one text file. My output is arrange in vertically then i save the output in text file. However, when i check that text file, my output is all arrange in horizontal. How to change it to vertical form?? Hope someone can help?

Member Avatar for Momerath
0
343
Member Avatar for satti

hi friend,the problem is i have created two projects separately.both have dataEnvoirment with the same name as DataEnvoirment1 ..iwant to add a form from 2nd project to 1st project when i add the form along with its DataEnvoirment it gives duplicate name error, Itried to change the Dataenvoirment1 name to …

Member Avatar for satti
0
162
Member Avatar for Marcial

I wrote the code below and it runs well. However, how do I make it so that 'Jeanne' enters her own name instead of the numeral 01 to get the message 'Welcome Jeanne'? Thank you. // This program assigns a code to 'Jeanne' (analogous to a pass code) [CODE] Actual …

Member Avatar for Marcial
0
205
Member Avatar for Buppy

Hi, i'm having a problem with AES encryption. I have 2 queries: [CODE] mysql_query("INSERT INTO table (secretfield) VALUES (AES_ENCRYPT('$secretvariable','12345'))") mysql_query("SELECT AES_DECRYPT(secretfield,'12345') as sf FROM table WHERE ID='$_SESSION[id]'"); [/CODE] With AES_ENCRYPT it works fine, it inserts encrypted values into the column, but when i use AES_DECRYPT, it returns a blank value. …

Member Avatar for carlodglozada
0
102
Member Avatar for veledrom

Hi guys, I need a help for caching web pages. My website is driven by database and updated everytime (sometimes minute by minute sometime hour by hour, never know). Content and some information comes from database as well. There are also some queries run behind for logging purposes based on …

Member Avatar for jkon
0
225
Member Avatar for gedas

hey, i have x and y coordinates that move around the screen randomly the position of the coordinates always vary they could suddenly stop or the movement speed could increase. what i want is to find out at what speed the coordinates are traveling in miles per hour. (not necessarily …

Member Avatar for mKorbel
0
209
Member Avatar for khan43

I am trying to clear session variables after I have logged out. In my search.aspx I have a logout button therefore I put the below code in search.aspx.vb. However it does does seem to work. Protected Sub hlLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles hlLogout { if(Session["User Name"]!=null) …

Member Avatar for Knvn
0
179
Member Avatar for JSHGROUP

I'm launching an multi outlet online food ordering website - most of the coding etc has been done I just have a couple of problems, one of which is this.... I want to add a min order requirement so that if the order comes in at £8 the order is …

Member Avatar for jmo
0
137
Member Avatar for khan43

Hi I am trying to create a forgot password section within my login section and it doesnt seem to work. In my forgotpassword.aspx page my code looks like this: [CODE]<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" Height="224px" Width="295px" SubmitButtonText="Get Password" SubmitButtonType="Link"> <MailDefinition From="soccervillage@yahoo.com" Subject="Your new password" BodyFileName="PasswordRecovery.txt" /> </asp:PasswordRecovery> </asp:Content>[/CODE] …

Member Avatar for khan43
0
222
Member Avatar for d1e9v85

for a assignment i need to create an array dynamically so then late i have to sort the array but the problem is i an new in this cousrse and i dontknow how to creat an array dynamically please help any help will be a good start for me \thx

Member Avatar for NathanOliver
0
160
Member Avatar for student786

Hi there. I wonder if anyone can help me. I have this code but it only works for a 3 by 3 matrix. I was wondering if anyone could help me change it to a for loop so you can work out different matrixes like a 4 by 30 matrix. …

Member Avatar for daviddoria
0
166
Member Avatar for SCass2010

Hi everyone, For a group assignment we have to develop a property trading game similar to monopoly. At the moment we have the GUI developed as well as a basic idea of how to go about doing it but was wondering if anyone could help a bit!:S Is it possible …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for Amadman114

Hi, I want to move a shape (label) when I press WASD around a maze. I got what I have so far off the net, but I cant figure out whats wrong with it. [URL="http://www.programmersheaven.com/mb/VBasic/223364/223860/re-basic-key-press-question-answered/"]Original code[/URL] [CODE] Public x 1 'This is whats wrong - it says "End of statement …

Member Avatar for Amadman114
0
960
Member Avatar for maria_megha

please give me the code for checking the company name entered in textbox using javascript .Only sentence case to be allowed.Only abbreviations (without a full name) should not be allowed.(eg DPS) Abbreviations if any should be allowed only at the end of the name within ().eg Delhi Public School(DPS)

Member Avatar for Taywin
0
103
Member Avatar for still_learning

Hi there, At my company we are working on building a website, however javascript is disabled on the server and cannot be enabled. Onclick, onmouseover, etc.....these events do not work either. Is there any alternative to making my page dynamic? Mainly I'm wanting simple things like being able to fire …

Member Avatar for z-Steve
0
120
Member Avatar for SourabhT

[CODE] #include "stdafx.h" #include<iostream> using namespace std; template<class stype> class Stack { private: struct node { stype data; node * next; }*q; public: Stack() { q=NULL; } void push(stype d) { struct node * temp; temp=q; temp=new node; temp->data=d; if(q==NULL) { temp->next=NULL; q=temp; } else { temp->next=q; q=temp; } } …

Member Avatar for mike_2000_17
0
164
Member Avatar for McLaren

Hi, [CODE] $('object').live('mousedown',function(){ url = $('.m_banner_show object param[name="movie"]').attr('value'); alert(url); //filename = url.substring(url.lastIndexOf('/')+1); //pridedam paspaudima $.post( getBaseURL() + "index.php?option=com_ReklamuRodymas&controller=welcome&task=addClick&format=raw",{filename: filename}); }) [/CODE] The html code: [CODE=html] <OBJECT id=bnr_banner2_0 codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=468 height=60 VIEWASTEXT> <PARAM NAME="_cx" VALUE="12382"> <PARAM NAME="_cy" VALUE="1587"> <PARAM NAME="FlashVars" VALUE=""> <PARAM NAME="Movie" VALUE="uploads/banners/file4.swf"> <PARAM NAME="Src" VALUE="uploads/banners/file4.swf"> <PARAM NAME="WMode" VALUE="Transparent"> …

Member Avatar for tinymark
0
110
Member Avatar for serdas

below code work this with no problem <form name="statusUpdate" action="" method=""> <textarea name="status" id="status" rows="4" cols="50"></textarea> <input type="button" onclick="updateStatusViaJavascriptAPICalling(); return false;" value="Update Status via Facebook Javascript Library" /> </form> [CODE] } function updateStatusViaJavascriptAPICalling(){ var status = document.getElementById('status').value; FB.api('/me/feed', 'post', { message: status }, function(response) { if (!response || response.error) { …

Member Avatar for serdas
0
135
Member Avatar for Arjun_Sarankulu

There are two server 1)192.168.*.* 2)192.162.*.* In first server there is database call department which contain table called [B]employee[/B] Now i want to copy the from above to second server in database company which contain table [B]employee[/B]

Member Avatar for BitBlt
0
180
Member Avatar for ditty

Hi I am using curl function for getting data from another website. But when i use curl_exec($curl) it shows 'bool(false)' . why it happend so? Please help me..Thank you

Member Avatar for NightLight
0
98
Member Avatar for martin11ph

Hi again. I'm having another splash screen problem. I have 3 forms namely login, main, splash. Once the user has authenticated himself, the main functions will be started and the splash screen is shown as well. My problem is that if the user moves or minimizes the splash screen, the …

Member Avatar for AndreRet
0
248
Member Avatar for drogba123

Hi all, How do i store matching substring and string inside one single arraylist? example: [[er, every, errant]] which saying er substring is inside string every and errant.how should i make the comparison? basically what i did is only make 2 arraylist a1 = new ArrayList(); a2 = new ArrayList(); …

Member Avatar for JamesCherrill
0
285
Member Avatar for Warl30ck

Ok, Hi I need help.I making a project and need to find the end of file line of a file.I researched [CODE]file_get_contents[/CODE] of a certain file and it worked but it did not register anything. And then found [CODE]feof[/CODE] and used this: [CODE]<?php while (!feof($f)){} ?>[/CODE] And it registers the …

Member Avatar for NightLight
0
133
Member Avatar for Naqib

i m a student of BCS final year . i want to developed a games in java . any one have idea about game . plz share with me thank you!

Member Avatar for WolfShield
0
108
Member Avatar for harinath_2007

hai..my name is harinath. i cant find javax.speech package anywhere .. how can i get javax.speech package???????

Member Avatar for WolfShield
0
3K
Member Avatar for TrustyTony

Not my code but I think free to share. This is intended as beginning point of learning classes or learning data structures. Read the document [url]http://mcsp.wartburg.edu/zelle/python/python-first.html[/url] As first exercise, this does not work instead of the while loop in test part: [CODE] for i in numbers: print i [/CODE] [QUOTE] …

Member Avatar for TrustyTony
0
857
Member Avatar for VB 2012

[CODE]myCoolFile = chosefolder.SelectedPath & "\" & NameofUal.Text & ".Ual" Try Dim myCoolWriter As New IO.StreamWriter(myCoolFile, False , [U][I][B][COLOR="Green"]????[/COLOR][/B][/I][/U]) <-<-<- For i As Integer = 0 To Mainfrm.ShellProgramslis.Items.Count - 1 myCoolWriter.WriteLine(Mainfrm.ShellProgramslis.Items(i).ToString & "~" & Mainfrm.myArrayList(i)) Next myCoolWriter.Close() Catch Erroronwrite As Exception End Try[/CODE] [U][B]Ive got some problems how do i say …

Member Avatar for VB 2012
0
113
Member Avatar for kay19

Well, here's my problem. I have to Count from Num1 to Num2 by input from the user. So when I input let say 1 to 5, it will display 1 3 5. If I do 2 to 6, it would display 3 and 5. I can't seem to get the …

Member Avatar for kay19
0
454
Member Avatar for pmark019

I want to make a rating system in vb6 that has stars like here: [url]http://www.imdb.com/title/tt1217613/[/url]. Is there any add-on available for vb6 that will allow me to make this kind of rating system?

Member Avatar for AndreRet
0
429
Member Avatar for AMADH

Hello, I have created a javascript script to select a color for the css theme. I have it working great for picking, but the problem is when I refesh it goes back to the default. I was wondering if somone might know why my cookies are not saving? from html …

Member Avatar for AMADH
0
256
Member Avatar for AODfan

The assignment my instructor has assigned as for to read an input file and count all 3, 4, 5, and 6 letter words and out put those to an output file. From what data I had been provided by my instructor, I think he wants us to use char data …

Member Avatar for Ancient Dragon
0
116
Member Avatar for pitic

Hy. I'm trying to do a select from multiple databases and tables for an occurence. let's say i have databases db1, db2 and db3. Each have the following tables t1, t2, t3. And in each table there is a field named id which i want to select and a field …

Member Avatar for pitic
0
417
Member Avatar for Jaseem Ahmed

i m using sql server 2000 with vb 6. i m having some problem in navigating recors.. when i m pressing Move Next,it moves only one record, and when i m moving Move previous, samely it move one previous record... here is a code... [CODE]Option Explicit Private con As New …

Member Avatar for Jaseem Ahmed
0
2K
Member Avatar for bufospro

Hi all, I am new in shell scripting and I need your help 1. I would like to make a list of files (no folders) of unix system which do not belong to root 2. I would like to make a list with directories of system which the first letter …

Member Avatar for bufospro
0
151
Member Avatar for studentoflife

Hello, I'm trying to write an asp.net app which searches a sql db and returns/updates the data. I want to be able to hold the currently selected id of the item my user has selected. For example a doctors surgery would select a patient record then be able to browse …

Member Avatar for kouroshnik
0
142
Member Avatar for imso

Background information on the apps i'm doing: First off i'm new in java and of course having trouble getting use to eclipse programme, and worse of i'm kinna bad in programming... :( And adding on to the problem i'm given only 11 weeks from now to complete the app... School …

Member Avatar for imso
0
116
Member Avatar for servooo

Hi, i have a problem with getline function in cpp program on os x Error: main.cpp:158: error: 'getline' was not declared in this scope i read that in os x are some issues with getline() function but i am newbie and i dont know what to do. is possible to …

Member Avatar for gerard4143
0
385
Member Avatar for stereomatching

my os : windows xp sp3 compilers : gcc 4.5(minGW) IDE : code blocks 10.05 As the title, when I didn't enable the command [b]-std=c++0x[/b] CImg can work with gcc4.5 and code block(after Build Options > Linker Settings > Link libraries > Add and enter gdi32) Or use this kind …

Member Avatar for stereomatching
0
227
Member Avatar for virendra_sharma

you are given a set of N points e.g ((x1,y1),(x2,y2),(x3,y3)...or (3,6),(2,5),(4,1)..) on a plane . Find the pair of points that are closest to each other. all these given points are on X-axis and on Y-axis according to that you have to calculate the closest points using given co-ordinates. Thanks …

Member Avatar for Momerath
0
113
Member Avatar for Usmaan

Hi there, I'm making a Hangman game and stuck on this part: [CODE]public void Game(string letter) { if(word.Contains(letter)) { int index = word.IndexOf(letter); } }[/CODE] I am testing whether my string variable word contains a letter. If it does, it gets the index. (Yep, I used the IndexOf class) Now …

Member Avatar for Momerath
0
172

The End.