当前位置:网站首页>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
边栏推荐
- LeetCode刷题——递增的三元子序列#334#Medium
- 二叉树前,中,后序遍历
- 【LeetCode】1162-地图分析
- Engineer evaluation | rk3568 development board hands-on test
- 【LeetCode】200-岛屿数量
- Solve the problem of frequent interruption of mobaxterm remote connection
- MySQL -- Index Optimization -- order by
- Yolov5 code reproduction and server operation
- 【Salesforce】如何确认你的Salesforce版本?
- (4) Flink's table API and SQL table schema
猜你喜欢

彻底弄懂浏览器强缓存和协商缓存

Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)

Beijing rental data analysis

【LeetCode】1162-地图分析

党史纪实主题公益数字文创产品正式上线

5. Practice: jctree implements the annotation processor at compile time

There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant

Equipped with Ti am62x processor, Feiling fet6254-c core board is launched!

损失函数与正负样本分配:YOLO系列

已知兩種遍曆序列構造二叉樹
随机推荐
Thoroughly understand browser strong cache and negotiation cache
Summary of the first three passes of sqli Labs
Markdown tutorial
损失函数与正负样本分配:YOLO系列
Infra11199 database system
彻底弄懂浏览器强缓存和协商缓存
Download blender on Alibaba cloud image station
03. Preliminary use of golang
Folium, diagnosis and close contact trajectory above
How to find a sense of career direction
. Solution to the problem of Chinese garbled code when net core reads files
Build your own semantic segmentation platform deeplabv3+
Yolo format data set processing (XML to txt)
2279. 装满石头的背包的最大数量
二叉树前,中,后序遍历
I made an istio workshop. This is the first introduction
微信支付宝账户体系和支付接口业务流程
There are 7 seats with great variety, Wuling Jiachen has outstanding product power, large humanized space, and the key price is really fragrant
Evaluation of embedded rz/g2l processor core board and development board of Feiling
6.12 critical moment of Unified Process Platform