#pragma aux的目的是什么,我应该如何使用它? [英] What is the purpose of #pragma aux and how should I use it?

查看:251
本文介绍了#pragma aux的目的是什么,我应该如何使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试延迟加载库,并使用GetProcAddress从库中获取一个函数来重复使用。我正在处理的项目有在其他情况下如何做的例子,在描述函数的typedef的头文件中,有一个#pragma aux行。这是做什么的?这总是必要的吗?

I'm attempting to delayload a library and use GetProcAddress to get a function from the library to use repeatedly. The project I'm working on has examples of how this being done in other cases, and in the header file that describes typedefs of the function, there is a #pragma aux line. What does this do? Is this always necessary?

编辑:我使用vc11编译器

I'm using the vc11 compiler

推荐答案

这些是辅助编译指示,它是Watcom编译器的特定功能。从下面的详细说明:

These are auxiliary pragmas and it is specific feature for Watcom compiler. From below detailed explanation:

http://users.pja.edu.pl/~jms/qnx/help/watcom/compiler-tools/pragma32.html#AuxiliaryPragmas


辅助编译指示用于描述影响代码生成的属性。最初,编译器定义一组默认属性。

Auxiliary pragmas are used to describe attributes that affect code generation. Initially, the compiler defines a default set of attributes.

因此要将其转换为Visual Studio,您必须在VS中找到等效的pragmas /编译器功能。

so to convert it to Visual Studio, you would have to find equivalent pragmas/compiler features in VS.

这篇关于#pragma aux的目的是什么,我应该如何使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