thank u
ttzzgg_80713
Posts
-
does ansic c++ support unicode? -
what's font do u use when u programing?i use courier new or verdana size 9:eek:
-
friend member function can't access private member var?? what's wrongthanks for u reply, what a kindly person u are !. i has already set operator function to the class's friend. still has problem. and could u tell me where can u find u aritcle??. thank u very much
-
friend member function can't access private member var?? what's wrong?
-
friend member function can't access private member var?? what's wrongifstream & operator >> (ifstream &ifs, const DownKind & d) { ifs >> d.m_strKind >> endl >> d.m_strPath >> endl >> d.m_strSuffix >> d.m_id >> d.m_idParent >> d.m_lstSub.size() >> endl; return ifs; } ofstream & operator << (ofstream &ofs, const DownKind & d) { return ofs; } // class declare #define DOWNKINDBASE DownKindBase class DownKind : public DOWNKINDBASE { public: friend ifstream & operator >> (ifstream &ifs, const DownKind &d); friend ofstream & operator << (ofstream &, const DownKind &); DownKind() ; DownKind(string, string, string, int idParent = -1); virtual ~DownKind() { clear(); } string getKindName(); void setKindName(string); string getPath(); void setPath(string); void setSuffix(string); string getSuffix(); virtual void clone(DownKindBase *); void load(); void save(); virtual void addChild(DownKindBase *); DownKindBase *findByKind(string ); protected: virtual void readFile(FILE *); virtual void writeFile(FILE *); virtual void clear(); virtual void setParentId(int); virtual int getParentId(); private: string m_strKind; string m_strSuffix; string m_strPath; int m_idParent; // parent id int m_id; // current id list m_lstSub; }; could u please tell me what's wrong with this code, don't laught at me.
-
Toolbar bitmapu can use ms paint app edit it
-
how can i serialize a tree struct using c++. not use mfcfaint!:((
-
how can i serialize a tree struct using c++. not use mfccan u t:confused:ell me more detail. such as find who is parent and who is child
-
how can i serialize a tree struct using c++. not use mfcthank u!:confused:
-
why cause exception??:confused:class TaskInfoBase { .... virtual void setSize(int) = 0; }; class NewTaskInfo : public TaskInfoBase { NewTaskInfo() { InitializeCriticalSection(&m_cs); } ~NewTaskInfo() { DeleteCriticalSection(&m_cs); } void setSize(int); static CRITICAL_SECTION m_cs; }; class NewTask : public NewTaskInfo, pubic NewTaskBase { }; class HttpDownload : public DownData , public CHttpDown { public: HttpDownload():NewTaskInfo() {} void write(); NewTask *m_pTask; }; //****************************************************************************** // Implement CRITICAL_SECTION NewTaskInfo::m_cs; void NewTaskInfo::setSize(int i) { EnterCriticalSection(&m_cs); // Exception here . m_nSize = i; LeaveCriticalSection(&m_cs); } void HttpDown::write() { .... m_pTask->setSize(20002); // Enter NewTaskInfo::setSize(); }
-
A Question about ChttpFile兄台是那里人呀
-
RTTI...? and MFC...?for the second question: you can have a look for winamp3.0 client src; this is free. u can get it form it's site, just use a defwindowproc and in this function use getwindowlong to get extra data, then we can do all the things we want.
-
about put_RegisterAsDropTarget?i want drag a URL in IWebBrowser2. and release mouse in the same window. and open the URL. so i use IWebBrowser2::put_RegiseterAsDropTarget. but no effect. why. i'm sorry for my eng is too bad. i'll try my best to clarity.:confused:
-
CFileDialog bug on W2k !?don'g notice it
-
Registry - Hiding important valuesu can generate a password from some hardware, and store these, that's unique
-
Registry - Hiding important valuesif u want to hide some info.why not use some xx.xml or xx.ini file. and hide it in a special dir when first time run app.
-
How can i get this IHTMLTextAreaElement?a IHTMLTextAreaElement is put into a IHTMLIFrameElement, how can i get it. IHTMLIFrameElement has only three methods. and no relationship with IHTMLTextAreaElement. could anyone give me a sample for these problem?
-
SHFileOperation failed, why.thanks, a good man. ..... i'm a lazy boy
-
SHFileOperation failed, why.the app code is below .i could find any problem, why it isn't work. BOOL AppFileOperator(LPCSTR lpszSrc, LPCSTR lpszDest, int op) { SHFILEOPSTRUCT stFileOP; string strsrc = lpszSrc; string strDesc = lpszDest; stFileOP.pFrom = strsrc.c_str(); stFileOP.pTo = strDesc.c_str(); stFileOP.wFunc = op; stFileOP.fFlags = FOF_SILENT | FOF_NOCONFIRMATION; printf("Start to file operator. \n src file : %s\n, desc file is %s\n", strsrc.c_str(), strDesc.c_str()); return SHFileOperation(&stFileOP) == 0 ? TRUE : FALSE; }
-
how can i make a transparent dialog in win98i know it's easy for win2000, how abut win98