www.digitalmars.com         C & C++   DMDScript  

c++.mfc - COleFactory missing methods

reply "Laurentiu Pancescu" <lpancescu fastmail.fm> writes:
I try to build an OLE server, but I get a link-time error, about missing
COleFactory::GetLicenseKey and COleFactory::VerifyLicenseKey.  They should
be in MFC lib, AFAIK.

I'm using 8.25 (CD update) - did anyone else encounter this before?

Thanks,
  Laurentiu
Dec 17 2001
parent reply Jan Knepper <jan smartsoft.cc> writes:
OLEFACT.CPP is part of the CVS Repository...
I hope you downloaded the .tar.gz file?!
Also, I think you have to link with the MFC DLL...

HTH

Jan



Laurentiu Pancescu wrote:

 I try to build an OLE server, but I get a link-time error, about missing
 COleFactory::GetLicenseKey and COleFactory::VerifyLicenseKey.  They should
 be in MFC lib, AFAIK.

 I'm using 8.25 (CD update) - did anyone else encounter this before?

 Thanks,
   Laurentiu

Dec 18 2001
parent reply "Laurentiu Pancescu" <lpancescu fastmail.fm> writes:
No, I used the MFC from CD, I thought it's complete.  Linking with MFC DLL
doesn't change anything, I'll try with CVS version as well.  Do you mean the
stable version or the snapshot?

Laurentiu

"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3C1F517E.3D4A6026 smartsoft.cc...
 OLEFACT.CPP is part of the CVS Repository...
 I hope you downloaded the .tar.gz file?!
 Also, I think you have to link with the MFC DLL...

 HTH

 Jan



 Laurentiu Pancescu wrote:

 I try to build an OLE server, but I get a link-time error, about missing
 COleFactory::GetLicenseKey and COleFactory::VerifyLicenseKey.  They


 be in MFC lib, AFAIK.

 I'm using 8.25 (CD update) - did anyone else encounter this before?

 Thanks,
   Laurentiu


Dec 18 2001
parent reply Jan Knepper <jan smartsoft.cc> writes:
I would use the snapshot...
I just updated it this morning...
However, for the latest changes, wait until tomorrow...



Laurentiu Pancescu wrote:

 No, I used the MFC from CD, I thought it's complete.  Linking with MFC DLL
 doesn't change anything, I'll try with CVS version as well.  Do you mean the
 stable version or the snapshot?

 Laurentiu

 "Jan Knepper" <jan smartsoft.cc> wrote in message
 news:3C1F517E.3D4A6026 smartsoft.cc...
 OLEFACT.CPP is part of the CVS Repository...
 I hope you downloaded the .tar.gz file?!
 Also, I think you have to link with the MFC DLL...

 HTH

 Jan



 Laurentiu Pancescu wrote:

 I try to build an OLE server, but I get a link-time error, about missing
 COleFactory::GetLicenseKey and COleFactory::VerifyLicenseKey.  They


 be in MFC lib, AFAIK.

 I'm using 8.25 (CD update) - did anyone else encounter this before?

 Thanks,
   Laurentiu



Dec 18 2001
parent reply "Laurentiu Pancescu" <lpancescu fastmail.fm> writes:
I tried the "stable" version, but it doesn't compile neither as LIB nor as
DLL (nafxcw.prj, sc50.prj), due to missing zmouse.h and afx.h.  Until I
renamed the original MFC directory, there were no afx.h problems, probably
it found a afx.h file there... shouldn't the source be self-contained?

There's no zmouse.h in the archive, as the port readme says:

tar xzvf mfc4.21.tar.gz
find MFC -name 'zmouse.h' -print

Laurentiu

"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3C1F9C8B.A65808B7 smartsoft.cc...
 I would use the snapshot...
 I just updated it this morning...
 However, for the latest changes, wait until tomorrow...

Dec 18 2001
parent Jan Knepper <jan smartsoft.cc> writes:
Err...
STABLE is not quite the snapshot.
Indeed, there are some file missing in the Win32 SDK that comes with Digital
Mars C++.
I will search through my 'Sent' box and see what I sent the other people that
wanted to recompile MFC.

Jan



Laurentiu Pancescu wrote:

 I tried the "stable" version, but it doesn't compile neither as LIB nor as
 DLL (nafxcw.prj, sc50.prj), due to missing zmouse.h and afx.h.  Until I
 renamed the original MFC directory, there were no afx.h problems, probably
 it found a afx.h file there... shouldn't the source be self-contained?

 There's no zmouse.h in the archive, as the port readme says:

 tar xzvf mfc4.21.tar.gz
 find MFC -name 'zmouse.h' -print

 Laurentiu

 "Jan Knepper" <jan smartsoft.cc> wrote in message
 news:3C1F9C8B.A65808B7 smartsoft.cc...
 I would use the snapshot...
 I just updated it this morning...
 However, for the latest changes, wait until tomorrow...


Dec 18 2001