547,434 active members*
2,072 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > PlanetCNC_API - DemoCsharp : Can't compile it !
Results 1 to 7 of 7
  1. #1

    PlanetCNC_API - DemoCsharp : Can't compile it !

    Hi,

    I have download the zip file PlanetCNC_API.
    I try to compile the demo in C# but Visual Studio print an error. It can't find the debug target. It generate a file named Demo64d.exe while it should generate a file named DemoCSharp.exe in the __Output folder.

    Have I miss something ?

  2. #2
    Moderator
    Join Date
    Mar 2017
    Posts
    887

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Demo64d.exe is correct filename.

  3. #3

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Thanks for your reply.

    I don't why, but the assembly name was "DemoCSharp" when I open the project, and not "Demo64d".
    I change the name and it is better.

    So, I continue my tests and I have a other error. :-D
    Visula Studio don't find the DLL. Should I add it ?

  4. #4
    Moderator
    Join Date
    Mar 2017
    Posts
    887

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    This is cut/paste from .csproj file
    Code:
      <PropertyGroup>
        <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">Demo32d</AssemblyName>
        <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">Demo32</AssemblyName>
        <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">Demo64d</AssemblyName>
        <AssemblyName Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">Demo64</AssemblyName>
      </PropertyGroup>
    Make sure that correct dll is referenced in PlanetCNCTNGAPI.cs file:
    Code:
    private const string PlanetCNCLib = "PlanetCNCLib64.dll";

  5. #5

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Ok, I could compile it and start the demo.
    Thanks for your help and your time.

    For others users, I post some explanations & some stuffs I didn't understand.
    - I am working with Visual Studio Community 2013. It seems that Visual Studio didn't care about instructions which are between tags <PropertyGroup>. It is in csproj file but Visual Studio take the name of the project for the executable file.
    - in the PlanetCNCTNGAPI.cs, this is the correct DLL name which is referenced. But Windows can't find it. So I have manually copy the file PlanetCNCLib64.dll from PlanetCNC installation folder to __Output folder for the DemoCSharp.

  6. #6

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Hello Guys,

    I have same problem. I tried above solutions but doesn't work. When I start the program below error occurs. Waiting help please...

    "System.DllNotFoundException: 'Unable to load DLL 'PlanetCNCLib64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'"

  7. #7
    Moderator
    Join Date
    Mar 2017
    Posts
    887

    Re: PlanetCNC_API - DemoCsharp : Can't compile it !

    Your executable needs to be in same folder as PlanetCNCLib64.dll'

Similar Threads

  1. How to compile .wxt to .wct
    By 8c87f24ef3 in forum EdgeCam
    Replies: 1
    Last Post: 07-18-2017, 12:54 PM
  2. C program compile error
    By nova24 in forum Dynomotion/Kflop/Kanalog
    Replies: 1
    Last Post: 02-01-2012, 01:07 AM
  3. Scripter Compile Error. in:M3. M1s
    By Dan911 in forum DIY CNC Router Table Machines
    Replies: 4
    Last Post: 10-22-2011, 02:39 PM
  4. compile error, Library not found
    By innova in forum Autodesk
    Replies: 0
    Last Post: 01-17-2009, 05:22 PM
  5. EMC 2 compile?
    By mkonci1 in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 04-12-2006, 08:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •