精華區beta Programming 關於我們 聯絡資訊
※ 引述《mgbe.bbs@bbs.ee.nthu.edu.tw (不要叫我不娘)》之銘言: > 請問要如何在VC的程式裡強迫去link一個 dll檔?! > Thanks! 用CoCreateInstance或CoCreateInstanceEx function來Call DLL, 但你必須透過一個ClassID來只到哪一個DLL,你可以參考MSDN內有說明。 Good Luck ^_^ -- ※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: 140.129.20.105 > -------------------------------------------------------------------------- < 作者: hotball (哲哲魚) 看板: Programming 標題: Re: 關於DLL ........ 時間: Fri Jan 8 20:48:08 1999 ※ 引述《mgbe.bbs@bbs.ee.nthu.edu.tw (不要叫我不娘)》之銘言: : 請問要如何在VC的程式裡強迫去link一個 dll檔?! : Thanks! use LoadLibrary to load a dll and get a handle then use GetProcAddress to retreve the address of the exported function in the dll. When the dll is no longer be used, use FreeLibrary to free the handle. -- ※ 發信站: 批踢踢實業坊(ptt.twbbs.org) ◆ From: kimicat.m1.ntu.