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:

problems with shapes chook example


Recommended Posts

Hi,

 

I just received VC++ 6.0 and was trying to create the example shapes program.

 

I entered everything exactly as the example instructs but I am getting errors. The first is as follows:

 

c:chdevm_vars.h(133) : warning C4005: 'EXPORT' : macro redefinition

c:program filesmicrosoft visual studiovc98mfcincludeafxv_w32.h(148) : see previous definition of 'EXPORT'

 

Anyone know what I am doing wrong?

 

I get 72 errors alltogether but this should not be happening if I followed every single step the sample asks to.

 

Girus

Link to comment
Share on other sites

CAM,

 

There is a lot of good information in there but I still have many errors. I double checked everything and I get the "cos" error and many more. Is there a sample program that works somewhere so that I can begin with that.

 

Girus.

Link to comment
Share on other sites

try bring your #include below all the

MC header definition.

 

I have that same error b4.

 

code:

  

extern "C"

{

#include "m_vars.h" // C-Hook header: main variables

#include "m_math.h" // C-Hook header: math functions

#include "m_menu.h" // C-Hook header: menu functions

#include "m_graph.h" // C-Hook header: graphics functions

#include "m_io.h" // C-Hook header: I/O functions

#include "m_db.h" // C-Hook header: database functions

#include "m_chain.h" // C-Hook header: chaining variables and functions

#include "m_undo.h" // C-Hook header: undo functions

#include "m_ncvars.h" // C-Hook header: NC variables

#include "m_nc.h" // C-Hook header: NC functions

#include "m_init.h" // C-Hook header: C-Hook initialization

}

#include <math.h>

To be honest with you, I cannot make that shapes sample work. Hopefully, you will do better.

Link to comment
Share on other sites

CAM,

 

Is it possible for you to send me a working version of the shapes.dll from what I was reading it looks like you finally got it working?

 

I can provide you with my email address if you like?

 

I am still getting many errors:

 

shapes.cpp

c:chdevm_vars.h(133) : warning C4005: 'EXPORT' : macro redefinition

c:program filesmicrosoft visual studiovc98mfcincludeafxv_w32.h(148) : see previous definition of 'EXPORT'

C:chdevshapesshapes.cpp(458) : error C2065: 'Cshapedlg' : undeclared identifier

C:chdevshapesshapes.cpp(458) : error C2146: syntax error : missing ';' before identifier 'dlg'

C:chdevshapesshapes.cpp(458) : error C2065: 'dlg' : undeclared identifier

C:chdevshapesshapes.cpp(470) : error C2228: left of '.DoModal' must have class/struct/union type

C:chdevshapesshapes.cpp(471) : error C2228: left of '.m_create_n' must have class/struct/union type

C:chdevshapesshapes.cpp(471) : error C2228: left of '.m_shape_n' must have class/struct/union type

C:chdevshapesshapes.cpp(472) : error C2228: left of '.m_width' must have class/struct/union type

C:chdevshapesshapes.cpp(472) : error C2228: left of '.m_height' must have class/struct/union type

C:chdevshapesshapes.cpp(472) : error C2228: left of '.m_angle' must have class/struct/union type

C:chdevshapesshapes.cpp(473) : error C2228: left of '.m_create_point' must have class/struct/union type

 

Girus

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