e股脑电脑教程网
  • 首 页
  • 操作系统
  • 应用软件
  • 下载工具
  • 影音视频
  • 办公软件
  • 媒体制作
  • 网站建设
  • 平面设计
  • 数据库
  • 程序开发
  • 视频教程
编辑推荐: | 文章搜索:
您现在的位置: e股脑 >> 程序开发 >> PowerBuilder教程 >> 如何用VC创建可在PB中调用的DLL >> 教程正文
 
教程搜索
 
 
相关教程
  • 在PowerBuilder中利用DataStore实现查
  • 什么是“pbcat表?
  • 修改PB6的PBL,使之在PB5中可用
  • 使用日期格式时的一些问题
  • 如何存取二进制大对象(BLOBs)
  • 关于PowerBuilder的补丁包
  • 如果在isql中建立表或者增加表字段或者
  • PB高级开发环境配置
  • 动态设置Win95和NT的缺省打印机
  • PowerBuilder6.0运行环境文件列表
  • PowerBuilder、InfoMaker和HTML DataW
  • PB API调用原型
  • 如何用VC创建可在PB中调用的DLL
  • PB应用技巧——数据窗口自动折行
  • 为PB加入具有布局功能的容器组件
  • PB7.0通用选字段查询窗口的设计
 
 

图文教程


  • Windows抢了谁的饭碗 非主流操作系统To

  • 地球还是火星 平常心看“非主流”

  • 综合运用Office 2007批量制作奖状

  • 没有系统盘如何才能修复受损系统?

  • 巧妙运用Excel中边界的附加功能!
 
 
赞 助 商
 
 
如何用VC创建可在PB中调用的DLL
  • 来源:e股脑
  • 点击次数:
  • 更新时间:2007-8-9
usually pads all structures to a multiple of the packing size. However, if the specified packing size is four, but the structure does not contain any element larger than 2 bytes, the structure is padded to a multiple of two.

The structures are not packed to a multiple of the packing size whenever the structure does not contain any elements (or elements of arrays)that are equal to or greater than the packing size. For example, structs of just chars or arrays of chars are never padded.

Powerbuilder favores when dlla are compiled with 1-byte alignment.

  1. Select the desired target from MSVC
  2. Right mouse click and select Settings
  3. Select the C/C++ tabpage
  4. Select Code Generation from the Category dropdown list
  5. Select desired byte alignment from the Struct Member Alignment dropdown list.


Glossary:

Stack is a region of reserved memory, organized as a stack, in which programs temporarily store status data such as procedure and function call return addresses, passed parameters, and local variables. stack frame - or frame allocation. An area of memory set up whenever a function is called that temporarily holds the arguments to the function as well as any variables that are defined local to the function. There are two key characteristics of frame allocations. First, when a local variable is defined, enough space is allocated on the stack frame to hold the entire variable, even if it is a large array or data structure. Second, frame variables are automatically deleted when they go out of scope References: Technical Document 44474: External Function Calls; Technical Document 44538: Passing a 32-bit PowerBuilder structure to a 32-bit C DLL Created in Power++;


上一页  1 2 3 4 
  • 上一篇教程: PB应用技巧——数据窗口自动折行
  • 下一篇教程: PB API调用原型
  •  

    关于本站 | 广告联系 | 版权声明 | 使用帮助

    Copyright © 2004-2008 www.egunao.com All rights reserved.