Message 1 of 8
Visual Basic v6 and DDE problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
I have the following Visual Basic 6 code that I am using
to control AutoCAD LT from.
sExePath = "C:\Program Files\AutoCAD LT 2004\aclt.exe"
sAcadVersion = "AutoCAD LT"
Text1.LinkMode = 0
Text1.LinkTopic = "AutoCAD LT.DDE|system"
Text1.LinkMode = 2
Text1.LinkExecute OutputString & Chr(13)
My client wants to use a similar routine for both
AutoCAD 2002 and AutoCAD 2006, thus:-
sExePath = "C:\Program Files\AutoCAD 2006\acad.exe"
sAcadVersion = "AutoCAD"
Text1.LinkMode = 0
Text1.LinkTopic = "AutoCAD.DDE|system"
Text1.LinkMode = 2
Text1.LinkExecute OutputString & Chr(13)
Obviously...
I know that the paths change etc, but it still will not
work. Any assistance would be very grateful.
Many thanks in advance!
Darren
I have the following Visual Basic 6 code that I am using
to control AutoCAD LT from.
sExePath = "C:\Program Files\AutoCAD LT 2004\aclt.exe"
sAcadVersion = "AutoCAD LT"
Text1.LinkMode = 0
Text1.LinkTopic = "AutoCAD LT.DDE|system"
Text1.LinkMode = 2
Text1.LinkExecute OutputString & Chr(13)
My client wants to use a similar routine for both
AutoCAD 2002 and AutoCAD 2006, thus:-
sExePath = "C:\Program Files\AutoCAD 2006\acad.exe"
sAcadVersion = "AutoCAD"
Text1.LinkMode = 0
Text1.LinkTopic = "AutoCAD.DDE|system"
Text1.LinkMode = 2
Text1.LinkExecute OutputString & Chr(13)
Obviously...
I know that the paths change etc, but it still will not
work. Any assistance would be very grateful.
Many thanks in advance!
Darren