Category: Visual Studio
-
Create a C# control from MFC one.
Making MFC controls available for WinForms through MFC subclassing When trying to figure out how to use some of my MFC controls in a WinForms application, I came across this article by Rama Krishna Vavilala. As his article was targetting the .NET 1.1 framework, I decided to rework it for .NET 2.0. The main difference is the switch…
-
Adding folder to Dll in Visual studio Win32 apps
Go to project properties (Alt+F7) Under Debugging, look to the right There’s an Environment field. Add your relative path there (relative to vcproj folder) i.e. ..\some-framework\lib by appending PATH=%PATH%;$(ProjectDir)\some-framework\lib or prepending to the path PATH=C:\some-framework\lib;%PATH% Hit F5 (debug) again and it should work.