199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gexecuter

So i am trying making a simple calculator in pascal but i am having trouble adding fractions. Like for example i am trying to add 1.5 and 1 so the result should be 2.5 but the output i get is something like 2.5000000e+00 something like that. How can i change …

Member Avatar for gexecuter
0
107
Member Avatar for death_oclock

I am using DirectDraw to make a game and I am running it in 8-bit color mode. What I am having a problem with is making a macro to convert RGB values into a single 8-bit color. Here is the macro: [CODE=c++] #define RGB_8BIT(r, g, b) ((r & 224) + …

Member Avatar for chaosprime
0
159
Member Avatar for veledrom

Hi, I have "Balance" table that is shown below. Table :Balance todaysDate/openBalance/closeBalance ------------ --------------- -------------- 2008-07-24 250000 100000 Above record will be inserted into next row as it is at 10:00pm. How do i do this? Thanks

Member Avatar for chaosprime
0
124
Member Avatar for cam875

I would eventually like to get into writing my own very simple command line OS but I am looking for maybe somewhere to start. I know C++ but I am not an expert at it and I was wondering if someone could point me in the right direction to getting …

Member Avatar for cam875
0
98
Member Avatar for kevin wood

have had to move some file across from one server to another and i am now getting access denied for user. it also says it could not connect to the server. i have changed the site path so it is now the address where the files have benn moved across …

Member Avatar for chaosprime
0
154
Member Avatar for scholzr

I am trying to find a way to calculate a running total of a field in my database, and while I have found a lot of good solutions, such as [URL="http://www.daniweb.com/forums/thread127644.html"]http://www.daniweb.com/forums/thread127644.html[/URL], they all require that I have a column which is ordered in the way that I want it to …

Member Avatar for chaosprime
0
316
Member Avatar for Momar

Hello all, First post here, I'll try to make it understandable heh. I have a question concerning object creation. Let's say I have a class called Node and I want to create an object called myNode. What's the difference between: [code=c++] Node * myNode = new Node(); Node myNode; // …

Member Avatar for CoolGamer48
0
152
Member Avatar for rich_m

I am stuck between deciding between MySql and Oracle, The reason being, I want to know how long it will take for MySql to reash the level of the current Oracle, if its gonna take more than a year....I guess Oracle is worth the money else not. Any views on …

Member Avatar for buddylee17
0
189
Member Avatar for ebiemami

I want to make a simple application which its databse is on another PC in my LAN,What do I need to do to make such connection? I can make connections on the local PC.What do need to do to make a remote one? I want the exact syntax of the …

Member Avatar for nvmobius
0
187
Member Avatar for jbooth952

My script works successfully when I validate a form field using; <input type="submit" onClick="return chkrange(this.form)" But, when I remove the onclick from the input type and try to use onSubmit="return chkrange(this.form)" within the <form> tag it doesn't work Why not?

Member Avatar for chaosprime
0
313
Member Avatar for kux

I've been searching for a memory leak detection tool for windows, something similar to valgrind under Linux, but all tools that i find cost, or just have free trials. Does anyone know a FREE memory leak detection tool for windows ?

Member Avatar for Kob0724
0
186
Member Avatar for HLA91

Hi All Im working on an exercise from a book im learning java with. It is a console app, i have to make a menu 1-4 and then evaluate what number the user entered, carry out the command and then return to the menu. My problem is that i tried …

Member Avatar for HLA91
0
155
Member Avatar for kneel

"Do you agree or disagree with the following statement: "since we deliver multiple increments to the customer, why should we be concerned about the quality in the early increments ---we can fix problems in later iterations "?

Member Avatar for chaosprime
0
154
Member Avatar for Equa

Hi! I'm new to this forum and the people here seem very knowledgeable. I was wondering what the best way to go about making a RPG was. I'm new to programming, and I'd like to focus heavily on graphics, such as ones in Mabinogi of FlyFF (3D games). Are there …

Member Avatar for chaosprime
0
94
Member Avatar for w0h0m

For a challenge, we have to code a script that can pull information from a web page and then use it to automate an action on that site. What I've chosen to try and do is code an IPB Forum Advertiser. The process is easy, but I can't seem to …

Member Avatar for Major Major
0
152
Member Avatar for FTProtocol

[CODE=cpp] #include <windows.h> #include <iostream> #include "resource.h" #include "Main.h" HWND hWnd, hwScreen; CCalc szCalc; LRESULT CALLBACK MainDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam ); int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { DialogBox( hInstance, MAKEINTRESOURCE(IDD_MAIN), hWnd, (DLGPROC)MainDlgProc ); return 0; } LRESULT CALLBACK …

Member Avatar for FTProtocol
0
98
Member Avatar for kinger29

