当前位置:网站首页>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
边栏推荐
- Deux séquences ergodiques connues pour construire des arbres binaires
- [leetcode] 417 - Pacific Atlantic current problem
- LeetCode刷题——两整数之和#371#Medium
- floyed「建议收藏」
- [leetcode] 1905 statistics sub Island
- Equipped with Ti am62x processor, Feiling fet6254-c core board is launched!
- Build your own semantic segmentation platform deeplabv3+
- /bin/ld: 找不到 -lssl
- 百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
- [leetcode] 167 - sum of two numbers II - enter an ordered array
猜你喜欢

How to avoid 7 common problems in mobile and network availability testing

Two traversal sequences are known to construct binary trees

百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香

Semantic segmentation learning notes (1)

Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568

Build your own semantic segmentation platform deeplabv3+

NBA player analysis

【LeetCode】1905-统计子岛屿

Engineer evaluation | rk3568 development board hands-on test

How to intercept the value of a key from the JSON string returned by wechat?
随机推荐
LeetCode刷题——递增的三元子序列#334#Medium
Force deduction solution summary 2029 stone game IX
beforeEach
floyed「建议收藏」
Leetcode skimming -- sum of two integers 371 medium
02. After containerization, you must face golang
[leetcode] 344 reverse string
(4) Flink's table API and SQL table schema
(Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
【LeetCode】695-岛屿的最大面积
【LeetCode】417-太平洋大西洋水流问题
Be a good gatekeeper on the road of anti epidemic -- infrared thermal imaging temperature detection system based on rk3568
PostgresSQL 流复制 主备切换 主库无读写宕机场景
【LeetCode】977-有序數組的平方
【idea】推荐一个idea翻译插件:Translation「建议收藏」
【LeetCode】189-轮转数组
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
folium,确诊和密接轨迹上图
Deux séquences ergodiques connues pour construire des arbres binaires
Wechat Alipay account system and payment interface business process