Help - Search - Member List - Calendar
Full Version: when compile under vc2005
eMule Plus Forums > Development > Development
newninny
i am a new,compile sourcecode under vc2005 beta2,although completed; but I find some problems below will not happen under previous versions of vc? vc2005 type's check becomes more strickly?or there are any other compile options to choose?
1:
char *p = strchr(pDirectory, '\\');

otherfunctions.cpp(608) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'Conversion loses qualifiers

2:
time_t tNow = mktime(CTime::GetCurrentTime().GetLocalTm());
'ATL::CTime::GetLocalTm' : function does not take 0 arguments

3:
static dwThread = 0;
missing type specifier - int assumed. Note: C++ does not support default-int
Generating Code...
KuSh
we perhaps will move to vc 2005 when it will not be beta anymore and if all devs are okay with that

1: use casting

2: strange u should check atltime.h but at least use GetLocalTm(NULL)

3: should not be that :) replace with static uint32 dwThread = 0;
DonGato
Judging from the switch we made from VS2000 to .NET I would say you will have to wait a lot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.