
Using DLL on WINccOA project
Search
-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
When you look in your Windows Start menu then you'll see something called 'Developer command prompt for VSxxxx'. When you open this command prompt then the path to cl will be ok.
* Choose 'Developer command prompt for VSxxxx'
* Now type 'cl' and press enter
* it should not display the version number for cl
* Stay in this command prompt
* navigate to c:\\siemens\\....\\API
* start checkapienv
* It should now say that the API_ROOT is ok and that the cl version could be read
* Stay in this command prompt
* Now use the batchfiles to make DLL
* Go to the folder where the solution file is *.sln
* Type the name of the solution. Example. type 'mysolution.sln' and press
* (Always stay inside the command prompt)
Share the fun
Frenk Mulder
* Choose 'Developer command prompt for VSxxxx'
* Now type 'cl' and press enter
* it should not display the version number for cl
* Stay in this command prompt
* navigate to c:\\siemens\\....\\API
* start checkapienv
* It should now say that the API_ROOT is ok and that the cl version could be read
* Stay in this command prompt
* Now use the batchfiles to make DLL
* Go to the folder where the solution file is *.sln
* Type the name of the solution. Example. type 'mysolution.sln' and press
* (Always stay inside the command prompt)
Share the fun
Frenk Mulder
-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
First many thanks Frenk to take time to help me.
I started the command prompt. the "cl" command is not valid. and the checkapienv return "cannot determine cl compiler version" again
I started the command prompt. the "cl" command is not valid. and the checkapienv return "cannot determine cl compiler version" again
Re: Using DLL on WINccOA project
Please look in attachment.
You must use the pompt that comes with Visual Studio and not just any prompt !!!!
The prompt that comes with Studio will set the proper 'path' in your command prompt
https://www.winccoa.com/fileadmin/image ... prompt.zip
You must use the pompt that comes with Visual Studio and not just any prompt !!!!
The prompt that comes with Studio will set the proper 'path' in your command prompt
https://www.winccoa.com/fileadmin/image ... prompt.zip
- Attachments
-
- prompt.zip
- (82.66 KiB) Downloaded 243 times
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Using DLL on WINccOA project
Instead of create a new control extension for each library, you could also try CtrlFFI as mentioned in another topic.
https://www.winccoa.com/fileadmin/image ... lFFI_3.zip
https://www.winccoa.com/fileadmin/image ... lFFI_3.zip
- Attachments
-
- CtrlFFI_3.zip
- (25.14 KiB) Downloaded 256 times
-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
I did it. Sorry my prompt is in french but similar to your's 

-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
Frenk Mulder wrote:
cl.exe is missing due to an uncomplete installation of C++. I must reinstall it with custom option on VS2015.
Please look in attachment.
You must use the pompt that comes with Visual Studio and not just any prompt !!!!
The prompt that comes with Studio will set the proper 'path' in your command prompt
https://www.winccoa.com/fileadmin/image ... prompt.zip
cl.exe is missing due to an uncomplete installation of C++. I must reinstall it with custom option on VS2015.
-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
I'm not sure about the compatibility with vs2015. I still have error messages when i want to use wincc_OA scripts. I'll try tomorrow with a VS2013 installation. Thanks Frenck or your help
Re: Using DLL on WINccOA project
Hi,
Just woundering if VS2013 did the trick or if you had the same problem with VS2013?
Just woundering if VS2013 did the trick or if you had the same problem with VS2013?
-
- Posts: 12
- Joined: Fri Nov 24, 2017 10:43 am
Re: Using DLL on WINccOA project
VS2013 instead off 2015 solved the problem with wincc_OA scripts. But problem with the dll came again with the new VS project. I translated my functions directly in winncc_Oa scripts to solve issue.