Hallo,
Für alle Tips und Ratschläge, wie ich folgenes "instance handle" verwenden kann, bin ich sehr dankbar
hInstance needs to be the module / instance handle of the module that contains your server registration script (resource ID 102). Use the value provided to WinMain() for a standard windows application. For an MFC application, it is provided as the
m_hInstance member variable for the CWinApp derived object.
The OPC Server Operation Specification
Initialize()
BOOL Initialize( HINSTANCE hInstance, CLSID &clsid, LPCTSTR pszVendorInfo,
nPriority = THREAD_PRIORITY_NORMAL )
Ich benutze eine Componente in der ich den OPC Server implementieren muss.
In dieser gibt es keine class WinMain() und kein Object CWinApp, dafür
aber eine DllMain
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
vielen dank
TJ
Für alle Tips und Ratschläge, wie ich folgenes "instance handle" verwenden kann, bin ich sehr dankbar
hInstance needs to be the module / instance handle of the module that contains your server registration script (resource ID 102). Use the value provided to WinMain() for a standard windows application. For an MFC application, it is provided as the
m_hInstance member variable for the CWinApp derived object.
The OPC Server Operation Specification
Initialize()
BOOL Initialize( HINSTANCE hInstance, CLSID &clsid, LPCTSTR pszVendorInfo,
nPriority = THREAD_PRIORITY_NORMAL )
Ich benutze eine Componente in der ich den OPC Server implementieren muss.
In dieser gibt es keine class WinMain() und kein Object CWinApp, dafür
aber eine DllMain
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
vielen dank
TJ