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 » static link? Collapse All
Subject Author Date
secret secret Mar 26, 2006 - 2:11 PM

Hello!

I need to static link Prof-UIS to with my application, but i dont see any way how to do it.

I’ve added __STATPROFUIS_WITH_DLLMFC__ define in my stdafx.h, but compiler still want to link with the dll version.

I really cant use the dll version, my application need to be monobloc, no aditional dlls around.

Thanks in advance.

secret secret Mar 26, 2006 - 4:58 PM

ok, i’ve remove __STATPROFUIS_WITH_DLLMFC__, and i get same problem. It only want to link with the DLL version which i dont want.

I use vs2005, if can help somehow.

Technical Support Mar 27, 2006 - 7:06 AM

If MFC is used as a DLL in your project then Prof-UIS is also automatically used as a DLL. If MFC is used statically, then Prof-UIS is automatically used as a static library. So, simply check how MFC is used in your project settings and nothing else. But it is possible to use MFC as a DLL and link your app with Prof-UIS statically if you define the __STATPROFUIS_WITH_DLLMFC__ preprocessor symbol in the preprocessor settings of your project and rebuild it completely. If the problem persists, just send us a test project so we can help you.