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

Microsoft Windows 7 64 bit

MasterCam X7 rc1?/Mu0? not sure what to call it- but NOT MU1

Visual Studio 2010 Pro SP1

Novice to C++

 

Trying to stumble through setting my first CHook up to run in debug mode.

 

in my project Debugging properties, my "Command" is set to

"C:\Program Files (x86)\mcamx7\sdk\DEBUG\Mastercam.exe",

which is the install dir of the SDK. (BTW, tried changing this during install to %MCXINSTALLDIR% but it installed here anyway)

 

"Command Arguments" [blank]

"Working Directory" = "C:\Program Files\mcamx7\" //(%MCXINSTALLDIR%)

"Attach" No

"Debugger Type" Auto

"Environment" [blank]

"Merge Environment" Yes

Env-Var "SDK_X7" =C:\Program Files (x86)\mcamx7\SDK

(And I feel like I know SOMETHING if I don't include the 'SQL Debugging' param)

 

When run from the IDE, i get the error "The application was unable to start correctly (0x000007b). Click OK to close the application"

 

Tried making a desktop shortcut;

Target="C:\Program Files (x86)\mcamx7\SDK\debug\Mastercam.exe"

Start In: "C:\Program Files\mcamx7"

When I launch this shortcut I get the same error as launching from the IDE

 

When I directly click on :

"C:\Program Files (x86)\mcamx7\sdk\DEBUG\Mastercam.exe",

I get the error "The program can't start because IFStitch.dll is missing from your computer. Try reinstalling the program to fix this problem."

 

"ifstitch.dll" is located in my MasterCam Install Dir, but not my SDK dir.

 

When I copied "ifstitch.dll" to my /SDK/Debug dir, I got the same error as when run from the IDE.

 

I'm not a teenager anymore, and don't have much hair left to pull out. Please let me continue to use a comb, and point me to what I've missed ? Thank you so much :/

Link to comment
Share on other sites

Microsoft Windows 7 64 bit

MasterCam X7 rc1?/Mu0? not sure what to call it- but NOT MU1

Visual Studio 2010 Pro SP1

 

You are not pointing to the 64 bit Mastercam.exe

"C:\Program Files (x86)\mcamx7\sdk\DEBUG\Mastercam.exe"

 

The above command path would be correct, if you're running a 32 bit OS.

 

You need to be starting up the the 64 bit EXE ->

 

"C:\Program Files (x86)\mcamx7\sdk\x64\DEBUG\Mastercam.exe"

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

Microsoft Windows 7 64 bit

MasterCam X7 (16.0.8.0)

Visual Studio Prof. 2012 Version 11.0.61030.00 Update 4 with Platform Toolset v100 (Visual Studio 2010)

 

Trying the same as rocheey did. And made the same mistakes.

After correcting, as discribed here, my debug-environment won't start. i always get many failures "Debug Assertion Failed!".

My CHook-Prject is very simple and created with the Mastercam-CHook-Wizard with the "Dialog sample" option and without any additional code.

The x64 release version compiles and works correctly.

 

Please give me a hint.

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