199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Fjolsvidr

I'm looking to learn C++ from online sources. Which would you recommend considering I have no prior programming experience. Also, is it necessary or helpful to learn C beforehand?

Member Avatar for mike_2000_17
1
128
Member Avatar for BillWebber

Hi, I am a beginner who is trying to write a small piece of code which holds down the FN key and presses the F10 key. I think this is called a keypress or keydown. I have a brain injury which causes memory problems and makes it very difficult for …

Member Avatar for BillWebber
1
126
Member Avatar for Dani

When is it appropriate to use InnoDB table types? What about for a forum such as this one with huge post and thread and memberlist tables? I was reading on dev.mysql.com that it is more efficient than MyISAM for large table types? Is this always the case? Would it make …

Member Avatar for devpk
1
1K
Member Avatar for bisiii

Hi, How to make at code that calculator will operate with 3 numbers (Example: 15 - 2 * 5) and that [U]multiplication and division[/U] have precedence over [U]addition and subtraction[/U] ? At that code it operates just with 2 numbers: [CODE] int num1; int num2; string operand; float answer; Console.Write("Please …

Member Avatar for ddanbe
1
2K
Member Avatar for _neo_

I have two codes in C and in Python. They gave me different results. Can anybody explain how they works, why I get different results? Thank you in advance!!! In C: ----------- #include <stdio.h> int main() { int a = 100; printf("%d = %02x\n", a, a); a = ~a; printf("%d …

Member Avatar for _neo_
1
215
Member Avatar for TheInfam0usNZ

Hey, I'm trying to make it so when my program is started, a text box ("log") automatically says: "Placeholder1" *1 sec delay "Placeholder2" *1 sec delay "Placeholder3" I have set the text box to say "Placeholder1" using properties but I am having problems coding the rest. I know this may …

Member Avatar for kvprajapati
1
107
Member Avatar for brynFlew

Hello, I was wondering if it is possible to restrict the values of a text input box to only accept set values such as "XBC1". I am trying to make a form for a scanner so you can scan bar codes and it will auto fill the form out and …

Member Avatar for Airshow
1
232
Member Avatar for ColMatrix

Hello, I would like some help if anyone can. I have researched, research and I just cant do it anymore - I have to ask. Before I do, I know this is probably a simple answer, and your fed up of explainng it but from my research (lots) the example …

Member Avatar for erezschatz
1
285
Member Avatar for ashwin149

thanks a lot I need another code where once I enter a text into a text box i need the data to be transferred to MS access without erasing any data(a new record is to be created)

Member Avatar for AndreRet
1
136
Member Avatar for zachattack05

I am working on a project that stores it's data in serialized files on the hard drive in a custom file format. The server end of the application accepts TCP connections from clients and returns data to the clients based on the query, it's kinda like a light weight, custom …

Member Avatar for mcriscolo
1
251
Member Avatar for imti321

what is wrong here? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php session_start(); $user = $_SESSION ['username']; if ($user) { //user is logged in if ($_POST['submit']) { $oldpassword = md5($_POST['oldpassword']); $newpassword= md5($_POST['newpassword']); $repeatnewpassword = md5($_POST['repeatnewpassword']); //connect db …

Member Avatar for imti321
1
3K
Member Avatar for problematic:)

hi. HAPPY NEW YEAR! :) I'm making a system that uses ms access2003 and vb6. My problem is how to search the database with two field names (namely: Lastname, Firstname) and yet I can still search them one by one. Ex. the Lastname field = "Smith" while the Firstname field …

Member Avatar for ChrisPadgham
1
620
Member Avatar for j111c222

Hi, I have encounter a strange result couldn't figured out. # Str with format "Mon MM HH", try to skip leading space in DD. my $str = "Jan 8 11"; # Jan, 8th 11 o'clock print substr($Str, 0,3) . [B]substr($Str, 4,2)=~s/^\s+// [/B]. substr($Str, 7,2) . "\n"; The result is "Jan11", …

Member Avatar for erezschatz
1
170
Member Avatar for jember

What is the best IDE that I should use to make a program using Ruby Language? And where can I download it for free? I'm self studying. :)

Member Avatar for kvprajapati
1
192
Member Avatar for tcollins412

i have an email form and it wont work. i have made sure the email is correct and is working, but i keep getting the 'or die' error. Please help. here is the code: [CODE]<?php $to = "****@***********.com"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; …

Member Avatar for morteza_ipo
1
178
Member Avatar for KushMishra

Hello To All, Its very very urgent... I want a page in which the daily news should come[B](IN HINDI)[/B] and there are two conditions: 1. On the first page there must be only the headings and a brief introduction about each news[B](ALL IN HINDI)[/B]. 2. Secondly, on clicking on the …

Member Avatar for kvprajapati
1
184
Member Avatar for steven8579

