Powerbuilder 编绎成C语言时的注意事项

/* C:\Windows\TEMP\t01.c Generated on Wed Jan 05 09:56:42 2022 */

#include "C:\Windows\TEMP\EN32T.h"

注意这个头文件 的路径设置,路径设置错误 ,无法生成lib文件。

注册表的位置:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sybase\PowerBuilder]
"CGenVer"="10.5.0.4523"
"CGENFILES"="D:\\Program Files\\Sybase\\PowerBuilder 11.5\\cgen\\cgen\\EN32T.h;"

CGEN: Compiling 'C:\Windows\TEMP\t01.c'
INT stdcall WinMain( HINSTANCE, HINSTANCE, LPSTR, INT )
INT stdcall (__export _fn_1_32770_0)( POB_THIS, UINT )
INT stdcall (__export _fn_1_32770_1)( POB_THIS, UINT )
INT stdcall (__export _fn_1_32770_21)( POB_THIS, UINT )
void stdcall (__export getVtableInfo_t01)( POB_THIS, OB_GROUP_ID, PPVTAB_GROUP_INFO )
INT stdcall (__export _fn_2_32770_0)( POB_THIS, UINT )
INT stdcall (__export _fn_2_32770_1)( POB_THIS, UINT )
void stdcall (__export getVtableInfo_wmain)( POB_THIS, OB_GROUP_ID, PPVTAB_GROUP_INFO )
CGEN: Linking...
clib3r.lib  : No such file or directory
math387r.lib   : No such file or directory
emu387.lib   : No such file or directory
math3r.lib  : No such file or directory
plib3r.lib  : No such file or directory
__CHK  
mbstowcs_  
memset_  
_wstart_  
___wcpp_4_data_init_fs_root_
.00401000
t01.obj(C:\Windows\TEMP\t01.c):__CHK
t01.obj(C:\Windows\TEMP\t01.c):mbstowcs_
t01.obj(C:\Windows\TEMP\t01.c):memset_

 ---------- Linker: Errors   (9:56:42)
Codegen compilation error: see file 'C:\Windows\TEMP\t01.log'.
 ---------- Finished Errors   (9:56:42)

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

/* SECTION.Open Main offset 163 */

INT WINAPI
WinMain
   (
    HINSTANCE       hInst,
    HINSTANCE       hPrevInstance,
    LPSTR           lpszCmdLine,
    INT             nCmdShow
   )
{
    TCHAR lpszCommandLine[1024];
    pbstg_ansitostr(lpszCommandLine, lpszCmdLine, 1024);
    return( FN_RunExecutable( hInst, hPrevInstance,
                       lpszCommandLine, nCmdShow, (LPTSTR)
                       MAKEINTRESOURCE( 1000 ),
                       TRUE ) );
}

/* SECTION.Close Main, size 476 */

/* SECTION.Open t01.apl offset 675 */

/*
 *************************************************************
 * Beginning of group 't01.apl'
 *************************************************************
 */

DECLARE_GROUP_CURRENCY( 1 );
/*
 *------------------------------------------------------------
 * Beginning of class 't01'
 *------------------------------------------------------------
 */

/* EVENT create */
PBWINAPI( INT, _fn_1_32770_0 )
 (
 POB_THIS    _obThis,
 UINT        _numArgs
 )
{
/* start of local variables */
/* start of local temperaries */
 INT                 _fnCallRet;
 POB_GROUP           _pGroup;
 POB_GROUP           _pSavedGroup;
 POB_GROUP           _OldGroup;
 OB_GROUP_ID         _GroupID;
 INT                 _funcOK;
 POB_DATA            _passedArgs;
 PVOID               _old_local_vars;
 OB_DATA             _obdataArray[ 3 ];
 POB_DATA  _Ref0;
 LPTSTR  _stringTemp1;
 BOOL    _stringTemp1_null;

/* start of prologue */
 _obThis -> routine_level++;
 _old_local_vars = _obThis -> local_variables;
 _obThis -> local_variables = (PVOID) FUNC_ARGS( 0 );
 GET_GROUP_CURRENCY( _obThis, 1, _pGroup );
 _OldGroup = ob_get_curr_obj_group( _obThis );
 ob_set_curr_obj_group( _obThis, _pGroup );
 _GroupID    = ob_get_group_id( _obThis, _pGroup );
 _passedArgs = (POB_DATA) _obThis -> evaled_arglist;
 _funcOK = SUCCESS;
 pbstg_memset(_obdataArray, 0, 3 * sizeof(OB_DATA));
 /* initialization of argument variables */
 /* initialization of local variables */
 /* initialization of local temperaries */

/***********************************************
 * start of p-codes
 ***********************************************/

 /* @0   line2   SM_PUSH_THIS sp0 OBJECT_TYPE */
 /* ELIMINATED */

 /* @2   line2   SM_PUSH_CONST_REF sp1 UINT_TYPE */
 /* ELIMINATED */

 /* @8   line2   SM_DOT_LV sp2 STRING_TYPE */
 /* field appname STRING_TYPE */
 CHECK_VALID_OBJECT( _This, FALSE )
     {
        ob_instance_fldupdate_refpkt( _obThis, &_obdataArray[ 0 ], _This, 0 );
     }
    CHECK_EXCEPTION_0(_obThis);

 /* @12  line2   SM_PUSH_CONST_STRING sp1 STRING_TYPE */
 /* ELIMINATED */

 /* @18  line2   SM_COPY_CONST_STRING sp2 STRING_TYPE */
 _stringTemp1 = ob_dup_string( _obThis, PBTEXT("t01") );
  _stringTemp1_null = FALSE;
 ob_set_data_type( &_obdataArray[ 1 ], NO_TYPE );
    CHECK_EXCEPTION_0(_obThis);

 /* @22  line2   SM_ASSIGN_STRING sp2 STRING_TYPE */
 ot_assign_refarg_string( _obThis, &_obdataArray[ 0 ], _stringTemp1, _stringTemp1_null );
 ot_free_refarg( _obThis, &

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值