Hello all, I am using iocp in an application that routes frames between clients. However the threads in the iocp framework continue to exit (Return code: 0x0). :confused: Can anyone throw any ideas of what can make them do this? In advance thanks. Michael Olsen
Michael Olsen
Posts
-
iocp threads exit -
VB Callback function with string in VC DLLHello all, I am writing a DLL that wraps another DLL in an interface that can be called from VB. the dll ahs a callback function defined as typedef int(_cdecl *cbfuncText)(int HisNodeID, char *str, void *arg); In my wrapper DLL i have a function that translates this into a new Callbac function that is defined as typedef int(__stdcall *cbWfuncText)(int HisNodeID, char* str, void *arg); When i use the C string directly as shown here VB gets an empty string. when i try to use a BSTR instead, the VB program crashes. The VB function i use in the 2 situations are Function TextCB(ByVal HisNodeID As Long, ByVal str As String, ByRef arg As Long) As Long and Function TextCB(ByVal HisNodeID As Long, ByRef str As String, ByRef arg As Long) As Long Can anybody tell me what i am doing wrong? and/or give me suggestions of how to solve this? In Advance thanks Michael
-
how to run multiple instances of a serviceThanks for the reply. The service is a kind of router, and with multiple instances more customers could be serviced (on diferent ports) without mixing. like acidentialy sending data to another customer. I had hoped this could be done by starting the same service multiple times listening to different ports. Michael Olsen
-
how to run multiple instances of a serviceHello all, I have a problem figuring out how to start a service more than once at a time. it seems to be posible, but all my tries to date have failed. Could anyone help me with this problem? in advance, thanks Michael Olsen
-
Dynamic Change Between Single/Multi select i CListCtrlHello all, I have a problem with my app. i have a CListCtrl where i need to change between Multiple selected and single selected with a check box. I have been looking through the articles but didnt find anything. Can anyone help me please? In advance thanks, Michael Olsen