199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for complete

What is the difference in these two lines? #define X 100 const int Y 100; Apart from the fact that one is for X and the other is for Y (har har, very funny) effectively don't they do the same thing? Why would one be preferable over the other?

Member Avatar for vijayan121
0
121
Member Avatar for dima_q

Has anyone noticed any problems with the Delphi 7 system routines in GETMEM.INC with newer WinXP security updates? One of my applications just started throwing a random exception with ResizeInPlace after the latest WinXP update.

Member Avatar for dima_q
0
144
Member Avatar for ongxizhe

Hey all. Sorry to embarrass myself here. I have a question to ask: What exactly is C#? Well, I know it's a programming language but how would you explain it? Does it have anything to do with C and C++? Sorry, I'm kind of novice in programming. Your help will …

Member Avatar for ongxizhe
0
324
Member Avatar for erfanjan

hi,i want to have persian calendar with dateTimepicker that it show in persian calendar .how can i change DateTimePicker View to persian calendar? Thanks

Member Avatar for JerryShaw
0
74
Member Avatar for Sir_BigOne

Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn …

Member Avatar for Covinus
0
99
Member Avatar for machine

Hi, Trying to overload - and getting this error. I am not sure why.. error C2447: missing function header (old-style formal list?) [code] #include<iostream.h> #include<string> #include<new> #include<ctime> using namespace std; class D { public: D operator- (const D &d2); }; D D::operator- (const D &d2); { //error points to here!! …

Member Avatar for machine
0
250
Member Avatar for Woody714

I'm fairly new to C++ and have an assignment that is knocking me out. The text file is fairly simple: Plain Egg 1.45 Bacon and Egg 2.45 Muffin 0.99..... etc.... And the code is: [code=c] //Breakfast Billing System //Marlen LaBianco //May 20, 2007 //Program to calculate a local restaurant's breakfast …

Member Avatar for John A
0
926
Member Avatar for aznstyles408

