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:

X C-hook Wizard


Recommended Posts

I've been trying to use the C-Hook wizard supplied with the SDK and having limited success. The dll created by the wizard in release mode works fine, but the dll created in debug mode crashes. I tried both the Dialog based application and the Modeless dialog based application with no changes. They both crash as soon as the DoModal or Create calls are made. Has anyone else seen this, or know how to fix it?

Link to comment
Share on other sites

I tired to do the Chook and could not find the .dll that needed to be registered in the zip and unzipped file.

 

I got this from the .DOC:

quote:

1. Copy the CHookWizard.dll and CHookWizard.vsz files to your SDK folder.

2. Copy the Scripts and Templates folders under your SDK folder.

3. Copy the CHookWizard.ico and CHookWizard.vsz files from the vc7vcprojects folder to the .Net vc7vcprojects folder.

4. Register the CHookWizard.dll file.


I just said ?uck it no time ot figure out why whta I need is not where I need it and no time to spend trying to find it.

 

And in case you are wondering where that it is look here in the C:mcamxsdkchookwizarddoc

Link to comment
Share on other sites

Here's what I did to get the c-hook wizard projects working.

 

1) Unzip the sdk

2) Install the c-hook wizard using the steps in the doc file (stated above) but ignore the CHookWizard.dll stuff.

3) Run the c-hook wizard (Menu: File->Project->New) to create a project in VC++ .NET

4) If you want to run the project from within the VS IDE, set the project debug command and command arguments properties.

a) For release configuration set the command to the main mastercam program (C:mcamxmastercam.exe)

B) For debug configuration set the command to the debugmastercam program (C:mcamxsdkdebugmastercam.exe)

5) At this point it won't run in debug mode because it won't be able to find some required dll's, resource dll's, and fonts. You can copy the required files and directories to the debug directory. VS will tell you what its missing when you try to run it. To avoid multiple copies of all the files, I added the main mastercam directory to my path environment variable and created a link from the 'resources' and 'common' directories from the main mastercam directory to the debug directory using a tool (junction.exe) that I found on the web.

 

I still get some minor assertions in debug mode, but I believe they are issues with the debug dll's and they can be ignored until we get new dll's.

 

There must be a better way to do this, but its what I did to get going.

Link to comment
Share on other sites
  • 6 months later...

I can't run the CHookWizard.

 

I have installed the SDK, done all the steps in dotNet_CHookWizard_Install.doc file, registered CHookWizard.dll file and read all the posts on this forum. But I still don't understand how to use the CHookWizard. All I managed to do is open CHookWizard.dll file in VisualStudio and see its contents. I am very new to programming, please help me.

 

Is CHookWizard to be used only with C++, or also with C#?

 

Thank you!

Link to comment
Share on other sites
  • 2 weeks later...

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...