0
价值
1
回答
浏览
0x500275BC (vcruntime140d.dll)处(位于 1.exe 中)引发的异常: 0xC0000005: 写入位置 0x00000000 时发生访问冲突
0x500275BC (vcruntime140d.dll)处(位于 1.exe 中)引发的异常: 0xC0000005: 写入位置 0x00000000 时发生访问冲突
IMAGE* imgZhiwu[ZHI_WU_COUNT][50];
//植物卡牌
for (int i = 0; i < ZHI_WU_COUNT; i++)
{
sprintf_s(name, sizeof(name), "res\\Cards\\%d.png", i + 1);
loadimage(&imgCards[i
0
价值
0
回答
浏览
easyx编译报错
在easyx.h中将void *__imp___iob_func=0注释掉报错EasyX.GraphWnd.cpp:(.text+0x198c): undefined reference to `__imp___iob_func'
#pragma once
//void *__imp___iob_func=0; //练习添加的
ifndef WINVER
#define WINVER 0x0400 // Specifies that the minimum r
0
价值
1
回答
浏览
请问下了easyx但visual studio里面仍然用不了graphics.h库是怎么回事
请问下了easyx但visual studio里面仍然用不了graphics.h库是怎么回事
0
价值
1
回答
浏览
求教,在visual studio上可能是应malloc缺陷导致的“访问冲突”问题
在windows,2022版visual studio上,使用 默认(ISO C++14 标准)、默认(ISO C++14 标准) 的C/C++语言。
大概率是以下代码的问题
// 定义函数指针类型
typedef void (*Func)(Unit*);
//定义画图函数指针数组;
extern Func _drawFunc[100] = { NULL };
Func drawFuncP;
drawFuncP = _drawFunc[unit->type.shape]; // 获取画图函数指
0
价值
1
回答
浏览
用CMAKE 加 VSCODE 构建编译报错。问题出在哪里,该怎么解决
[build] D:/Programs/Microsoft VS Code/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/vscode/lib/libeasyx.a(EasyX.GraphWnd.o):EasyX.GraphWnd.cpp:(.text+0x198c): undefined reference to `__imp___iob_func'
[build] collect2.exe: error: ld returned 1 exi
0
价值
1
回答
浏览
为什么无法使用loadimage函数
include<easyx.h>
#include<graphics.h>
int/*主函数*/ main() {
IMAGE* img;
loadimage(&img, "C:/1/图片/冰雪点卡版/2.bmp", 1600, 900, 0);
printf("Image loaded successfully.\n");
return 0;/*返回0正常退出*/
}
上述代码在用loadimage加载图片,哪里有问题导致无法加载图片
0
价值
1
回答
浏览
EasyX安装问题
为什么这个下载之后在codeblocks上没法用(当我直接打开visual studio就可以直接用可是codeblocks不行),当我把那个vs里的有关easyx.a还有graphycs,h静态文件复制到codeblocks的文件里面后,我的codeblocks不知道为啥被卸载了,运行不了了.
PS:我的电脑是64位系统,然后下载有visual studio 2022,codeblocks.
0
价值
1
回答
浏览
前一个问题已解决。
因为按键按下,会有DOWN 和UP 两种状态~哈哈
void handleUserEvents(ExMessage* msg,Snake *snake,Food *food) {
//ExMessage msg;
Direction dir = snake->direction;
while (peekmessage(msg, EX_KEY,true)) {
std::cout << "PeekMessageA" << std::en
0
价值
0
回答
浏览
peekmessage 产生重复消息,必然按下一次按键,两个消息
peekmessage 产生重复消息,必然按下一次按键,两个消息
//handleMsg()
ExMessage msg;
while (peekmessage(&msg, EX_KEY,true)) {
#控制台打印了两次,多次测试都是两次。加sleep 还是2次。是否重复分发了消息?
std::cout << "PeekMessageA" << std::endl;
unsigned char vkcode = msg.vkcode;
//main函
0
价值
1
回答
浏览
vs2022安装easyx之后识别不了
为什么我安装完了easyx库之后,运行时显示无法打开显示No such file or directory。还有graphics咋安装啊。求大神解答。
0
价值
0
回答
浏览
0x00007FFFAF384E1C (windows.storage.dll)处(位于 EasyXProject.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000000 时发生访问冲突。
VS2022
右上角关闭窗口后,调试中止,提示异常。求大佬解答
#include <graphics.h>
int main()
{
initgraph(640, 480); // 创建绘图窗口
while (true)
{
}
closegraph(); // 关闭绘图窗口
return 0;
}
0
价值
0
回答
浏览
fillpie函数问题,角度过小(0.001)会画出全圆
#include <graphics.h>
#include <cmath>
#include <iostream>
#include <conio.h>
#define PI 3.1415926//定义常量符号圆周率为PI
using namespace std;
void drawUI() {
fillpie(50, 0, 200, 150, 0, 0.001);
}
int main() {
initgraph(800, 600);
drawUI();
_getc
0
价值
1
回答
浏览
使用outtextxy函数时报错undefined reference
编译器使用tdm-gcc-10.3.0-2,easyx版本使用20240601。
报错显示 undefined reference to `outtextxy(int, int, wchar_t const*)'
#define UNICODE
#define _UNICODE
#include <easyx.h>
int main()
{
static TCHAR str[64];
//字符串输入代码......
outtextxy(0, 0, str);
}