考虑用COM来实现了,不知道PB9在WIN7下生成COM是否有问题,总是不成功
以下是log
CGEN: Compiling 'd:\工作\参考程序\测试程序\_tmpguid.cpp'
cannot open file '工作\参考程序\测试程序\_tmpguid.err' for write access
CGEN: Compiling 'd:\工作\参考程序\测试程序\_tmpclas.cpp'
cannot open file '工作\参考程序\测试程序\_tmpclas.err' for write access
d:\工作\参考程序\测试程序\_tmpclas.cpp(27) unable to open '_tmpclas.h'
d:\工作\参考程序\测试程序\_tmpclas.cpp(33) unable to open '_tmputil.h'
d:\工作\参考程序\测试程序\_tmpclas.cpp(36) 'class COClass_n_genapp2' has not been declared
d:\工作\参考程序\测试程序\_tmpclas.cpp(36) syntax error before 'BOOL'; probable cause: incorrectly spelled type name
CGEN: Compiling '
d:\工作\参考程序\测试程序\_tmpserv.cpp'
cannot open file '工作\参考程序\测试程序\_tmpserv.err' for write access
d:\工作\参考程序\测试程序\_tmpserv.cpp(23) unable to open '_tmpclas.h'
d:\工作\参考程序\测试程序\_tmpserv.cpp(25) unable to open '_tmpserv.h'
d:\工作\参考程序\测试程序\_tmpserv.cpp(28) declaration specifiers are required to declare 'LONG'
d:\工作\参考程序\测试程序\_tmpserv.cpp(28) syntax error before 'g_cLocks'; probable cause: incorrectly spelled type name
d:\工作\参考程序\测试程序\_tmpserv.cpp(29) declaration specifiers are required to declare 'HINSTANCE'
d:\工作\参考程序\测试程序\_tmpserv.cpp(29) syntax error before 'g_hModule'; probable cause: incorrectly spelled type name
d:\工作\参考程序\测试程序\_tmpserv.cpp(30) declaration specifiers are required to declare 'PBCHAR'
d:\工作\参考程序\测试程序\_tmpserv.cpp(30) syntax error before 'g_szServerFullName'; probable cause: incorrectly spelled type name
d:\工作\参考程序\测试程序\_tmpserv.cpp(33) declaration specifiers are required to declare 'PBCHAR'
d:\工作\参考程序\测试程序\_tmpserv.cpp(33) syntax error
d:\工作\参考程序\测试程序\_tmpserv.cpp(36) declaration specifiers are required to declare 'PBCOM_OBJECTDATA'
d:\工作\参考程序\测试程序\_tmpserv.cpp(36) syntax error before 'g_PBCOMObjectData'; probable cause: incorrectly spelled type name
d:\工作\参考程序\测试程序\_tmpserv.cpp(56) declaration specifiers are required to declare 'PBCOM_SERVERDATA'
d:\工作\参考程序\测试程序\_tmpserv.cpp(56) syntax error before 'g_PBCOMServerData'; probable cause: incorrectly spelled type name
d:\工作\参考程序\测试程序\_tmpserv.cpp(77) symbol 'g_cLocks' has not been declared
d:\工作\参考程序\测试程序\_tmpserv.cpp(83) symbol 'g_cLocks' has not been declared
d:\工作\参考程序\测试程序\_tmpserv.cpp(87) syntax error; probable cause: missing ';'