2,103 Topics

Member Avatar for
Member Avatar for Jinson Jacob

#include<iostream> using namespace std; int fact(int); main() { int rows,i,j,k; cout<<"Enter the numbe of rows you want in the triangle:"; cin>>rows; for(i=0;i<rows;i++) { //Moving each row by rows-i spaces to get a triangular shape for(k=0;k<(rows-i);k++) cout<<" "; //Loop for printing each row for(j=0;j<=i;j++) cout<<" "<<fact(i)/(fact(j)*fact(i-j)); //nCr=n!/(r!*(n-r)!) cout<<endl; } } int …

0
60
Member Avatar for DelphiGuy

Basically I'm running into issue, I have a Global Keyboard hook in a DLL, whenever it captures a key it uses WMCopyData to send the keycode over to the MAIN application. The problem is when the main application gets the key code it seems to be corrupt/changes in value. Here …

Member Avatar for DelphiGuy
0
262
Member Avatar for trashed

Hi all. I have a radio group with a bunch of possible selections. User has to select one of the options in order to go on. Is there any faster way than a for loop iterating through the single buttons to verify one has been checked? Thanks

Member Avatar for DelphiGuy
0
125
Member Avatar for vegaseat

Just a few more explorations using a Python class to mimic a C Structure or Pascal Record. Loading the record from a csv type data file, displaying the data and sorting and searching the data in various ways.

Member Avatar for hughesadam_87
3
366
Member Avatar for modesto916

Hi, I have a homework to do for college, which asks me to write a pascal lexical analizer in C. I'm trying to figure out the best way to ignore the comments, so far I've written this code, which works, but I would like to know if there is an …

Member Avatar for modesto916
0
264
Member Avatar for TerenceZ

I have a Delphi 2010 DLL using AnyDAC (version 6.0.2 (build 2653)) TADTable components. When I SetRange on any table in a PostgreSQL database, I get "Assertion Failure" error. This only happens in the dll - copying the code to a simple exe, I don't get the error. I am …

Member Avatar for pritaeas
0
159
Member Avatar for spj-Athlon

I want to control an external program from Delphi, so I spawn a process using CreateProcess. Based on ideas I adopted from Neil Rubenking, I then create a menu tree using TTreeView. The items in this tree are clickable, and clicks can also be emulated by me sending keyboard events …

Member Avatar for pritaeas
0
240
Member Avatar for trashed

Hi all. I'm creating a cxDBgrid at runtime and I need to set all the cells in a column to be TcxSpinEdit (because I'm then exporting the grid to excel and I want the number format to be preserved). How can I do it? Thanks!

Member Avatar for pritaeas
0
73
Member Avatar for PeterVrist

Hi there. I'm having a strange problem. I have a TTimer on my main form that should trig 500 msec. after the form is created. It works fine when I run from IDE, but when I run it on other W7 PC's the main form is created, but the timer …

Member Avatar for PeterVrist
0
88
Member Avatar for Steve97

Program PRG3; Var { Declaring Varaibles } FileIn:text; FileOut:text; SECTION_NUMBER:string[5]; STUDENT_ID:string[9]; LAST_NAME:string[20]; FIRST_NAME:string[10]; RAW_SCORE:real; STUDENT_COUNT:integer; AVERAGE_SCORE:integer; AVERAGE_GRADE:integer; Percent:real; more_rec:boolean; {end of file flag} Computed_grade:integer; Grade:real; procedure read_record; begin if not Eof(fileIn) then readln(SECTION_NUMBER,STUDENT_ID,LAST_NAME,FIRST_NAME,RAW_SCORE) else more_rec := False end; {read record} procedure print_header; begin writeln(fileout,Space(14),'COMPUTE GRADE'); writeln(fileout,space(17),'SECTION','SECTION_NUMBER'); writeln(fileout); writeln(fileout,space(9),'LAST_NAME',space(11),'FIRST_NAME',' RAW_SCORE',' COMPUTED_GRADE'); …

