How can I compile a Labview CIN in Visual Studio? - c

I am trying to compile a labview CIN using visual studio 2003.
I have followed the tutorial located here to the letter, but am getting the following error:
Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
Does anyone know what is causing this? I tried this link found at an expert's exchange question but it does not seem relevant.
Is there an easier way to build a CIN using visual studio?

Ok, solved it.
Turns out it's an issue with the lsvbutil.exe bundled with labview 8.5. Workaround is to replace with the version from 8.2
See http://digital.ni.com/public.nsf/allkb/0029165B53320B2886257369005826A1

Please post the entire error. It appears that the custom build step defined in your link does not work.
On the Custom Build Step->General page, type:
"$(CINTOOLS_DIR)\lvsbutil" "$(TargetName)" -d "$(ProjectDir)$(OutDir)"
in the commandline field and type $(OutDir)$(TargetName).lsb in the output field.
Try pasting that into a commandline and running it. I suspect you have not got the env variables set or they are not pointing to the right places.

Related

Visual Studio Code extensions stopped working suddenly

I'm having problem with my Visual Studio Code. Yesterday I had my pc shut down with VS Code open, and when I turned pc on again, all VS Code extensions stopped working. I'm using React and Typescript in my project and I really need those extensions. My eslint and prettier configurations also stopped working.
If somebody had the same problem please answer.
I had this problem too. You can fix with the following:
Open the command palette (Ctrl + Shift + P)
Run Disable All Installed Extensions
Then run Enable All Extensions.
Restart Visual Studio Code
You can make sure again that the extensions are enabled.
i too had a similar issue, and found (thru trial and error and multiple stackoverflow searches)
fix
toggle Developer Tools once you have vs code open
select the console tab
scroll thru the log, paying close attention to the red errors/
- if it's extension errors, open file explorer and go
$drive:\Users\Yourname.vscode\extensions
delete any problem extensions
Restart VSCode and all should be well (at least for me it was)
cheers and happy coding :)
I had that problem on WSL (Windows Subsystem for Linux). The error was like this:
/mnt/c/Users/Admin/.vscode/extensions/ms-vscode-remote.remote-wsl-0.63.13/scripts/wslCode.sh: 69: /home/raul/.vscode-server-server/bin/5554b12acf27056905806867f251c859323ff7e9/bin/code: not found
The solution was to go to Windows PowerShell and open Visual Studio Code, then go to the extensions and restart the Remote - WSL extension, and go back to WSL. It then started working immediately.
in my case removing "Todo Tree" plugin which is one of the VS Code plugins solved the problem,
https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree
if it is installed uninstall it and the problem will be solved
It's weird. when I use WSL2 terminal opening Visual Studio Code, an exception occurs, expressing that wslCode.sh: 69.
But when I open Visual Studio Code in Windows, then type code . in WSL2 terminal, it works without an exception.
Please check if you are able to turn on your settings sync. I had an issue like this and I couldn't even access the account option on vs code (the second last icon on the right horizontal panel.
If not (it's a long shot) try uninstalling vs code and reinstalling VS Code completely. I used these commands to do so (works for mac)
This happened to me in the portable version (1.73.3). I deleted the extensions folder {vscode root}/data/extensions. Re-installing all extensions afterwards worked for me

Apex replay debugger is throwing Java 8 is required to run

I am following this trail and I have completed all the steps correctly. Even I able to download the debug logs.
But Problem occurs when I am trying to run the following command
> SFDX: Launch Apex Replay Debugger with Current File
It shows the below error.
But, the thing is, I have jdk-12.0.1 installed on my PC. After that, I have installed the Java 8 also and thus jdk-1.8.0_181 is also installed.
My Java Home setting in VS code is following
I have also restarted my PC, But no luck. It is throwing the same error.
How to solve this ?
You have to set the path as 'C://Program Files//Java//jdk1.8.0_181' and then restart the vs code
In case any Mac users needed help:
I installed Java 11 and then ran this code:
/usr/libexec/java_home -v 11 to find the exact directory and then pasted it in the user settings you have marked with a red rectangle. Then I restarted VS code and it worked.
Edit: Looked at your screenshots...
You did this: C:\Program Files\Java\jdk1.8.0_181
You wanted this: C:/Program Files/Java/jdk1.8.0_181
From the Trailhead unit you linked:

Unable to load dynamic library php_sqlsrv_73_nts_x86.dll is not a valid Win32 application

So I install php_sqlsrv_73_nts_x86.dll and php_pdo_sqlsrv_73_nts_x86.dll into my ext folder and add the following line to my php.ini:
extension=php_sqlsrv_73_nts_x86.dll
extension=php_pdo_sqlsrv_73_nts_x86.dll
I get this warning on every php script I run:
Unable to load dynamic library 'php_sqlsrv_73_nts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_73_nts_x86 (%1 is not a valid Win32 application.)
PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_nts_x86' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_nts_x86 (%1 is not a valid Win32 application.)
What am I doing wrong?
Some additional info;
PHP Version = 7.3.2,
System = Windows 10,
Architecture = x86,
And I have referred to this Unable to load dynamic library php_sqlsrv_7_nts.dll is not a valid Win32 application but it didnt help me
Edit 1, I have tried removing the _x86 tag in my extension as well, but that did not help me at all.
So after tinkering with this for a few hours, I found out that by reinstalling a 64bit XAMPP and using php_sqlsrv_73_nts_x64.dll and php_pdo_sqlsrv_73_nts_x64.dll worked for me. Im not sure as to why, but I guess that's a solution for now.
i use like you and i also have errors
but when use ts version like :
php_sqlsrv_73_ts_x64.dll and php_pdo_sqlsrv_73_ts_x64.dl
and i have not any error.

Warning CS0618 resolution

I am trying to get rid of
Warning CS0618: 'IDtsClipboardService' is obsolete: Use 'Microsoft.SqlServer.IntegrationServices.Designer.Model.IClipboardService' instead. I am trying to locate Microsoft.SqlServer.IntegrationServices.Designer.Model assembly to no avail. Anybody aware what installs it?
I have got SQL Server 2014 installed with Integration Services, SSDTS for VS2017 installed, up to date VS2017 and build tools version 15.
Any clues are warmly welcomed! Thanks
Miraculously I have found where Microsoft.SqlServer.IntegrationServices.Designer.Model.IClipboardService is!
According to Microsoft https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2012/ms211237(v%3Dsql.110) - it sits nowhere..
Using ILDASM.EXE from Dev CMD I started opening every assembly related to IntegrationServices and found out that the inteface I am after sits here:
Microsoft.SqlServer.IntegrationServices.Graph.dll

Prover9 installation error on Windows

I tried to install Prover9 on my Windows system. But after completion of the installation procedure when it is supposed to launch the application. I'm getting the following error:
Prover9error
When I tried to search for that log file, there was no such file present at that location.
Please help if anyone has come across something like this and knows how to solve it.
[P.S.: I could find this error on the internet.]
Thanks!
i also had a problem installing the prover9 due to the Missing MSVCP71.dll however i have overcome it by get the prover9-Mace-version4 installed. to solve the error follow this instruction
"If you are using Windows 7 32-bit then you need to put both dll files inside Windows/System32 folder as shown in the screenshot below."
If you are using Windows 7 64-bit then you need to put both dll files inside the Windows/SysWOW64 folder as shown in the screenshot below.
hope it solve ur problem

Resources