|
but here...
when the time of downloading ,the uploaded content at the prensent time will be downloaded...
i tested that with many files with various size...
is there any solution..??
_____________________________________________
A Programmer Never Dies..***
|
|
|
|
|
|
What is FTPD pls explain...........
i duno get any of ur replays.....
can u explain how ..????????
A Programmer Never Dies..***
|
|
|
|
|
ftpd = ftp daemon/ftp server
Maybe name which FTP server you are running, and check Tucows for alternatives.
|
|
|
|
|
Why doesn't this work?
class CMyException : public CException
{
public:
CMyException(int nErr) : CException(TRUE), m_nErr(nErr) {};
~CMyException() {};
int ReportMyError() {
ReportError(MB_OK, m_nErr);
}
private:
int m_nErr;
};
void SomeProcess(bool test)
throw(int, CMyException)
{
if(test) throw CMyException(2);
}
int Main()
{
try
{
SomeProcess(true);
}
catch(CMyException err)
{
err.ReportMyError();
}
return 0;
}
And my error compilation is:
error C2700: 'class CMyException' : cannot be thrown (use -W4 for more info)
If I use Level warning 4, I've got the same message
Thanks in advance
Hello World!!!
from Raphaël
|
|
|
|
|
Try to remove 'throw(int, CMyException)' clause. It doesn't work in VC anyway.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
unfortunately... Nop... The problem is the same....
Hello World!!!
from Raphaël
|
|
|
|
|
Ok, I've got it - your exception class needs a copy constructor. Add the following to CYourException:
CYourException(const CYourException &e) { m_nErr = e.m_nErr; }
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
OK, thanks... It works...
But normaly a class define his default copy constructor (used if no pointer variables are define)
Hello World!!!
from Raphaël
|
|
|
|
|
Raphaël Kindt wrote:
But normaly a class define his default copy constructor
Compiler generates default and copy constructor for you, but only if you haven't created *any* constructor in your class. Since CYourException had an c'tor accepting integer, compiler didn't create default/copy constructors.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
Tomasz Sowinski wrote:
only if you haven't created *any* constructor
Quoting Mr. Eckel: "...the compiler will automatically synthesize a copy-constructor if you don’t provide one yourself..."
|
|
|
|
|
You're right on this one. Apparently this rule doesn't apply for VC handling of exceptions thrown by value. Have no idea how does it relate to C++ standard.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
Change the Warning Level, maybe more messages will help u debug:
To find this option in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click General in the Category box.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
try
throw new CMyException(2)
Regards
|
|
|
|
|
How can I use accelerators in my dialog? I added a accelarator table in the resource editor and called it IDR_MAINFRAME. What do I need to make it work? I assigned some keys and IDs, also I have WM_COMMAND handler for those IDs.
Do I need to load the accelerators? What is virtkey?
|
|
|
|
|
In MFC accelerators can only be used in frame windows and their descendants because all accelerator translation happens deep down in the main message loop. Since (modal) dialogs have their own message loop, accelerators defined in the resource file do not apply. Maybe you can use a modeless dialog, but I'm not sure that will work as expected...
If a train station is where the train stops, what's a workstation...?
|
|
|
|
|
MFC modal dialogs are actually modeless ones at the API level since MFC 4.0. One of the reasons for this design decision was the ability to hook into message queue with PreTranslateMessage.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
You'd have to load the accelerators with ::LoadAccelerators, store the HACCEL in dialog member variable, override CYourDlg::PreTranslateMessage and call ::TranslateAccelerator in overriden function.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
Tomasz Sowinski wrote:
You'd have to load the accelerators with ::LoadAccelerators, store the HACCEL in dialog member variable, override CYourDlg::PreTranslateMessage and call ::TranslateAccelerator in overriden function.
BIG thanks, that's really easy once you have it.
May I ask two more question for understanding:
1. What is the magic on main accelerator table IDR_MAINFRAME? Does it get somewhere autoloaded?
2. What is the function GetAccelTable() as mentioned in MSDN Q117500? I do not have this member function.
|
|
|
|
|
1) CFrameWnd::LoadFrame calls ::LoadAccelerators (indirectly, there's CFrameWnd::LoadAccelTable which basically invokes ::LoadAccelerators with right HINSTANCE). Accelerators are loaded along with other frame resources.
2) It's documented at the bottom of the article. It's a function which returns CFrameWnd::m_hAccelTable. Since m_hAccelTable is public anyway, you can replace GetAccelTable with m_hAccelTable.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
Thx for details, Tomasz! I got everything working.
However I have no GetAccelTable(), so I used the public member CFrameWnd::m_hAccelTable and it works fine.
|
|
|
|
|
Hi,
Does anyone know if there exists a list of Win32 API functions that are implemented differently in WinXP than WinNT/Win9x?
I am especially interested in subtle differences in the API functions that deal with windows.
|
|
|
|
|
I don't think you'll find one. The best you can count on are the footnotes in MSDN describing differences in particular APIs on 9x/NT. This also applies to WM_ and other message docs.
Anyway, if you find the list, let us all know
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
Hi all,
Does anyone could tell me where I should write 'CLARM /QRxscale' down in eVC++ 4.0.
'Cause I need to write a app. running in WinCE with XScale CPU.
Following SDK reference, I should add this command line to generate code for Intel XScale processor, but I don't know where I should place this line.
Anyone can help me?
Thanks a lot.
|
|
|
|