Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

How to call public module function from DLL

$
0
0
Hi,

I have an exe file and a dll file (include a module1.bas, class1.cls) was compiled

Module1.bas
Code:

Public Function TestFunc()
Msgbox "hello"
End Function

Class1.cls
Code:

Public Sub TestSub()
Msgbox "hello sub"
End Sub

In exe file, i use clsRegServer class to dynamic load dll file

i have try with CreateObject("ProjectName.class1") and call sub, that is ok
but i don't know how to call TestFunc

Somebody could tell me how to call public function from my module ? or anyway like dynamic declare function :D

sorry, my english not good

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>