Dear all,
I am working with OCC 6.9 and vc2010. I included all needed paths for dlls, libs and inc files and then all mfc samples are working fine. when I add a new project to my solution to make a dll for visual basic the following errors appears by adding just #include "gp_Pnt.hxx" to the project. I know it may be related to libs but I included every thing like what I did for sample files as bellow. Could somebody please help?
From your Preprocessor definition:
NDEBUG;WIN64;_WINDOWS;WNT;WINVER=0x0500;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)
I found you use the WIN64 to compile occ, while your 3rd party libaries are for 32bit, so this maybe the problem.
Change all of them to WIN32 or WIN64, including your MFC DLL.
Best Regards,
Commenter-1
02Author
Thank you Commenter-1,
I changed all 3rd party to win64 but no success
03Commenter-1
How about your MFC DLL?
Do you change it to WIN64?
04Author
yes I checked it is win64.
I create another win32 console application and select dll type of application then I add a simple function. It works but the problem is that when I want to use it in vba (win64 office x86) run-time error 48 "file not found" appears! I checked and changed the location of file and declaration in vb many times but no success.