I was reviewing some material over pointers in a book called [U]C++ Primer[/U] [I]4th Edition[/I] and it said there were four possible values that you can set to a pointer. [LIST=1] [*]A constant expression with a value of 0 [*]An address of an object of an appropriate type [*]The address …

Member Avatar for Salem
0
310
Member Avatar for lydia21

hi i am very new to ajax .when a user post comment i want to diaplay immediately ie something like dani web quick reply please tell how do tat in ajax

Member Avatar for adnanahsan
0
120
Member Avatar for rajeshkhanna_in

Hi all Is it possible to trap the ESC key during the execution of an mdi form? I want the esc key to be trapped and when it is pressed I want the current form to be unloaded. Is it possible? Any help will be appreciated. Rajesh Khanna

Member Avatar for Teropod
0
115
Member Avatar for chanda gul

how do we read the memory at a particular address of a particular device. for example if i have floppy and usb plugged into my system and i want to read the information present at a particular address in usb then how i will do this???

Member Avatar for chanda gul
0
372
Member Avatar for zead

hi all, I want to do and (&) operator betwneen 2 string, 2 number, 2binary and there is an error displayed when i do that, the error is: operator & cannot be applied to operands of type string and string (binary and binary), (integer and integer), How I can Solve …

Member Avatar for nvmobius
0
68
Member Avatar for Paua

Help me please; I want to create and insert a simple (manual) dropdownlist in gridview (visual studio 2008 +sql server 2005), ddl to read 1,2,3,4,5 etc. new to asp.net and nothing I've looked at makes sense so far. ps, not to sharp with c# either. if more detail required please …

Member Avatar for memafiaso
0
754
Member Avatar for masterjiraya

can someone convert this c++ code to C# code... I'm very new to C# pls help the main.cpp [code=cplusplus]// Main Program // #include "square.h" // Derived Class square int main() { //******************************************************************************* cout << "\t\t\t+y"; cout << "\n\t\t\t +"; cout << "\n\t\t\t +" << "\tpoint a" << "\t\t\t\tpoint b"; cout …

Member Avatar for nvmobius
0
286
Member Avatar for findlay

