Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by poicito

  1. poicito

    FindWindow and PostMessage compile problems

    Sorry about the first postmessage line and the italics. In my code the S is followed by a [ i ], but on this site, that creates italics.
  2. poicito

    FindWindow and PostMessage compile problems

    One more question. I put that same code into a DLL and it gives me a error C2440: 'initializing' : cannot convert from 'struct HWND__ *' to 'class CWnd *' error Here's what I'm putting in: int _stdcall MacexGo(LPCTSTR S) { CWnd *pWnd = FindWindow( NULL , "Macro Express Player" )...
  3. poicito

    FindWindow and PostMessage compile problems

    THANKS!!! That worked. The working code looks like this: void CAboutDlg::OnButton1() { LPCTSTR S; S = "TESTMACRO"; CWnd *pWnd = FindWindow( NULL , "Macro Express Player" ); HWND hWnd = pWnd->GetSafeHwnd(); int tt; tt = WM_USER + 20; int...
  4. poicito

    FindWindow and PostMessage compile problems

    I am a total newbie at VC++ (I am a pathetic, lowly VB programmer). I am creating a program in VC++ to send some information via PostMessage to a program called MacroExpress (to tell it to run a specific macro, etc). When compiling, I get the postmessagea "function does not take 4...

Part and Inventory Search

Back
Top