 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
kib48660
註冊時間: 2003-02-24 文章: 121
第 1 樓
|
發表於: 星期五 四月 02, 2004 5:16 pm 文章主題: 如何讓 vfp 自動 註冊 msinet.ocx |
|
|
1.在win98,me 只要copy \windows\system 即可
2.在nt,2000,xp copy 到 \windows\system32 還是必須用regsvr32 註冊
3. 可否由程式自動去判斷要不要註冊 |
|
回頂端 |
|
 |
Ruey
註冊時間: 2003-03-12 文章: 1698 來自: tunglo
第 2 樓
|
發表於: 星期六 四月 03, 2004 2:40 pm 文章主題: |
|
|
regsvr32一般都是這樣註冊.請找一下相關文章 _________________ #############################
快樂媽咪系列幸福宅配,喝十全雞湯~原來幸福那麼簡單!!
學會VFP使用者社區的搜尋,Code才會更有趣~
############################# |
|
回頂端 |
|
 |
violetlkk
註冊時間: 2003-06-21 文章: 84 來自: kaohsiung
第 3 樓
|
發表於: 星期六 四月 03, 2004 10:50 pm 文章主題: |
|
|
If shellex(0,"open","regsvr32.exe","/s msinet.ocx","",1) <= 32
_Screen.Visible=.T.
? "msinet.ocx register fail !!"
Wait ""
Quit
Endif
PROCEDURE ShellEx
PARAMETERS lnhndwin,lcaction,lcfilename,lcparams,lcdir,lnshowwin
DECLARE integer ShellExecute IN shell32.dll integer,string,string,string,string,integer
RETURN ShellExecute(lnhndwin,lcaction,lcfilename,lcparams,lcdir,lnshowwin) |
|
回頂端 |
|
 |
hongyu
註冊時間: 2004-04-09 文章: 1
第 4 樓
|
發表於: 星期五 四月 09, 2004 8:27 pm 文章主題: |
|
|
* -----------------------------
* 动态注册(dll、ocx)控件
* 红雨
* -----------------------------
Function DllRegister ( lpLibFileName, isReg )
isReg = IIF(TYPE([isReg])=[U], .T., isReg)
lpProcName = IIF(isReg, "DllRegisterServer", "DllUnregisterServer" )
Declare integer GetLastError in kernel32
Declare integer LoadLibrary in kernel32 string lpLibFileName
Declare integer FreeLibrary in kernel32 integer hLibModule
Declare integer GetProcAddress in kernel32 integer hModule, string lpProcName
Declare integer CallWindowProc in user32 integer lpPrevWndFunc, integer hwnd, integer Msg, integer wParam, integer lParam
hLibModule = LoadLibrary (lpLibFileName)
If hLibModule # 0
lnAddress = GetProcAddress (hLibModule, lpProcName)
If lnAddress # 0
If CallWindowProc( lnAddress, 0,0,0,0) = 0
= FreeLibrary (hLibModule)
Return .T.
Else
lnerror = GetLastError()
Endif
Else
lnerror = GetLastError()
Endif
= FreeLibrary (hLibModule)
Else
lnerror = GetLastError()
Endif
Return .F.
Endfunc
* ----------------------------- _________________ 笑傲江湖 |
|
回頂端 |
|
 |
violetlkk
註冊時間: 2003-06-21 文章: 84 來自: kaohsiung
第 5 樓
|
發表於: 星期日 四月 11, 2004 5:14 am 文章主題: |
|
|
not bad
thanks |
|
回頂端 |
|
 |
goto-dream
註冊時間: 2004-05-11 文章: 909
第 6 樓
|
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|