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

"...but then it crashes with stack overflow exception after failing several assertions."

 

What are the specific assertions ?

 

---

 

As for the "missing" DLLs in Debug mode.

 

c:mcamx2sdkdebugResourceartRes.dll

c:mcamx2sdkdebugResourceEngraveRes.dll c:mcamx2sdkdebugResourcerast2vecRes.dll c:mcamx2sdkdebugResourcetxtchainRes.dll

 

What I do is to copy these DLLs from the actual X2 installation over to the 'debug' folders and I rename the ART.FT file (in (MCAMX2CHOOKS) to ART.FTT so that is is not acted upon when X2 starts.

Link to comment
Share on other sites

The assertions in order of appearance:

.UIDialog.cpp line 482

...mfcwincore.cpp line 330

...mfcwincore.cpp line 4616

.UIDialog.cpp line 570

.UIDialog.cpp line 571

.UIDialog.cpp line 482

...mfcwincore.cpp line 330

...mfcwincore.cpp line 4616

.UIDialog.cpp line 570

.UIDialog.cpp line 571

 

and then stack overflow exception.

 

MasterShake, you are correct. I simply commented out the two lines, and it works even if the dialog still inherits from MCDialog.

 

Marko

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

I already have professional edition, so I have never checked VS 2005 express edition.

but I guess you can make a dll with it. still it's ability seems limited compared with std or pro editions.

web page

if you have the express edition already, you can confirm that.

and if you downloaded the express edition on the web, I think the installer does not contain Platform SDK, so you have to download it.

cheers.gif

 

 

I think the express edition is good enough to learn programing languages, but as you getting used to it, you may feel insufficient with its limited features.. it may be the time to buy the other better editions..

Link to comment
Share on other sites

Thanks Takashi, i beginning to wonder if anyone would answer. I don't know anything about the exxpress - standard or pro versions. What benefits do each offer? If you can offer a general idea it would be nice. Are we talking ability to create a program, debug or just more wizards and gadget that make it eisier.

 

When you say platform SDK are you refering to the mastercam SDK , .net 2.0, or something i am not even aware of?

 

Thank anyone for the help provided it makes for a great community.

Link to comment
Share on other sites

As for free developer's environment..

Until the express editon was released,

there was a free compiler from microsoft.

it is called Visual C++ Toolkit 2003.

but it has no GUI thing and you have to edit the source codes with notepad or the other editors and compile the code and link the .exe/dll files under console command prompt.

(if you bought std or pro edition 2003, they had GUI)

 

 

and the Visual C++ Toolkit 2003 has been replaced by Visual C++ 2005 Express Edition.

it has GUI

http://msdn2.microsoft.com/en-us/visualc/aa336490.aspx

 

The platform SDK is different from chook sdk or .net framework sdk.

I think you can make nethook without platform sdk,

but you want to make chooks, you will need the platfrom sdk.

 

http://msdn.microsoft.com/vstudio/express/visualc/download/

 

HTH smile.gif

Link to comment
Share on other sites

ah,, the lack of MFC is a big deal frown.gif ,

but still we can use windows api for making the windows/dialogs.. rolleyes.gif

 

 

well, I just installed the express edition to my old pc and made a small chook with it.

it just works anyway. biggrin.gif

http://ai-sols.sytes.net/download/chook_src_express.zip

 

woot, the express edition also lacks the ability of editing resources.

we have to edit the resource files with a text editor..

 

 

but I say it is good for learing c/c++ language.

cheers.gif

 

[ 12-21-2006, 11:33 AM: Message edited by: MasterShake ]

Link to comment
Share on other sites

I've added a non-MFC Dialog class and a non-MFC String class to the sample code file below.

(the classes are originally from codeguru/codepoject sites,

and you will find useful codes at http://www.codeguru.com or http://www.codeproject.com/ ).

 

 

http://ai-sols.sytes.net/download/chook_src_express.zip

 

 

As far as I see the chook sdk for X2,the express edition works with X2.

but MFC dependent functions/classes are not available for the express edition.

 

code:

 

//non-MFC Dependent

extern DllImpExp int OpenFile(char* filen, MC_BOOL bGetFilenameOnly=FALSE);

 

#ifdef _AFX // MFC Dependant

extern DllImpExp int OpenFile(CString& filen, MC_BOOL bGetFilenameOnly=FALSE);

 

 

#endif


moreover, I think you can also use CLI(.NET Framework),you can make form application with it.

 

[ 12-23-2006, 10:14 AM: Message edited by: MasterShake ]

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

Phew, I'm getting dizzy from reading this thread. I'm looking for an answer on whether any one of you has run the X2 debugger (the one in mcamxsdkdebug) from VS 2003. I am updating a project in VS 2003 for X2. I compiled it no problem, and ran it from X2. But since it has a bug, I wanted to debug as I did with X MR2. So I made sure I was debugging with this:

 

C:mcamxsdkdebugMastercam.exe

 

And my working directory was: C:mcamx

 

But I'm guessing I can't run the debug version of Mastercam with VS 2003, and must do so only with VS 2005 because as M. Harnad told me in another post there are internal changes in VS 2005. Is it true that I can't run the X2 debugger from VS 2003?

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