In VC DLL
function 前不需要加入 __declspec(dllexport),要匯出的function名稱加入 .def 即可,避免name mangling
function 之 calling convertion 為 __stdcall
ex. int __stdcall GetCPUSpeed()
使用.def 作出的 Dll,可被 VC 及 VB 程式呼叫
VB 傳參數進 VC DLL
例一 : Call By Reference
In VB,若function宣告為
Private Declare Function GetStrFromVC1 "z:DllDebugDll2.dll" ( ByRef PA as integer, ByRef str1 as String) As String
呼叫
view plain
Visual Basic:
Dim strRet as String
Dim PA as Integer
Dim strOutStr as [...]
27 四月, 2006
Posted by: asd In: 科技新知| 網站推薦
Visual Basic 6.0中文版精選重點講義
VB心得筆記
DeveloperFusion
Karl E. Peterson - vb.mvps
EDais
VB helper- Files and Directories
VB helper- Strings
VBExplorer - Tutorials
VBScript Function List
How To Callback Visual Basic Functions From a C DLL
如何使用VC回調VB函數
VB Hardcore -Ebook
COM Data Type Mapping
visualbasic.about -articles
How to create a C++ COM dll to use with VB
VB Text-To-Speech(TTS) example using MS SAPI
08 十一月, 2005
Posted by: asd In: 網站推薦
含豐富的Example、Tutorial、Library
http://edais.mvps.org/SiteMap/index.html