使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件

编程入门 行业动态 更新时间:2024-10-22 08:16:07
本文介绍了使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我们需要从 c# 中获取 Delphi 应用程序的某些控件的值.我们使用了 SendMessageWM_GETTEXT 来获取文本中的文本

We need to get the value of some controls of a Delphi application from c# . We have used SendMessage and WM_GETTEXT for getting the text in a text

但是我们在 Delphi 应用程序中有 DataGrid (TcxGrid) ......我们无法遍历行并读取一行中的列的值......关于如何做到这一点的任何想法完成

However we have DataGrid (TcxGrid) in the Delphi application... We are unable to iterate through the rows and read the value of columns in a row... Any idea on how this can be done

推荐答案

建议您可以使用 AutoIT 的 C# 控件类.https://www.autoitscript/site/autoit/.我成功地使用它来自动化几个用不同语言编写的复杂应用程序.它很容易理解,它隐藏了 SendMessage 和其他血腥细节的所有复杂性并完成了工作.

As a suggestion you can use the C# control class of AutoIT.https://www.autoitscript/site/autoit/. I used it successfully to automate several complex applications written in different languages. It is easy to understand and it hides all the complexity of SendMessage and other gory details and gets the job done.

这篇关于使用 WinAPI 从 C# 的 Delphi 应用程序访问 TcxGrid 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 23:51:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   应用程序   WinAPI   Delphi   TcxGrid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!