From: Haoqi Haoqi Date: 2007-04-29T10:43:33+09:00 Subject: Re: unresolved external symbol __DllMainCRTStartup@12 Oh,yeah,I am successful! I copy code from http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html then (1)ruby extconf.rb --with-mytest-dir="C:/sdk" --with-mytest-lib="C:/VClib" --with-mytest-include="C:\sdk\Include\crt" (2)mt -manifest mytest.so.manifest -outputresource:mytest.so;2 (3)require "mytest" include MyTest puts test1 get Num "10",haha,very happy! -- Posted via http://www.ruby-forum.com/.