Monday, February 28, 2011

unity error CS2034

I got some stubborn error when trying to link in a dll in a unity project.

Assets/Scripts/cls_PLC.cs(3,14): error CS0234: The type or namespace name `TwinCAT' does not exist in the namespace `System'. Are you missing an assembly reference?

I'm making some test how to use unity as GUI for a TwinCAT PLC project.

I finally hit the jackpot at http://forum.unity3d.com/threads/13548-Type-or-namespace-name-compilation-issue


Solution: Add the Dll as plugins.


In Unity create a folder named Plugins under Project.
Open the folder in explorer and paste in your dll.



Friday, February 25, 2011

More COM Object problem

This time Vector CANoe. I had a reference for CANoe 7.1 then I upgraded to 7.5 and made some cleaning of the regristry. Whammoo, the vb.net program accessing CANoe compiled nicely but when it runs and tried to access CANoe I got following error:
Unable to cast COM object of type 'CANoe.ApplicationClass' to interface type 'CANoe.IApplication6'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4A0D68E0-E2E0-4260-A5EE-2363AD2BDB4B}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).

My memory is short, all you had to do was:
Open a console at where CANoe is installed then type canoe32 -regserver
Yes, RTFM

MySQL to MariaDB

 Here is a good description how to migrate to MariaDb MySQL to MariaDb Example of how to dump data from MySQL port=3307: mysqldump --user=ro...