马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
請教一下各位大哥
以下是我的程式碼....
有一個錯誤...
可是我不知道怎麼改....
救命ㄚ...
#include <stdio.h>
#include <uf.h>
#include <uf_exit.h>
#include <uf_object_types.h>
#include <uf_ui.h>
#include <uf_disp.h>
#if ! defined ( __hp9000s800 ) && ! defined ( __sgi ) && ! defined ( __sun )
# include <strstream>
# include <iostream>
using std:strstream;
using std::endl;
using std::ends;
using std::cerr;
#else
# include <strstream.h>
# include <iostream.h>
#include <uf_modl.h>
#endif
#include "newMASK.h"
#define UF_CALL(X) (report(_FILE_, _LINE_, #X,(X)))
//----------------------------------------------------------------------------
// Activation Methods
//----------------------------------------------------------------------------
// Unigraphics Startup
// This entry point activates the application at Unigraphics startup
extern "C" DllExport void ufsta( char *param, int *returnCode, int rlen )
{
/* Initialize the API environment */
int errorCode = UF_initialize();
if ( 0 == errorCode )
{
/* TODO: Add your application code here */
char *message = "select objects";
UF_UI_selection_options_t opts;
UF_UI_mask_t mask[6] = {{UF_line_type, 0, 0},
{UF_circle_type, 0, 0},
{UF_conic_type, UF_all_subtype, 0},
{UF_spline_type, 0, 0},
{UF_solid_type, 0, 0},
{UF_point_type, 0, 0}};
tag_p_t objects;
opts.other_options = 0;
opts.reserved = NULL;
opts.num_mask_triples = 5;
opts.scope = UF_UI_SEL_SCOPE_WORK_PART_AND_OCC;
opts.mask_triples = [$mask[0]]
int irc = 0;
int bbb = 0;
int response, count;
irc = UF_UI_select_by_class(message,[$opts,&response,&count,&objects)]
bbb = UF_UI_select_by_class(message,[$opts,&response,&count,&objects)]
int NP1 , IP3,IP4,IP5,IP6,IP7,IP8,IR9,rr;
double RP2;
NP1 = irc;
RP2 = 0.005;
IP3 = 1;
IP4 = bbb;
UF5409(NP1,RP2,IP3,IP4,IP5,IP6,IP7,IP8,IR9);
/* Terminate the API environment */
errorCode = UF_terminate();
}
--------------------Configuration: newMASK - Win32 Debug--------------------
Compiling...
newMASK.cpp
E:\UG-A\newMASK\newMASK.cpp(78) : error C2065: 'UF5409' : undeclared identifier
Error executing cl.exe.
newMASK.obj - 1 error(s), 0 warning(s)
|