Delphi

How can I send keys to another application using delphi 7?

扶醉桌前 提交于 2020-01-02 05:27:14
问题 Ok, so Pretty much i am trying to send keystrokes of a string from and edit box to the active window and the enter key after. does anyone here know a working method of doing this in delphi 7? I have been searching for about an hour and a half for this now and i cant seem to find anything and the stuff I have found is ether for newer versions of delphi, or it just doesn't work. I have tried TTouchKeyboard but that's only for delphi 10 and newer. 回答1: I've used this to send text to an annoying

What tool can I use to merge wsdl and xsd file?

空扰寡人 提交于 2020-01-02 05:20:09
问题 I have two files, one with webservice description (wsdl), second with data structures used in webservice (xsd). I have nothing more, webservice doesn't work yet. I need to merge them into one, because Delphi 7 WSDL Importer doesn't handle included xsd files to well. Where can I find tool to do it? EDIT I copied xsd content into <types> section and it works. I tried it before, but I must have made a mistake and Delphi WSDL import didn't work. I have to improve my copy/paste skills. 回答1: You

Delphi 6, ADO, MS database “Date” field is same as ftWideString

梦想的初衷 提交于 2020-01-02 05:19:45
问题 I want to copy elements to a remote MS-SQL database. I got conversion error on it. When I checked the ADOTable structure I saw the MS field WHENCREATED DATE [NULL] is converted to ftWideString 10 Hmmmmm.... Is it normal? Or I can set something to Date fields are come as TDateTime? The Provider is "SQLOLEDB.1" 回答1: Its a DATE (yyyy-mm-dd) type which was introduced in SQL Server 2008 as an alternative to the DATETIME type. Because SQLOLEDB.1 precedes this there is a backward conversion to

Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a )

。_饼干妹妹 提交于 2020-01-02 05:14:10
问题 Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a ) ObjC Code : test.a // test.h --------------------------------------------------------------- #import <Foundation/Foundation.h> @interface mycalc : NSObject { BOOL busy; } - (int) calc : (int) value; @end // test.m -------------------------------------------------------------- #import "test.h" @implementation mycalc -(int) calc:(int)value { busy = TRUE; return ( value + 1); } @end Delphi XE4 Code "Unit1.pas" for Testing Unit1;

How do I respond to a resize event in my custom grid control?

拜拜、爱过 提交于 2020-01-02 05:12:07
问题 I am new to Delphi and I'm building a custom control derived from TStringGrid. I need access to the OnResize event handler. How do I get access to it? TStringGrid's parent has a OnResize event 回答1: Publish the OnResize event, which is protected by default in TControl . In an own descendant, you should not use the event itself, but rather the method that triggers the event. Doing it that way will give the users of your component the opportunity to implement an own event handler. Override the

What would be a good Delphi lexer/parser for Javascript language file? [closed]

这一生的挚爱 提交于 2020-01-02 05:07:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Background I want to be able to parse Javascript source in a Delphi Application. I need to be able to identify variables and functions within the source for the purpose of making changes to the code through later code. I understand that I probably need to use a lexer for this purpose but have not had much luck

pass adoconnection from vba to delphi

▼魔方 西西 提交于 2020-01-02 04:54:19
问题 I'm looking to create a COM object in a VBA macro and then pass it to a Delphi DLL (D2009). What should my procedure declaration in Delphi look like? Background: I'm expecting (hoping) the VBA macro to: create the COM object, invoke the Delphi DLL, pass the COM object to the Delphi DLL procedure, stay alive until the Delphi DLL closes itself (the DLL will have embedded forms for the user to interact with). I think I'll need to create a callback function to let the VBA macro know that I'm done

pass adoconnection from vba to delphi

筅森魡賤 提交于 2020-01-02 04:54:07
问题 I'm looking to create a COM object in a VBA macro and then pass it to a Delphi DLL (D2009). What should my procedure declaration in Delphi look like? Background: I'm expecting (hoping) the VBA macro to: create the COM object, invoke the Delphi DLL, pass the COM object to the Delphi DLL procedure, stay alive until the Delphi DLL closes itself (the DLL will have embedded forms for the user to interact with). I think I'll need to create a callback function to let the VBA macro know that I'm done

Generic defined in unit breaking debug information

冷暖自知 提交于 2020-01-02 04:52:08
问题 This must be a Delphi bug... I have a unit which is the basis of my persistance framework. In that unit I have a base class for all my domain objects, a list class and a generic list class. Just recently I noticed that when I step into the unit when debugging, execution will jump to a point a little further down in the file than it should... Maybe four or five lines. Re-ordering the file makes no difference. The code would also generate access violations, but only when I debugged it. I cast