I have two listboxes titled lstResult and lstResult2. lstResult clears with no problem using lstResult.Items.Clear() but when i use that for lstResult2 it dissapears but when i put in another value, the value(s) that i deleted come back. Also how do i fix the total to reflect the changes. Thank …

Member Avatar for ShahanDev
1
2K
Member Avatar for Mike Askew

As the title suggests, i am trying to pull a bitmap image stored in a table location with an OLEObject type to my picture box on the form. The code i am using is as following: [CODE=VB.NET]img_ProductPicture.Image = DS.Tables("LocationInfo").Rows(0).Item(5)[/CODE] The error i am receiving is an InvalidCastException: Unable to cast …

Member Avatar for Mike Askew
1
867
Member Avatar for vegaseat

This little code snippet shows you how you save a wxPython canvas drawing to a standard image file.

1
2K
Member Avatar for Cup of Squirrel

Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks :D

Member Avatar for mslade
1
2K
Member Avatar for aplh_ucsc

[CODE] //myMalloc.c #include<stdio.h> #include<unistd.h> #include<stdlib.h> void *newMalloc(size_t vol); void newFree(void *adPtr); void save(); void search(); void *findSpace(); void freelist(); static int buf[12500]; void *newMalloc(size_t vol){ // some code } void save(){ // some code } void search(){ // some code } void newFree(void *adPtr){ // some code } void *findSpace(){ …

Member Avatar for aplh_ucsc
1
128
Member Avatar for jaycastr

Hey guys im getting back into Java after a break from programming. And i was wondering what is the best integrated development environment for running java.Im sure there is no one Best, but your input would be greatly appreciated.

Member Avatar for Akill10
1
461
Member Avatar for rajesh1158

Here is my problem. I have a site into which users can login. It has a logout button to let the user log out. My problem is when they close the browser without logging out, how can I close the logged in entry in the database?? I need a way …

Member Avatar for diafol
1
1K
Member Avatar for ivan26

Can anyone help me solve this problem? pass by reference/value and file i/o should be used.. Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should contain at …

Member Avatar for floatingDivs
1
241
Member Avatar for steven8579

I have a listbox titled lstResult1 and lstResult2. I am pretty new to C# programming. I am trying to save the two list boxes along with the rest of the file. I was able to save the three textboxes to the file but i cant get the two listboxes to …

Member Avatar for steven8579
1
172
Member Avatar for blur0224

So I'm building a web crawler for a pet project I've been working on. I'm using tutorial code for the crawler then building on it. I've done extensive troubleshooting and haven't had any luck. The problem: [LIST] [*]Roughly half the websites return content, but all of them return headers. [*]Some …

Member Avatar for blur0224
1
312
Member Avatar for seanbp

I read about a coding style where not one variable is changed. Everything must stay constant. I don't remember what it's called, but it's the bomb. I never realized this little project would be [I]so easy[/I]. Here is a 98 line calculator that supports [B]()^*/+-[/B]. If you find a bug, …

Member Avatar for seanbp
1
1K
Member Avatar for Waffles007

I have an idea for a friends list based off a user's account info. 'guid' is the character id number 'account' is the player's account number 'friend' is the player he is friends with 'online' 1 = online; 0= offline Here's what the layout is like: Friends List [CODE] `character_social` …

Member Avatar for Waffles007
1
209
Member Avatar for VanessaRyan

[ATTACH=left]17531[/ATTACH][URL="http://www.5o9inc.com/products/download/"]5o9® EZMobile[/URL], to be released on October 11, 2010 is a new mobile context app for all Web apps that utilize the browser to deliver real-time context (mobile user, device and location data) to the Web server for use in any Web application. This new software enables developers to know …

Member Avatar for mactilden
1
464
Member Avatar for mag12203

Can someone help me figue out why I keep getting an erorr that I am missing a return statement. [CODE] import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " "; String s = " "; char letter; …

Member Avatar for mag12203
1
160
Member Avatar for iroyal

Hey im new around here so if i get something wrong tell me :D I have this code [CODE]$txt = str_replace("#", "<a href=user.php?user=$txt></a>", $txt); [/CODE] I want it to when a user tags someone using # it goes to the user.php?user=WHATEVER#WAS. Its just like twitter is this possible and simple?

Member Avatar for iroyal
1
144
Member Avatar for newbie14

