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:

visual c++ 2003/2005 entities


Recommended Posts

Hallo everybody,

 

I'm developing our mazatrol-chook with ms visual studio 2003 pro, thats ok with mastercam-x. Now I've tried the same code with ms visual studio 2005 pro, some functions have to be changed to get no compiling errors, no problem.

 

But I have a problem to get entitycoordinates like entity.u.pt[X]/[Y]...

 

The X-value has the contence from the Y-coordinate, the Y-value has the contence from the Z-coordinate and so on. The same problem by entity lines and arcs. The values seems to be moved one step to the left and the last entity-property is empty.

 

I've made some testsources in studio 2003 (works ok) and in studio 2005 (got these problems).

 

Is there anybody with time and wisdom to look at my samples and give me a solution, what I have to change in studio 2005? And where shall I upload the sources?

 

Many thanks

coolsas

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

MasterShake_02,

 

Be careful with that. The reason you were getting the problem is that 2003 defaults to a 32 bit time_t, and 2005 defaults to a 64. MR2 was built with a 32, so you're got memory slippage unless you define down.

On the other hand, we're moving to 2005 at CNC for X2, so if you do that, you're going to have to take it out eventually. I'd try something like this (note that I haven't compiled this... just a suggestion)

 

code:

#if (_MSC_VER >= 1400)

#define time_t __time32_t

#endif


Best of luck

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