199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Papa_Don

Hi group, Within one form, I need to run a routine twice. Obviously, I can write the code twice in the two places it needs to run. Isn't there a way to write the routine one time and the call it in two places within the form? Would this be …

Member Avatar for tinstaafl
0
286
Member Avatar for owenransen

Writing an upgrade to my program I'd like to start using the nullptr, a cleaner replacement to NULL. My question is can I use it everywhere, for example in checking the strstr return value? if (strstr(szLong,"tag") == nullptr) Presumably will work as well as if (strstr(szLong,"tag") == NULL) ?

Member Avatar for Tumlee
0
700
Member Avatar for GeoEqual

here is my table in database: name qty unitcost totalcost A 1 10 10 A 3 10 30 B 2 20 40 B 1 20 20 here is what i want to view to user: name qty unitcost totalcost A 4 10 40 B 3 20 60

Member Avatar for GeoEqual
0
124
Member Avatar for Xecantur

So I wrote a small little tic tac toe game, it works without fail, now I'm just looking at ways to shorten this if/else conglomerate I've created, but so far haven't thought of a way to do so, I thought about using a switch but thought it would be about …

Member Avatar for Xecantur
0
175
Member Avatar for firelife12

Hey, I have been trying to create a chat with php, I keep ending up with a lot of problems, such as no refreshing, not allowing users to post. Can someone please help me create a chat? thanks!

Member Avatar for masterjiraya
0
225
Member Avatar for natehome

Hello I'm working on a music streaming website that uses groovesharks api to get stream urls. I made a javascript function that loads the stream url when a user clicks on it but it wont stream the url. I know it can stream it because i've manually put the url …

Member Avatar for LastMitch
0
337
Member Avatar for Echo89

So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting …

Member Avatar for GunnerInc
0
248
Member Avatar for andika.kurniawan.121
Member Avatar for otengkwaku
Member Avatar for Goshutu

Hi, I have a problem with my project, regarging deletion of an element in an asp:ListView, which is connected to a SQL database using ODBC. I have succeeded adding and updating a row, but deleting does not work. When I try to delete nothing happens. I think the problem is …

Member Avatar for LastMitch
0
254
Member Avatar for thebhatt

I am developing a social networking site.. and implementing chat function. it worked perfectly when tested outside, but when i integrated with my site page, it causes a css class disable. i am putting Code: <script src="jquery.js"> </script> link at end of page, b4 < /body tag. following is the …

Member Avatar for masterjiraya
0
164
Member Avatar for Nomorewine

Hello everyone. I'm trying to do simple app that has a listview, listview is populated with info from json file. 20 items downloaded at a time. And when user is scrolling to the bottom next 20 items are loaded. Problem is when my app loads next 20 items the scrollbar …

Member Avatar for Nomorewine
0
141
Member Avatar for Terminator1337

Hi there, I'm encountering an error when I'm trying to make a EntityManager for an Entity class. My problem arises when I'm trying to return the second value of a map (data). Here's my code: EntityManager.hpp: #include <iostream> #include <SFML/Graphics.hpp> #include <map> #include <memory> #include "CEntity.hpp" class CEntityManager { public: …

Member Avatar for Terminator1337
0
192
Member Avatar for GordonUK

Hi everyone, I am developing a website where users can download songs from a particular page and just wanted to know if anyone knew any existing scripts that could be used for the downloading songs feature on this page? Many thanks, Gordon

Member Avatar for masterjiraya
0
115
Member Avatar for kyriacos1986

In a local database: I have a field content in a table where I store numbers and symbols in the following format {1,2,1,3,1,4,1,1,1} ∪ {1,2,198,776,455,666} When I ran the query in my php code SELECT * FROM table and echo it in the web browser only {1 is displayed I …

Member Avatar for masterjiraya
0
186
Member Avatar for singularity~

I have declared a local variable inside of getAddress. When I try to access that variable inside a local function it falls outside its scope. What am I doing wrong? function getAddress(latlon, map) { var data = ""; $("#map-canvas").gmap3({ marker: { latLng: latlon, options:{ draggable:false, }, }, getaddress:{ latLng: latlon, …

Member Avatar for singularity~
0
278
Member Avatar for tdee

You will create a program that determines the language of a given input file based on the words in that file. The structure of the input files will be one word per line (all lowercase letters). You should read these words in one LETTER at a time. Each input file …

Member Avatar for tinstaafl
0
185
Member Avatar for dusto

I'm getting an error for using a variable before it's assigned a value, but, I'm not sure why. Imports System.IO Public Class Form1 Dim colWeather As New Collection Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Add listbox items upon form load. With lstAltitudes.Items .Add("03000") .Add("06000") …

Member Avatar for tinstaafl
0
177
Member Avatar for Griff0527

Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once …

Member Avatar for Griff0527
0
534
Member Avatar for asim.poptani

**I am Proggraming in python however i have come to a slight glich which i cannot solve! The issue is that when it prints out in a text files it only prints one line of the whole ouput! Otherwise it works! Please i need help to make this work! ** …

Member Avatar for woooee
0
271
Member Avatar for yap.junjie.7

Help me look at the codes below. It has T_IF error and T_WHILE error. The errors are on line 7 and line 18. I hope anyone can teach me to repair it and the code function is still same. <?php require_once("db.php"); session_start() if (!isset($_SESSION['cart'])) { <---T_IF error $_SESSION['cart'] = array(); …

Member Avatar for TonyG_cyprus
0
396
Member Avatar for FreePuppy

I am working on a website and completely stuck on a paginator/editor... works perfect outside my framework... anyways... I decided to use Iframes I need to pass a var from main page to an iframe region on same page. When user is logged into wordpress: global $current_user; get_currentuserinfo(); I need …

Member Avatar for LastMitch
0
3K
Member Avatar for samith.dilhara

how to keep same tab highlighting after refreshing the page(page is refreshed after the paging link clicked.) <script type="text/javascript"> /**this is for tab highliting*/ $(document).ready(function(){ var str=location.href.toLowerCase(); $(".navigation li a").each(function() { if (str.indexOf(this.href.toLowerCase()) > -1 ) { $("li.highlight").removeClass("highlight"); $(this).parent().addClass("highlight"); } }); }) /**this is for paging highliting*/ $(document).ready(function(){ var str=location.href.toLowerCase(); …

Member Avatar for LastMitch
0
138
Member Avatar for Amit_15

I have created a elevator functionality [there are 2 floors and corresponding to each one , there is a checkbox. Depending upon which checkbox is checked, the elevator shud move to that floor. Couple of things which i'm not sure how to implement are: wherever i have added class "unchecked" …

Member Avatar for Amit_15
0
230
Member Avatar for Rizi004

Hello everone, I have a webpage that have a form in iframe now the form submit in iframe and check from database and if found the username and password it start session and when i go to another page the session is lost, now how i can maintain session in …

Member Avatar for LastMitch
0
1K
Member Avatar for fheppell

I need to make a forgotten password system, which works like this * User puts email in * Email sent to user with a link * Link goes to a one time page which allows the user to change their password I understand about php mail() but haven't got the …

Member Avatar for Squidge
0
195
Member Avatar for freelancelote

Hi, just wondering... is there a site offering some sort of c++ programming mentoring? Something like: make this programme... how would you do it? and then people writing code for it. Would that be a feature for DANIWEB?

Member Avatar for Lynqu2
0
147
Member Avatar for iPwn.Line

hi as you may notice i am new here so hi nice to meet you:).. uhhhmmm please help me on a project i'm working on about insertion using linked list my problem is on line 19-20 I can't seem to make it work,, when you type 9 7 6 4 …

Member Avatar for Griff0527
0
282
Member Avatar for treasure2387

Why can't I implement the static function (static void fction(Stuff S)) inside of Main If I cut and paste the function outside of main, the program compiles and works fine. When the program runs I get the output: "Monkey1: chocolate" using System; using System.Collections.Generic; namespace Empty { public class Stuff …

Member Avatar for ddanbe
0
177
Member Avatar for debasishgang7

Hi, I am trying to write a python func. which can replace nth occurance of any substring present in any string. For example: main_string = "badZZZZZZZZZZZZZZZZZZbadZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ" If I wanna replace the 2nd occurance of string "bad" with 'good' i will pass customreplace(main_string,'bad','good',2) So the Function should return badZZZZZZZZZZZZZZZZZZgoodZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ I have …

Member Avatar for bumsfeld
0
6K
Member Avatar for Catchamouse

I have a h file with this code: #include <windows.h> #include <iostream> struct Color { int color; Color(int color_): color(color_) {} Color operator + (const Color & other) const { return Color(this->color | other.color); } }; #define FORE_LIGHT(color) const Color cfl##color##_ = FOREGROUND_##color | FOREGROUND_INTENSITY; #define BACK_LIGHT(color) const Color cbl##color##_ …

Member Avatar for Ancient Dragon
0
206
Member Avatar for <M/>

I am creating a blog and i am what are some things i must know and should look at so i can create my blog. I am trying to create my blog without using anything like Drupal, Wordpress, Joomla, etc. I am creating EVERYTHING. So, what are some sites, books, …

Member Avatar for pritaeas
0
158
Member Avatar for NoMansLand_MFGC

Hello Daniweb, I hae built a time/date counter for a private ticketing/support system, but I have run into a bug. After submitting a ticket it's fine, the counter starts counting, Perfect. Update the ticket to Closed/Answered/Anything else that changes the Status of the ticket, it "resets" the counter. It pulls …

Member Avatar for diafol
0
297
Member Avatar for yudi2020

m not able to add .dll file as refernce in c#.net as it is developed by me only..it says error "please make sure that the file is a valid assembly or com component". plz help me tu du d need ful...plz plz plz..its urgent

Member Avatar for tinstaafl
0
138
Member Avatar for IT_Techno

hi i have write this code for upload pdf to Sql DB : private void uploadPDFFiles() { string filetype; string filename; filename = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1)); filetype = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1)); MessageBox.Show(filename + " " + filetype); //Validate user upload …

Member Avatar for IT_Techno
0
4K
Member Avatar for joramkaku

'I am working on a dictionary project for word meaning search which is written in VB10.net . it contain around 8,000 pairs of word and meaning. 'When i run, it loads perfectly but when i click on the search button it start "Not responding" for around 30 seconds. Then it …

Member Avatar for tinstaafl
0
326
Member Avatar for korathualex

How to check an item already entered in a listview if i am entering data from a combo box from both tables for an id as value member...I mean there is both software id and asset id that can be added mixed in the listview based on the group....

Member Avatar for tinstaafl
0
239
Member Avatar for kw42chan

Hi, I have some questions about type check warning. I am reading the tutorial notes from [Click Here](www.clear.rice.edu/comp221/html/pdf/03-arrays-pointers.pdf) CASE 1 int int1 = 1036; /* some data to point to */ int int2 = 8; int *int_ptr1 = &int1; /* get addresses of data */ int *int_ptr2 = &int2; *int_ptr1 …

Member Avatar for owenransen
0
194
Member Avatar for treasure2387

Hi, There is a concept I haven't seen before. I can understand what is happening. But I don't know what this is. It is not a class. It is not a method. What is it? Maybe I know it, but i've been on my PC all day... public DateTime Date …

Member Avatar for ddanbe
0
127
Member Avatar for Khav

Hi I have 3 textbox linked to an Access DB by Binding source.I am having trouble to do query. Lets me help u visualise the form The form has 3 textbox (each linked to one field of a table in Access) Another textbox allows user to enter a string and …

Member Avatar for ansumariyam88
0
1K
Member Avatar for Pluribus

Hi everyone I was wondering if it was possible to update two tables in an access database with the same data input from a single form without doing anything to the actual database itself ie linking tables etc? I have asked this in other forums but have been shouted down …

Member Avatar for Pluribus
0
483
Member Avatar for sumeshpremraj

I'm learning PHP and MySQL, and I'm trying to create a simple online pastebin website. I want to create both anonymous and logged in user pastes. I created a 'user' table with uid, name and password columns, and a 'pastes' table with pid, paste and uid columns. In a viewpaste.php …

Member Avatar for sumeshpremraj
0
214
Member Avatar for iEpic

Been at this for hours and cannot figure out how to get this the way I want. I need it to center the text in the console output like this... ******************************************* ABC Industries Report ******************************************* instead its coming out like this.. ********************************** ABC Industries Report ********************************** Here is what I …

Member Avatar for tinstaafl
0
141
Member Avatar for shehnaz1991

<html> <title> </title> <body bgcolor="99ccff"> <TABLE BORDER="1" cellpadding="0" CELLSPACING="0" align="center"> <TR> <TD WIDTH="900" HEIGHT="87" BACKGROUND="title.jpg" VALIGN="middle"> <FONT SIZE="+1" COLOR="orange" align="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Online Examination Results System</b></FONT></TD> </TR> </TABLE> <TABLE BORDER="0" cellpadding="0" CELLSPACING="0" align="center"> <TR> <TD WIDTH="180" HEIGHT="40" BACKGROUND="but1.jpg" VALIGN="bottom"> <FONT SIZE="+1" COLOR="yellow"><a href="ind.html" style="color: rgb(255,255,0)">Home</a></FONT></TD> <TD WIDTH="180" HEIGHT="40" BACKGROUND="but2.jpg" VALIGN="bottom"> <FONT SIZE="+1" COLOR="yellow"><a …

Member Avatar for LastMitch
0
215
Member Avatar for JE821

I'm not sure if I'm freeing the memory correctly. I have the following struct and I'm trying to free the pointer in it. typedef struct RECORD { char* name; int score; }RECORD; In my main function I have an array of this struct, therefore I'm using a loop to free …

Member Avatar for JE821
0
294
Member Avatar for joshl_1995

Hello Community, I was making a commenting system for my website and i was wondering if it would be a good or bad idea if i just let anyone comment by anyone i mean non members or should i make it so only members can comment?

Member Avatar for joshl_1995
0
276
Member Avatar for savedlema

With VB.NET, I'm developing an application that uses a MYSQL database. When I will deploy the application to another PC, the app and the MYSQL database will reside in difference computers. What I'd like: After I install the app to a PC, when it first run, I want it to …

Member Avatar for Reverend Jim
0
351
Member Avatar for nmakes

I have a **digital photo viewer keychain** by some company called **INNOVAGE**. I searched about it online but I can't find its webpage anywhere. The CD which came with it is empty and the device does nothing other than showing **"updating"** while connected to the PC. It doesn't even start …

Member Avatar for nmakes
0
556
Member Avatar for grgrl

hi im a noob in vb and i need some help i want to read from the files teachers code and from the file studentscourse bu i only want to get the results if fileds(1) of teacherscourse is equal to the loggin basicly i a teacher to enter his Teacher …

Member Avatar for Reverend Jim
0
190
Member Avatar for milkman93

Hey everyone, Im having trouble with the placement of GUI components and need you help getting the things in the right place. The problem is on the left side where the elements are all misplaced including: The JMenuBar - should be up against the left wall JLabel "content for..." - …

Member Avatar for milkman93
0
197

The End.