Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Recommended Posts

I am struggling to figure out what is happening inside my FT file for my C-Hook.

The c-hook  builds and program runs fine without the FT file, but if I add the FT file to the chook folder I get an error when mastercam starts. I have attached pictures of the FT file and the mastercam error as I do not know how to imbed the pics into the post.

Thanks in advance.

Karl S

 

C-Hook Error.JPG

FT File.JPG

Link to comment
Share on other sites
1 minute ago, Karl@CP PISTONS said:

I am struggling to figure out what is happening inside my FT file for my C-Hook.

The c-hook  builds and program runs fine without the FT file, but if I add the FT file to the chook folder I get an error when mastercam starts. I have attached pictures of the FT file and the mastercam error as I do not know how to imbed the pics into the post.

Thanks in advance.

Karl S

 

C-Hook Error.JPG

FT File.JPG

Hey Karl, if you look in your x64/release folder, you can see the resource name of the resources, make sure it says Create_Cam.NETHook.resources

Is this a chook or a nethook? The ft structure is different for chooks and the resources need to be done in a .rc file

Link to comment
Share on other sites

It is a nethook created by visual studio 2017 and VB. Here is what is in the resource folder, notice it is in the Function Table folder and not in just the resources folder. Does that matter? Sorry for the many questions as this resource stuff is really not clear to me.

Do I just correct the FT file to use NETHook.resx? Or am I not embedding it correctly ? or? 

folder.JPG

Link to comment
Share on other sites
12 minutes ago, Karl@CP PISTONS said:

It is a nethook created by visual studio 2017 and VB. Here is what is in the resource folder, notice it is in the Function Table folder and not in just the resources folder. Does that matter? Sorry for the many questions as this resource stuff is really not clear to me.

Do I just correct the FT file to use NETHook.resx? Or am I not embedding it correctly ? or? 

folder.JPG

Look in Create_Cam/Create_Cam/x64/release.

Create_Cam\Create_Cam\obj\x64\Release

There is an option when you create a new project with visual studio 2017 create a folder for the solution, unchecking it avoids the create_cam/create_cam folder structure which makes things a bit confusing .

Link to comment
Share on other sites

You can right click and select remove item, then right click on the project and add item back, dragging the file might do it as well.

For simplicity you could manually move all the files into one the main folder and then remove them all and add them again.

Link to comment
Share on other sites
2 hours ago, byte me said:

Thia tutorial covers creating managed resources and everything else in a nethook from scratch, the resource part is the same foe all .net lamguages.

Thanks for sharing.

I would like to note that icon sizes should be 16 and 32, 24 was deprecated a couple of versions back.

 

Thanks again 👍

  • Like 1
Link to comment
Share on other sites
On 12/3/2020 at 3:12 PM, Karl@CP PISTONS said:

Do you know any good books that would help me as self taught  to learn these kinds of issues?

I'll let you know if I come across any.

It's more a matter of learning the controls.

If you right click on the project in the Solution Explorer under add, there is an add filter option.

This creates a subfolder in the Solution Explorer View.

Right click on the subfolder and add the items you want.

You have a choice between storing your items in seperate folders or all in the main folder, this won't affect your solution explorer view.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...