Member Avatar for pritaeas
0
194
Member Avatar for triumphost

I just started shared memory and I took a big dive into it and got stuck trying to figure out how to share pointers. Well not really pointers: void* pData = MapViewOfFile(hMapFile, FILE_MAP_ALL_ACCESS, 0, 0, MapSize); Ok so the above holds my view of the file to be shared between …

0
95
Member Avatar for cwarn23

Hi, I am starting to learn Pascal as a personal project but need an IDE/compiler. Does anybody know of a good IDE+compiler in one that they use which has the usual features like line numbers and decent debuggers. Also I need a compiler which is not written in C or …

Member Avatar for finalist
0
1K
Member Avatar for muhd.ardany1

hello..i got a probem here.. You see that i have been given a task that is to make group of 4 people. The data i had received were 79 names including their ID, gender and races.... There are condition need to be satisfy that are in a group there should …

Member Avatar for pritaeas
0
140
Member Avatar for orionscode

Hello all. I am 16 years old and I am a junior in highschool. I Love computers I am A+ certified I can network I know alot about Linux and windows and yes I can program in VB6, Pascal, and I am learning vb.net and C. What I am wanting …

Member Avatar for ThatGuyEli
0
1K
Member Avatar for Krefie

Hey Hey I have found that in certain instances breakpoint just dont cut it for me...let me explain: The current program I'm working on in Delphi Codegear has some 2 mil lines of code under a button click, not bad coding btw, just a lot of fuctionality. Now, the program …

Member Avatar for pritaeas
0
226
Member Avatar for Floppy1

Hi, I need to Runexport from DB to specific file im my network, no problem. When i search there is more than one post, so I get a list and export all searchhits, No problem. BUT I need to name the pdf files to each specific invoice number. Each post …

Member Avatar for pritaeas
0
215
Member Avatar for KE50

Hello All, I have been wondering how possible is it to have an application that would run a php application that would be used for making the database updates as well as handling the business logic while on the front end, have delphi forms So The form will be used …

Member Avatar for pritaeas
0
683
Member Avatar for finalist

I need Delphi 2011 XE code for editing an Excel file. If there is found a text in a row of column A of the Excel file, to change the number of the same row in column B. That's all I need. Thanks!

Member Avatar for pritaeas
0
138
Member Avatar for grh1107

I'm Creating a class that I want to call a recursive function within it. However, the complier says i cant declare a function within a method, I was wondering how I could Recursively call that function, in the method, or how to recursively call that method, with out declaring the …

Member Avatar for mike_2000_17
0
3K
Member Avatar for pritaeas

The `ReplaceStrings` function replaces all strings in `APatterns` found in `ASubject` with the value in `AReplacement`. As an example, I added the `RemoveStrings` function which replaces everthing with an empty string, thus deleting all strings found. Usage examples are in the XMLDoc comments. A good test will be to rewrite …

Member Avatar for pritaeas
0
283
Member Avatar for ashine80
Member Avatar for rampawar

Hello, friends! Can anyone help me to create a small application in PASCAL for a DVDs Rental Shop? This applications should be able to do : Add 25 films (title, gender, cod, status) Add 15 Costumers (name, sex, age, films rented) List films List costumers List rented movies and then …

Member Avatar for pritaeas
0
144
Member Avatar for ashine80
Member Avatar for Appjacker

Working on a program that needs to open a file, read the contents which is a number, save the content as an integer in the program, edit the number by one and then save in the number in the file once more.

Member Avatar for Appjacker
0
436
Member Avatar for freakvista

Hello again! I am trying to make a little game in pascal and I'm using graph. And it changes the background but when i'm trying to draw a black line it doesn't work. I don't know why. uses graph; var grDriver,grMode,ErrCode: Integer; procedure initg; begin grDriver := Detect; InitGraph(grDriver, grMode,'e:/bp/bgi'); …

