ÔõôʵÏÖdosÏÂrunas×Ô¶¯ÊäÈëÃÜÂë
http://bbs.pfan.cn/post-278076.html
´úÂëÈçÏÂ:
VB code:
Option Explicit
Private Const LOGON_WITH_PROFILE = &H1&
Private Const CREATE_DEFAULT_ERROR_MODE = &H4000000
Private Const CREATE_NEW_CONSOLE = &H10&
Private Const CREATE_NEW_P ......
m_MsgAttach = RegisterWindowMessage(_T("SkypeControlAPIAttach"));
m_MsgDiscover = RegisterWindowMessage(_T("SkypeControlAPIDiscover"));
ÔÙ½«discoverÏûÏ¢¹ã²¥³öÈ¥
::SendMessage( HWND_BROADCAST, m_MsgDiscover, (WPARAM)m_hWnd, 0 )
skypeÈç¹ûÓеǼµÄ ......
ÎÒÓÃ
#include "python.h"
Py_Initialize();
PyRun_SimpleString("execfile('x.py')");
Íâ´øpython2.6.dllÕâÖÖ·½Ê½ÈÃc++ǶÈëpython£¬·¢²¼³ÌÐòµÄʱºò£¬¾ÓÈ»»¹ÊÇҪװpython£¬²Å¿ÉÒÔÕýÈ·ÔËÐе½x.py½Å±¾¡£
²»×°pythonµÄ»úÆ÷£¬ÔËÐÐc++³ÌÐò»¹ÊDz»ÄÜÖ´ÐÐx.py½Å±¾£¿
ÕæÔΣ¬»¹ÓÐPILÄ ......
ÇëÎÊc++builderÖÐÈçºÎµ÷ÓÃdelphi±àдµÄº¯Êý£¿
ÈçÔÚdelphiÖк¯Êý¶¨ÒåΪ function a(s1:string, s2:string):string;
ÄÇôÔÚc++builder³ÌÐòÖÐÈçºÎ¶¨ÒåÕâÒ»Íⲿº¯ÊýÄØ£¿
Ö±½Ó½«pasÎļþ¼ÓÈ빤³Ì£¬±àÒë³É¹¦ºó£¬»á×Ô¶¯ÐγÉÒ»¸öÍ·Îļþ
±àÒëÒÑͨ¹ý£¬ÇÒincludeÁËhppÎļþ£¬¹Ø¼üÊÇÈçºÎÔÚc++builderÖÐʹÓÃÕâ¸öº¯Êý£¿£¨Ôõô ......
ÈçºÎ°ÑÏÂÃæµÄº¯Êýת»¯³Édelphi
BOOL CloseProcess(CString strProcessName)
{
HANDLE Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32 pe32;
pe32.dwSize = sizeof( PROCESSENTRY32 );
BOOL bWork = Process32First(Snapshot, &pe32);
while (bWork)
{ ......
ͬ±êÌ⣬¸ÃÀàÊÇDirectShowÖеÄÒ»¸öʾÀý£¬ÇóÈçºÎ½«Æäת»¯³ÉDelphi´úÂ룬Íò·Ö¸Ðл£¡£¡
C/C++ code:
// ÀàÉùÃ÷
class CErrReporter : public IAMErrorLog
{
protected:
long m_lRef; // Reference count.
public:
CErrReporter() { m_lRef = 0; }
// IUnknown
STDMETHOD(QueryInterface ......