我该如何解决? Freememory [英] How do I solve it? Freememory

查看:151
本文介绍了我该如何解决? Freememory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

我正在使用Cximage库。

它非常完美。

但是今天我发现了这个问题。

编码后,Freememory使用如下:



Visual Studio Compiler说FreeMemory不是Cximage。

i包括ximage.h,其中包括xiofile.h,xmemfile.h

我今天试图找到解决这个问题的方法,但我无法'找到它。

我该如何解决?



我的尝试:



ASSERT(pBuf == NULL);

if(TRUE == m_pBack-> Encode(pBuf,m_pBkgndHeader.ImageSize,(unsigned long)CXIMAGE_FORMAT_JPG )){

fpos_t position = m_pBkgndHeader.ImageAddress;

}

m_pBack-> FreeMemory(pBuf);

hi.
I just working with Cximage Library.
and it is very perfect.
But today i found out this problem.
after encode, Freememory use like this:

Visual studio Compiler says "FreeMemory is not a member of Cximage" .
i had include "ximage.h" that included xiofile.h, xmemfile.h
I tried to find a solution to this problem today, but i couldn't find it.
How can i solve it?

What I have tried:

ASSERT(pBuf == NULL);
if (TRUE == m_pBack->Encode(pBuf, m_pBkgndHeader.ImageSize, (unsigned long)CXIMAGE_FORMAT_JPG)) {
fpos_t position = m_pBkgndHeader.ImageAddress;
}
m_pBack->FreeMemory(pBuf);

推荐答案

错误非常明确:

The error is pretty explicit:
FreeMemory is not a member of Cximage



这意味着 m_pBack 被声明为Cximage对象,并且类Cximage不包含名为FreeMemory的成员函数。

CxImage class: CxImage:CxImage类参考 [ ^ ]因此可能是您声明了自己的 Cximage 类并且正在使用它 - C ++是一种区分大小写的语言,所以大写和小写I可能非常重要。


That means that m_pBack is declared as a Cximage object, and that the class Cximage does not contain a member function called "FreeMemory".
The CxImage class does: CxImage: CxImage Class Reference[^] so it may be that you have declared your own Cximage class and are using that - C++ is a case sensitive language, so the upper- and lower-case "I" may be very important.


这篇关于我该如何解决? Freememory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