199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dreadiscool

Hi everyone! For a 'learning' experience, I'm looking to write my own webserver in C#. I know most people would just write me down and say "Why are you wasting your time, just use a premade webserver!". But that's not the point - the point is to learn. I want …

Member Avatar for dreadiscool
0
2K
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << …

Member Avatar for thecoolman5
0
305
Member Avatar for VIPER5646

Hi all I'm using a dialog form with two bottons and two Radio buttons. I'm oppening this Dialog when a button is clicked on the parent form. My situattion is when the Dialog opens the code in the button event continues to execute, but I only want it to continue …

Member Avatar for VIPER5646
0
168
Member Avatar for scarcella

Hi guys, i have got a client who wants to make an online food guiter / counter. I have got the book Calorie King with 17,000 foods but i don't want to type out the data. Is there someone who has the Australian food in a excel, access or mysql …

Member Avatar for scarcella
0
182
Member Avatar for sirin_adam

Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I …

Member Avatar for sirin_adam
0
843
Member Avatar for Comega

Sorry if this might be a stupid question, I'm still new, I've been doing C++ for 3 days so far and I just reached objects.. Anyway. I made one thing to additionate seconds with seconds, minutes with minutes and hours with hours. The thing compiles but crashes as soon as …

Member Avatar for ChaseRLewis
0
147
Member Avatar for clbembry

I have a mySQL that is continuously being added to and I need to make an AJAX function that checks the database periodically and only returns the results that it hasn't seen before.

Member Avatar for Brillig
0
166
Member Avatar for Cross213

The error I'm getting when debugging (dynamic arrays): Unhandled exception at 0x5bfa782d in Ass4DynamicArrays.exe: 0xC0000005: Access violation writing location 0xabababab.

Member Avatar for Cross213
0
234
Member Avatar for shadowscape

Hello Developers, Is their a [B]c++[/B] alternative to the windows shell 2.0 command "[B]Get-AuthenticodeSignature[/B]", i really need some help making a [B]DLL[/B] that can check if a [B]authenticode[/B] signature exists before attempting to sign a file. Kind Regards, [B]Nathaniel Blackburn[/B]

Member Avatar for shadowscape
0
806
Member Avatar for amanitali2010

hi dear i i have two columns in an access table, first column is of percentage and second is of result . i want that result should be automatically calculated as if the percentage is les than 33 then ruselt fail and if percentage is greater than 33 then result …

Member Avatar for BitBlt
0
94
Member Avatar for Goitseone

with this codes i created rectangle image with a line inside that has to mimic a single clock. Dim MyGraphics As graphics=e.graphics my graphics.Draw Rectangle(pens.colour,x1,X2,y1,Y2):whereby x1=60,x2=70,y1=80,y2=90,and choosen colour my graphics.Draw line(pens.colour,x1,x2,y1,y2):whereby x1=60,x2=70,y1=100,y2=120,and also choosen colour. Now help me with ideas and solution here.the hand or line within the square has …

Member Avatar for BitBlt
0
182
Member Avatar for dadisimo

Hey im new in this forum but really need help with making program on assembly 8086 that will take a string of 4 characters , then check if they are right and after that convert them to binary and decimal, then again hexadecimal, and in the end print something like …

Member Avatar for thines01
0
317
Member Avatar for tr6699

Say you have a set of characters (ex. abcdef). I was wondering how I would go about generating all the possible srings I could make with these letters that are size X (ex. 7). I know this will result in a list that is number of characters in set C …

Member Avatar for Momerath
0
110
Member Avatar for MrAppleseed

'Ello again, I have a question about C++ GUI's, with Code::Blocks as my IDE. Whenever I make a basic GUI with the Win32 API, it always creates a console _and_ the GUI (as shown in the picture attached). I was wondering how to only create the GUI, or at least …

Member Avatar for gusano79
0
1K
Member Avatar for peter_budo

People did any of you come across good tutorials on hash tables??? What I got from schools is useless and teacher is not able to explain properly. Thanx for help

Member Avatar for Siddhartha_90
0
493
Member Avatar for vizz

I am using following code to generate menus [CODE]<?php $menu = array(); $menu['home'] = 'Home'; $menu['mypage'] = 'My Page'; //Add in the format of: $menu['page name'] = 'Page Title'; $title='Home'; //Default title function generateMenu() { global $menu,$default,$title; echo ' <ul>'; $p = isset($_GET['p']) ? $_GET['p'] : $default; foreach ($menu as …

Member Avatar for vizz
0
1K
Member Avatar for king03

I just want to ask, can I use private classes in a console application without putting properties in it ? like this for example: [CODE] class sample1 { static void main() { private int multiply() { Console.WriteLine("hello"); } } }[/CODE]

Member Avatar for Mitja Bonca
0
89
Member Avatar for Majestics
Member Avatar for Ezzaral
0
98
Member Avatar for Niles64