Dear All, I have java listener which keep reading for incoming data to the particular port. Most of the times it works fine only at times it gets too many open files error. Below is my codes what could be wrong? Thank you. [CODE]public static void main(String[] args) { try …

Member Avatar for newbie14
1
4K
Member Avatar for girlinthesun

I'm trying to get my Captcha to work. It works, but if the user does it correctly I want them to go to my thanks.html page, and I'm doing something wrong. Help? [CODE] <? require_once('recaptchalib.php'); $privatekey = "Private Key numbers"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $to = 'myemail@myemail.com'; …

Member Avatar for girlinthesun
1
133
Member Avatar for ge0rge007

Hello all! I am trying to create a server - client bundle that will let me send simple messages with ssl support. I am quite new at java and i can't figure out what my problem is. I am running the server and client programs at 2 computers at the …

Member Avatar for ge0rge007
1
167
Member Avatar for shadowscape

[CODE]// Project: XorLib - Xor Encryption Libary. // Copyright: Copyright © 2009-2010 Shadowscape Studios. All Rights Reserved. // Developer: Shadowscape Studios // Website: http://www.shadowscape.co.uk // Support: support@shadowscape.co.uk // Version: 1.0.0.0 // Release: 151220102240 #define export __declspec (dllexport) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> long filesize(FILE *f) { long …

Member Avatar for shadowscape
1
765
Member Avatar for mahdi68

Hi how can i compare to array in C# ? i use this code but it`s result is false (must be true) ? [CODE]Array.Equals(childe1,grandFatherNode) [/CODE]

Member Avatar for Mitja Bonca
1
3K
Member Avatar for DealthRune
Member Avatar for Colin Mac

Hi, I'm a beginner and just started Turbo C I wrote this program in the editor main() { float years, days; printf ("Please type your age in years:"); scanf ( "%f", &years); days = years * 365; printf ("You are%.1f days old.\n", days); } I then run the program and …

Member Avatar for Shankye
1
284
Member Avatar for alc6379

Hey gang, Looking for some opinions here. I'm working in an ASP.Net MVC2 application. We've built a collection of "domain objects", ie, the data that represents our "real world" problem we're going to solve, and it's also the representation of what will be serialized to the database. Each of these …

Member Avatar for kvprajapati
1
287
Member Avatar for jeffcogswell

Last week, Microsoft released a set of tools for developing software for the new Windows Phone 7 using Visual Basic. In order to use the tools, you have to have Visual Studio 2010 Professional or better (right now the Express versions don't work, although I've heard that will change). But …

Member Avatar for jeffcogswell
1
339
Member Avatar for DarthMustard

Hi, I am writing a simple program modeling client/server interaction. I want the server to be capable of handling multiple connections. To implement this, I have been using _beginthreadex, passing references to sockets to the child thread. For example: [code]while(1) { SOCKET sClient = accept(ListenSocket, NULL, NULL); ... child = …

Member Avatar for thelamb
1
753
Member Avatar for newsguy

For anyone who [URL="http://www.itwire.com/content/view/22077/1168/"]doubted[/URL] that the iPhone was to be [URL="http://www.daniweb.com/blogs/entry4622.html"]taken seriously as a games platform[/URL], and there have been many, the release today of Grand Theft Auto as an iPhone app should seal the deal that the iPhone is the real thing as far as being a games console …

Member Avatar for Appspy
1
362
Member Avatar for Diamonddrake

I am working on an application that lets you play drum sounds using a rockband drum kit. Current version available [URL="http://www.diamonddrake.com/software.aspx?title=RockBand%20Drum-Kit"]here[/URL] I am wanting to add a recording function but all I can think of is loop back recording. That's manageable but in Vista and Windows 7 by default the …

Member Avatar for Diamonddrake
1
197
Member Avatar for Gribouillis

This snippet generates the best rational approximations of a floating point number, using the method of continued fractions (tested with python 2.6 and 3.1).

Member Avatar for Gribouillis
1
1K
Member Avatar for itisnot_me
Member Avatar for itisnot_me
1
177
Member Avatar for DynamicMember

i have this code,and it works.but after running it closes after milliseconds.anywhere i put "getch()" gives error.what to do?[code]#include <iostream> using namespace std; int main() { int i,j,k; for( i = 10; i >= 1; i-- ) { for( j = 1; j < i; j++ ) { cout << …

Member Avatar for profyou
1
113
Member Avatar for lisahoneysmith

Source: [U][url]http://www.lost-password.net/products/passwordrecovery.html[/url][/U] Do you have a outlook e-mail? Microsoft Outlook 2010 offers premium business and personal e-mail management tools to more than 500 million Microsoft Office users worldwide. With the release of Outlook 2010, you get a richer set of experiences to meet your communication needs at work, home, and …

1
245
Member Avatar for bettybarnes

pls check my database design and give comments. i'm a newbie database designer i dont have any experience, i've researched on the net but i think it's not enough. here's my ERD: [IMG]http://i43.photobucket.com/albums/e355/bettybarnes/asas.jpg[/IMG]

Member Avatar for lolafuertes
1
147
Member Avatar for Alexkid

Hi, Simple question but why would someone use #define. Whats the difference between; #define sum 1 and const int sum = 1; both can't be changed and anywhere you sum its going to be 1!. Many thanks Alex

Member Avatar for Alexkid
1
120
Member Avatar for frankchester

Hi, I'm a newbie to programming in general and I'm really struggling with working out how on earth to do this! I am aware of how to open the stream and read the text file using fscanf, however I want to store the text in that file into a string …

Member Avatar for frankchester
1
38K

The End.