VC里边怎么从LockResource返回的地址处取字符串?

来源:百度知道 编辑:UC知道 时间:2024/09/24 00:59:38
我用VC 6添加了一个TXT格式的自定义资源,LockResource之后返回了指向资源的指针,可类型是LPVOID的,我想从该指针处取一个字符串,该怎么办呢?

If the loaded resource is locked, the return value is a pointer to the first byte of the resource; otherwise, it is NULL.
这个指针是用来调用UpdateResource 用的,你为什么要取字符串呢?取字符串可以用LoadString