Delphi

Casting Delphi 2009/2010 string literals to PAnsiChar

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-12 06:21:12
问题 So the question is whether or not string literals (or const strings) in Delphi 2009/2010 can be directly cast as PAnsiChar's or do they need an additional cast to AnsiString first for this to work? The background is that I am calling functions in a legacy DLL with a C interface that has some functions that require C-style char pointers. In the past (before Delphi 2009) code like the following worked like a charm (where the param to the C DLL function is a LPCSTR): either: LegacyFunction(PChar

Use Team Foundation Server in Delphi 7?

拈花ヽ惹草 提交于 2020-01-12 06:20:30
问题 I'm a .NET developer and use VS2008/TFS2008. Recently, another developer has left our company and now I have to maintain his code. He was a Delphi developer (Delphi 7 mostly, but also Delphi 2007) and he didn't use any source control. Is there a way to put his code in Team Foundation Server? Integration in the Delphi IDE is a big plus. 回答1: To get IDE integration with TFS in Delphi 7, you need can use the MSSCCI provider for TFS in conjuction with SourceConnexion which gives MSSCCI support to

Use Team Foundation Server in Delphi 7?

白昼怎懂夜的黑 提交于 2020-01-12 06:20:10
问题 I'm a .NET developer and use VS2008/TFS2008. Recently, another developer has left our company and now I have to maintain his code. He was a Delphi developer (Delphi 7 mostly, but also Delphi 2007) and he didn't use any source control. Is there a way to put his code in Team Foundation Server? Integration in the Delphi IDE is a big plus. 回答1: To get IDE integration with TFS in Delphi 7, you need can use the MSSCCI provider for TFS in conjuction with SourceConnexion which gives MSSCCI support to

how to Simulate Ctrl+ c in Delphi

放肆的年华 提交于 2020-01-12 05:53:33
问题 is there any way to simulate Ctrl+C command in delphi ? the problem is i want that from another application for example copy a text from Notepad after select the target text . 回答1: (Let me preface this by saying that using the clipboard for inter-process communication is a bad idea. The clipboard belongs to the user, and your application should only use it as a result of the user choosing to do so.) If you have text selected in Notepad, this will get the contents into a TMemo on a Delphi form

Understanding Delphi MAP File

£可爱£侵袭症+ 提交于 2020-01-12 04:44:11
问题 Here is the sample of MAP file from my test project... ....... ....... ....... 0001:001EFC14 00000020 C=CODE S=.text G=(none) M=Vcl.CategoryButtons ACBP=A9 0001:001EFC34 0000284C C=CODE S=.text G=(none) M=Vcl.SysStyles ACBP=A9 0001:001F2480 000407A8 C=CODE S=.text G=(none) M=Vcl.Styles ACBP=A9 0001:00232C28 00006998 C=CODE S=.text G=(none) M=MainU ACBP=A9 0002:00000000 000000B4 C=ICODE S=.itext G=(none) M=System ACBP=A9 0002:000000B4 00000008 C=ICODE S=.itext G=(none) M=SysInit ACBP=A9 .....

VBto Converter v2.66 by Crack-REiS- SEO-狼术

非 Y 不嫁゛ 提交于 2020-01-12 03:18:25
   VBto Converter v2.66 by Crack-REiS(2016年3月7日)   用于将Microsoft Visual Basic 6.0项目(包括源代码)转换为资源和源文件的软件MS VC ++ MFC,VC ++。NET (CLR),VBNET,C#,J#,Borland C ++ Builder,Borland Delphi。   VB到MS VC ++   VB到MS VC .NET   VB到MS C#.NET   VB到MS VBNET   VB到Visual J#   VB到C ++ Builder   VB到Borland Delphi   新:   -改进了ADO到ADO.NET的转换。   -支持ADO,DAO,VBA,...-   支持(仅.NET)VB6 UserControls(CTL文件)。   -支持VS 2010,Delphi 2010,Delphi XE-   支持FileSystemObject。   -支持VB.Data(VB.NET,C#,C ++ Builder,Delphi)。   -添加了反编译程序VB5 / VB6的实用程序。该实用程序会提取格式,但不会反编译初始的VB6代码(在当前版本的VBto Converter中)。   VBto Converter 2.66(Crack-REiS).zip 16 Mb

Synchronizing/sending data between threads

狂风中的少年 提交于 2020-01-12 01:47:07
问题 The app is written in Delphi XE. I have two classes, a TBoss and TWorker, which are both based of of TThread. The TBoss is a single instance thread, which starts up and then will create about 20 TWorker threads. When the boss creates a instance of TWorker it assigns it a method to call synchronize on, when the Worker has finished with what it's doing it calls this method which allows the Boss to access a record on the Worker. However I feel this is a problem, calling synchronize appears to be

How to show Vista style balloon hints in Delphi?

故事扮演 提交于 2020-01-11 19:39:33
问题 On input validation, I'm using balloon tips instead of message boxes. My problem is that on Vista, they have the old XP style with the rounded corners, not the newer more rectangle like appearance. I've tried creating them using CreateWindowEx and tooltips_class32 or showing the Edit's associated balloontip using SendMessageW and EM_SHOWBALLOONTIP , the result is the same. Doing the same thing in Visual Studio and C# results in a Vista style balloon tip. You can see an example of the balloon

How can I read and write CSV in a way similar to NET FileHelpers?

走远了吗. 提交于 2020-01-11 19:12:52
问题 Anyone know how I can import/export csv, txt files in a way similar to NET FileHelpers, but using Delphi, taking spaces and quotes into account and handling traditional CSV escaping rules in a manner similar to the way CSV escaping works in Excel? ref. link http://www.filehelpers.com/ If your answer tends to be: "why this lazy guy dont write a simple CSV parser", consider this 5 minutes reading and then you will know why CSV parsing is not trivial: http://secretgeek.net/csv_trouble.asp 回答1: I

Delphi - Create class from a string

人盡茶涼 提交于 2020-01-11 17:29:00
问题 I got code like this name := 'Foo'; If name = 'Foo' then result := TFoo.Create else if name = 'Bar' then result := TBar.Create else if name = 'FooFoo' then result := TFooFoo.Create; Is there a way just to do result := $name.create or some way of creating class based of a variable value? All the classes extended the same base class. 回答1: Starting with Delphi 2010, the enhanced RTTI allows you do this without having to creating your own Class Registry. Using the RTTI Unit you have several