Member Avatar for pritaeas
0
150
Member Avatar for Qazinix

I have recently been working on a project that requires the use of vertical text within the first row of a Stringgrid. When I change the drawing style of the Stringgrid to gdsThemed, the vertical text displays , however the text is also displayed horisontaly accross the cell. Here is …

Member Avatar for pritaeas
0
1K
Member Avatar for Simon180

I been searching the net for demos on how to stream live images or video over the net i found a few examples but there were no good not clearly commented so i did not understand how things worked. Basically am after a simple but good way to send a …

Member Avatar for Qazinix
0
168
Member Avatar for lostinthespiral

I am new to programming and am having REAL trouble trying to output Pascal's Triangle (formatted into a triagle) using multidimensional arrays. I would really appreciate some help. In the program, the user is supposed to input the # of rows desired (up to 15... or else it won't fit …

Member Avatar for deceptikon
0
833
Member Avatar for pritaeas

I found that there is a difference with the drawing of a custom bitmap brush, when I subclass TGraphicControl versus TCustomControl. The expected behaviour occurs when using the TCustomControl descendant. Each paint starts with the brush in the same position, no matter the location of the control (top-left). When using …

Member Avatar for pritaeas
0
239
Member Avatar for AKJo

When I print a document from my Delphi 2007 program I quite often get a message "Printing in progress " and printing is aborted. Only part of the page is printed,not always identical part,but close. When closing the message I get "Access violation at address 004FEEC5 in module........read of address …

Member Avatar for AKJo
0
2K
Member Avatar for ssa-ed

Does anyone have a nice algorithm for capitolizing first characters of words? For example: The cow can't jump over the moon. -becomes- The Cow Can't Jump Over The Moon. -and 'neath the old olive tree -becomes- 'Neath The Old Olive Tree -and- help me (if you can) - becomes- Help …

Member Avatar for pritaeas
0
124
Member Avatar for vmirce

In my Rave report i have created report with 5 diferent-looking pakes. How can I print only the pages that user choosed, example user wants only pages 3 and 5 to be printed. Default is to print all pages, and that is working, but I want to provide more choice …

Member Avatar for ssa-ed
0
61
Member Avatar for DeanMSands3

I need GMPXX on MinGW. This is driving me nuts. EDIT: I should mention I've tried using the precompiled MinGW GMP and GMPXX libraries via the **mingw-get**. And they fail. I removed them. I compiled GMP in MSYS with the following line. ./configure --enable-cxx --prefix="/mingw" && make && make install …

Member Avatar for DeanMSands3
0
623
Member Avatar for DelphiGuy

How do I check if any window is maximized? I've got a program which sends keystrokes to that window but the problem is it will send keystrokes to any application that is running on my PC at the moment, so I wanted to prevent this by making it only send …

Member Avatar for nullptr
0
140
Member Avatar for Vish0203

Hello everyone! I tried a lot to understand the spacing procedure in pascal triangle.. but it all went to vein!! Does anyone knows about this spacing??? Why are we using this loop: for(x=40-3*y;x>0;--x) printf(" "); need help ASAP!!

Member Avatar for Vish0203
0
342
Member Avatar for Pamilerin

can any body help me by giving me a guideline on how to insert data from a populated datagrid into sql server table and how to make the values conform to the specified datatypes constructe in the sql server side...assuming the datagrid headings have already been created in the sql …

Member Avatar for Begginnerdev
0
850
Member Avatar for berniefitz

Hi there, I am currently struggling through trying to figure out why a statement in my source code isn't being executed when running the program. The code is as follows: taxableValueDifference := previousTaxableValue - newTaxableValue; grandTotalTVDifference := grandTotalTVDifference - taxableValueDifference; XLWorksheet.Cells[row, 7].Value := XLWorksheet.Cells[row, 7].Value + taxableValueDifference; The first and …

Member Avatar for berniefitz
0
149
Member Avatar for jony90

