landrix / The-Drag-and-Drop-Component-Suite-for-Delphi

MIT License
161 stars 57 forks source link

Unresolved external in C++Builder project under RAD Studio 10.2 #26

Closed petko closed 7 years ago

petko commented 7 years ago

I get the following error, when I try using a DragDrop component in a C++Builder project under RAD Studio 10.2:

[ilink32 Error] Error: Unresolved external '' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\19.0\DCP\DRAGDROPDR102T.LIB|DragDropPIDL

The error does not happen in Delphi projects.

Could you give me any directions how can I fix this?

petko commented 7 years ago

Never mind, I've managed to fix it.

bdwilton commented 5 years ago

Can you indicate what steps you did for this ?

bdwilton commented 5 years ago

Went back to an old laptop as I had forgotten what I had done in the past.

In BPL project the define BCB needs to get added for runtime and designtime.

Additional DropTarget.hpp line needs to get moved from __published to public

__property HWND WinTarget = {read=GetWinTarget, write=SetWinTarget, nodefault};