2,103 Topics

Member Avatar for
Member Avatar for mmx64

Hallo, does anyone have any knolege about [URL="http://www.alldatasheet.net/datasheet-pdf/pdf/74901/MICROCHIP/24C01.html"]i2c[/URL] eeprom programing with delphi, via com port or lpt??

Member Avatar for mmx64
0
162
Member Avatar for dad45

The code below is attempting to generate a lengthly series of varying tones and saving it all as a .WAV file. The file size is approx 10 times the length of DataCount and DataCount is derived from a variable Duration(msec). Playing back the file, I get one single one approx …

0
66
Member Avatar for kvdd

I am following some exercises in Delphi in a Nutshell from Ray Lischner. Very easy to follow and readable. He was explaining how units are working the following code: [code=pascal] program Units1_1; uses UnitA; {$AppType Console} begin WriteLn('Units 1_1 main program'); end. unit UnitA; interface uses UnitB; implementation initialisation WriteLn('UnitA …

Member Avatar for kvdd
0
148
Member Avatar for Thew
Member Avatar for cVz

Hey dudes...i am currently working for a company that codes in delphi 7... i am familliar with C# language but not that much of Pascal language...i need to make a form where i can print an added HTML page... I managed to get it to print a form but i …

0
91
Member Avatar for rickstar123

Hi All, Im desperate to write a hex file in Delphi. Effectively I have a Decimal value, say 580 which I convert to Hex: 02 44 And I need to put this into a Hex file (multiple times) - 25000 times per file Each line in a similar hex file …

Member Avatar for Duoas
0
2K
Member Avatar for forbvijay

Hi, i am trying to create a stored procedure with TQuery, but the code is resulting in the Token Unknown error pointing to the ':' used in the sql.add statement. This same procedure as it is is working fine when directly executed with the SQL Explorer of the INTERBASE(i am …

Member Avatar for delphiman
0
165
Member Avatar for andihdr

I`ve just begun to learn delphi and sql server. I want to make small application using delphi and sql server, but i can`t make the report like this: Note Plus Minus Balance ------------------------------------------------------------------------- sell 5.000 0 5.000 buy 0 1.000 4.000 sell 3.000 0 7.000 sell 2.500 0 9.500 I …

Member Avatar for delphiman
0
149
Member Avatar for dad45

Need help to set various parameters on my sound card from within my Delphi 6 program. Mostly interested in what it takes to set various tones. Any site URL that discusses the issue welcomed. TU Vern

0
57
Member Avatar for casper_wang

Hello all, my first post on these boards. I have spent the last few hours reading this section of the boards and I have noticed many new to programming people ask the same question: What language should I use, where should I start, what should I learn, etc etc. All …

Member Avatar for casper_wang
0
124
Member Avatar for Graham_Saint

Greetings, I am writing a Delphi application that uses Absolute Database. When the user presses a button the application fills in some values in a second form and then displays the form. Last night I added a DBGrid to the second form to display a small Absolute Database table. Hitting …

Member Avatar for Graham_Saint
0
301
Member Avatar for lkonitz

As a very new member, I'll have to use some common sense to be sure I don't violate any of the rules. I have one question. I couldn't find gwbasic in the forums, so I clicked on a language that's somewhat in the order of gwbasic, namely pascal. Specifically, I …

Member Avatar for Duoas
0
101
Member Avatar for novarse

We have had a frustrating problem for months. We are trying to find a resolution or work around to fix this and are looking for help. We have applications developed in Delphi 4 through to Delphi 7 that use database components and have worked correctly and well for years. When …

Member Avatar for Tony22
0
334
Member Avatar for Muttley

Hello, i have some problems implementing the following pseudo-code. Te problem is that in Pascal i can return user defined data structures (in this case: matrix), and i also tried to return it as a parameter with "var" but it gave a stack overflow error. Anyone can help me? pseudo …

Member Avatar for Duoas
0
202
Member Avatar for lAmoebal

This isn't a specific question regarding a certain program or anything, so if this is in the wrong forum, feel free to move it. :confused: I was just curious how long everyone here has been programming, and how long with C++? The reason I'm asking is I'm curious as to …

Member Avatar for stephen84s
0
373
Member Avatar for Vega_Knight

hi all, i try to make array here but i didn't know how to make it? please help me.. best regards..

Member Avatar for Clive29
0
135
Member Avatar for acs_andrade

Hi everyone, I'm new in this forum and I've been tried to learn a little about programing in Pascal language. I have to do a school project program for a video rental shop developed in Pascal and I would like to know if someone could send me a entire code …

Member Avatar for Clive29
0
87
Member Avatar for moerpheus

hello everyone, I'm in a certain college in Tanzania. This college is crap!!! I lost my interest with programming because of this college. I moved to networking, but now i think i should go every possible angle. Do you think its possible to be a multi-professional in computer regions? But …

Member Avatar for camthalion95
0
183
Member Avatar for dad45

I have borrowed code that I don't understand but it serves my purpose. The code saves Text data in a TFile, i.e. MyNewStuff.txt. I want to put it into a TSringlist pronto. Immediately after saving the TFile and closing same, is the data still in memory when I say "MyTStringlist.loadfromfile('MyNewStuff.txt');" …

Member Avatar for dad45
0
157
Member Avatar for mike issa

I am having problems with using a header file called lt360lib.h My code is as follows [CODE] #include <lt360lib.h> #include <iostream> using namespace std; main() { } [/CODE] as you can see it is a simple code just to test if the header file is being accepted or not. but …

Member Avatar for Jishnu
0
425
Member Avatar for gregorynoob

I've started programming a few months ago, i've done basic before, then i tried pascal for a while but now i'm comfortable with C++. The problem is, i'm trying to learn as much as i can from the net and books, but i can't find a good book i could …

Member Avatar for VernonDozier
0
113
Member Avatar for jessamyryan

I am trying to code a program that will generate six random lotto numbers, and then the two supplementary numbers. And not to generate the same number twice. I'm new to pascal, so I understand if you don't want to create a whole code for me but could you at …

Member Avatar for alvisonhunter
0
1K
Member Avatar for Clive29

[B][/B] i know its kinda funny, but please help me. my father is a bussiness man and he wants to hire a programmer to design a program that record bussiness history like their products, their profits and even to perfom necessary calculations for his wide supermarket. since the stock have …

Member Avatar for jsosnowski
0
102
Member Avatar for Misha_CZ

Hi, ok... Here's the story- I have been absent from my Pascal programming class for 3 weeks, I came back and now the teacher wants me to try out a few programs for a test tomorrow. I have one that I have no idea how to do... Here are the …

Member Avatar for Duoas
0
79
Member Avatar for bbradley

Please help. I really need to find out how to get a data value from one for onto another form. For example I put a value in an edit box in Form1 and I want that same value to be in Form2, but if I were to chage the value …

Member Avatar for jsosnowski
0
326
Member Avatar for monxxx

Hi, i need some help about using swap() functions i am using this code: [CODE]var x: integer; begin x := $11223344; x := swap(x); edit1.text := inttohex(x); end; [/CODE] this code is working fin its swap like this: '22114433' but if i pud/add byte on like this: [CODE]var x: integer; …

Member Avatar for Clive29
0
268
Member Avatar for gilcimar

Hello staff, I have a program to Paschal that when he starts allocates the message "one more" open a window of DOS. When the program runs, is writing this message on the screen until you do not overthrow, is there. I need to implement this same routine another routine to …

Member Avatar for Duoas
0
120
Member Avatar for Adz52

Hi there i have the task of making a progam that sorts out a list of words from a text file, i need to take the text file and then take the words and but then in a binary search tree, then i need to display them on screen in …

Member Avatar for Duoas
0
332
Member Avatar for gerhardjl

I am using Delphi 5 I wish to do date/time calcs I have noticed now that I require the 'DateUtils' unit in order to use Functions such as IncMinute What are my options to get a copy of 'DateUtils' unit for Delphi 5 Is it downloaded, free, or what? Please …

Member Avatar for gerhardjl
0
1K
Member Avatar for glindhot

[code]begin Inc(GamesThisPlayer[Winner]); if GamesThisPlayer[Winner] = SampleGamesBatch then ProvisionalRating[Winner] := Rating[Winner]; Inc(GamesThisPlayer[Loser]); if GamesThisPlayer[Loser] = SampleGamesBatch then ProvisionalRating[Loser] := Rating[Loser] end;[/code] This extract of code is from a player rating program. A player either wins or loses. When a player has played a sample batch of games (20 in this case) …

Member Avatar for glindhot
0
135
Member Avatar for lexdalex

Hi friends, i'm new to this forum.i need help from you guys .i have a client side executable file together with other dll files. this executable file is a delphi file. i want to generate the interface from this .This client side is for a cyber cafe system.how do i …

0
58
Member Avatar for jsosnowski

I am trying to compile some code using BDS2006 and have received the following err: [Pascal Fatal Error] Variants.pas (1035): F2092 program or unit 'Variant' recursively uses itself. The code is highlighted by the debugger at the end of line 1035 which is the final end; statement for the Procedure …

Member Avatar for Duoas
0
155
Member Avatar for joekim

i have a problem here and i got to use lists to solve it!! there is a furniture factory producing different kinds of furnitures but in sets, eg. (5 stools, 24 beds, 12 tables etc), these sets of furnitures r supposed to be in some kind of database. am supposed …

Member Avatar for Duoas
0
67
Member Avatar for begin02

Problem: here's the code. [code=pascal]program fun; Uses wincrt; var y:integer; ans:integer; function User(input:integer):integer; var x:integer; ans:integer; Begin readln(input); ans:=1; if (input>0) and (input<100) Then begin ans:=ans+input end else begin x:=User(input); halt; end; User:=ans; End; Begin ans:=User(y); writeln(ans); end.[/code] when run all work perfectly. when i entered 99 i got the …

Member Avatar for Duoas
0
104
Member Avatar for Dajwalker

I have, today, made some comment regarding the Fibonacci "Pattern". To fully appreciate what the Fibonacci Pattern is requires a deep knowledge of nature. The simple piece of pascal code which I have witnessed only contributes to a very small part of the required knowledge. The Fibonacci pattern is not …

0
56
Member Avatar for Jade_me

i try to make fibonacci pattern but i confused. there are anyone give me a hand for this example?please.... thanks in advance..

Member Avatar for Dajwalker
0
108
Member Avatar for manutd4life

Hi am in prob. 4 me its now or never to pass. get a program to do. Convert binary to decimal octal to decimal binary to hexadecimal some1 can help me. i need some PRO so if interest post ur mail id and i'll mail u my paper if some1 …

Member Avatar for manutd4life
0
350
Member Avatar for sheady

[INDENT][/INDENT]I have created a Program that first searches and returns the contents of a file into a richedit then opens up the next file finds the matching record and displays that in the rich edit and then the same again with another file. [INDENT][/INDENT]My problem is that when i search …

Member Avatar for afripino
0
277
Member Avatar for mmx64

Hallo, can someone help me out: I have a stringgrid, where i display hex data of a file( a hexeditor), and i need to change the color of the cell, if i chenge the data inside it. How can i do that?? Thanks.

Member Avatar for mmx64
0
3K
Member Avatar for mel1

Hello, I am having a bit of trouble with a hangman game that I am currently writing. The program runs without any error (syntax) however when I press a letter (buttons on the form), it simply states Congratulations, you were saved from the Gallows!' with only having had 1 go …

Member Avatar for Duoas
0
98
Member Avatar for mfran2002

hi everybody, i'm going to set the procedure for OnTimer event runtime but i don't know how... i've written the following (WRONG) program, can someone help me? var Timer1: TTimer; procedure PROC(Sender: TObject); begin .. end; begin Timer1.Create(Timer1) ; Timer1.Interval := 2000; Timer1.OnTimer := PROC; end;

Member Avatar for luis_ramos
0
3K
Member Avatar for johnkurtz

Hey, could anybody lend me dijkstra's algorithm in pascal? (commented please). I have searched for it on Internet and I haven't find it. Thanks.

Member Avatar for luis_ramos
0
181
Member Avatar for sheady

Does anyone know how to do this just i have a piece of text in a rich edit which is in centre aligned but now i want it changed to be aligned to the right for the next bit of text???? Any help will be Appreciated

Member Avatar for Micheus
0
91
Member Avatar for littleatomic

Hi, I am programming in Delphi for Win 32. I need to use a C# .Net component. I need to send the component a System.DateTime (.Net time struct), and at another point it requires a pointer to a System.DateTime struct to write to. Is there a way to do this …

0
54
Member Avatar for Valk1520

I am 70 years old and have been programming since 1977. My first computer had no software. We had to write everything using a crude form of basic and a Zilog Z-80 compiler. It started as a hobby and then became a passion. I have used Basic, Cobol, Pascal, fortran, …

Member Avatar for Serunson
0
142
Member Avatar for rayman341

I am working on porting C++ code to Delphi and I am only having a problem with the correct conversion of memmove() statements in the C++ code. If you or any one you know could help me to convert this C++ code to Delphi I would be thankful. // Move …

Member Avatar for Duoas
0
537
Member Avatar for rayman341

// Size of the encrypted buffer should be void XOREncrypt (unsigned char* buffer, unsigned long length, unsigned char* key) { for (unsigned i = 0; i < length/8; ++i) for (unsigned j = 0; j < 8; ++j) buffer[i*8 + j] = buffer[i*8 + j]^key[j]; } // Calculate padding padding …

Member Avatar for Duoas
0
126
Member Avatar for rayman341

typedef struct iphdr { u_char ip_hl:4, /* header length */ ip_v:4; /* version */ u_char ip_tos; /* type of service */ short ip_len; /* total length */ u_short ip_id; /* identification */ short ip_off; /* fragment offset field */ #define IP_DF 0x4000 /* dont fragment flag */ #define IP_MF 0x2000 …

Member Avatar for rayman341
0
470
Member Avatar for Xyhm

I've developed a program that communicates with another program through anonymous pipes set up by the other program (not written by me). The problem is that my program keeps crashing as soon as I add something more than just receiving the info. For example, if I add a simple "showMessage", …

Member Avatar for Duoas
0
113
Member Avatar for manutd4life

i make a menu AS SHOWN: PASCAL when press Ctrl + F9. so its pascal ************************* * 1. MEMBERS * 2. BOOKS * 3. EXIT * * * SELECT OPTION: ************************ NEED HELP HERE: write a PROCEDURE to close the menu when 3 is selected sorry 4 this, its too …

Member Avatar for jsosnowski
0
106

The End.