iCAx开思工具箱
标题:
新手入门问题
[打印本页]
作者:
xiaoboliang
时间:
2009-3-21 14:55
标题:
新手入门问题
各位大哥小弟刚刚入门就被HELLO WORLD编译卡住了,请各位指点一下 我们毕业设计要求用VS2005环境下开发的
代码如下
/* hello_world.c */
#include "stdafx.h"
//#include "hello world.h"
#include "protoolkit.h"
#include "prographics.h"
//#include "prostring.h"
extern "C" int user_initialize(int argc, char *argv[])
{
int hello_function();
hello_function();
return (0);
}
extern "C" void user_terminate()
{
printf("Pro/Toolkit application terminated successfully\n");
return ;
}
extern "C" int hello_function()
{
wchar_t wtext[64];
double pt[3];
char helloworld[] = "Hello World!";
wchar_t w_helloworld[PRO_NAME_SIZE];
pt[0] = 150.0;
pt[1] = 375.0;
ProStringToWstring( w_helloworld, helloworld );
ProGraphicsTextDisplay(pt, wtext);
return (0);
}
错误是“ProStringToWstring”: 找不到标识符
作者:
xiaoboliang
时间:
2009-3-21 15:49
问题解决了只要在头文件加上#include <ProMessage.h>就可以了。不过也出现第二个问题了就是 生成“cmd.exe”时出错?这个又是为什么呢。希望这帖子对VS2005做二次开发的新手有用
作者:
xiaoboliang
时间:
2009-3-21 16:01
皇天不负有心人 原来只要在tools=> Options => Projects and Solutions -> VC++ Directories page 下添加$(SystemRoot)\System32
$(SystemRoot)
$(SystemRoot)\System32\wbem
就可以了。
再接再厉!
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3