类中的函数/方法 [英] Function / Method in class

查看:87
本文介绍了类中的函数/方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我创建了自己的类,其中有两种方法(都是公共的)。当我使用1

方法时它工作正常,只要我调用另一个方法,

程序就会崩溃。我已经从第二种方法中删除了所有代码,也是

删除了传递给它的所有变量..它可以是什么?


-

Riaan Bekker

Hi Everybody,

I created my own class with 2 methods (both public) in it. When I use the 1
method it works fine, as soon as I make a call to the other method, the
program crashes. I removed all code from the second method already, also
removed all variables passed to it.. what can it be ??

--
Riaan Bekker

推荐答案

Riaan写道:
大家好,

我创建了自己的类,其中包含2个方法(都是公共的)。当我使用1
方法时它工作正常,只要我调用另一个方法,
程序就会崩溃。我已经从第二种方法中删除了所有代码,也删除了传递给它的所有变量..它可以是什么?

-
Riaan Bekker
Hi Everybody,

I created my own class with 2 methods (both public) in it. When I use the 1
method it works fine, as soon as I make a call to the other method, the
program crashes. I removed all code from the second method already, also
removed all variables passed to it.. what can it be ??

--
Riaan Bekker




您应该发布一个minium可编译代码示例,请参阅
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8


我最好的猜测:你已经使用了不同版本的''标题

档。


Stephan



You should post a minium compileable code sample, see
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8.

My best guess: you''ve used different versions of the class'' header
file.

Stephan


On Mon,2006年1月30日11:14:04 +0200,Riaan < RI *** @ c-pos.co.za>写道:
On Mon, 30 Jan 2006 11:14:04 +0200, "Riaan" <ri***@c-pos.co.za> wrote:
大家好,

我用2种方法(都是公共的)创建了我自己的类。当我使用1
方法时它工作正常,只要我调用另一个方法,
程序就会崩溃。我已经从第二种方法中删除了所有代码,也删除了传递给它的所有变量..它可以是什么?
Hi Everybody,

I created my own class with 2 methods (both public) in it. When I use the 1
method it works fine, as soon as I make a call to the other method, the
program crashes. I removed all code from the second method already, also
removed all variables passed to it.. what can it be ??




向我们展示代码。


-

Bob Hairgrove
没有********** @ Home.com


嗨Stephan,

谢谢你,你给了我一个想法,我看看创建的DLL ..它是

a不同版本!! :)感谢MAN


-

Riaan Bekker

奥德赛软件


Stephan Br?nnimann <峰; br **** @ hotmail.com>在消息中写道

news:11 ********************* @ g14g2000cwa.googlegro ups.com ...
Hi Stephan,

thanks man, you gave me an idea and I had a look at the created DLL.. it was
a different version !! :) THANKS MAN

--
Riaan Bekker
Odyssey Software

"Stephan Br?nnimann" <br****@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Riaan写道:
大家好,

我用2种方法(都是公共的)创建了我自己的类。当我使用
1
方法时,它工作正常,只要我调用另一个方法,
程序崩溃。我已经从第二种方法中删除了所有代码,也删除了传递给它的所有变量..它可以是什么?

-
Riaan Bekker
Hi Everybody,

I created my own class with 2 methods (both public) in it. When I use the
1
method it works fine, as soon as I make a call to the other method, the
program crashes. I removed all code from the second method already, also
removed all variables passed to it.. what can it be ??

--
Riaan Bekker

<你应该发布一个minium可编译代码示例,参见
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8

我最好的猜测:你已经使用了不同版本的标题文件。

Stephan



You should post a minium compileable code sample, see
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8.

My best guess: you''ve used different versions of the class'' header
file.

Stephan


这篇关于类中的函数/方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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