Hi Is there anyone who could help to figure out how link regexbuddy to Delphi 7SE?

Member Avatar for pritaeas
0
92
Member Avatar for Simon180

I got a problem with abit of code and am unable to fix it, i have marked the area that is having the problem with the error message that i get. procedure TMainForm.Show(s: string); var n, n2, n3: integer; arTemp: TMyArray; begin arTemp := TMyArray.Create(); n := InStr(1, s, ':'); …

Member Avatar for darkagn
0
152
Member Avatar for KE50

Hello Am running into a problem on how to store the TFont properties of a memo (or any component at that) to a database Please help.

Member Avatar for KE50
0
301
Member Avatar for bagabont

Hello, I have a program that registers some .dll files in system registry. I gave the program administrator access on a limited user using windwos manifest, but this only works under Win7. My problem is that i need the program to be able to do that under XP, VISTA and …

Member Avatar for pritaeas
0
102
Member Avatar for garden4ork

Hello all again, hopefully the last bit I'm stuck on. So at the moment, I'm wanting a piece of code that recognises any time between say 9am and 11am, 11am and 1pm, 1pm and 3pm, and so on (To create a pie chart) It doesn't have to recognise time, it …

Member Avatar for pritaeas
0
263
Member Avatar for redrobby02

Hi I am using jedi visual code libary with rad studio xe2. I have a question about using TJvImage. When i place an image on my form and add all the correct image states to JvImage1.Pictures if i disable the control and then test my project, the image is not …

Member Avatar for pritaeas
0
142
Member Avatar for MrPlasticTramp

For a college project I am trying to create a system. For a part of this system I have saved information from a combination of edit and combo boxes input by the user into a txt file and I now need to input this information into a stringgrid that is …

Member Avatar for pritaeas
0
118
Member Avatar for Hackservex5

Hello, I need help creating an Algorithm for an IT school project, however it is due tomorrow and i'm running a little late, couldn't get help anywhere else. Can someone please help me out a bit. It's not as difficult. (pascal) 1. Develop an algorithm that will accept a company's …

Member Avatar for thines01
0
103
Member Avatar for getnit

Hi, I am porting Delphi project to WPF. I was using SDL Delphi Component Suite from [url]www.lohninger.com[/url][^] (Math pack & Gui Pack) for the engineering drawing graphs in Delphi. Math Pack - [url]http://www.lohninger.com/mathpack.html[/url][^] GUI Pack - [url]http://www.lohninger.com/guipack.html[/url][^] Can anyone suggest similar libraries in WPF environment?? Any suggestions will be highly …

Member Avatar for pritaeas
0
105
Member Avatar for triumphost

I need help changing my return type from int to vector<string>.. I don't want to have to pass the vector as a pointer to the function but rather I just want to return the vector itself as I no longer need to check the return type. If it fails, it'd …

Member Avatar for mazzica1
0
181
Member Avatar for DesignGhosts

Hi there, I am trying to apply a Manifest file to my delphi application so that it can run with administrative permissions, I have been following [URL="http://delphi.about.com/od/delphitips2009/qt/delphi-vista-registry-run-on-startup.htm"]this Tutorial[/URL] part Faking UAC Rights - How to Request Execution Level. I have got to step 6 where I start getting problems, I …

Member Avatar for DesignGhosts
0
2K
Member Avatar for garden4ork

Hey all again, I'm just wondering how you could get a graph to represent your data file (Such as a ValueListEditor) as I've had no success in managing to read from it or how it can be done. Wanting something like this; Video(5) DVD(8) CD(2) Video..|----- DVD....|-------- CD......|-- ...........|____________ Many …

Member Avatar for pritaeas
0
269
Member Avatar for kolibrizas

I am using R-project to deal with my statistics, but due to the amount of resources needed, R is struggling while pascal would do it way faster. Is there a way to use pascal code in R-project?

Member Avatar for TrustyTony
0
86

The End.