CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 19

Threaded View

  1. #5
    Join Date
    Jun 2011
    Posts
    38

    Re: Capture a window

    So how do I use the Win32 functions? A quick try revealed I need to include windows.h where HWND and HANDLE are defined but that throws errors in the standard library files presumably because /clr is enabled. Simply switching off clr throws more errors even on a new project since VC2010 IDE still creates reference types which need clr... Thinks I need to start learning non - .net programming! My guess is I need to add a win32 project maybe dll or lib and link it to my project so I will need to find how to do those things.

    BTW the rest of the stuff is not difficult. Once I have a bitmap copy of the image window I can easily place a graticule over it and then it's simply a matter of moving the telescope with the manual controls to centre the star It needs to be quick and automatically updated though. ( that's why I can't use the app's Save function) An alternative would be if I could create a movable graticule by means of a transparent form with a scalable X or + drawn on it but I've not been able to do this either
    Last edited by RogerD; March 4th, 2013 at 06:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured