Click here to Skip to main content
15,885,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have 2 ActiveX Control Dll projects

1. TellerCaptureX --> Existing from beginning in the project

This project is included from beginning into main project, and initially project was configured with 32-bit only. Now for enhancement we need to configure project for 64-bit as well.
It is configured correctly. But when build for 64-bit configuration is triggered getting below error :

error RC2135: file not found: TellerCaptureX.tlb

2. TellerCaptureX64 --> Newly created for 64-bit, because for first project getting tlb not found error for 64-bit.

As we are not able to figure out exact root cause for 64-bit build issue for 1st project, created new project for 64-bit. After completing code as per requirement, first time build was triggered for 64-bit and then was trying for 32-bit.
Build completed successfully for 64-bit, but now getting same error as below for 32-bit

error RC2135: file not found: TellerCaptureX64.tlb


Can anyone please help me to understand why this is strange behavior? Is is because any ActiveX Control can have Single version either 32-bit or 64-bit?

What I have tried:

Tried to search for missing configuration
Posted
Updated 24-Sep-19 1:37am
Comments
Richard MacCutchan 24-Sep-19 8:48am    
It looks like you have got the wrong reference in your .rc file for each build type.
Member 14373667 26-Sep-19 7:45am    
Can you please help me to configure .rc file?
Richard MacCutchan 26-Sep-19 10:35am    
I have not used MFC for quite a few years, but I think there is a file that gets auto included from a sub-folder of the project, with a name like <project name>.rc2 or similar. If you add the details in there, using something like:

#if defined(x64)
// filename for x64 build
#else
// filename for x86 build
#endif

NB, you will need to check whether the rc file uses x64 definition or some other to indicate 64-bit.

1 solution

Hard to explain: the file is missing. You need to create it. Like explained in stackoverflow or with some others tools like the IDL compiler.

32-bit or 64-bit are build platforms so there are different build scripts. Maybe you need to copy some 32-bit build settings to the 64-bit build settings.
 
Share this answer
 
Comments
Member 14373667 24-Sep-19 9:52am    
I found RC for issue, but could not find fix of it. It's due to Microsoft Visual C++ generated resource script.
Can you please help me to configure 64-bit as well as 32-bit build in one resource file or is there any way to use two resource files?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900