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:

Dolan

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Dolan's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you Luther, for the code snippits. That got me rolling. And sorry for the delayed reply.
  2. The Chook that Im writing requires me to parse the current NCI(ASCII). How can I make sure the current operations are written to that file? If its a new part, that hasn't been saved yet, I'd want it written to T.NCI (with no prompt to overwrite). That seems to be MCs default scratchpad. For instance, if I wanted a "one off quickie". I wouldn't want to save the MC7 file, but I would need the NCI. The only func Ive found that seems remotely close is: void write_prm_to_nci (void); Is this writing to the binary NCI? I rather not got the binary route. Im guessing its quite cold, damp & dark in there Also, how can I check the db to see if there are actually any operations to output to the NCI? All I really need is a current NCI to parse, to proceed. NC utils|Edit NCI is doing basically what Im looking for, as far as updating the NCI.
  3. 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
  4. 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 ------------------ -- Sean E. Dolan

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