(´・∀・`) JScript . ..
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
91:デフォルトの名無しさん 06/09/30 21:53:54 WSH(JScript)からJScript.NETで作ったコンポーネントを利用するテスト D:\>type MyServer.js import System; import System.Runtime.InteropServices; public Guid("E65CFE0B-2F1E-45A4-9FBE-4CC1D2B20AE8") ProgId("MyServer.Sample") class MyServerSample { private var _property : int = 0; public function Method(s: String): int { Console.WriteLine(s); return s.Length; } public function get Property() : int { return _property; } public function set Property(n : int) { _property = n; } } 92:デフォルトの名無しさん 06/09/30 21:55:00 D:\>jsc /nologo /t:library MyServer.js D:\>regasm MyServer.dll /tlb:MyServer.tlb /silent D:\>copy MyServer.dll %SystemRoot%\System32 1 個のファイルをコピーしました。 D:\>type test.js var Sample = new ActiveXObject("MyServer.Sample"); Sample.Property = 123; Sample.Method(Sample.Property); D:\>cscript //nologo test.js 123 D:\>
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5380日前に更新/43 KB
担当:undef