HI, I'm updating my C++ application in to multi thread application in VisualStudio 2013. In main(), thread's was created by CreateThread()and inside the thread's classA ObjA(); was created & called the function. In the classA it call another dll method. Dll was include in to the project through properties->Linker. Problem was when objA called dll method , application throws access violation reading location. But without multi-thread it works normal. Accessing dll method from multi-thread is same way as normal or any other things needed for accessing. Thanks in Advance.
shakumar_21
Posts
-
Calling DLL method from multi-thread -
How to call c# callback function from VC++Hi, How to call C# callback function from VC++ dll? In my project dll was developed in VC++ and it was accessed by c# application. Now I want to call callback function in C# application when particular event was occur in VC++ dll. Thanks in advance.
-
Regex replace exact 5 digit not more than thatHi I want to replace only 5 digit (not less than or not more than) to “xxxxx” with Regex I tried - InputString = "sample1: 12345 – sample2 : 123456789" Dim regExp As Regex = New Regex("(\d{5})") regExp.Replace(InputString, "xxxxx") output - "sample1: xxxxx – sample2 : xxxxx6789" But i want as "sample1: xxxxx – sample2 : 123456789" if more than 5 digit , it must not replace.
-
IDispEventSimpleImplHi, I try to include #include "stdafx.h" class CSofphoneView : public CFormView , public IDispEventSimpleImpl<1, CSofphoneView,&DIID__IUccEndpointEvents> in App & View class its working when I create new c++ class “CCallcontrol” without base class and include #include "stdafx.h" class CCallcontrol : public IDispEventSimpleImpl<1, CCallcontrol, &DIID__IUccEndpointEvents> but its gets below error. Give me the suggestion . c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4211) : error C2039: '_GetSinkMap' : is not a member of 'CCallcontrol' 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(9) : see declaration of 'CCallcontrol' 1> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4210) : while compiling class template member function 'HRESULT ATL::IDispEventSimpleImpl::Invoke(DISPID,const IID &,LCID,WORD,DISPPARAMS *,VARIANT *,EXCEPINFO *,UINT *)' 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(11) : see reference to class template instantiation 'ATL::IDispEventSimpleImpl' being compiled 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] in “stdafx.h” included #include // MFC socket extensions #include // MFC declaration for CTreeView #include // ATL Base #include // ATL COM #include // for CAtlMap #include Thanks&Regards shakumar
-
ATL error [modified]Hi, I try to include #include "stdafx.h" class CSofphoneView : public CFormView ,public IDispEventSimpleImpl<1, CSofphoneView,&DIID__IUccEndpointEvents> in App & View class its working when I create new c++ class “CCallcontrol” without base class and include #include "stdafx.h" class CCallcontrol :public IDispEventSimpleImpl<1, CCallcontrol, &DIID__IUccEndpointEvents> but its gets below error. Give me the suggestion . c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4211) : error C2039: '_GetSinkMap' : is not a member of 'CCallcontrol' 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(9) : see declaration of 'CCallcontrol' 1> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(4210) : while compiling class template member function 'HRESULT ATL::IDispEventSimpleImpl::Invoke(DISPID,const IID &,LCID,WORD,DISPPARAMS *,VARIANT *,EXCEPINFO *,UINT *)' 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] 1> d:\shanthakumar\sofphone\sofphone\callcontrol.h(11) : see reference to class template instantiation 'ATL::IDispEventSimpleImpl' being compiled 1> with 1> [ 1> nID=1, 1> T=CCallcontrol, 1> pdiid=& DIID__IUccEndpointEvents 1> ] in “stdafx.h” included #include "afxsock.h" // MFC socket extensions #include "afxcview.h" // MFC declaration for CTreeView #include "atlbase.h" // ATL Base #include "atlcom.h" // ATL COM #include "atlcoll.h" // for CAtlMap #include "atlctl.h" Thanks&Regards shakumar
modified on Monday, July 5, 2010 3:43 AM