how can use old MFC functions inside a .NET project?

  • Thread starter Thread starter gif
  • Start date Start date
G

gif

I need use some old function contained in MFC.
But my project is a .NET (VC++.NET 2003), so how can i do?

THANKS for answers.
 
i would use FlashWindow()
Anyway is it no possible to use MFC in .NET?
Dump MFC and try to use the pure .NET code.
Mixing MFC/.NET is going to give you a lot of headaches since they are
complete different ways of programming.
 
gif said:
ok but if i need a function that there is not in .NET for example
FlashWindow()?

Try this:

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int FlashWindow (int hwnd, int bInvert);


Ferdinand.
 
Back
Top