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

Ive gotten a debug ver of my chook working, using the MFC Shapes

example as a guide. I can't find the settings for a release build for

my dll though. When I execute the release build, I get:

The ordinal 6467 could not be located in the dynamic link library

MFC42.DLL

Then the "chook not found" error.

Im compiling with MSVC6, and linking to Mastercam v7.2b.

Ive followed the debug compiler settings to the letter (found in

01intro.doc). The debug release works fine.

Ive tried stripping the DLL down to doing nothing but displaying an empty dlg.

//called from

//extern "C" void CH_ENTRY m_main (long //*ptrs){}

static void chook_main (void)

{

AFX_MANAGE_STATE(AfxGetStaticModuleState());

CStockDlg dlg;

dlg.DoModal();

}

Again, debug works, release doesnt.

Spell checkers just have the toughest time with C/C++ code huh :p

------------------

--

Sean E. Dolan

Link to comment
Share on other sites
Guest CNC Apps Guy 1

In C++, go to the tools, Customize, then go to the Tools Tab and be sure you Make a New Menu content and have c:mill7mill7.exe in the Menu Contents on the command line and also have mill7 on the initial directory.

Try that.

------------------

James Meyette ;)

Link to comment
Share on other sites

Thanks for your reply James.

Someone on alt.machines.cnc suggested it was a dll conflict. I didnt realize MC kept a copy of MFC42.dll in its dir. I renamed it and now my release dll, as well as MC, seem to be working just fine.

 

------------------

--

Sean E. Dolan

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