发个贴 人都气死了 constructors not allowed a return type

jiangkeredgirl 2008-01-11 10:10:42
源代码:
#if !defined(AFX_SKPYEAPIDLG_H__D70CF764_17AA_4730_855C_7D83DCC967AC__INCLUDED_)
#define AFX_SKPYEAPIDLG_H__D70CF764_17AA_4730_855C_7D83DCC967AC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDvrSkype
{
public:
explicit CDvrSkype(HWND hwskpye);
~CDvrSkype(){}
private:
CDvrSkype(const CDvrSkype& otherobject);
CDvrSkype & operator = (const CDvrSkype& otherobject);
private:
HWND m_hwSkype;//skype句柄
}
#endif
===============================================

#include "stdafx.h"
#include "SkpyeAPI.h"
//#include "SkpyeAPIDlg.h"
#include "DVRSkype.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

CDvrSkype::CDvrSkype(HWND hwskpye)
{
m_hwSkype = hwskpye;
}

编译环境 VC6(很不爽的VC6)
...全文
155 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
shakaqrj 2008-01-11
  • 打赏
  • 举报
回复
zhen yun!!
jiangkeredgirl 2008-01-11
  • 打赏
  • 举报
回复
如何 给分??
jiangkeredgirl 2008-01-11
  • 打赏
  • 举报
回复
黑皮啊,还是你说的对,道德!
谢谢 原来是漏掉分号
Chivalry 2008-01-11
  • 打赏
  • 举报
回复
既然拷贝构造函数是私有的,应该不会有内容
jameshooo 2008-01-11
  • 打赏
  • 举报
回复
还有一个拷贝构造函数,你是不是在最后执行了 return *this; ?
Chivalry 2008-01-11
  • 打赏
  • 举报
回复
class CDvrSkype
{
public:
explicit CDvrSkype(HWND hwskpye);
~CDvrSkype(){}
private:
CDvrSkype(const CDvrSkype& otherobject);
CDvrSkype & operator = (const CDvrSkype& otherobject);
private:
HWND m_hwSkype;//skype句柄
};//分号
shakaqrj 2008-01-11
  • 打赏
  • 举报
回复
俄...
是不是这里的问题啊
Joyfulmath 2008-01-11
  • 打赏
  • 举报
回复
use VS2005吧
Chivalry 2008-01-11
  • 打赏
  • 举报
回复
构造函数不允许有返回值
java反编译工具jad 1.5.8g支持 jdk1.5,jdk1.6。说明很多记住一个万能的命令基本就够用了。jad -sjava -r -8 -o **\*.class ---------------This is README file for Jad - the fast Java Decompiler.Jad home page: http://www.kpdus.com/jad.htmlCopyright 2001 Pavel Kouznetsov (jad@kpdus.com).0. Please read the disclaimer on the Jad home page.1. Installation.Unzip jad.zip file into any appropriate directory on your hard drive.This will create two files: - an executable file named 'jad.exe' (Windows *) or 'jad' (*n*x) - this README fileNo other setup is required.2. How to use JadTo decompile a single JAVA class file 'example1.class' type the following: jad example1.classThis command creates file 'example1.jad' in the current directory.If such file already exists Jad asks whether you want to overwrite it or not.Option -o permits overwriting without a confirmation.You can omit .class extension and/or use wildcards in the names ofinput files.Option -s allows to change output file extension: jad -sjava example1.classThis command creates file 'example1.java'. Be careful when usingoptions -o and -sjava together, because Jad can accidentally overwriteyour own source files.Jad uses JAVA class name as an output file name. For example, if classfile 'example1.class' contains JAVA class 'test1' then Jad will createfile 'test1.jad' rather than 'example1.jad'. If you want to specifyyour own output file name use the output redirection: jad -p example1.class > myexm1.javaOption -d allows you to specify another directory for output files,which are created, by default, in the current directory. For example: jad -o -dtest -sjava *.class (or jad -o -d test -s java *.class, which has the same effect)This command decompiles all .class files in the current directory <

16,470

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