CapitolSoft Banner
bullet Features
bullet Tutorials
bullet F.A.Q.s
bullet Downloads
bullet Articles
bullet Open Architecture
bullet Control Development Kit
bullet RAD Foundation Class
bullet Enhanced IntelliSense
bullet Samples
bullet Migration Center
bullet Links

How to build / use RFC static libraries

 

How to build RFC static libraries?
First find the project files to build RFC static libraries in your RadVC installation folder. These files are located in the following locations:

rfc6s.dsp, rfc6s.dsw

project files to build RFC static library ( release build). 
Located in \\Program files\RadVC\rfc6s

rfc6sd.dsp, rfc6sd.dsw

project files to build RFC static library ( debug build).  
Located in \\Program files\RadVC\rfc6sd

To build the libraries, you need to make sure that the following paths are added to your DevStudio's Include directory list. These are: ['c:' is assumed as the RadVC installation drive]

c:\\Program Files\RadVC

c:\\Program Files\RadVC\Include

c:\\Program Files\RadVC\Src

c:\\Program Files\Microsoft Visual Studio\VC98\MFC\src

 

How to use RFC static libraries?

(1) Invoke the "Project Settings" dialog and click on the "General" tab. From the combo box "Microsoft Foundation Classes", choose "Use MFC in a Static Library".
(2) In the "Project Settings" dialog, click on the "library" tab. In the "Object / library" modules field, make sure that you are using the appropriate RFC static library. The name of the RFC static libraries for the debug and release builds are rfc6s.lib and rfc6sd.lib respectively.

Note: While compiling your project with MFC / RFC static libraries (with '3-way RAD' option turned off), you may get an error like the following:

Compiling resources...
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.rc (120): error RC2151 : cannot reuse string
constants, >> 61446(0xF006) - "1,12632256,1,MS Sans Serif,0,0,14,0,0,0,133,0,0,0,0,0,Tag,0,1,287,0,2,
RADVCTest,1,1,13,0,1,0,1,1,0,0,0, Form1,1,0,1,1,1,0,0,0,0,10,0,3,0,10,1,0,0,0,0," already defined. Cannot add 61446(0xF006) - "an unnamed file".
Error executing rc.exe.
 
This is a Microsoft "recognized" problem: Please visit the following link to understand more:
http://support.microsoft.com/support/kb/articles/Q194/2/99.ASP
The solution to this problem is simple: simply change the resource constant for the string ID with a value of 61446 to something different (we recommend 61447) and you won't get the error any more. The string constants are defined in the resource.h file of your project.
 

 

(Please note that RFC static libraries are only available in the registered version [RadVC 1.2])

 

 

 

[ Home ][ Order Now ][Feedback][ Contact Us ][ About CapitolSoft ]
[ Features ][ Tutorial ][ Samples ][ F.A.Q.s ][ Download ][ CDK ]