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 » Problem with linking DLL Collapse All
Subject Author Date
Seeker May 21, 2003 - 8:10 AM

Hello.

Could someone tell there is different in including Prof-UIS DLL using either Visual Studio .NET or Visual Studio 6.0?
I’ve got situation when well-working project under VC++ 6.0 doesn’t go under VC++ .Net.
Problem is calling g_PaintManager.InstallPaintManager(RUNTIME_CLASS(CExtPaintManagerXP)). There are two 2 unresolved externals: CExtPaintManagerXP and CExtPaintManager at once. What is wrong?

Sergiy Lavrynenko May 21, 2003 - 9:46 AM

Hi,

There is only one difference related to the library usage with VC++ 6 and VC++ 7:

- VC++ 6 projects should be linked with the
libaries in the "...\Prof-UIS\Bin6" folder;

- VC++ 7 projects should use the "...\Prof-UIS\Bin7" folder;

If you have started your project development with VC++ 6 and now going migrate to VC++ 7 - please verify which libraries are linked together with your project under VC++ 7.

My suggestions are:

- add "...\Prof-UIS\Include" and "...\Prof-UIS\Bin???" folders to the both VC++ environment settings (NOT project settings);

- remove these folders from your project settings if any;

Regards,
Sergiy.

Seeker May 22, 2003 - 12:48 AM

Hi,

Well I’ve tried to follow your advice, but project settings of Prof-UIS library allow to get VC++ 6 version only (output directory Bin6). I have Prof-UIS-221-Free version and there weren’t any libraries in the Bin6 and Bin7 folders in Prof-UIS project supply. I’ve compiled the library. Does it turn out that I’ve got only VC++ 6.0 version?

Would you tell how I can compile the library for using under VC++ 7?

King regards,
Max.

Sergiy Lavrynenko May 22, 2003 - 7:49 AM

Hi Max,

Don’t give up! :-)
Please take a look at the "...\Prof-UIS\Workspace" folder. You can find 2 interesting files here:

- file "ProfUIS.dsw" - this is the workspace file for VC++ 6;

- file "ProfUIS.sln" - this is the solution file for VC++ 7;

You don’t have to open DSW file in VC7 and convert it into the SLN solution format because ProfUIS.sln is ready for you.

Please notice:

- DSW workspace contains profuisdll, profuislib and all the sample projects (DSP files); they are configured to produce outputs into BIN6;

- SLN solution file contains the same projects (VCPROJ files) but they outputs into BIN7;

Before use Prof-UIS in your project(s) you should compile the library. The profuisdll project produces library DLLs (and their stub LIBs). The profuislib project produses static LIBs only.

For example, the most common situation when your application uses MFC as DLL and MBCS strings. You need the ProfUIS221md and ProfUIS221m files (first-debug, second-release). They are produced by profuisdll project ("WIN32 MBCS Debug" and "WIN32 MBCS Release" configurations).

You can write me a letter to l_sergiy@fossware.com and I will reply with the detailed explanation in HTML format (step by step) and VC7 screenshots.

Regards, Sergiy.

Seeker May 27, 2003 - 7:35 AM

It’s working :)

Thanks for explanation.