VC 6 開發PHP擴充套件

2021-05-23 19:22:30 字數 1033 閱讀 2750

軟體                         

php-5.3.3-win32-vc6-x86.zip                  

binary-tools.zip                    

vc++6.0                      

php-5.3.3.tar.gz                     

1.解壓 php-5.3.3-win32-vc6-x86.zip, 同時把 bin目 錄新增到環境變數中                    

2.解壓 binary-tools.zip把解 壓 出來的bin目 錄 新增到 環 境 變 量中                

3.在vc++6.0中,尋找 cl.exe和mspdb60.dll檔案,分 別把兩者所在的目錄新增到環境變數中。          

4解壓 php-5.3.3.tar.gz,先後 執行 buildconf和configure命令,               

執行完成之後,會生成extension所需要.h檔案                

5進入到 php源 碼的 ext目 錄中,執行命令 php  ext_skel_win32.php --extname=hello            

6.拷貝 php-5.3.3/dev目 錄 下的php5ts.lib檔案到ext/hello目 錄下                

7.用vc6開啟 hello.dsp, 執行 relea狀 態編譯                    

執行編譯, ok!                   

8在php原始碼目錄 release_ts會找到新生成的php_hello.dll檔案               

9.把php_hello.dll 拷貝到php安裝目錄下的ext 目錄下,修改安裝目錄下的php.ini, 新增extensions=php_hello.dll

10. 在hello 目錄下用下面命令進行測試:

php -f hello.php.

vc6 控制項

詳見msdn 為控制項新增乙個控制項型變數然後訪問之 edit idc edit1 m edit1 void ctest1dlg onbutton1 也可以直接使用id訪問 cstring str int i getdlgitemtextw idc edit1,str afxmessagebox s...

VC6設定Unicode開發模式

1 將vc98 mfc lib下的mfc42u 手動拷貝到對應的安裝目錄下 2 為工程新增unicode和 unicode預處理選項 project settings c c preprocessor definitions,去除 mbcs,新增 unicode,unicode 3 設定程式入口點 ...

vc6編寫python擴充套件的方法分享

系統環境 vc6 python 2.5.4 1 python 2.5.4原始碼。2 解壓,開啟d python 2.5.4 pc vc6 pcbuild.dsw,編譯,d python 2.5.4 pc vc6 下得到python25.dll python25 d.dll python25.lib ...