当前位置:网站首页>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
边栏推荐
- SQL stored procedure
- How to avoid 7 common problems in mobile and network availability testing
- 【LeetCode】417-太平洋大西洋水流问题
- [leetcode] 577 reverse word III in string
- ssh/scp 使不提示 All activities are monitored and reported.
- Basic knowledge of cryptography
- 夏季高考文化成绩一分一段表
- 5. Practice: jctree implements the annotation processor at compile time
- Bing. Site Internet
- 自定义异常
猜你喜欢
03. Preliminary use of golang
. Net again! Happy 20th birthday
Deux séquences ergodiques connues pour construire des arbres binaires
终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
LeetCode刷题——两整数之和#371#Medium
6.12 critical moment of Unified Process Platform
Leetcode skimming -- count the number of numbers with different numbers 357 medium
Basic knowledge of cryptography
百变大7座,五菱佳辰产品力出众,人性化大空间,关键价格真香
Leetcode skimming -- sum of two integers 371 medium
随机推荐
[leetcode] 1140 stone game II
Two traversal sequences are known to construct binary trees
6091. Divide the array so that the maximum difference is K
6095. 强密码检验器 II
NBA player analysis
[leetcode] 577 reverse word III in string
Case introduction and problem analysis of microservice
MySQL -- Index Optimization -- order by
SQL transaction
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)
[network security] network asset collection
03. Preliminary use of golang
6095. Strong password checker II
/bin/ld: 找不到 -lgssapi_krb5
Bing. Com website
MD5 encryption
【LeetCode】19-删除链表的倒数第N个结点
【LeetCode】877-石子游戏
动态规划入门二(5.647.62)