Home > Software engineering >  What a great god can help me have a look? Old me the DDE VB6.0 by use of AutoCAD and communication w
What a great god can help me have a look? Old me the DDE VB6.0 by use of AutoCAD and communication w

Time:09-23

 Option Explicit 

Private Sub cmdLine_Click draw a straight line () '
Text1. LinkExecute "[^ 3 ^ 3 line 3, 8, 8 ^ 3)"
End Sub

Private Sub cmdText_Click () 'annotation text
Text1. LinkExecute "[^ 3 ^ 3 text 10, 1 90 AUTOCAD! ^ 10]"
End Sub

Private Sub cmdLink_click () 'links
Text1. LinkMode=0
Text1. LinkTopic="AutoCAD | System", "
Text1. LinkMode=2
End Sub

Private Sub cmdExit_click () 'exit
End
End Sub
Sub linkapp (Link As Control, Appname As String, Topic As String)
The Link. LinkMode=0
The Link. LinkTopic=Appname + "|" + Topic
The Link. LinkMode=2
End Sub
Private Sub Layer_Click ()
AppActivate "AutoCAD"
SendKeys "open" {Enter}
Linkapp Form1 Text1, "AutoCAD. DDE", "System"
Form1. Text1. LinkExecute "[center] Layer M"
Form1. Text1. LinkExecute "[center] red Layer C L"
End Sub

CodePudding user response:

CodePudding user response:

Students party, please help thanks

CodePudding user response:

You can find a DDE example of Excel try first,
Is likely to stop DDE antivirus software,

CodePudding user response:

reference Tiger_Zhao reply: 3/f
you can find a DDE example of Excel try first,
Is likely to stop DDE antivirus software,

Hello, may I vb and EXCEL, and then I turn off the computer butler to, the most important thing is that my communications vb and CAD is written under the Windows 7 virtual machine, why don't DDE links, CAD need to set up, please?

CodePudding user response:

Help, couple hood, entering the BBS less than a week,

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

CodePudding user response:

refer to 6th floor 4 teacher zhao response:
under the 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

Hello, my native is win1064, the virtual machine is a 32-bit Windows 7,

CodePudding user response:

Don't quite understand the meaning of the 6th floor

CodePudding user response:

For help, new students, BBS

CodePudding user response:

Com is commonly used in communication

CodePudding user response:

A warm-hearted man? Thanks to passers-by, really a small problem

CodePudding user response:

references to the tenth floor zzyong00 response:
general use com communication ah

But I am a beginner, so must start from basic

CodePudding user response:

I'm sorry, just saw
For the secondary development of autocad, not familiar with,
In addition, if the target is practical, it is best not to pester aotucad, because it belongs to the 2 d CAD, many functions such as 3 d entity modeling, parametric drive, and variant design, configuration design, on the 2 d software to implement very trouble, and few continue on aotucad
There are two kinds of 3 d CAD, mid-range, high-grade three (in the domestic common)
Suggest using 3 d software, the data communication also has a special interface
  • Related