作者mida (實況「野球」魂)
看板C_and_CPP
標題[問題] template function包成dll
時間Tue Oct 20 17:20:58 2009
我用VC6寫了一個dll,裡頭有一個class,
包含一個template function,
compile OK。
可是檔案產生後,我用depend看dll,
那個template function並沒有在其中,
所以無法透過此dll使用這個function,
請問這大概會是什麼問題呀?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.250.104
→ adxis:沒有export吧? 可以查msdn 我記得有dll walkthrough 10/20 17:29
推 LPH66:template function 好像是要用到才具現化 10/21 00:38
→ WPC001:建議再仔細看看什麼是template吧... 10/21 01:17
→ tinlans:所以它應該叫 function template,只是一個模版而已。 10/21 12:38
→ tinlans:倒過來寫反而會以為它是一個 function。 10/21 12:38