-
Notifications
You must be signed in to change notification settings - Fork 8
/
stdafx.cpp
43 lines (32 loc) · 990 Bytes
/
stdafx.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// stdafx.cpp : source file that includes just the standard includes
// ap238export.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// DLL stuff for Mastercam to STEP-NC translator
//
#include "stdafx.h"
#include "m_core.h"
#include "m_mastercam.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern "C" __declspec(dllexport) int m_version (int version)
{
int ret = C_H_VERSION;
// Allow chook to run in any version of mastercam that has
// the same major version
if ( (version / 100) == (C_H_VERSION / 100) )
ret = version;
return ret;
}
void ap238export();
extern "C" __declspec(dllexport) int m_main (int not_used)
{
// MessageBox (0, "Big Hello from Mastercam!", "", MB_OK);
// SetDllDirectory("C:\\Program Files (x86)\\STEP Tools\\STEP-NC Machine");
ap238export();
// SetDllDirectory(NULL);
return MC_NOERROR;
}