Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » .NET application? Collapse All
Subject Author Date
Wes Aday Oct 22, 2006 - 12:15 PM

I am new to the .NET framework and would like to start developing an application (VC++ 2005) using it but I also would like to use the Prof-UIS controls too. The 2 questions I have are:

1. Can the Prof-UIS controls be used in a .NET application using the .NET framework?

2. If you can, then how? Any articles descibing this? I can find only limited information using MFC in a .NET application and all of my experiments have failed.

Thanks

Technical Support Oct 23, 2006 - 8:11 AM

Prof-UIS is written in unmanaged C++. Because of that any application using both Prof-UIS and .NET code cannot be a 100% managed code application. One of the well-known examples of mixed native/.NET applications is SQL Server Management Studio that comes with Microsoft SQL Server 2005. Its primary UI is written using the same native code as in MS Office 2003 and Visual Studio 2005 but all windows inside control bars and inside the tabbed document area are written using Windows Forms library distributed with .NET.

You can code mixed applications of the following two types:

1) The main part is native. It uses MFC to control the message loop of the UI thread. Most of UI is implemented using Prof-UIS and looks like one solid main frame window. Other child windows inside Prof-UIS windows are based on Windows Forms and .NET code. Although we have coded applications of this kind, we have no samples demonstrating this approach. We must note this may be quite difficult for a novice. If you provide more info, we can code a startup project.

2) The application is managed but it uses one or more assemblies based on mixed unmanaged/managed code and/or Prof-UIS based ActiveX controls like Frame Features. Using the Frame Features seems to be the most simple case and its installer includes .NET sample applications. But Frame Features is limited to customizable toolbars and menus only.

Wes Aday Oct 23, 2006 - 8:42 AM

Thanks for the info

What I was hoping to do was use the Prof-UIS library in a managed application to provide some of the user interface controls, like docking windows, labels, buttons, etc. My main MFC application looks kind of like Outlook 2003 with a navigation bar on the left side and two docking windows in the rest of the client area. Was trying to figure out how to do the same type of thing in a managed app but using the Prof-UIS.

Sounds like it is just easier to use MFC to do a GUI and then use managed code on the back end instead of the other way around.