How to debug vb dll detailed steps

How to debug vb dll detailed steps

(Author: Happy small claw QQ: 461699029)

The school dll write programs for the people of useful pages Baidu only a handful of few words

Now let me talk about the specific steps to write that those who do not ado

1. In the original dll project (for example as: dll project name: ABxzMsdyht) --- in the "Add project ---" standard exe-- "open a project created to automatically generate 1 form1 form. --- "Generate project 1.exe

2. Add a button to add code in the form form1 button code:

The Command1_Click Sub Private ()
Dim AAAA of As New cdText
AAAA.xianshizhuchuangti 'displays the main form drawing
End Sub

Note: CDTeXt as dll (project: ABxzMsdyht) in a class module name

3. In the dll: Project Properties (Project ABxzMsdyht) --- in the "Debugging ---" start the program - "to browse to the project under this document 1.exe

Select binary compatible components tab ----- "OK

4. Project 1. Start subject changed to: form1

5. Engineering, a reference position - the "Browse -" find ---- "ABxzMsdyht.vbp under this document (note References dialog box: file type: all files (*. *)) --- - "open ---" OK

6. File --- "Save generate engineering group so that you can use F8 step by step debug dll

Note: In the dll project 1.exe and class modules are set breakpoints, step by step so that you can use F8 debug dll

Guess you like

Origin blog.csdn.net/qq_24470501/article/details/90671743