当前位置:网站首页>lseek 出错
lseek 出错
2022-07-02 12:16:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
学习windows 游戏编程大师时,运行加载位图的函数出错 int Load_Bitmap_File(BITMAP_FILE_PTR bitmap, char *filename)
网上搜的答案
其实这个函数之所以失败是因为你使用的编译器问题,如果你使用vc6就没问题,问题是这样的,像OpenFile,_lseek等这样的函数是16位windows时期的文件操作函数,在vc中它的运行库还支持,但到了更高版本的visual studio中,就已经不支持了,解决方案有两个: 1.使用vc6编译 2.使用心得文件操作函数,CreateFile,ReadFile,SetFilePoint来代替里面的文件操作函数
用 _llseek 替换 _lseek 就可以了
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/147724.html原文链接:https://javaforall.cn
边栏推荐
- Download blender on Alibaba cloud image station
- LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
- Name of institution approved in advance
- 【LeetCode】977-有序數組的平方
- [leetcode] 1020 number of enclaves
- [experience cloud] how to get the metadata of experience cloud in vscode
- 【LeetCode】486-预测赢家
- MySQL calculate n-day retention rate
- [leetcode] 977 square of ordered array
- 【LeetCode】344-反转字符串
猜你喜欢

【LeetCode】417-太平洋大西洋水流问题

LeetCode刷题——去除重复字母#316#Medium
![[network security] network asset collection](/img/3e/6665b5af0dedfcbc7bd548cc486878.png)
[network security] network asset collection

2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)

【网络安全】网络资产收集

怎样从微信返回的json字符串中截取某个key的值?

How to intercept the value of a key from the JSON string returned by wechat?

【Salesforce】如何确认你的Salesforce版本?

密码学基础知识

LeetCode刷题——统计各位数字都不同的数字个数#357#Medium
随机推荐
[salesforce] how to confirm your salesforce version?
SQL transaction
There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant
folium地图无法显示的问题,临时性解决方案如下
【LeetCode】876-链表的中间结点
(4) Flink's table API and SQL table schema
[leetcode] 1905 statistics sub Island
6096. Success logarithm of spells and potions
floyed「建议收藏」
睿智的目标检测23——Pytorch搭建SSD目标检测平台
Leetcode skimming - remove duplicate letters 316 medium
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
二叉树前,中,后序遍历
怎样从微信返回的json字符串中截取某个key的值?
[leetcode] 1140 stone game II
Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
[leetcode] 977 square of ordered array
How to intercept the value of a key from the JSON string returned by wechat?
Bing.com網站
Solve the problem of frequent interruption of mobaxterm remote connection