Problems with the extension API

I am having problems with the extension API provided by my Microsoft. This is an API written in C ++, so to use it with C # you must use the .dll import series as described in this question .

My problem arose after I received the increase. I used my mouse to enlarge a predefined area of ​​the screen, the magnification was set in the rectangle, the rectangle filled WinForm, I placed the form on top of the mouse (the mouse is in the center of the form), and the form will follow my mouse around the screen.

About 80% of the time, the application will start using a black screen. I have tried many different types of updates, but cannot find a fix. The magnification will not be displayed, it will only display a black screen. None of this will appear, only a black screen. Thus, only a black screen appears, compared to the zoom API.

+6
source share
1 answer

The problem is with Windows 32 and 64 bit systems. There is a forum post about this issue .

I changed the build of my project from x86 to any CPU - fixed the problem without requiring coding.

In Visual Studio 2010: in the Solution Explorer, right-click the project> select Properties> select the Assembly tab), and in the Platform section, select Any Processor.

+4
source

Source: https://habr.com/ru/post/923565/


All Articles