Hi OK, so I am reading on OOP in Python, and I am an old C/C++ programmer so I have somewhat high expectations :). My question is regarding private/public variables. Per default, all class data members are public, but if we precede them with a double underscore, they become private. …

Member Avatar for TrustyTony
0
208
Member Avatar for masterjiraya

you may download [URL="https://skydrive.live.com/embedicon.aspx/.Public/CLC.zip?cid=3e21e1e16478087a&sc=documents"]this[/URL] to see the whole thesis program. I'm more for now on functionality than design interface. this about a problem on the get_value.php to the receipt.php the problem: I can get now the value using session functions but the problem is.... the list of checked items from …

Member Avatar for ko ko
0
319
Member Avatar for johnjacob

I am trying to create a movie review website, the majority of my site is coming together. I do not know how to create a script that will display user reviews on the website. Here is what I have so far for the form, how do I display user reviews …

Member Avatar for johnjacob
0
208
Member Avatar for aditya_amb

Here is my code. I get error: [B]No value given for one or more required parameters.[/B] Dim DBAdd As New OleDbCommand DBAdd.Connection = objConnection DBAdd.Connection.Open() DBAdd.CommandText = "INSERT INTO Table1 (RecordsID,Material,Component,VID,PID,DownloadPriority)VALUES(11,'Materialtexttext','ComponentTexttext','vidint','pidint',prtyint)" DBAdd.ExecuteNonQuery() I tried using update command of OLEDB Data adapters also by adding new row. But still I could …

Member Avatar for Ezzaral
0
114
Member Avatar for coroll

Hi all, i made some modifications to my code which i wrote previoustly. But when i run it, the previous code is executing. i showed a msgbox inside button click.Next day i erased & it wrote a different code. when i click it still the msgbox is being appeared. PLZ …

Member Avatar for nmaillet
0
118
Member Avatar for masocha

l am writing XML to a file. Everything works fine, however if l view the XML source the first line is always indented. Cant seem to figure out the cause. Thankx in advance for the help

Member Avatar for ddymacek
0
90
Member Avatar for king03

