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 » How get rid output of "Automatically linking with Prof-UIS library: ..." Collapse All
Subject Author Date
Thomas Roeder Nov 18, 2005 - 11:10 AM


Hi,


During compilation of each source file I’ve an output like:


paramsteps.cpp


Prof-UIS multiple monitor support:


built-in


Automatically linking with Prof-UIS library: ProfUIS250ymd.lib


(Professional User Interface Suite)


paramdefinition.cpp


Prof-UIS multiple monitor support:


built-in


Automatically linking with Prof-UIS library: ProfUIS250ymd.lib


(Professional User Interface Suite)


 - How to get rid of that output?


Thanks.


 

Technical Support Nov 18, 2005 - 12:23 PM

You need to inlcude the Prof-UIS header file only once, i.e. in the StdAfx.h header.

Thomas Roeder Nov 18, 2005 - 12:54 PM

Hi,


I’ve included in my StdAfx.h this:


#if (!defined __PROF_UIS_H)


#include <Prof-UIS.h>


#endif // (!defined __PROF_UIS_H)


but anyways, it’s coming out again.


I’m using statically linked library ProfUIS250ymd.lib(for debug).


Should I define some preprocessor macro or something alse?


Any suggestions appreciated.


Thanks.

Technical Support Nov 18, 2005 - 1:38 PM

When you starting to use Prof-UIS in your existing project, you need only one line in your StdAfx.h file:

#include <Prof-UIS.h>
You don’t need to protect this include directive with pre-processor’s conditions and you also don’t need to include particular Prof-UIS headers into any file of your project. This schema is used in all the Prof-UIS sample applications and in thousands of customer’s projects passed through our support team. This is enough to use Prof-UIS DLL in your project within MFC/C++ run-time as DLL and Prof-UIS as static LIB within MFC/C++ run-time as static LIB. If you decided to use Prof-UIS as a static LIB within MFC/C++ run-time as DLL, you just need to add the __STATPROFUIS_WITH_DLLMFC__ symbol in the preprocessor symbols in you project.

First of all please check these statements again. Finally, please send us parts of your project (excluding meaningful sources, but including project and UI implementation source files) so we can check the settings.

Jonas Gauffin Nov 24, 2005 - 7:56 AM

I get exactly the same error.

My stdafx:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
#endif

#define REG_MAIN "Software\\Datatal\\FleXi\\Agent"
#define WINVER 0x0510        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#define _WIN32_IE 0x0600    // Change this to the appropriate value to target IE 5.0 or later.

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS    // some CString constructors will be explicit
#define _AFX_ALL_WARNINGS

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxcview.h>

#include <afxdtctl.h>        // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>            // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <Prof-UIS.h>
#include <string>
#include <Fatal/Object.h>
#include <Fatal/ThreadSync.h>
#include <Fatal/Log.h>
using namespace Fatal::IO::Log;
using namespace Fatal;
using namespace std;

Technical Support Nov 24, 2005 - 8:45 AM

It seems we know what’s wrong. We guess your project was created with a Visual Studio version earlier than 8.0 / 2005. The precompiled header settings of the project often get lost in this case, the StdAfx.h file no longer creates the header data base and other files in your project are compiled slowly. Of course, the Prof-UIS.h file is included the same number of times as the StdAfx.h file and that is why you see "Automatically linking ..." after each compiled source file.

Jonas Gauffin Nov 24, 2005 - 9:59 AM

I got rid of it when I took Buid -> Clean