Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
i have 2 applications.
my**or c#**) project and external application
the external application is developed by delphi.
i want to extract information from this application (extract cells from the `TStringGrid` control).[Image!!!]
extract the `1 2 str str` into my project.
To make it more convenient to solve the question this is the download of the `external` application:
this is my code so far:
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function FindWindow( _
 ByVal lpClassName As String, _
 ByVal lpWindowName As String) As IntPtr
End Function
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function FindWindowEx(ByVal parentHandle As IntPtr, _
                  ByVal childAfter As IntPtr, _
                  ByVal lclassName As String, _
                  ByVal windowTitle As String) As IntPtr
End Function
The Code:
        Dim TheMainForm As Integer = FindWindow("TCells", "Cells")
        Dim GV As Integer = FindWindowEx(TheMainForm, 0, "TStringGrid", "")
I'm sure that there is a answer to this question.
It is very important to resolve this question because without it my project will not move forward.
Posted 30-Dec-12 10:43am
Abhishek Pant at 30-Dec-12 16:21pm

"I'm sure that there is a answer to this question"
Yes for every question there is a answer! I'll not download anything just post here.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The answer was posted here a couple of days ago[^]
Essentially, if whoever wrote the Delphi program did not provide a means of getting at the data then you're going to have to do some fairly technical reverse engineering of the program to get at it's information - which may violate a licence
jhdsfhsdf123 at 1-Jan-13 15:21pm
this is not an answer.
CHill60 at 2-Jan-13 5:27am
"This is not an answer" - true. But the answer at the link was reasonably clear ... "Anyway, whilst what you ask for is, in theory possible, in reality it is completely impractical. The sensible solution is to ask the authors of the Delphi program to provide an automation interface."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 315
1 Mika Wendelius 275
2 CHill60 190
3 TheRealSteveJudge 184
4 Abhinav S 170
0 Sergey Alexandrovich Kryukov 8,613
1 OriginalGriff 6,546
2 Peter Leow 3,897
3 Zoltán Zörgő 3,456
4 Richard MacCutchan 2,472

Advertise | Privacy | Mobile
Web03 | 2.8.150123.1 | Last Updated 30 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100