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:

mikeod

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

mikeod's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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) 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.
  2. That's it. I didn't realize there was a debug mastercam.exe in the sdk. Thanks!
  3. Yes, I'm compiling, linking and running on the same computer.
  4. AFX_MANAGE_STATE(AfxGetStaticModuleState()); is being called before creating the dialog. (In case it helps, this is straight wizard code, I haven't touched it.)
  5. 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?

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