delphi-xe2

VCL-Styles embedded in dll?

北战南征 提交于 2019-12-30 09:35:20
问题 How do I embed Delphi XE2 VCL-Styles in a dll? The Application - Appearance page is not visible in project settings for DLL-projects. I tried defining them in a rc-file included with a $R directive which works but if there is a better way I'd like to know. RC-file example: GOLDENGRAPHITE VCLSTYLE "C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Redist\styles\vcl\GoldenGraphite.vsf" CARBON VCLSTYLE "C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Redist\styles\vcl\Carbon.vsf" In particular

Why does WaitForMultipleObjects fail with multiple thread handles?

梦想与她 提交于 2019-12-30 08:14:29
问题 In the following test program each test thread adds its handle to a global TThreadList when it starts executing, and removes its handle from the same list when its execution is about to end. For testing purposes, additionally, each thread makes sure it adds its handle before the main thread locks the list (to duplicate their handles and start waiting on them to finish). The threads also make sure they don't remove their handles before the main thread locks the list. The test program runs fine

Floating point support in 64-bit compiler

不羁的心 提交于 2019-12-30 06:07:54
问题 What should we expect from the floating point support in 64-bit Delphi compiler? Will 64-bit compiler use SSE to implement floating point arithmetic? Will 64-bit compiler support the current 80-bit floating type (Extended)? These questions are closely related, so I ask them as a single question. 回答1: For the double=extended bit: Read ALlen Bauer's Twitter account Kylix_rd: http://twitter.com/kylix_rd In hindsight logical, because while SSE2 regs are 128 bit, they are used as two 64-bit

How add Delphi XE2 64bit support to a simple Delphi XE2 32bit VCL component?

只愿长相守 提交于 2019-12-30 05:53:06
问题 I need convert a VCL component from 32bit to 64bit (Delphi XE2). Now infact I can install it only if I select "32bit Platform", if I select "64bit Platform" I can compile it but not install (there is not the install menu). How can I add 64bit support and install it for 64bit application? 回答1: If you mean "install it into the IDE", the simple answer is that you cannot. The IDE is a 32-bit application and is not designed to host 64-bit DLL's. Any components or plug-ins must be compiled for 32

Implement Change Journal in Delphi

折月煮酒 提交于 2019-12-30 05:11:13
问题 I'm seeking to use Change Journal instead of ReadDirectoryChangesW to track changes in my delphi XE2 application (as for why: ReadDirectoryChangesW is not that reliable) The closest I could find in delphi/pascal is something called Delphi MFT/Journal helpers, it contains two pascal units: uMFT.pas and uDevNotification.pas. The code above deal with MFT (very nicely actually), but nothing as far change journal goes. I also found this C# code, which seems to do what I want, only it's in C# My

Blank value in web service for Int64 type

一世执手 提交于 2019-12-29 07:41:37
问题 I consume a web service that has a numeric element. The Delphi wsdl importer sets it up as Int64. The web service allows this element to be blank. However, because it is defined as Int64, when I consume the web service in Delphi without setting a value for it, it defaults to 0 because it's an Int64. But I need it to be blank and the web service will not accept a value of 0 (0 is defined as invalid and returns an error by the web service). How can I pass a blank value if the type is Int64? 回答1

Blank value in web service for Int64 type

て烟熏妆下的殇ゞ 提交于 2019-12-29 07:41:28
问题 I consume a web service that has a numeric element. The Delphi wsdl importer sets it up as Int64. The web service allows this element to be blank. However, because it is defined as Int64, when I consume the web service in Delphi without setting a value for it, it defaults to 0 because it's an Int64. But I need it to be blank and the web service will not accept a value of 0 (0 is defined as invalid and returns an error by the web service). How can I pass a blank value if the type is Int64? 回答1

How can I call a 32-bit DLL from 64-bit code?

安稳与你 提交于 2019-12-29 07:32:06
问题 I have some 32-bit DLLs that don't have matched 64-bit DLLs. How can I invoke these DLLs from a 64-bit application written in Delphi XE2? 回答1: No, you cannot directly do this. A 64 bit process can only execute 64 bit code, and a 32 bit process can only execute 32 bit code. The trick is to use multiple processes.... (Note this can be done for non visual code, and even for GUI elements, though there can be some small but problematic behaviors for visual elements.) The most common solution is to

Helpfile opened from modal window unresponsive

佐手、 提交于 2019-12-29 05:25:30
问题 Using Delphi XE2, Win64. So I have a large application with many forms and if I open the help file from the main form and open a modal window and then hit F1 to fire off context-sensitive help on the modal window the help file window shows with the correct info but the help file cannot be closed until I close the modal window. I cannot even get the help file to have focus again if I go back to the application until the modal window closes. Calling this exact same help file from the old

Animated Cursor Playing

六眼飞鱼酱① 提交于 2019-12-25 18:43:36
问题 I have a Form "TForm1" having one "TAnimate1". I have one AVI Resource as File Name "Animate 01.avi" with Resource Identifier "AVI" and one "Animated Cursor" as File Name "Cursor 01.ani" with Resource Identifier "8".I wish to play "Animate 01.avi" on "FormCreate" event and set default cursor as "8". I'm using "Delphi XE2". Please download my project file from "http://hotfile.com/dl/137675080/34f701f/KoushikHalder01.7z.html" and tell where to rectify. 回答1: Ok, downloaded... First, you're