Hi , I have a embededVC code something like this: DWORD wc = WaitForMultipleObjects( sizeof(hObjectList)/sizeof(HANDLE), // number of handles in array hObjectList, // object-handle array FALSE, // wait option (DWORD) INFINITE // time-out interval ); switch ( wc) { case WAIT_OBJECT_0: break; case WAIT_OBJECT_0 + 1: //Center button if (WaitForSingleObject(hCenterState,0)==WAIT_OBJECT_0) { /*hCenterState button pushed*/ ::SendMessage(hWnd,WM_TRIGGER_PULL,0,0); } break; } the above code is in a function which is on a thread (obviously) ...(. thread is initiaited on WM_INITDILAOG of the dialog.I pass the dialog handle to the creathread function) Problem is that the SendMessage function posts a message WM_TRIGGER_PULL only for the first time i open the dialog.If i exit the dialog and then open it again , this time the SendMessage does not post the WM_TRIGGER_PULL message. i cant get y it cant post the msg the second time. Any body has solution to this is most welcome with a reply. thanks in Advance:)
Shailesh Ha
Posts
-
SendMessage does not work -
,Hi
-
application not executing!nope not migrated from debug to release. Only the PC was started again (sounds funny!! )
-
application not executing!I had developed in embeded VC application(MFC)it was working fine .... Next day when i build the workspace and run the application...its not executing!!.. i cant figure out how?? can any one tell me the solution regards Shailesh
-
including C++ header file in .C fileHello, when i include a header file of a class in a ".c" file ...i get error ... "class name" is undefined identifier. how do i solve this? amy clues? regards Shailesh
-
CocreateInstance failsmy code ..is somewat like this HRESULT hrStatus = CLSIDFromProgID( TEXT("some"), &clsControl ); if( SUCCEEDED(hrStatus) ) { // // Create the object and initialize it. // hrStatus = CoCreateInstance( clsControl, NULL, CLSCTX_INPROC_SERVER, IID_IControl, reinterpret_cast(&m_pControl) ); if( SUCCEEDED(hrStatus) ) { //some code } } regards Shailesh
-
CocreateInstance failsHi Prasad I cant use coinitialize function ..gives linker error..i think its coz its not a VC++ apllication that i m working on . Its a Embeded VC++ application that i m working on. regards Shailesh
-
CocreateInstance failsHello ur right m_pControl is NULL ..hence error.. I can giv u some more of the code ... HRESULT hrStatus = CLSIDFromProgID( TEXT("What ever prog ID"), &clsControl ); if( SUCCEEDED(hrStatus) ) { // // Create the object and initialize it. // hrStatus = CoCreateInstance( clsControl, NULL, CLSCTX_INPROC_SERVER, IID_IControl, reinterpret_cast(&m_pControl) ); if( SUCCEEDED(hrStatus) ) { // some code } }
-
CocreateInstance failsHi, Problem is that A call to CocreateInstance fails ....hence the requested interface pointer shown is NULL ...hrStatus = CoCreateInstance( clsControl, NULL, CLSCTX_INPROC_SERVER, IID_Control, reinterpret_cast(&m_pControl) ); ABOVE the IID_Control is showing as NULL... Any solutions , Kindly let me know regards Shailesh
-
eVC++ SDK application devAnybody knows any sites/links/articles on developing eVC++ SDK (NOT MFC)applications??
-
converting exe to Web ApplicationHello I have a VC application (EXE) and i want to convert it to a Web Application how can it be done in Dot net? regards Shailesh
-
using C# code in VC++(MFC) applicationHELLO Thanks for your reply.. I also want to discuss another thing or 2 with u First is can i implement my C# developed UI component as a COM and call it from my VC.Net MFC aplication (as u said that VC.Net (mfc) application cannot call a C# DLL).... Also If i want to give Net connectivity to my VC.Net MFC application i.e to be able to upload certain files over the network may be, then how can i do it in Dot net.Can i use Asp.net or ne other way?? thankx regards Shailesh
-
using C# code in VC++(MFC) applicationHello Was nice to get a reply from u. Ill think about the options u told me. Another issue that i wana discuss with u is that of connectivity to the net. How can i use ASP.net to connect my VC MFC application to the net. Also if i want to make my application as Web applcation wat provisions do i have in Dot Net. Thank you ;) regards Shailesh
-
using C# code in VC++(MFC) applicationHello Thanks for your feedback I still wana clear certain things As u know my application is VC++ Doc-View application and, i want to create custom User controls like tree control in C# as a component DLL (may be) and want to add to my DOc View application frame. Is this possible? if not...which other way can i solve the problem My Problem is that i cannot rewrite the code as C# (as the VC APP is gigantic) thnks in Advance
-
using C# code in VC++(MFC) applicationI am new to Dot Net.I have a VC++(MFC) application. I want to add better user interface to my application using c# or may be VB.Net. Which are the different ways i can do it??...can C++ code call C# code ?? should i implement as C# dll ??...or are there any other ways i can do it? looking forward for reply thankx in advance Shailesh
-
exporting classes using regular dllThanks for the INFO how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?
-
exporting classes using regular dllhow do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
-
exporting classes using regular dllhow do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
-
Rotation of multiline textMy problem is that when i rotate my multiline text 180 degrees , the text is rotated but the ordering of lines in the text is wrong as the first line comes as last and last line comes as first(for eg. if i have two lines line1 & line2 then after rotation line2 is displayed and below it line1 is diaplayed).I have passed the DT_WORDBREAK as parameter to the CDC drawtext function to handle word wrapping. Is ther any other way to handle rotation of multiline text? Kindly let me know
-
Finding the break character in word wrappingIs ther any function in MFC to get the break character position (i.e position in the text at which the text breaks for word wrapping). Kindly let me know Thanks