Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2006 Jan : CPP object files not linked into D2006 project
| Subject: | CPP object files not linked into D2006 project |
| Posted by: | "Eloff" (elo..@mail.ru) |
| Date: | 1 Jan 2006 12:55:11 |
Hello everybody!
My Delphi Win32 of BDS2006 project has the following function declaration:
function BeginEncryptBlock(pPassword:PChar; cbPassword:DWORD; out hCrypt:THANDLE; out hKey:THANDLE):BOOL; pascal; external;
{$LINK 'Crypts.obj'}
File 'Crypts.obj' compiled from 'Crypts.cpp' by C++ Builder of BDS2006 and contains following function implementation:
extern BOOL _pascal BeginEncryptBlock(PBYTE pPassword, DWORD cbPassword, HCRYPTPROV *hCrypt, HCRYPTKEY *hKey)
{
...
}
Both files are compiled successfully but not linked. Pascal error occured "E2065 Unsatisfied forward or external declaration: 'BeginEncryptBlock'"