pascal

Windows Search 4 Query - Delphi Example

The following web page describes querying Windows Search programmatically: http://msdn.microsoft.com/en-us/library/aa965362.aspx Does anyone have examples using Delphi/Pascal? Examples I have in mind are fairly simple: Search for certain file types. Search for specific text within files. Limit these above searches to a certain path....

simultaneous variable assignation in pascal

I wish to do simultaneous variable assignment in Pascal. As far as I know, it's not possible. Googling on the issue, I can see that many programming languages implement that, but I can't find how to do it in Pascal. For example, in Python I can do this: (x, y) = (y, x) In Pascal, I need an additional variable to hold the value of x ...

What are the advantages of using Virtual Machine compilation (eg. JVM) over natively compiled languages?

I've heard that the advantage of java is that people can write code, compile it for the JVM, and run it anywhere. Each person just needs a JVM app for their platform. Of course, it looks similar to the current situation, where everybody has a compiler specific for their platform. So the advantage isn't explained by that. But I think I...

image processing in pascal

Hi Please, anyone help me to solve my problem "who can I get the image data in pascal language", I mean who can I read or display an image in pascal language ...

Why Pascal const arrays aren't actually constants?

Program ConstTest; Const constVar = 1; Begin constVar := 3; WriteLn(constVar); End. It's pretty obvious that the above code will not compile, because it's not right to change the value of a constant. However, following code will compile, and will return "1; 5; 3;", even though the array is a const: Program ConstTest; ...

mat file from matlab to pascal program

Hi please, any one help me to solve my peoblem: I have struct of array containing image file name and color histogram and save it in mat file. How can I use this file in pascal program ...

Measure the run time in pascal program

Hi Please, I need to measure the search time in my pascal program in order to measure the performance efficient.. if there is any function or code to measure the search time? thanks ...

How to convert a tree recursive function ( or algorithm ) to a loop one?

I have written a recursive Tree Function in pascal ( or delphi ) but i had an 'Out of Memory' message when I ran it. I need to turn the Calculate recursive function in this code to non-recursive function, can you tell me how please : program testing(input,output); type ptr = ^tr; tr = record age:byte; left,right:ptr; end...

Inno Setup: How to create password wizard page only if component "X" selected

Hi! Can anyone help me to protect a selection group or component. For examples If ('Readme.txt').selected or ('compact').selected = True then begin "Password wizard page"; else result := true; end; Something like that to this working script :P function CheckPassword(Password: String): Boolean; begin result := false; if (Password=...

Get [Messages] values in InnoSetup's language file

I know I can easily get messages inside [CustomMessages] AdditionalIcons=blablabla using this code: ExpandConstant('{cm:AdditionalIcons}'); which gets the AdditionalIcons string message. However, how can I get messages inside this? [Messages] ButtonNext=huhu ButtonInstall=bubu What I need is to get the ButtonNext, ButtonInstall ...

Configuring GCC with FreeRTOS and OpenOCD

I'm pretty sure this is possible but I'm not sure how to go about it. I'm very new to building with GCC in general and I have never used FreeRTOS, but I'd like to try getting the OS up and running on a TI ARM Cortex MCU but with a slight twist: I'd like to get it up and running with Pascal. I'm curious: Is this even possible to get wor...

How to play multiple .wav files simultaneously in delphi

I wish to multiple .wav files simultaneously in delphi. When I open and plat the first things are fine. However the second one causes a error when it tries to open. It would appear that i can only use one media player at a time.... is there any way around this what do i do? ...

Large numbers in Pascal (Delphi)

Can I work with large numbers (more than 10^400) with built-in method in Delphi? ...

Pascal autocompletion in Eclipse?

Is there a snippet file or something to plug into Eclipse in order to be able to use autocompletion? ...

Writing a SOAP service on Linux - tools, help needed

I need to write a SOAP service for Linux (CentOS). I need to do this using Lazarus/FreePascal. The service needs to be a binary (daemon) that runs in the background. Questions: 1. Is this possible (as a standalone executable)? 2. If not, what are the alternatives? 3. How do I start? 4. What additional tools/libraries do I need? ...

TreeView control and Nonrecursion

I can fill a TreeView control with particular Registry keys by enumerating registry keys recursively and put them in the TreeView control; then for performance reason, I attempt to use a nonrecursive/iterative approach to enumerate registry keys, but how can I fill the TreeView since a "tree" is naturally recursive (at least, in my under...

Checking to see if the Pascal Syntax is correct

Hi, Have a bit of a weird one and hopefully someone can help out. The company I work for is doing an ad and we are looking for a Pascal programmer and we thought we'd incorporate some Pascal code into the ad itself. The only problem is we do not have any knowledge regarding Pascal. So after a little research the code we have come up wi...

SysUtils.StrScan() function for string type? where?

While SysUtils.StrScan() takes PWideChar const as the parameter, is there a StrScan() like built-in function for string/Unicodestring type? Thanks in advance. ...

check whther user connected to internet or not ?

hi how to check whether user connected to internet or not ? regards ...

Old-school Pascal question about how to cast variant record function parameters properly

I am trying to create a function with a variant record-type parameter that allows inline-casting or assignment, as such: type rectype = ( VT_INT, VT_CHAR, VT_BOOL ); rec = record case t : rectype of VT_INT : ( i : integer ); VT_CHAR : ( c : char ); VT_BOOL : ( b : boolean ); end; procedure h...