I wrote this function to generate random numbers and return it to the calling function [code=c] int getCard(void) { int range; int card; srand(time(NULL)); range = (10 - 1) + 1; card = rand() % range + 1; return card; } the calling function is.... int first2(void) { int firstCard; …

Member Avatar for Aia
0
168
Member Avatar for EnderX

I've been attempting to teach myself some C, as I have been tasked with maintaining a program written for a handheld barcode scanner that appears to be written in this language. (At least, I'm assuming that for the moment, considering the fact one of the first statements I saw when …

Member Avatar for Aia
0
156
Member Avatar for Toktam
Member Avatar for jbennet
0
137
Member Avatar for Jishnu

Hello, The code below calculates the determinant of the matrix. I know that the method of global 2-d pointers is a poor programming practice (so u don't need to reply saying that!!!), but it is a simple method for an amateur programmer. As the code didn't work, I set two …

Member Avatar for Salem
0
72
Member Avatar for pretu

Hi All How can we plot the pixel without using the function putpixel(int x,int y,int color) .

Member Avatar for Salem
0
363
Member Avatar for Matt Tacular

**I know the code looks big, but it's a very small isolated section at the bottom (starting at line 164) that's giving me the problem.** When this program is run, when I try to open the file I just appended some text to, it doesn't open... can anyone spot why? …

Member Avatar for Salem
0
149
Member Avatar for faisaly

Dear All, Please help me regarding this C++ Assignment. Q.1 [COLOR=green]Write a program using [B]malloc[/B] function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format?[/COLOR] [B][COLOR=green]Hint: User enters 3 then program allocates …

Member Avatar for Salem
0
107
Member Avatar for pbrookee

Hello all! I have a flexgrid and everytime a user would click in a cell to edit it, an error occurs "Run time error 5 "Invalid procedure call or argument"" Here is my code: 'simple sub routine to fake the edits Private Sub EditFlexGridCell(PassedText As String, Optional CpBoard As Boolean) …

Member Avatar for pbrookee
0
259
Member Avatar for Gammatech

I have an ongoing TurboPascal development that jumps into one of the units code on program termination causing a hangup. Running it in the IDE under Windows XP 'Just' locks up the instance of the Turbo compiler. Porting it to another machine running Win98 gives 'Code segment to large' when …

Member Avatar for pty
0
139
Member Avatar for shahriar2403

Let, i have a database in ms access with two field named-"name" & "roll". I also have a combo box or list box in vb containing those names. I have to select a name from that list and appear the corresponding "roll" from that database in a text box in …

Member Avatar for pbrookee
0
360
Member Avatar for php_coder

Hi I am getting this very error..... [B]Cannot modify header information - headers already sent by[/B] (output started at C:\Program Files\xampp\htdocs\gallery2\examples\live-excel.php:36) I have tried [B]ob_start();[/B] but of no use. It did not work.... can someone give the solution.?? Thanks in advance cheers Prati

Member Avatar for digital-ether
0
2K
Member Avatar for MrMan2787

Hi all, I have a QUESTION regarding [B]data validation[/B] I'm writing a program, where i want the input to be [U]only integers[/U]. so if they enter things such as letters or symbols it won't crash my program. i tried stuff like, while(inputArray[count] != int) { cout << "Invalid Input. Please …

Member Avatar for Ancient Dragon
0
180
Member Avatar for Pro2000

Hello everybody, I need a code shows who is online...Explain??,OK: I wrote a chat program & I need to know who is logged on... Example: In this web-site you can see If I am logged on because If I'm logged on the picture beside me will be green... how to …

Member Avatar for Puckdropper
0
88
Member Avatar for nyadimo

yes, i know mysqls query language, but what i need to know is how to connect mysql database with php. i am designing a dynamic website using macromedia dreamweaver 8, mysql and php. how can i go about configuration in order to connect successfully?

Member Avatar for Puckdropper
0
90
Member Avatar for realnsleo

hi there, i have a problem with the post data thing..i have two pages, one for uploading documents and another to see the uploaded documents. When i finish uploading and go to the next page i can see the uploaded document.when i click the back button to go back and …

Member Avatar for Puckdropper
0
76
Member Avatar for choudhuryshouvi

Hi, there, all fellow programmers I need a help on this. I have a code in vb6. It acts when a click action is made on 'X' on form1. Here is the code :- private sub form1_unload(cancel as integer) dim confirm as integer confirm=msgbox("Sure to exit ?",vbyesno+vbquestion,"Confirm Exit") if confirm=vbyes …

Member Avatar for choudhuryshouvi
0
90
Member Avatar for kabrarv
Member Avatar for kabrarv
0
115
Member Avatar for 65dos

Hello I have a several problems with using tkinter, if anybody can help, it would be great :D I'm using a .grid method on my widgets. When I put sth (e.g.Label) in for example row=5, and want to put something different (label with other text)in row=5 it overlap one another …

Member Avatar for vegaseat
0
131
Member Avatar for VENUSKARTHICK

[B][COLOR=green]dear friends i need visual basic tutorial & books on pdf or video formet plz post for me i am biggener for this ..........[/COLOR][/B] [B][COLOR=green]thanks......... in advance........[/COLOR][/B]

Member Avatar for choudhuryshouvi
0
139
Member Avatar for ledox

hi, i have a another question about converting char to int in C++. if i have [U]char n="123[/U]" and [U]char n2= "87"[/U] and i wanna sum those two char...how can i do that? i know i have to [COLOR=green]change[/COLOR] each [COLOR=green]char[/COLOR] in [COLOR=green]int [/COLOR][COLOR=green]but for the rest...[/COLOR] thank

Member Avatar for blazted
0
92
Member Avatar for Siva_sbj

I am using Bloodshed C++ for my development. I have compiled the Dos console program in C and its working fine. But i want to add a icon to it instead of the windows application icon. Hope someone could help me.

Member Avatar for Ancient Dragon
0
75
Member Avatar for aserfiotis

I have a project for which I have to implement parameter passing through stack between different protection levels. The information about the number of variables needed to be passed at the function must be given through DWORD Count of Call gate For this project I have to: A) Create 4 …

Member Avatar for aserfiotis
0
119
Member Avatar for joshSCH

I've written many java apps; however, I have never created anything that communicated with the Internet, or more specifically, web pages. How exactly would you go about doing this.. For instance, say I wanted to write a program that would log me in Daniweb, and send messages or posts to …

Member Avatar for peter_budo
0
190
Member Avatar for johntech

I have a stand-alone 2k machine that I loaded the IIS from the 2k cd. Basically I have a htlm program run which displays the exploded view of an assembly on the screen with hot spots. When you click on a part of the assembly it runs an ASP program …

Member Avatar for johntech
0
100
Member Avatar for johntech

I'm working on the game of Concentration. When you match 2 squares I want to blink a label caption "MATCH" say 3 or 4 times then hide it. The problem is I want the program to stop until the blinking ends then continue. I use a timer to make the …

Member Avatar for johntech
0
194
Member Avatar for leongaj

Can anyone help me to convert the following BASIC langauge into Visual Basic source code? Please help. I'm new in programming. Thanks alot. ----------- NEW 10 REM Test Program Four - RG 9305.11 11 REM Walking Program for BORIS Connected to PC Parallel Port 12 REM Control from numeric keypad: …

Member Avatar for jbennet
0
173
Member Avatar for rinko

Hello to all users, I am using a NetBeans IDE 4.1. I want to import packages that are packed in a zip file. I open the project window, then with right click on the project icon I selected properties and then in libraray menu i added the zip file. Then, …

Member Avatar for jwenting
0
130
Member Avatar for CRD

this loop will not exit when n is pressed I sure would appreciate a clue as to how to exit a loop. here is the code. code [COLOR=green]// Ex3_12.cpp[/COLOR] [COLOR=green]// using a while loop to compute an average[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green] std::cin;[/COLOR] [COLOR=green]using[/COLOR][COLOR=green] std::cout;[/COLOR] [COLOR=green]using[/COLOR][COLOR=green] std::endl;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] main( [/COLOR][COLOR=green]void[/COLOR][COLOR=green] )[/COLOR] { …

Member Avatar for ~s.o.s~
0
69
Member Avatar for pbrookee

Hello all! :-/ I am creating a program which reads data from a database. How can I change the connection string to format anyone who would use this program on there computer? My current connection string is made to specifically read from my folder(s)... conn.ConnectionString = "C:\Documents and Settings\servername.\Desktop\Pamela\CheckReader\Database\CheckInfo.mdb" Thanks …

Member Avatar for choudhuryshouvi
0
110
Member Avatar for meiyantao

I don't know how to sparate the interface and their implement.And I need some help from you.For example,I hope anybody can tell me,how to make these three files to work well. [CODE] //This file named main.cpp #include <iostream> #include "ABC.h" using namespace std; int main(void) { char y='y'; char e='e'; …

Member Avatar for meiyantao
0
169
Member Avatar for ITech

hello guys, can anyone recommend me a site or alink for agud e book in learnin c++..startin from basics to advance...i have a very clear picture of C and data structures using C...

Member Avatar for vijayan121
0
187
Member Avatar for FUNimations

Hi i'm trying to make a JFrame with 4 jlabels. So far no problems, but i want it to show the first only. 4 seconds later the second, and so on... I know how to make the labels invisible and vasiable again, i just don't know about the time delay. …

Member Avatar for IDSA
0
120
Member Avatar for dudegio

Hi everyone! I have traced the variables that stores the data. All i have to do is to save all these in a table. Pls help. Here are the variables and its content: Variables: $pmaster_id = get_param("master_id"); //test------------------------------ print "master ID = $pmaster_id"; $master_id = $pmaster_id; $id = explode("-", $master_id); …

Member Avatar for dudegio
0
329
Member Avatar for ghadahelal

hi all have anyone any idea how can i make my program read 3 or 4 files ,in a folder. i mean my input isn't only one file, it's a folder. can the C++ do that?

Member Avatar for ghadahelal
0
138
Member Avatar for CRD

Using Visuel Studio 2005 and the choices I have are as follows Could someome help me to understand what they are? ALT CLR General MFC SMART DEVICE WIN32 Any help to clarify what these choices mean would be Appreciated. Thank you Dick

Member Avatar for CRD
0
147
Member Avatar for dotcom123

Hello everyone! I am doing Digital Compass Navigation Aids. It consists of the 1490 Digital Compass, a P18F4620 Microcontroller, ISD2560 voice record/playback chip LM4808M amplifier, 5volts and 3.3volts voltage regulators and three switches, the recording switch, the playback switch. First, i should record north, south, east and west into the …

Member Avatar for dotcom123
0
124
Member Avatar for wanting2learn

Hi, I have just had a project thrown in my lap and all I know is that it is written in Pascal (The files have the extension .PAS) I am trying to find a suitable IDE to open the project so I downloaded Bloodshed Dev-Pascal IDE but it does not …

Member Avatar for dugjohnson
0
190
Member Avatar for ponik

Hi there! I've got a Delphi7 and i wanna to start with a small project. However I can't do that, so I need help I've got two sources: Unit1.pas [INLINECODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw_TLB, StdCtrls; type TForm1 = class(TForm) …

Member Avatar for dugjohnson
0
120
Member Avatar for ftxxpower

Hi Everyone, I need help looking for a script. The script I am looking for is something like a swap/trade script. The script should let everyone do all the basic functionalities such as login, logout, register account, etc. The script should also have an administrative control panel. Basically, the script …

Member Avatar for shashi28
0
129
Member Avatar for nyadimo

hi i am trying to design a dynamic website using php and mysql, how can i make configuration so as to connect successfully?

Member Avatar for shashi28
0
104
Member Avatar for aot

Does anyone out there happen to know much about Pydev? It's my preferred IDE (it's the only free IDE that received good reviews when I looked it up), but I'm getting frustrated trying to download some new modules and use them in it. I downloaded and installed the module tkSnack, …

Member Avatar for arsham
0
83
Member Avatar for Fungus1487

ok ive just started work for a company and second day in they have asked me whether its possible to convert there entire VB6 applications suite to asp.net making it available to run online for their clients. This is my first job outside uni and having played around with asp.net …

Member Avatar for jbennet
0
188
Member Avatar for Woobag

I'm trying to write a program where the user gives a size of an array. myArray(5) (below) fills and prints a 5x5 array with numbers 1-5 and prints out 5 numbers on a line. The output would look something like this... [code] 1 2 3 4 5 1 2 3 …

Member Avatar for Woobag
0
2K

The End.