Hi all, I have encountered a peculiar problem when performing some simple arithmetic in a program I am developing. As the function of the program is pretty specific to my field I have included a smaller program which illustrates the same problem without the technicalities. Given a function (in the …

Member Avatar for Salem
0
149
Member Avatar for cam875

If you were creating a graphic design drawing program for creating small images like 32x32 pixels but the windows was like 600x400. How would you create it so it could have more of a zoomed in vision of the 32x32 image so you could draw on it pixel by pixel …

Member Avatar for Salem
0
152
Member Avatar for TheBeast32

Hi, I'm reading Programming Windows Fifth Edition by Charles Petzold. In the part I'm reading, it talks about GDI functions. I'm trying to get the pixels that are 1 to 100 + the mouse x coordinate and the y coorinate, then draw them on my window. It's hard to explain. …

Member Avatar for TheBeast32
0
144
Member Avatar for William Hemsworth

Hi everyone. Here is a program I made which will find patterns in a list of primes. It does this by finding the difference between each prime and adding them to a vector like this: [CODE] Primes: 2 3 5 7 11 13 ^ ^ ^ ^ ^ Difference: 1 …

Member Avatar for Prabakar
0
160
Member Avatar for Manutebecker

Just wanted to know, I'm just doing a little dice rolling thing thats storing dice values according to how many times they come up every so often, just wondering if instead of making 50 lines of code doing if(sum==1) { ones+=1; } else if(sum==2) {... and so on, I'm thinking …

Member Avatar for VernonDozier
0
112
Member Avatar for nish88

have anyone ever creates navigation buttons such as next,previous in coldfusion? can i see ours if you have created one?

Member Avatar for cmhampton
0
294
Member Avatar for witternb

Hello, I am trying to retrieve data from my MS Access table but keep getting a "Syntax Error on the FROM statement" error. I was hoping someone could lead me in the correct direction in resolving this error. Particulars of the VB program: I am trying to create a "Control …

Member Avatar for cutepinkbunnies
0
148
Member Avatar for vipinsgangwar

i have to use like keyword in my query in ASP while using it in analyzer i am getting the result but when i am using it on page i m not getting the result of a simple. Qery is : select checktime from checkinout where checktime like '*"&any_dt&"*' any_dt …

Member Avatar for hmponline
0
111
Member Avatar for Nemoticchigga

I am running a thread that does something, then sleeps for a while. If the program closes it continues to sleep to completion. How do I get it to abort immediatly, even if in the middle of sleeping? [CODE]void commThread::ThreadEntryPoint1() { while(1) { //do work Sleep(15000); //15 second sleep } …

Member Avatar for Tilir
0
109
Member Avatar for sidatra79

Hallo everybody. I am a student trying to extend my knowledge in cPP while using UML and system modelling. I created a "vector template class" using the rhapsody system modeling tool for storing different data types. I used the template to store int and float data types successfully using either …

Member Avatar for sidatra79
0
211
Member Avatar for cam875

how are graphic's API's created such as DirectX and OpenGL. And is using GDI which is the graphic portion of the winapi, a graphic API itself? or are you able to create your own with C++ for 2D rendering instead of using anyone elses. Or does writing an API involve …

Member Avatar for Tigran
0
103
Member Avatar for senthil_sivanat

I want to send an SMS from my server i.e from my webpage. I need to know do i need any device related to this or can it be done with programming. Is SMPP is a protocol like SMTP or SMPP is a hardware. please reply me quickly.

Member Avatar for stephen84s
0
734
Member Avatar for kavithabhaskar

I need to choose a value from a combo box and check if that exists in a table and if it does..i need to make a button glow green.. I am not sure how I have to check if the chosen value exists in that table.. can you please help …

0
130
Member Avatar for kavithabhaskar

the code worked perfect on Friday and when I come back today and try.. the RAM alone works fine in the T-SQL but the Mfg, Make, GraphicsCard and GraphicsVersion do not work atall.. they dont give me any queries atall in the data grid view o/p.. why am i stuck …

Member Avatar for kavithabhaskar
0
95
Member Avatar for john_bboy7

I am getting an attribute error...Group not found on cookie = m.group(1) Can any one fix my code here? [CODE]#!usr/bin/python import re import urllib import urllib2 def MassVote(first_number, last_number, email1, email3, password, community_id, join = False, unjoin = False): def curl(url, cookie = None, get_header = False, fields = None): …

Member Avatar for john_bboy7
0
187
Member Avatar for 4raghava

I use Win XP+IIS 6.0.I have deployed a web site in my local IIS and when tried to access it from another system in my network it is throwing 'Page cannot be displayed' error.I have given read and execute permissions to that remote login credentials. Please help..

Member Avatar for 4raghava
0
91
Member Avatar for me_roy

my problem is quiet similar, i used atof here my data and code: "square10.dat" 0.01 1:0.1 0.04 1:0.2 0.09 1:0.3 0.16 1:0.4 0.25 1:0.5 0.36 1:0.6 0.49 1:0.7 0.64 1:0.8 0.81 1:0.9 1.00 1:1.0 THE CODE: [code=c] #include <stdio.h> int main() { char c[10]; /* declare a char array */ …

Member Avatar for Major Major
0
119
Member Avatar for DonGlover

I am trying to use ajax to 'embed' a youtube video on page. I make my calls and put the responseText to the innerHTML. But the embed object does not appear. I have verified that I can write to the div tag by ID (I pumped some straight text into …

Member Avatar for DonGlover
0
74
Member Avatar for JackDurden

When I run this program I can only access the first row of data. Can any one help so that I can access all the lines? I am trying to store numbers into a 2-dimensional array. [icode]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () …

Member Avatar for joshmo
0
304
Member Avatar for ymf

Hi I have a simple code snippet here that writes to a file called Student.txt : [CODE="java"] import java.io.*; import java.util.*; public class Streams { public static void main(String[] args) { String studentFirstName = "Bob "; String studentLastName = " Smith "; String finalGrade = "A"; try { PrintWriter out …

Member Avatar for ymf
0
123
Member Avatar for Shanti C

I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance...

Member Avatar for Shanti C
0
89
Member Avatar for robertmacedonia

Hi, I would like to ask you for help in converting this code from C to C++. It's my little friend 's homework, but I can't help him 'cause I know nothing about C :( In fact, I just can't figure the "scanf" part out, I think the other part …

Member Avatar for Tilir
0
177
Member Avatar for QuantNeeds

Hello, I need help to try and figure out why one of my functions does not write to the file. I have 4 functions (below) and all of them write to the file except the updateRecord function. I know this is the case because I keep checking the .dat file …

Member Avatar for Agni
0
160
Member Avatar for abhi_tec

I have a query. Say in a notepad( D:\SQL.txt) I have 100 commands written in it UPDATE sal SET sal= sal+3000 select * from .................. insert into table tab_name values(........) insert into table tab_name values(........) insert into table tab_name values(........) .........so on Is there any SQL query like that if …

Member Avatar for Shanti C
0
116
Member Avatar for jubleebow

Can some one tell me how to plot a contour map of the height of the earth surface?

Member Avatar for rajkhatri1985
0
127
Member Avatar for dinilkarun
Member Avatar for debasisdas
0
73
Member Avatar for molivia03

I need help in VB.NET on how to read the entile file line by line which has about 500 lines, and then search line by line if search match found and then display it I have arrange them into an array but because the search need 2 matches on in …

Member Avatar for debasisdas
0
154

The End.