What do you call those statements highlighted in red? [CODE] using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program {[COLOR="Red"] static void Main()[/COLOR] { int choice; Console.WriteLine("Please select below"); Console.WriteLine(); Console.WriteLine("1. Area of a Circle"); Console.WriteLine("2. Area of a Rectangle"); Console.WriteLine("3. Area of a Cylinder"); Console.WriteLine(); choice = …

Member Avatar for Momerath
0
152
Member Avatar for Nahiyan

Can anyone check out this script? My ajax code doesn't run and the xmlhttp.status is always 0 though it is always 200 in my other scripts. I am sure there is something wrong with my script. Can anyone help me fix it? I tried to debug it for hours but …

Member Avatar for ddymacek
0
196
Member Avatar for ptemedia

Hi, I have made an image gallery which all in all is working fine. However, there is the option of to play through the images using setInterval to change the image every 8 seconds. After all images have been preloaded, this works fine. In its current set up however, the …

0
129
Member Avatar for AmieCutie

So I have a client that is interested in something like this, well to be more specific... A login area of a website, it could be it's own application/page, doesn't necessarily have to be integrated into the website. A person can login or register. The admin can add content to …

Member Avatar for ddymacek
0
164
Member Avatar for secretply

So I have 2 picture boxes, a textbox, and a button. One of the picture boxes adds another row with the same controls but moved down when clicked and the other picture box (should) remove the same row that it was clicked on. I have PictureBoxAdd1, PictureBoxRemove1, TextBox1, and Button1 …

Member Avatar for codeorder
0
170
Member Avatar for anandhikrishnan

Hi, Am new to javascript, i have two fields 1. Start time ( hh:mm:ss Am/Pm ) 2. End time (hh:mm:ss Am/Pm) i want to validate it. Start time should be always greater than end time. Eg: start time : 10:00:00 Am end time : 09:00:00 Am It should alert the …

Member Avatar for anandhikrishnan
0
11K
Member Avatar for klenne

Hi, I'm trying to check the login. The values of id and pw are send from a textbox and the values of userid and password are from a mysql database. I try to compare them and if they are equal i want to return true and else return false. But …

Member Avatar for klenne
0
274
Member Avatar for lupacarjie

Hello, I'm a huge c++ beginner and i was given a task to write a program that will accept continuous inputting of binary, decimal, octal and hexadecimal numbers. The program will only terminate if the user inputs an invalid value and it would display the total number of binary, decimal, …

Member Avatar for Duoas
0
157
Member Avatar for munna_001

hi i have to search based on opening and closing times of shops. e.g. opening time of one is from 9 am to 11 pm another can be 5 am to nextday 2 am. e.g of sample data below [CODE] ShopID open time close time shop1 10am 11pm shop2 6am …

Member Avatar for munna_001
0
160
Member Avatar for mrjimoy_05

Hi, why it's always got the error message said that "NullReferenceException Unhandled" ? Here is my code: [CODE] public partial class MainPage : PhoneApplicationPage { private FlashCard _flashCard; // Constructor public MainPage() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // This could go under somewhere like a …

Member Avatar for Momerath
0
126
Member Avatar for shers
Member Avatar for shers
0
61
Member Avatar for Tiancailee

Hi i am having problems with my assignment. i am supposed to make a 2d top down view game and i started on doing the main menu. i tried at making a main menu and it worked. after that i changed the codes and put them into classes and this …

Member Avatar for daviddoria
0
253
Member Avatar for king03

Hi guys I encounter an error everytime I run my recursion program which contains a messagebox. Here is the error: The name 'MessageBox' does not exist in the current context and here is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication10 { class Program { static …

Member Avatar for Momerath
0
158
Member Avatar for Macko888

Hey Peeps! been doing a bit of jquery latley and decided to implement some into my live site, now i know this is probably the most basic thing that i am missing, but i need some sort of stop() in my code, thing is, im not too sure where to …

Member Avatar for Macko888
0
121
Member Avatar for jenny666

Hello, im writing a C program that needs to get a value from my database and put it into a temporary table. so far i can get the value from the database and insert it into my temp table. if i fill in the right value in the where clause …

Member Avatar for jenny666
0
107
Member Avatar for ginnipig

Hello all, I have a DataGridView that is being populated via SQL with one table and is being filtered by Stock Code. I need to sort the view of one Stock Code by Nutrient names, but the sequence number is in anther SQL table. it would be easy if i …

Member Avatar for ginnipig
0
133
Member Avatar for alfredo11

I am having a problem that dtAsia.rows.count>0 doesn't count at all. All I want to do is tell the user that their username already exists in the game but I'm having a bad time now because for example: I entered a valid username and its success... I entered an invalid …

Member Avatar for Netcode
0
202
Member Avatar for r.cromwell

This one is confusing me, is it if else statement or case?... :?: The month to be used will be July and the month starts Monday. I need to make a program that will ask a user to input a number (1-31) and out put the day of the week …

Member Avatar for r.cromwell
0
141
Member Avatar for ppohlmann

Hello Gurus, I have a table that holds one date field and one time field. The formats are 2011-12-01 and the time field format is 22:55:01 I want to compare a string "2011-12-01 22:58:00" to the date and time field of the table, without having to take the string apart. …

Member Avatar for ppohlmann
0
204
Member Avatar for thecoolman5

hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions?

Member Avatar for thecoolman5
0
345
Member Avatar for mikred11

[2011-08-03 13:32:48 - InfoProductApp] ------------------------------ [2011-08-03 13:32:48 - InfoProductApp] Android Launch! [2011-08-03 13:32:48 - InfoProductApp] adb is running normally. [2011-08-03 13:32:48 - InfoProductApp] Performing com.ipp.InfoProductApp activity launch [2011-08-03 13:32:48 - InfoProductApp] Automatic Target Mode: launching new emulator with compatible AVD 'Android_1.5' [2011-08-03 13:32:48 - InfoProductApp] Launching a new emulator with …

Member Avatar for kvprajapati
0
133
Member Avatar for wrathyimp

Hi, I have a sql view below: [CODE] SELECT b.Stk AS secode, b.TktE AS Ticket, CAST(a.Last / 10 AS integer(10, 3)) AS Last, CASE WHEN CONVERT(integer, a.Last) <> 0 THEN (CONVERT(integer, a.Last) - CONVERT(integer, a.Ref)) / 10 ELSE (CONVERT(integer, a.Ref) - CONVERT(integer, a.Prev)) / 10 END AS Change, CAST(a.High / …

Member Avatar for pritaeas
0
176
Member Avatar for mr guru

after designing a member area in my page i was now locked with this problem. i want each member, have his own data(like his own profile,his own messages etc) presented to him any time he is logged in. pls i will be very grateful if some one can help me

Member Avatar for ivan3510
0
91
Member Avatar for whitefly

Is it possible to select a block vertically (rather than the usual horizontal) and delete or add multiple lines in columns in one go from within RAD studio's (Delphi's) IDE? I'm getting frustrated with Delphi's poor documentation. Am I alone with this?

Member Avatar for Duoas
0
579
Member Avatar for sam230

i m using google map version 3. i want to customized the map type control show top-right corner.. i want to show all the type (map,statellite,terrain,earth) in one horizontal line (like its shown in V2). kindly guide me little.. thanks

Member Avatar for sam230
0
140
Member Avatar for logicmonster

Is it even possible to create a singly linked list using a function outside of main and then access it once you leave the function? pseudo: [CODE]#include //whatever needs to be included function{ \\create and link lists in this function } main{ funtion()//call function to create lists and link properly …

Member Avatar for Narue
0
1K

The End.