Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Cannot open source file stdafx.h when targetting x86

More
06 Sep 2022 11:57 #11086 by ZParham
Hello,

Thank you very much! The customer was able to find the cause over the weekend. As you had suspected, it was a Visual Studio configuration issue.

C/C++ -> Language -> Conformance Mode was set as Yes (/permissive -). Changing this to Default solved this.

As always, thank you!

Please Log in or Create an account to join the conversation.

More
05 Sep 2022 07:21 #11085 by support
Hello.

I will look at this, but give me some time. And, I think, in the meantime the customer should still work on it himself, because this is basically a language/tool issue, which has almost certainly nothing to do with our product. Most likely some misconfiguration in project settings. Does not look like the kind of issue the product tech support is for.

Regards
The following user(s) said Thank You: ZParham

Please Log in or Create an account to join the conversation.

More
02 Sep 2022 20:35 #11084 by ZParham
Hello,

A customer was able to create and compile a simple OPC-UA client in Visual Studio 2019 v16.11.11 using C++ on Windows 64-bit computer. The program compiles with no errors when the Debug mode is set as x64. However, after changing the Debug mode to x86, the error "Cannot open source file stdafx.h" appears when attempting to build the project.

So far, we have tried the following:
  • Pointing stdafx.h to the root location
  • Under header files, changing the platform of stdafx.h to Win32
  • Selecting "Retarget Solution"

Below is a download link to the solution. Do you have any other suggestions on what we can attempt?


softwaretoolbox.sharefile.com/d-s60f5b38be44e4380bd6da6558a275d85

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.054 seconds