VC++ Project Migration Build Error from VS2010 to VS2019

Chandra Sekhar K 40 Reputation points
2023-04-12T17:19:54.3466667+00:00

While migrating one of the VC++ solution/project (windows service) from VS2010 to VS2019, getting below error. As per one of the forum, atlimpl.cpp (ATL) seems to be not available in VS2019. |Severity|Code|Description|Project|File|Line| | -------- | -------- | -------- | -------- | -------- | -------- | |Error|C1083|Cannot open include file: 'atlimpl.cpp': No such file or directory|PBEinBoundServer|***\PBEinBoundServer\StdAfx.cpp|12|

I have commented it but I have got different error like below. |Severity|Code|Description|Project|File|Line|Suppression State| | -------- | -------- | -------- | -------- | -------- | -------- | -------- | |Error|C3861|'AtlModuleUpdateRegistryFromResourceD': identifier not found|PBEinBoundServer|***\PBEinBoundServer.cpp|154| |

 The build is successful after commenting below lines of code that uses the function "AtlModuleUpdateRegistryFromResourceD". HRESULT hrRegInitSuccess = AtlModuleUpdateRegistryFromResourceD(this,
                        (LPCOLESTR)MAKEINTRESOURCE(IDR_RegAps), true, reSubstitute);
    hrRegInitSuccess = AtlModuleUpdateRegistryFromResourceD(this,
                        (LPCOLESTR)MAKEINTRESOURCE(IDR_NTEVENTS), true, reSubstitute);
Is there any alternative method for this? Thanks in advance.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,636 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Julio Iglesias Pérez 0 Reputation points
    2023-04-12T17:40:49.7633333+00:00

  2. Chandra Sekhar K 40 Reputation points
    2023-07-18T06:50:06.0066667+00:00

    Hi All, To conclude on the solution, I have commented atlimpl.cpp file as it is not available in VS2019 and replaced "AtlModuleUpdateRegistryFromResourceD" with "UpdateRegistryFromResourceD" to resolve some set of errors. On top of that, I have tried to build the solution in Release mode and it worked fine.

    Thanks Minxin Yu, Julio Iglesias Pérez, @RLWA32 for your guiding me in resolving this issue.


  3. Teige, Connor 20 Reputation points
    2023-11-30T19:59:16.16+00:00

    Wanted to comment that our team is working on a similar upgrade and had the same issue. Fortunately upon further research atlimpl.cpp didn't have anything in it and we were able to safely comment it out.

    0 comments No comments