473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Upgrading from .NET 1.1 to .NET 2.0

Hi,

I have received a source code project written in C++ VS.NET 2003 on .NET 1.1
that compiles without a problem.

I have opened this source code in VS.NET 2005 and the Log wizard says that
Errors 0 and Warnings 0.

When trying to recompile the project I have received these errors:

Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
..NET\kernel\Span\TSpanning.cpp 383
Error 6 error C2065: 'i' : undeclared identifier c:\zip for
..net\kernel\TFile.h 154
Error 7 error C2440: 'initializing' : cannot convert from 'const char *' to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 9 error C2065: 'i' : undeclared identifier c:\zip for
..net\kernel\TFile.h 154
Error 10 error C2440: 'initializing' : cannot convert from 'const char *' to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 14 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195
Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
..NET\kernel\TFile.h 154
Error 26 error C2440: 'initializing' : cannot convert from 'const char *' to
'char *' c:\Zip for .NET\kernel\TFile.h 365
1. Isn't it that VS.NET 2005 supposed to be fully compatible with VS.NET
2003 projects for upgrading?

2. I have no much knowledge with C++ as I am a C# developer so can any one
please help me how to compile this source code with VS.NET 2005?

Thanks in advanced,
Asaf

Jan 12 '06 #1
15 5039
VC2005 will only convert the solution and project files.
if the code contains something that was valid in VC2003 but not VC2005, (or
default build settings that were changed), you will have to resolve that
yourself.

for example, in a small test project that i made, i used 'array' as a
variable name. in VC2003 this compiles fine, in VC2005 this is a reserved
keyword, leading to lots of compilation errors.

it seems there are some implicit casts from const char * to char * in your
code. check them out and do an explicit cast if you determine it is safe.

for the 'i' undeclared identifier you'd have to show us some code.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:34**********************************@microsof t.com...
Hi,

I have received a source code project written in C++ VS.NET 2003 on .NET
1.1
that compiles without a problem.

I have opened this source code in VS.NET 2005 and the Log wizard says that
Errors 0 and Warnings 0.

When trying to recompile the project I have received these errors:

Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
.NET\kernel\Span\TSpanning.cpp 383
Error 6 error C2065: 'i' : undeclared identifier c:\zip for
.net\kernel\TFile.h 154
Error 7 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 9 error C2065: 'i' : undeclared identifier c:\zip for
.net\kernel\TFile.h 154
Error 10 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 14 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195
Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
.NET\kernel\TFile.h 154
Error 26 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\Zip for .NET\kernel\TFile.h 365
1. Isn't it that VS.NET 2005 supposed to be fully compatible with VS.NET
2003 projects for upgrading?

2. I have no much knowledge with C++ as I am a C# developer so can any one
please help me how to compile this source code with VS.NET 2005?

Thanks in advanced,
Asaf

Jan 12 '06 #2
Hello Bruno,

Thanks for your reply.

For all the lines that contains "for" loop I have added the "int" like:

for ( i = 0; i < EOC.TotalEntries; i++ )

for (int i = 0; i < EOC.TotalEntries; i++ )

So only four errors remains.

For the line:

char* psz = max(strrchr((LPCTSTR)szName, '\\'), strrchr((LPCTSTR)szName,
'/'));

I am reciving the error:

Error 16 error C2440: 'initializing' : cannot convert from 'const char *' to
'char *' c:\zip for .net\kernel\TFile.h 365

Same for more identical three lines.
And for the line:
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));

I am receiving the error:
Error 26 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195

The line is part of:

char* psz;
char szName[_MAX_DIR];
strcpy(szName, (LPCSTR)strFileName);
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
if(psz == NULL)
{
return PString("");
}
else
{
*psz = 0;
return PString(szName);
}

I am a C# developer not a C++ so will be much appreciated if you can help me
solve this problem.

Regards,
Asaf
"Bruno van Dooren" wrote:
VC2005 will only convert the solution and project files.
if the code contains something that was valid in VC2003 but not VC2005, (or
default build settings that were changed), you will have to resolve that
yourself.

for example, in a small test project that i made, i used 'array' as a
variable name. in VC2003 this compiles fine, in VC2005 this is a reserved
keyword, leading to lots of compilation errors.

it seems there are some implicit casts from const char * to char * in your
code. check them out and do an explicit cast if you determine it is safe.

for the 'i' undeclared identifier you'd have to show us some code.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:34**********************************@microsof t.com...
Hi,

I have received a source code project written in C++ VS.NET 2003 on .NET
1.1
that compiles without a problem.

I have opened this source code in VS.NET 2005 and the Log wizard says that
Errors 0 and Warnings 0.

When trying to recompile the project I have received these errors:

Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
.NET\kernel\Span\TSpanning.cpp 383
Error 6 error C2065: 'i' : undeclared identifier c:\zip for
.net\kernel\TFile.h 154
Error 7 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 9 error C2065: 'i' : undeclared identifier c:\zip for
.net\kernel\TFile.h 154
Error 10 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365
Error 14 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195
Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
.NET\kernel\TFile.h 154
Error 26 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\Zip for .NET\kernel\TFile.h 365
1. Isn't it that VS.NET 2005 supposed to be fully compatible with VS.NET
2003 projects for upgrading?

2. I have no much knowledge with C++ as I am a C# developer so can any one
please help me how to compile this source code with VS.NET 2005?

Thanks in advanced,
Asaf


Jan 12 '06 #3
In your case it is perfectly safe to use a cast to get rid of the const
qualifier.
char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
strrchr((LPCTSTR)szName, '/'));

the max macro returns a const char *, because that is what strrchr returns
in this case.
since you already know that the buffer is not const (it is your own buffer)
it is safe to cast the const away.

kind regards,
Bruno.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:85**********************************@microsof t.com...
Hello Bruno,

Thanks for your reply.

For all the lines that contains "for" loop I have added the "int" like:

for ( i = 0; i < EOC.TotalEntries; i++ )

for (int i = 0; i < EOC.TotalEntries; i++ )

So only four errors remains.

For the line:

char* psz = max(strrchr((LPCTSTR)szName, '\\'), strrchr((LPCTSTR)szName,
'/'));

I am reciving the error:

Error 16 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365

Same for more identical three lines.
And for the line:
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));

I am receiving the error:
Error 26 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195

The line is part of:

char* psz;
char szName[_MAX_DIR];
strcpy(szName, (LPCSTR)strFileName);
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
if(psz == NULL)
{
return PString("");
}
else
{
*psz = 0;
return PString(szName);
}

I am a C# developer not a C++ so will be much appreciated if you can help
me
solve this problem.

Regards,
Asaf
"Bruno van Dooren" wrote:
VC2005 will only convert the solution and project files.
if the code contains something that was valid in VC2003 but not VC2005,
(or
default build settings that were changed), you will have to resolve that
yourself.

for example, in a small test project that i made, i used 'array' as a
variable name. in VC2003 this compiles fine, in VC2005 this is a reserved
keyword, leading to lots of compilation errors.

it seems there are some implicit casts from const char * to char * in
your
code. check them out and do an explicit cast if you determine it is safe.

for the 'i' undeclared identifier you'd have to show us some code.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:34**********************************@microsof t.com...
> Hi,
>
> I have received a source code project written in C++ VS.NET 2003 on
> .NET
> 1.1
> that compiles without a problem.
>
> I have opened this source code in VS.NET 2005 and the Log wizard says
> that
> Errors 0 and Warnings 0.
>
> When trying to recompile the project I have received these errors:
>
> Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
> .NET\kernel\Span\TSpanning.cpp 383
> Error 6 error C2065: 'i' : undeclared identifier c:\zip for
> .net\kernel\TFile.h 154
> Error 7 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
> Error 9 error C2065: 'i' : undeclared identifier c:\zip for
> .net\kernel\TFile.h 154
> Error 10 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
> Error 14 error C2440: '=' : cannot convert from 'const char *' to 'char
> *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
> Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
> .NET\kernel\TFile.h 154
> Error 26 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\Zip for .NET\kernel\TFile.h 365
>
>
> 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
> VS.NET
> 2003 projects for upgrading?
>
> 2. I have no much knowledge with C++ as I am a C# developer so can any
> one
> please help me how to compile this source code with VS.NET 2005?
>
> Thanks in advanced,
> Asaf
>


Jan 12 '06 #4
Hello Bruno,

Now when trying to compile the solution I am receiving the error:

Error 121 Command line error D8045 : cannot compile C file
'.\kernel\Zip\win32\win32zip.c' with the /clr option cl

Is there other switch I can set on the file so it will compile with VS.NET
2005?

Regards,
Asaf
"Bruno van Dooren" wrote:
In your case it is perfectly safe to use a cast to get rid of the const
qualifier.
char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
strrchr((LPCTSTR)szName, '/'));

the max macro returns a const char *, because that is what strrchr returns
in this case.
since you already know that the buffer is not const (it is your own buffer)
it is safe to cast the const away.

kind regards,
Bruno.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:85**********************************@microsof t.com...
Hello Bruno,

Thanks for your reply.

For all the lines that contains "for" loop I have added the "int" like:

for ( i = 0; i < EOC.TotalEntries; i++ )

for (int i = 0; i < EOC.TotalEntries; i++ )

So only four errors remains.

For the line:

char* psz = max(strrchr((LPCTSTR)szName, '\\'), strrchr((LPCTSTR)szName,
'/'));

I am reciving the error:

Error 16 error C2440: 'initializing' : cannot convert from 'const char *'
to
'char *' c:\zip for .net\kernel\TFile.h 365

Same for more identical three lines.
And for the line:
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));

I am receiving the error:
Error 26 error C2440: '=' : cannot convert from 'const char *' to 'char
*' c:\Zip for .NET\kernel\TStringUtils.cpp 195

The line is part of:

char* psz;
char szName[_MAX_DIR];
strcpy(szName, (LPCSTR)strFileName);
psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
if(psz == NULL)
{
return PString("");
}
else
{
*psz = 0;
return PString(szName);
}

I am a C# developer not a C++ so will be much appreciated if you can help
me
solve this problem.

Regards,
Asaf
"Bruno van Dooren" wrote:
VC2005 will only convert the solution and project files.
if the code contains something that was valid in VC2003 but not VC2005,
(or
default build settings that were changed), you will have to resolve that
yourself.

for example, in a small test project that i made, i used 'array' as a
variable name. in VC2003 this compiles fine, in VC2005 this is a reserved
keyword, leading to lots of compilation errors.

it seems there are some implicit casts from const char * to char * in
your
code. check them out and do an explicit cast if you determine it is safe.

for the 'i' undeclared identifier you'd have to show us some code.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:34**********************************@microsof t.com...
> Hi,
>
> I have received a source code project written in C++ VS.NET 2003 on
> .NET
> 1.1
> that compiles without a problem.
>
> I have opened this source code in VS.NET 2005 and the Log wizard says
> that
> Errors 0 and Warnings 0.
>
> When trying to recompile the project I have received these errors:
>
> Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
> .NET\kernel\Span\TSpanning.cpp 383
> Error 6 error C2065: 'i' : undeclared identifier c:\zip for
> .net\kernel\TFile.h 154
> Error 7 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
> Error 9 error C2065: 'i' : undeclared identifier c:\zip for
> .net\kernel\TFile.h 154
> Error 10 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
> Error 14 error C2440: '=' : cannot convert from 'const char *' to 'char
> *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
> Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
> .NET\kernel\TFile.h 154
> Error 26 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\Zip for .NET\kernel\TFile.h 365
>
>
> 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
> VS.NET
> 2003 projects for upgrading?
>
> 2. I have no much knowledge with C++ as I am a C# developer so can any
> one
> please help me how to compile this source code with VS.NET 2005?
>
> Thanks in advanced,
> Asaf
>


Jan 12 '06 #5
if you right-click the file in your solution window, then under
configuration properties -> C/C++ ->Advanced
you can set the option 'Compile as' to C++.

that will cause VC2005 to compile it as a C++ file instead of a C file.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:5C**********************************@microsof t.com...
Hello Bruno,

Now when trying to compile the solution I am receiving the error:

Error 121 Command line error D8045 : cannot compile C file
'.\kernel\Zip\win32\win32zip.c' with the /clr option cl

Is there other switch I can set on the file so it will compile with VS.NET
2005?

Regards,
Asaf
"Bruno van Dooren" wrote:
In your case it is perfectly safe to use a cast to get rid of the const
qualifier.
char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
strrchr((LPCTSTR)szName, '/'));

the max macro returns a const char *, because that is what strrchr
returns
in this case.
since you already know that the buffer is not const (it is your own
buffer)
it is safe to cast the const away.

kind regards,
Bruno.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:85**********************************@microsof t.com...
> Hello Bruno,
>
> Thanks for your reply.
>
> For all the lines that contains "for" loop I have added the "int" like:
>
> for ( i = 0; i < EOC.TotalEntries; i++ )
>
> for (int i = 0; i < EOC.TotalEntries; i++ )
>
> So only four errors remains.
>
> For the line:
>
> char* psz = max(strrchr((LPCTSTR)szName, '\\'),
> strrchr((LPCTSTR)szName,
> '/'));
>
> I am reciving the error:
>
> Error 16 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
>
> Same for more identical three lines.
>
>
> And for the line:
> psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
>
> I am receiving the error:
> Error 26 error C2440: '=' : cannot convert from 'const char *' to 'char
> *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>
> The line is part of:
>
> char* psz;
> char szName[_MAX_DIR];
> strcpy(szName, (LPCSTR)strFileName);
> psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
> if(psz == NULL)
> {
> return PString("");
> }
> else
> {
> *psz = 0;
> return PString(szName);
> }
>
> I am a C# developer not a C++ so will be much appreciated if you can
> help
> me
> solve this problem.
>
> Regards,
> Asaf
>
>
> "Bruno van Dooren" wrote:
>
>> VC2005 will only convert the solution and project files.
>> if the code contains something that was valid in VC2003 but not
>> VC2005,
>> (or
>> default build settings that were changed), you will have to resolve
>> that
>> yourself.
>>
>> for example, in a small test project that i made, i used 'array' as a
>> variable name. in VC2003 this compiles fine, in VC2005 this is a
>> reserved
>> keyword, leading to lots of compilation errors.
>>
>> it seems there are some implicit casts from const char * to char * in
>> your
>> code. check them out and do an explicit cast if you determine it is
>> safe.
>>
>> for the 'i' undeclared identifier you'd have to show us some code.
>>
>> kind regards,
>> Bruno.
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:34**********************************@microsof t.com...
>> > Hi,
>> >
>> > I have received a source code project written in C++ VS.NET 2003 on
>> > .NET
>> > 1.1
>> > that compiles without a problem.
>> >
>> > I have opened this source code in VS.NET 2005 and the Log wizard
>> > says
>> > that
>> > Errors 0 and Warnings 0.
>> >
>> > When trying to recompile the project I have received these errors:
>> >
>> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
>> > .NET\kernel\Span\TSpanning.cpp 383
>> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
>> > .net\kernel\TFile.h 154
>> > Error 7 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
>> > .net\kernel\TFile.h 154
>> > Error 10 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> > Error 14 error C2440: '=' : cannot convert from 'const char *' to
>> > 'char
>> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
>> > .NET\kernel\TFile.h 154
>> > Error 26 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
>> >
>> >
>> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
>> > VS.NET
>> > 2003 projects for upgrading?
>> >
>> > 2. I have no much knowledge with C++ as I am a C# developer so can
>> > any
>> > one
>> > please help me how to compile this source code with VS.NET 2005?
>> >
>> > Thanks in advanced,
>> > Asaf
>> >
>>
>>
>>


Jan 12 '06 #6
Hello Bruno,

After setting the file to compile with C++ the compilation for that file
results in about 34 errors.

Any thing else that can solve this problem please?

Regards,
Asaf
"Bruno van Dooren" wrote:
if you right-click the file in your solution window, then under
configuration properties -> C/C++ ->Advanced
you can set the option 'Compile as' to C++.

that will cause VC2005 to compile it as a C++ file instead of a C file.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:5C**********************************@microsof t.com...
Hello Bruno,

Now when trying to compile the solution I am receiving the error:

Error 121 Command line error D8045 : cannot compile C file
'.\kernel\Zip\win32\win32zip.c' with the /clr option cl

Is there other switch I can set on the file so it will compile with VS.NET
2005?

Regards,
Asaf
"Bruno van Dooren" wrote:
In your case it is perfectly safe to use a cast to get rid of the const
qualifier.
char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
strrchr((LPCTSTR)szName, '/'));

the max macro returns a const char *, because that is what strrchr
returns
in this case.
since you already know that the buffer is not const (it is your own
buffer)
it is safe to cast the const away.

kind regards,
Bruno.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:85**********************************@microsof t.com...
> Hello Bruno,
>
> Thanks for your reply.
>
> For all the lines that contains "for" loop I have added the "int" like:
>
> for ( i = 0; i < EOC.TotalEntries; i++ )
>
> for (int i = 0; i < EOC.TotalEntries; i++ )
>
> So only four errors remains.
>
> For the line:
>
> char* psz = max(strrchr((LPCTSTR)szName, '\\'),
> strrchr((LPCTSTR)szName,
> '/'));
>
> I am reciving the error:
>
> Error 16 error C2440: 'initializing' : cannot convert from 'const char
> *'
> to
> 'char *' c:\zip for .net\kernel\TFile.h 365
>
> Same for more identical three lines.
>
>
> And for the line:
> psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
>
> I am receiving the error:
> Error 26 error C2440: '=' : cannot convert from 'const char *' to 'char
> *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>
> The line is part of:
>
> char* psz;
> char szName[_MAX_DIR];
> strcpy(szName, (LPCSTR)strFileName);
> psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName, '/'));
> if(psz == NULL)
> {
> return PString("");
> }
> else
> {
> *psz = 0;
> return PString(szName);
> }
>
> I am a C# developer not a C++ so will be much appreciated if you can
> help
> me
> solve this problem.
>
> Regards,
> Asaf
>
>
> "Bruno van Dooren" wrote:
>
>> VC2005 will only convert the solution and project files.
>> if the code contains something that was valid in VC2003 but not
>> VC2005,
>> (or
>> default build settings that were changed), you will have to resolve
>> that
>> yourself.
>>
>> for example, in a small test project that i made, i used 'array' as a
>> variable name. in VC2003 this compiles fine, in VC2005 this is a
>> reserved
>> keyword, leading to lots of compilation errors.
>>
>> it seems there are some implicit casts from const char * to char * in
>> your
>> code. check them out and do an explicit cast if you determine it is
>> safe.
>>
>> for the 'i' undeclared identifier you'd have to show us some code.
>>
>> kind regards,
>> Bruno.
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:34**********************************@microsof t.com...
>> > Hi,
>> >
>> > I have received a source code project written in C++ VS.NET 2003 on
>> > .NET
>> > 1.1
>> > that compiles without a problem.
>> >
>> > I have opened this source code in VS.NET 2005 and the Log wizard
>> > says
>> > that
>> > Errors 0 and Warnings 0.
>> >
>> > When trying to recompile the project I have received these errors:
>> >
>> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
>> > .NET\kernel\Span\TSpanning.cpp 383
>> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
>> > .net\kernel\TFile.h 154
>> > Error 7 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
>> > .net\kernel\TFile.h 154
>> > Error 10 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> > Error 14 error C2440: '=' : cannot convert from 'const char *' to
>> > 'char
>> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
>> > .NET\kernel\TFile.h 154
>> > Error 26 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
>> >
>> >
>> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
>> > VS.NET
>> > 2003 projects for upgrading?
>> >
>> > 2. I have no much knowledge with C++ as I am a C# developer so can
>> > any
>> > one
>> > please help me how to compile this source code with VS.NET 2005?
>> >
>> > Thanks in advanced,
>> > Asaf
>> >
>>
>>
>>


Jan 12 '06 #7
Asaf wrote:
Hello Bruno,

After setting the file to compile with C++ the compilation for that file
results in about 34 errors.

Any thing else that can solve this problem please?

Regards,
Asaf


Asaf:

When you get an error, look up the Cxxxx error number in the help.
Usually you will be able to tell that your code as not really correct
before, but the older compiler allowed it.

Personally, I think testing code with a new or different compiler is a
lot of fun. It's very little effort, and you end up with better code. In
most cases you can take the modified code back to the old compiler and
it will work (perhaps better than before, because before it really had
bugs).

Do not look on these compiler warnings as a bad thing; they are good. If
the compilers treated all your code the same, then there would really be
not much point in upgrading (at least from the viewpoint of unmanaged
code).

David Wilkinson
Jan 12 '06 #8
compile it as C code, but set configuration properties -> c/c++ ->
general -> compile as managed
to 'not using managed extensions'.

but that might lead to other problems because you will be working with mixed
mode code. not knowing the structure of your project makes it very difficult
to say anything useful at this point.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
Hello Bruno,

After setting the file to compile with C++ the compilation for that file
results in about 34 errors.

Any thing else that can solve this problem please?

Regards,
Asaf
"Bruno van Dooren" wrote:
if you right-click the file in your solution window, then under
configuration properties -> C/C++ ->Advanced
you can set the option 'Compile as' to C++.

that will cause VC2005 to compile it as a C++ file instead of a C file.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:5C**********************************@microsof t.com...
> Hello Bruno,
>
> Now when trying to compile the solution I am receiving the error:
>
> Error 121 Command line error D8045 : cannot compile C file
> '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
>
> Is there other switch I can set on the file so it will compile with
> VS.NET
> 2005?
>
> Regards,
> Asaf
>
>
> "Bruno van Dooren" wrote:
>
>> In your case it is perfectly safe to use a cast to get rid of the
>> const
>> qualifier.
>> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
>> strrchr((LPCTSTR)szName, '/'));
>>
>> the max macro returns a const char *, because that is what strrchr
>> returns
>> in this case.
>> since you already know that the buffer is not const (it is your own
>> buffer)
>> it is safe to cast the const away.
>>
>> kind regards,
>> Bruno.
>>
>>
>>
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:85**********************************@microsof t.com...
>> > Hello Bruno,
>> >
>> > Thanks for your reply.
>> >
>> > For all the lines that contains "for" loop I have added the "int"
>> > like:
>> >
>> > for ( i = 0; i < EOC.TotalEntries; i++ )
>> >
>> > for (int i = 0; i < EOC.TotalEntries; i++ )
>> >
>> > So only four errors remains.
>> >
>> > For the line:
>> >
>> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
>> > strrchr((LPCTSTR)szName,
>> > '/'));
>> >
>> > I am reciving the error:
>> >
>> > Error 16 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >
>> > Same for more identical three lines.
>> >
>> >
>> > And for the line:
>> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
>> > '/'));
>> >
>> > I am receiving the error:
>> > Error 26 error C2440: '=' : cannot convert from 'const char *' to
>> > 'char
>> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> >
>> > The line is part of:
>> >
>> > char* psz;
>> > char szName[_MAX_DIR];
>> > strcpy(szName, (LPCSTR)strFileName);
>> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
>> > '/'));
>> > if(psz == NULL)
>> > {
>> > return PString("");
>> > }
>> > else
>> > {
>> > *psz = 0;
>> > return PString(szName);
>> > }
>> >
>> > I am a C# developer not a C++ so will be much appreciated if you can
>> > help
>> > me
>> > solve this problem.
>> >
>> > Regards,
>> > Asaf
>> >
>> >
>> > "Bruno van Dooren" wrote:
>> >
>> >> VC2005 will only convert the solution and project files.
>> >> if the code contains something that was valid in VC2003 but not
>> >> VC2005,
>> >> (or
>> >> default build settings that were changed), you will have to resolve
>> >> that
>> >> yourself.
>> >>
>> >> for example, in a small test project that i made, i used 'array' as
>> >> a
>> >> variable name. in VC2003 this compiles fine, in VC2005 this is a
>> >> reserved
>> >> keyword, leading to lots of compilation errors.
>> >>
>> >> it seems there are some implicit casts from const char * to char *
>> >> in
>> >> your
>> >> code. check them out and do an explicit cast if you determine it is
>> >> safe.
>> >>
>> >> for the 'i' undeclared identifier you'd have to show us some code.
>> >>
>> >> kind regards,
>> >> Bruno.
>> >>
>> >>
>> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> >> news:34**********************************@microsof t.com...
>> >> > Hi,
>> >> >
>> >> > I have received a source code project written in C++ VS.NET 2003
>> >> > on
>> >> > .NET
>> >> > 1.1
>> >> > that compiles without a problem.
>> >> >
>> >> > I have opened this source code in VS.NET 2005 and the Log wizard
>> >> > says
>> >> > that
>> >> > Errors 0 and Warnings 0.
>> >> >
>> >> > When trying to recompile the project I have received these
>> >> > errors:
>> >> >
>> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
>> >> > .NET\kernel\Span\TSpanning.cpp 383
>> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
>> >> > .net\kernel\TFile.h 154
>> >> > Error 7 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
>> >> > .net\kernel\TFile.h 154
>> >> > Error 10 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >> > Error 14 error C2440: '=' : cannot convert from 'const char *' to
>> >> > 'char
>> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
>> >> > .NET\kernel\TFile.h 154
>> >> > Error 26 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
>> >> >
>> >> >
>> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
>> >> > VS.NET
>> >> > 2003 projects for upgrading?
>> >> >
>> >> > 2. I have no much knowledge with C++ as I am a C# developer so
>> >> > can
>> >> > any
>> >> > one
>> >> > please help me how to compile this source code with VS.NET 2005?
>> >> >
>> >> > Thanks in advanced,
>> >> > Asaf
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jan 12 '06 #9
Hello Bruno,

I give up! Nothing is working to compile this project :(
Too bad that Microsoft does not preserve compatibility between VS.NET 2003 &
VS.NET 2005.
Any way, thanks for your time & share of knowledge.

Regards,
Asaf
"Bruno van Dooren" wrote:
compile it as C code, but set configuration properties -> c/c++ ->
general -> compile as managed
to 'not using managed extensions'.

but that might lead to other problems because you will be working with mixed
mode code. not knowing the structure of your project makes it very difficult
to say anything useful at this point.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
Hello Bruno,

After setting the file to compile with C++ the compilation for that file
results in about 34 errors.

Any thing else that can solve this problem please?

Regards,
Asaf
"Bruno van Dooren" wrote:
if you right-click the file in your solution window, then under
configuration properties -> C/C++ ->Advanced
you can set the option 'Compile as' to C++.

that will cause VC2005 to compile it as a C++ file instead of a C file.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:5C**********************************@microsof t.com...
> Hello Bruno,
>
> Now when trying to compile the solution I am receiving the error:
>
> Error 121 Command line error D8045 : cannot compile C file
> '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
>
> Is there other switch I can set on the file so it will compile with
> VS.NET
> 2005?
>
> Regards,
> Asaf
>
>
> "Bruno van Dooren" wrote:
>
>> In your case it is perfectly safe to use a cast to get rid of the
>> const
>> qualifier.
>> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
>> strrchr((LPCTSTR)szName, '/'));
>>
>> the max macro returns a const char *, because that is what strrchr
>> returns
>> in this case.
>> since you already know that the buffer is not const (it is your own
>> buffer)
>> it is safe to cast the const away.
>>
>> kind regards,
>> Bruno.
>>
>>
>>
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:85**********************************@microsof t.com...
>> > Hello Bruno,
>> >
>> > Thanks for your reply.
>> >
>> > For all the lines that contains "for" loop I have added the "int"
>> > like:
>> >
>> > for ( i = 0; i < EOC.TotalEntries; i++ )
>> >
>> > for (int i = 0; i < EOC.TotalEntries; i++ )
>> >
>> > So only four errors remains.
>> >
>> > For the line:
>> >
>> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
>> > strrchr((LPCTSTR)szName,
>> > '/'));
>> >
>> > I am reciving the error:
>> >
>> > Error 16 error C2440: 'initializing' : cannot convert from 'const
>> > char
>> > *'
>> > to
>> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >
>> > Same for more identical three lines.
>> >
>> >
>> > And for the line:
>> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
>> > '/'));
>> >
>> > I am receiving the error:
>> > Error 26 error C2440: '=' : cannot convert from 'const char *' to
>> > 'char
>> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> >
>> > The line is part of:
>> >
>> > char* psz;
>> > char szName[_MAX_DIR];
>> > strcpy(szName, (LPCSTR)strFileName);
>> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
>> > '/'));
>> > if(psz == NULL)
>> > {
>> > return PString("");
>> > }
>> > else
>> > {
>> > *psz = 0;
>> > return PString(szName);
>> > }
>> >
>> > I am a C# developer not a C++ so will be much appreciated if you can
>> > help
>> > me
>> > solve this problem.
>> >
>> > Regards,
>> > Asaf
>> >
>> >
>> > "Bruno van Dooren" wrote:
>> >
>> >> VC2005 will only convert the solution and project files.
>> >> if the code contains something that was valid in VC2003 but not
>> >> VC2005,
>> >> (or
>> >> default build settings that were changed), you will have to resolve
>> >> that
>> >> yourself.
>> >>
>> >> for example, in a small test project that i made, i used 'array' as
>> >> a
>> >> variable name. in VC2003 this compiles fine, in VC2005 this is a
>> >> reserved
>> >> keyword, leading to lots of compilation errors.
>> >>
>> >> it seems there are some implicit casts from const char * to char *
>> >> in
>> >> your
>> >> code. check them out and do an explicit cast if you determine it is
>> >> safe.
>> >>
>> >> for the 'i' undeclared identifier you'd have to show us some code.
>> >>
>> >> kind regards,
>> >> Bruno.
>> >>
>> >>
>> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> >> news:34**********************************@microsof t.com...
>> >> > Hi,
>> >> >
>> >> > I have received a source code project written in C++ VS.NET 2003
>> >> > on
>> >> > .NET
>> >> > 1.1
>> >> > that compiles without a problem.
>> >> >
>> >> > I have opened this source code in VS.NET 2005 and the Log wizard
>> >> > says
>> >> > that
>> >> > Errors 0 and Warnings 0.
>> >> >
>> >> > When trying to recompile the project I have received these
>> >> > errors:
>> >> >
>> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
>> >> > .NET\kernel\Span\TSpanning.cpp 383
>> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
>> >> > .net\kernel\TFile.h 154
>> >> > Error 7 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
>> >> > .net\kernel\TFile.h 154
>> >> > Error 10 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> >> > Error 14 error C2440: '=' : cannot convert from 'const char *' to
>> >> > 'char
>> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
>> >> > .NET\kernel\TFile.h 154
>> >> > Error 26 error C2440: 'initializing' : cannot convert from 'const
>> >> > char
>> >> > *'
>> >> > to
>> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
>> >> >
>> >> >
>> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible with
>> >> > VS.NET
>> >> > 2003 projects for upgrading?
>> >> >
>> >> > 2. I have no much knowledge with C++ as I am a C# developer so
>> >> > can
>> >> > any
>> >> > one
>> >> > please help me how to compile this source code with VS.NET 2005?
>> >> >
>> >> > Thanks in advanced,
>> >> > Asaf
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jan 14 '06 #10
The /clr flag is only valid for C++, so you should turn of this flag to
compile .c files. I don't get it that this project compiled with VS2003 as
this requirement didn't change.

Willy.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
| Hello Bruno,
|
| After setting the file to compile with C++ the compilation for that file
| results in about 34 errors.
|
| Any thing else that can solve this problem please?
|
| Regards,
| Asaf
|
|
| "Bruno van Dooren" wrote:
|
| > if you right-click the file in your solution window, then under
| > configuration properties -> C/C++ ->Advanced
| > you can set the option 'Compile as' to C++.
| >
| > that will cause VC2005 to compile it as a C++ file instead of a C file.
| >
| > kind regards,
| > Bruno.
| >
| >
| > "Asaf" <AG**@newsgroups.nospam> wrote in message
| > news:5C**********************************@microsof t.com...
| > > Hello Bruno,
| > >
| > > Now when trying to compile the solution I am receiving the error:
| > >
| > > Error 121 Command line error D8045 : cannot compile C file
| > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
| > >
| > > Is there other switch I can set on the file so it will compile with
VS.NET
| > > 2005?
| > >
| > > Regards,
| > > Asaf
| > >
| > >
| > > "Bruno van Dooren" wrote:
| > >
| > >> In your case it is perfectly safe to use a cast to get rid of the
const
| > >> qualifier.
| > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
| > >> strrchr((LPCTSTR)szName, '/'));
| > >>
| > >> the max macro returns a const char *, because that is what strrchr
| > >> returns
| > >> in this case.
| > >> since you already know that the buffer is not const (it is your own
| > >> buffer)
| > >> it is safe to cast the const away.
| > >>
| > >> kind regards,
| > >> Bruno.
| > >>
| > >>
| > >>
| > >>
| > >>
| > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> news:85**********************************@microsof t.com...
| > >> > Hello Bruno,
| > >> >
| > >> > Thanks for your reply.
| > >> >
| > >> > For all the lines that contains "for" loop I have added the "int"
like:
| > >> >
| > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > So only four errors remains.
| > >> >
| > >> > For the line:
| > >> >
| > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
| > >> > strrchr((LPCTSTR)szName,
| > >> > '/'));
| > >> >
| > >> > I am reciving the error:
| > >> >
| > >> > Error 16 error C2440: 'initializing' : cannot convert from 'const
char
| > >> > *'
| > >> > to
| > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >
| > >> > Same for more identical three lines.
| > >> >
| > >> >
| > >> > And for the line:
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> >
| > >> > I am receiving the error:
| > >> > Error 26 error C2440: '=' : cannot convert from 'const char *' to
'char
| > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >
| > >> > The line is part of:
| > >> >
| > >> > char* psz;
| > >> > char szName[_MAX_DIR];
| > >> > strcpy(szName, (LPCSTR)strFileName);
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> > if(psz == NULL)
| > >> > {
| > >> > return PString("");
| > >> > }
| > >> > else
| > >> > {
| > >> > *psz = 0;
| > >> > return PString(szName);
| > >> > }
| > >> >
| > >> > I am a C# developer not a C++ so will be much appreciated if you
can
| > >> > help
| > >> > me
| > >> > solve this problem.
| > >> >
| > >> > Regards,
| > >> > Asaf
| > >> >
| > >> >
| > >> > "Bruno van Dooren" wrote:
| > >> >
| > >> >> VC2005 will only convert the solution and project files.
| > >> >> if the code contains something that was valid in VC2003 but not
| > >> >> VC2005,
| > >> >> (or
| > >> >> default build settings that were changed), you will have to
resolve
| > >> >> that
| > >> >> yourself.
| > >> >>
| > >> >> for example, in a small test project that i made, i used 'array'
as a
| > >> >> variable name. in VC2003 this compiles fine, in VC2005 this is a
| > >> >> reserved
| > >> >> keyword, leading to lots of compilation errors.
| > >> >>
| > >> >> it seems there are some implicit casts from const char * to char *
in
| > >> >> your
| > >> >> code. check them out and do an explicit cast if you determine it
is
| > >> >> safe.
| > >> >>
| > >> >> for the 'i' undeclared identifier you'd have to show us some code.
| > >> >>
| > >> >> kind regards,
| > >> >> Bruno.
| > >> >>
| > >> >>
| > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> >> news:34**********************************@microsof t.com...
| > >> >> > Hi,
| > >> >> >
| > >> >> > I have received a source code project written in C++ VS.NET 2003
on
| > >> >> > .NET
| > >> >> > 1.1
| > >> >> > that compiles without a problem.
| > >> >> >
| > >> >> > I have opened this source code in VS.NET 2005 and the Log wizard
| > >> >> > says
| > >> >> > that
| > >> >> > Errors 0 and Warnings 0.
| > >> >> >
| > >> >> > When trying to recompile the project I have received these
errors:
| > >> >> >
| > >> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\Span\TSpanning.cpp 383
| > >> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 7 error C2440: 'initializing' : cannot convert from 'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 10 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 14 error C2440: '=' : cannot convert from 'const char *'
to
| > >> >> > 'char
| > >> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\TFile.h 154
| > >> >> > Error 26 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
| > >> >> >
| > >> >> >
| > >> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible
with
| > >> >> > VS.NET
| > >> >> > 2003 projects for upgrading?
| > >> >> >
| > >> >> > 2. I have no much knowledge with C++ as I am a C# developer so
can
| > >> >> > any
| > >> >> > one
| > >> >> > please help me how to compile this source code with VS.NET 2005?
| > >> >> >
| > >> >> > Thanks in advanced,
| > >> >> > Asaf
| > >> >> >
| > >> >>
| > >> >>
| > >> >>
| > >>
| > >>
| > >>
| >
| >
| >
Jan 14 '06 #11
Hi,

I have finally been able to compile the code for making a release Assembly
but I have left with to questions.

1. When trying to compile for release I have got the error:

Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line options
are incompatible
So I switched it to: Multi-threaded DLL (/MD) for the C\C++ -> Code
Generation -> Runtime Library.

Is that ok?

2. After compile I am receiving the error:

Error 546 error AL1019: Metadata failure while creating assembly -- The
process cannot access the file because it is being used by another process.
ALINK

But the Assembly is working ok, so do I need to worry about this error?

Regards,
Asaf
"Willy Denoyette [MVP]" wrote:
The /clr flag is only valid for C++, so you should turn of this flag to
compile .c files. I don't get it that this project compiled with VS2003 as
this requirement didn't change.

Willy.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
| Hello Bruno,
|
| After setting the file to compile with C++ the compilation for that file
| results in about 34 errors.
|
| Any thing else that can solve this problem please?
|
| Regards,
| Asaf
|
|
| "Bruno van Dooren" wrote:
|
| > if you right-click the file in your solution window, then under
| > configuration properties -> C/C++ ->Advanced
| > you can set the option 'Compile as' to C++.
| >
| > that will cause VC2005 to compile it as a C++ file instead of a C file.
| >
| > kind regards,
| > Bruno.
| >
| >
| > "Asaf" <AG**@newsgroups.nospam> wrote in message
| > news:5C**********************************@microsof t.com...
| > > Hello Bruno,
| > >
| > > Now when trying to compile the solution I am receiving the error:
| > >
| > > Error 121 Command line error D8045 : cannot compile C file
| > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
| > >
| > > Is there other switch I can set on the file so it will compile with
VS.NET
| > > 2005?
| > >
| > > Regards,
| > > Asaf
| > >
| > >
| > > "Bruno van Dooren" wrote:
| > >
| > >> In your case it is perfectly safe to use a cast to get rid of the
const
| > >> qualifier.
| > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
| > >> strrchr((LPCTSTR)szName, '/'));
| > >>
| > >> the max macro returns a const char *, because that is what strrchr
| > >> returns
| > >> in this case.
| > >> since you already know that the buffer is not const (it is your own
| > >> buffer)
| > >> it is safe to cast the const away.
| > >>
| > >> kind regards,
| > >> Bruno.
| > >>
| > >>
| > >>
| > >>
| > >>
| > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> news:85**********************************@microsof t.com...
| > >> > Hello Bruno,
| > >> >
| > >> > Thanks for your reply.
| > >> >
| > >> > For all the lines that contains "for" loop I have added the "int"
like:
| > >> >
| > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > So only four errors remains.
| > >> >
| > >> > For the line:
| > >> >
| > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
| > >> > strrchr((LPCTSTR)szName,
| > >> > '/'));
| > >> >
| > >> > I am reciving the error:
| > >> >
| > >> > Error 16 error C2440: 'initializing' : cannot convert from 'const
char
| > >> > *'
| > >> > to
| > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >
| > >> > Same for more identical three lines.
| > >> >
| > >> >
| > >> > And for the line:
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> >
| > >> > I am receiving the error:
| > >> > Error 26 error C2440: '=' : cannot convert from 'const char *' to
'char
| > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >
| > >> > The line is part of:
| > >> >
| > >> > char* psz;
| > >> > char szName[_MAX_DIR];
| > >> > strcpy(szName, (LPCSTR)strFileName);
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> > if(psz == NULL)
| > >> > {
| > >> > return PString("");
| > >> > }
| > >> > else
| > >> > {
| > >> > *psz = 0;
| > >> > return PString(szName);
| > >> > }
| > >> >
| > >> > I am a C# developer not a C++ so will be much appreciated if you
can
| > >> > help
| > >> > me
| > >> > solve this problem.
| > >> >
| > >> > Regards,
| > >> > Asaf
| > >> >
| > >> >
| > >> > "Bruno van Dooren" wrote:
| > >> >
| > >> >> VC2005 will only convert the solution and project files.
| > >> >> if the code contains something that was valid in VC2003 but not
| > >> >> VC2005,
| > >> >> (or
| > >> >> default build settings that were changed), you will have to
resolve
| > >> >> that
| > >> >> yourself.
| > >> >>
| > >> >> for example, in a small test project that i made, i used 'array'
as a
| > >> >> variable name. in VC2003 this compiles fine, in VC2005 this is a
| > >> >> reserved
| > >> >> keyword, leading to lots of compilation errors.
| > >> >>
| > >> >> it seems there are some implicit casts from const char * to char *
in
| > >> >> your
| > >> >> code. check them out and do an explicit cast if you determine it
is
| > >> >> safe.
| > >> >>
| > >> >> for the 'i' undeclared identifier you'd have to show us some code.
| > >> >>
| > >> >> kind regards,
| > >> >> Bruno.
| > >> >>
| > >> >>
| > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> >> news:34**********************************@microsof t.com...
| > >> >> > Hi,
| > >> >> >
| > >> >> > I have received a source code project written in C++ VS.NET 2003
on
| > >> >> > .NET
| > >> >> > 1.1
| > >> >> > that compiles without a problem.
| > >> >> >
| > >> >> > I have opened this source code in VS.NET 2005 and the Log wizard
| > >> >> > says
| > >> >> > that
| > >> >> > Errors 0 and Warnings 0.
| > >> >> >
| > >> >> > When trying to recompile the project I have received these
errors:
| > >> >> >
| > >> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\Span\TSpanning.cpp 383
| > >> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 7 error C2440: 'initializing' : cannot convert from 'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 10 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 14 error C2440: '=' : cannot convert from 'const char *'
to
| > >> >> > 'char
| > >> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\TFile.h 154
| > >> >> > Error 26 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
| > >> >> >
| > >> >> >
| > >> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible
with
| > >> >> > VS.NET
| > >> >> > 2003 projects for upgrading?
| > >> >> >
| > >> >> > 2. I have no much knowledge with C++ as I am a C# developer so
can
| > >> >> > any
| > >> >> > one
| > >> >> > please help me how to compile this source code with VS.NET 2005?
| > >> >> >
| > >> >> > Thanks in advanced,
| > >> >> > Asaf
| > >> >> >
| > >> >>
| > >> >>
| > >> >>
| > >>
| > >>
| > >>
| >
| >
| >

Jan 15 '06 #12
Hello,
1. When trying to compile for release I have got the error:

Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line options
are incompatible
So I switched it to: Multi-threaded DLL (/MD) for the C\C++ -> Code
Generation -> Runtime Library.

Is that ok?
from MSDN:
a.. The following compiler options are not supported with /clr:

a.. /EHsc and /EHs (/clr implies /EHa (see /EH (Exception Handling Model))

b.. /fp:strict and /fp:except (see /fp (Specify Floating-Point
Behavior).)/Zd

c.. /Gm

d.. /MT

e.. /RTC

f.. /ZI

/MD is not in the list, so that is fine.


2. After compile I am receiving the error:

Error 546 error AL1019: Metadata failure while creating assembly -- The
process cannot access the file because it is being used by another
process.
ALINK

But the Assembly is working ok, so do I need to worry about this error? you don't have a resource file open for editing, or something like that?
try to close VS2005 completely, then reopen your project, make sure all
resource editing windows are closed, and then do a complete rebuild.
if that doesn't solve it, try to find out which files al is trying to
access. that might also give you some clues as to what is going on.

kind regards,
Bruno.

Regards,
Asaf
"Willy Denoyette [MVP]" wrote:
The /clr flag is only valid for C++, so you should turn of this flag to
compile .c files. I don't get it that this project compiled with VS2003
as
this requirement didn't change.

Willy.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
| Hello Bruno,
|
| After setting the file to compile with C++ the compilation for that
file
| results in about 34 errors.
|
| Any thing else that can solve this problem please?
|
| Regards,
| Asaf
|
|
| "Bruno van Dooren" wrote:
|
| > if you right-click the file in your solution window, then under
| > configuration properties -> C/C++ ->Advanced
| > you can set the option 'Compile as' to C++.
| >
| > that will cause VC2005 to compile it as a C++ file instead of a C
file.
| >
| > kind regards,
| > Bruno.
| >
| >
| > "Asaf" <AG**@newsgroups.nospam> wrote in message
| > news:5C**********************************@microsof t.com...
| > > Hello Bruno,
| > >
| > > Now when trying to compile the solution I am receiving the error:
| > >
| > > Error 121 Command line error D8045 : cannot compile C file
| > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
| > >
| > > Is there other switch I can set on the file so it will compile with
VS.NET
| > > 2005?
| > >
| > > Regards,
| > > Asaf
| > >
| > >
| > > "Bruno van Dooren" wrote:
| > >
| > >> In your case it is perfectly safe to use a cast to get rid of the
const
| > >> qualifier.
| > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
| > >> strrchr((LPCTSTR)szName, '/'));
| > >>
| > >> the max macro returns a const char *, because that is what strrchr
| > >> returns
| > >> in this case.
| > >> since you already know that the buffer is not const (it is your
own
| > >> buffer)
| > >> it is safe to cast the const away.
| > >>
| > >> kind regards,
| > >> Bruno.
| > >>
| > >>
| > >>
| > >>
| > >>
| > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> news:85**********************************@microsof t.com...
| > >> > Hello Bruno,
| > >> >
| > >> > Thanks for your reply.
| > >> >
| > >> > For all the lines that contains "for" loop I have added the
"int"
like:
| > >> >
| > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > So only four errors remains.
| > >> >
| > >> > For the line:
| > >> >
| > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
| > >> > strrchr((LPCTSTR)szName,
| > >> > '/'));
| > >> >
| > >> > I am reciving the error:
| > >> >
| > >> > Error 16 error C2440: 'initializing' : cannot convert from
'const
char
| > >> > *'
| > >> > to
| > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >
| > >> > Same for more identical three lines.
| > >> >
| > >> >
| > >> > And for the line:
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> >
| > >> > I am receiving the error:
| > >> > Error 26 error C2440: '=' : cannot convert from 'const char *'
to
'char
| > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >
| > >> > The line is part of:
| > >> >
| > >> > char* psz;
| > >> > char szName[_MAX_DIR];
| > >> > strcpy(szName, (LPCSTR)strFileName);
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> > if(psz == NULL)
| > >> > {
| > >> > return PString("");
| > >> > }
| > >> > else
| > >> > {
| > >> > *psz = 0;
| > >> > return PString(szName);
| > >> > }
| > >> >
| > >> > I am a C# developer not a C++ so will be much appreciated if you
can
| > >> > help
| > >> > me
| > >> > solve this problem.
| > >> >
| > >> > Regards,
| > >> > Asaf
| > >> >
| > >> >
| > >> > "Bruno van Dooren" wrote:
| > >> >
| > >> >> VC2005 will only convert the solution and project files.
| > >> >> if the code contains something that was valid in VC2003 but not
| > >> >> VC2005,
| > >> >> (or
| > >> >> default build settings that were changed), you will have to
resolve
| > >> >> that
| > >> >> yourself.
| > >> >>
| > >> >> for example, in a small test project that i made, i used
'array'
as a
| > >> >> variable name. in VC2003 this compiles fine, in VC2005 this is
a
| > >> >> reserved
| > >> >> keyword, leading to lots of compilation errors.
| > >> >>
| > >> >> it seems there are some implicit casts from const char * to
char *
in
| > >> >> your
| > >> >> code. check them out and do an explicit cast if you determine
it
is
| > >> >> safe.
| > >> >>
| > >> >> for the 'i' undeclared identifier you'd have to show us some
code.
| > >> >>
| > >> >> kind regards,
| > >> >> Bruno.
| > >> >>
| > >> >>
| > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> >> news:34**********************************@microsof t.com...
| > >> >> > Hi,
| > >> >> >
| > >> >> > I have received a source code project written in C++ VS.NET
2003
on
| > >> >> > .NET
| > >> >> > 1.1
| > >> >> > that compiles without a problem.
| > >> >> >
| > >> >> > I have opened this source code in VS.NET 2005 and the Log
wizard
| > >> >> > says
| > >> >> > that
| > >> >> > Errors 0 and Warnings 0.
| > >> >> >
| > >> >> > When trying to recompile the project I have received these
errors:
| > >> >> >
| > >> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\Span\TSpanning.cpp 383
| > >> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 7 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 10 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 14 error C2440: '=' : cannot convert from 'const char
*'
to
| > >> >> > 'char
| > >> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\TFile.h 154
| > >> >> > Error 26 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
| > >> >> >
| > >> >> >
| > >> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible
with
| > >> >> > VS.NET
| > >> >> > 2003 projects for upgrading?
| > >> >> >
| > >> >> > 2. I have no much knowledge with C++ as I am a C# developer
so
can
| > >> >> > any
| > >> >> > one
| > >> >> > please help me how to compile this source code with VS.NET
2005?
| > >> >> >
| > >> >> > Thanks in advanced,
| > >> >> > Asaf
| > >> >> >
| > >> >>
| > >> >>
| > >> >>
| > >>
| > >>
| > >>
| >
| >
| >

Jan 15 '06 #13
Hi,

It is compile ok but with warning:

general warning 810100b3: .\Release\MyProject.dll is a strong-name signed
assembly and embedding a manifest invalidates the signature. You will need to
re-sign this file to make it a valid assembly. File: mt.exe

In the solution explorer there is a key.snk

When trying to run my application in other machine it does not work because
of an error with the key.

Is there a way to compile it without this key or other way to compile?

Regards,
Asaf
"Bruno van Dooren" wrote:
Hello,
1. When trying to compile for release I have got the error:

Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line options
are incompatible
So I switched it to: Multi-threaded DLL (/MD) for the C\C++ -> Code
Generation -> Runtime Library.

Is that ok?


from MSDN:
a.. The following compiler options are not supported with /clr:

a.. /EHsc and /EHs (/clr implies /EHa (see /EH (Exception Handling Model))

b.. /fp:strict and /fp:except (see /fp (Specify Floating-Point
Behavior).)/Zd

c.. /Gm

d.. /MT

e.. /RTC

f.. /ZI

/MD is not in the list, so that is fine.


2. After compile I am receiving the error:

Error 546 error AL1019: Metadata failure while creating assembly -- The
process cannot access the file because it is being used by another
process.
ALINK

But the Assembly is working ok, so do I need to worry about this error?

you don't have a resource file open for editing, or something like that?
try to close VS2005 completely, then reopen your project, make sure all
resource editing windows are closed, and then do a complete rebuild.
if that doesn't solve it, try to find out which files al is trying to
access. that might also give you some clues as to what is going on.

kind regards,
Bruno.

Regards,
Asaf
"Willy Denoyette [MVP]" wrote:
The /clr flag is only valid for C++, so you should turn of this flag to
compile .c files. I don't get it that this project compiled with VS2003
as
this requirement didn't change.

Willy.

"Asaf" <AG**@newsgroups.nospam> wrote in message
news:D9**********************************@microsof t.com...
| Hello Bruno,
|
| After setting the file to compile with C++ the compilation for that
file
| results in about 34 errors.
|
| Any thing else that can solve this problem please?
|
| Regards,
| Asaf
|
|
| "Bruno van Dooren" wrote:
|
| > if you right-click the file in your solution window, then under
| > configuration properties -> C/C++ ->Advanced
| > you can set the option 'Compile as' to C++.
| >
| > that will cause VC2005 to compile it as a C++ file instead of a C
file.
| >
| > kind regards,
| > Bruno.
| >
| >
| > "Asaf" <AG**@newsgroups.nospam> wrote in message
| > news:5C**********************************@microsof t.com...
| > > Hello Bruno,
| > >
| > > Now when trying to compile the solution I am receiving the error:
| > >
| > > Error 121 Command line error D8045 : cannot compile C file
| > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
| > >
| > > Is there other switch I can set on the file so it will compile with
VS.NET
| > > 2005?
| > >
| > > Regards,
| > > Asaf
| > >
| > >
| > > "Bruno van Dooren" wrote:
| > >
| > >> In your case it is perfectly safe to use a cast to get rid of the
const
| > >> qualifier.
| > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
| > >> strrchr((LPCTSTR)szName, '/'));
| > >>
| > >> the max macro returns a const char *, because that is what strrchr
| > >> returns
| > >> in this case.
| > >> since you already know that the buffer is not const (it is your
own
| > >> buffer)
| > >> it is safe to cast the const away.
| > >>
| > >> kind regards,
| > >> Bruno.
| > >>
| > >>
| > >>
| > >>
| > >>
| > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> news:85**********************************@microsof t.com...
| > >> > Hello Bruno,
| > >> >
| > >> > Thanks for your reply.
| > >> >
| > >> > For all the lines that contains "for" loop I have added the
"int"
like:
| > >> >
| > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
| > >> >
| > >> > So only four errors remains.
| > >> >
| > >> > For the line:
| > >> >
| > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
| > >> > strrchr((LPCTSTR)szName,
| > >> > '/'));
| > >> >
| > >> > I am reciving the error:
| > >> >
| > >> > Error 16 error C2440: 'initializing' : cannot convert from
'const
char
| > >> > *'
| > >> > to
| > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >
| > >> > Same for more identical three lines.
| > >> >
| > >> >
| > >> > And for the line:
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> >
| > >> > I am receiving the error:
| > >> > Error 26 error C2440: '=' : cannot convert from 'const char *'
to
'char
| > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >
| > >> > The line is part of:
| > >> >
| > >> > char* psz;
| > >> > char szName[_MAX_DIR];
| > >> > strcpy(szName, (LPCSTR)strFileName);
| > >> > psz = max(strrchr((LPCSTR)szName, '\\'), strrchr((LPCSTR)szName,
'/'));
| > >> > if(psz == NULL)
| > >> > {
| > >> > return PString("");
| > >> > }
| > >> > else
| > >> > {
| > >> > *psz = 0;
| > >> > return PString(szName);
| > >> > }
| > >> >
| > >> > I am a C# developer not a C++ so will be much appreciated if you
can
| > >> > help
| > >> > me
| > >> > solve this problem.
| > >> >
| > >> > Regards,
| > >> > Asaf
| > >> >
| > >> >
| > >> > "Bruno van Dooren" wrote:
| > >> >
| > >> >> VC2005 will only convert the solution and project files.
| > >> >> if the code contains something that was valid in VC2003 but not
| > >> >> VC2005,
| > >> >> (or
| > >> >> default build settings that were changed), you will have to
resolve
| > >> >> that
| > >> >> yourself.
| > >> >>
| > >> >> for example, in a small test project that i made, i used
'array'
as a
| > >> >> variable name. in VC2003 this compiles fine, in VC2005 this is
a
| > >> >> reserved
| > >> >> keyword, leading to lots of compilation errors.
| > >> >>
| > >> >> it seems there are some implicit casts from const char * to
char *
in
| > >> >> your
| > >> >> code. check them out and do an explicit cast if you determine
it
is
| > >> >> safe.
| > >> >>
| > >> >> for the 'i' undeclared identifier you'd have to show us some
code.
| > >> >>
| > >> >> kind regards,
| > >> >> Bruno.
| > >> >>
| > >> >>
| > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
| > >> >> news:34**********************************@microsof t.com...
| > >> >> > Hi,
| > >> >> >
| > >> >> > I have received a source code project written in C++ VS.NET
2003
on
| > >> >> > .NET
| > >> >> > 1.1
| > >> >> > that compiles without a problem.
| > >> >> >
| > >> >> > I have opened this source code in VS.NET 2005 and the Log
wizard
| > >> >> > says
| > >> >> > that
| > >> >> > Errors 0 and Warnings 0.
| > >> >> >
| > >> >> > When trying to recompile the project I have received these
errors:
| > >> >> >
| > >> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\Span\TSpanning.cpp 383
| > >> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 7 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip for
| > >> >> > .net\kernel\TFile.h 154
| > >> >> > Error 10 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
| > >> >> > Error 14 error C2440: '=' : cannot convert from 'const char
*'
to
| > >> >> > 'char
| > >> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
| > >> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip for
| > >> >> > .NET\kernel\TFile.h 154
| > >> >> > Error 26 error C2440: 'initializing' : cannot convert from
'const
| > >> >> > char
| > >> >> > *'
| > >> >> > to
| > >> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
| > >> >> >
| > >> >> >
| > >> >> > 1. Isn't it that VS.NET 2005 supposed to be fully compatible
with
| > >> >> > VS.NET
| > >> >> > 2003 projects for upgrading?
| > >> >> >
| > >> >> > 2. I have no much knowledge with C++ as I am a C# developer
so
can

Jan 15 '06 #14
you can use sn.exe to re-sign the assembly. check out Sn.exe in MSDN.

also, if you run your app on computers that do not have VC2005 installed,
you have to distribute the msvc80 runtime dlls with your application.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:B8**********************************@microsof t.com...
Hi,

It is compile ok but with warning:

general warning 810100b3: .\Release\MyProject.dll is a strong-name signed
assembly and embedding a manifest invalidates the signature. You will need
to
re-sign this file to make it a valid assembly. File: mt.exe

In the solution explorer there is a key.snk

When trying to run my application in other machine it does not work
because
of an error with the key.

Is there a way to compile it without this key or other way to compile?

Regards,
Asaf
"Bruno van Dooren" wrote:
Hello,
> 1. When trying to compile for release I have got the error:
>
> Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line
> options
> are incompatible
> So I switched it to: Multi-threaded DLL (/MD) for the C\C++ -> Code
> Generation -> Runtime Library.
>
> Is that ok?


from MSDN:
a.. The following compiler options are not supported with /clr:

a.. /EHsc and /EHs (/clr implies /EHa (see /EH (Exception Handling
Model))

b.. /fp:strict and /fp:except (see /fp (Specify Floating-Point
Behavior).)/Zd

c.. /Gm

d.. /MT

e.. /RTC

f.. /ZI

/MD is not in the list, so that is fine.

>
> 2. After compile I am receiving the error:
>
> Error 546 error AL1019: Metadata failure while creating assembly -- The
> process cannot access the file because it is being used by another
> process.
> ALINK
>
> But the Assembly is working ok, so do I need to worry about this error?

you don't have a resource file open for editing, or something like that?
try to close VS2005 completely, then reopen your project, make sure all
resource editing windows are closed, and then do a complete rebuild.
if that doesn't solve it, try to find out which files al is trying to
access. that might also give you some clues as to what is going on.

kind regards,
Bruno.
>
> Regards,
> Asaf
>
>
> "Willy Denoyette [MVP]" wrote:
>
>> The /clr flag is only valid for C++, so you should turn of this flag
>> to
>> compile .c files. I don't get it that this project compiled with
>> VS2003
>> as
>> this requirement didn't change.
>>
>> Willy.
>>
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:D9**********************************@microsof t.com...
>> | Hello Bruno,
>> |
>> | After setting the file to compile with C++ the compilation for that
>> file
>> | results in about 34 errors.
>> |
>> | Any thing else that can solve this problem please?
>> |
>> | Regards,
>> | Asaf
>> |
>> |
>> | "Bruno van Dooren" wrote:
>> |
>> | > if you right-click the file in your solution window, then under
>> | > configuration properties -> C/C++ ->Advanced
>> | > you can set the option 'Compile as' to C++.
>> | >
>> | > that will cause VC2005 to compile it as a C++ file instead of a C
>> file.
>> | >
>> | > kind regards,
>> | > Bruno.
>> | >
>> | >
>> | > "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > news:5C**********************************@microsof t.com...
>> | > > Hello Bruno,
>> | > >
>> | > > Now when trying to compile the solution I am receiving the
>> error:
>> | > >
>> | > > Error 121 Command line error D8045 : cannot compile C file
>> | > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
>> | > >
>> | > > Is there other switch I can set on the file so it will compile
>> with
>> VS.NET
>> | > > 2005?
>> | > >
>> | > > Regards,
>> | > > Asaf
>> | > >
>> | > >
>> | > > "Bruno van Dooren" wrote:
>> | > >
>> | > >> In your case it is perfectly safe to use a cast to get rid of
>> the
>> const
>> | > >> qualifier.
>> | > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
>> | > >> strrchr((LPCTSTR)szName, '/'));
>> | > >>
>> | > >> the max macro returns a const char *, because that is what
>> strrchr
>> | > >> returns
>> | > >> in this case.
>> | > >> since you already know that the buffer is not const (it is your
>> own
>> | > >> buffer)
>> | > >> it is safe to cast the const away.
>> | > >>
>> | > >> kind regards,
>> | > >> Bruno.
>> | > >>
>> | > >>
>> | > >>
>> | > >>
>> | > >>
>> | > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > >> news:85**********************************@microsof t.com...
>> | > >> > Hello Bruno,
>> | > >> >
>> | > >> > Thanks for your reply.
>> | > >> >
>> | > >> > For all the lines that contains "for" loop I have added the
>> "int"
>> like:
>> | > >> >
>> | > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
>> | > >> >
>> | > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
>> | > >> >
>> | > >> > So only four errors remains.
>> | > >> >
>> | > >> > For the line:
>> | > >> >
>> | > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
>> | > >> > strrchr((LPCTSTR)szName,
>> | > >> > '/'));
>> | > >> >
>> | > >> > I am reciving the error:
>> | > >> >
>> | > >> > Error 16 error C2440: 'initializing' : cannot convert from
>> 'const
>> char
>> | > >> > *'
>> | > >> > to
>> | > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> | > >> >
>> | > >> > Same for more identical three lines.
>> | > >> >
>> | > >> >
>> | > >> > And for the line:
>> | > >> > psz = max(strrchr((LPCSTR)szName, '\\'),
>> strrchr((LPCSTR)szName,
>> '/'));
>> | > >> >
>> | > >> > I am receiving the error:
>> | > >> > Error 26 error C2440: '=' : cannot convert from 'const char
>> *'
>> to
>> 'char
>> | > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> | > >> >
>> | > >> > The line is part of:
>> | > >> >
>> | > >> > char* psz;
>> | > >> > char szName[_MAX_DIR];
>> | > >> > strcpy(szName, (LPCSTR)strFileName);
>> | > >> > psz = max(strrchr((LPCSTR)szName, '\\'),
>> strrchr((LPCSTR)szName,
>> '/'));
>> | > >> > if(psz == NULL)
>> | > >> > {
>> | > >> > return PString("");
>> | > >> > }
>> | > >> > else
>> | > >> > {
>> | > >> > *psz = 0;
>> | > >> > return PString(szName);
>> | > >> > }
>> | > >> >
>> | > >> > I am a C# developer not a C++ so will be much appreciated if
>> you
>> can
>> | > >> > help
>> | > >> > me
>> | > >> > solve this problem.
>> | > >> >
>> | > >> > Regards,
>> | > >> > Asaf
>> | > >> >
>> | > >> >
>> | > >> > "Bruno van Dooren" wrote:
>> | > >> >
>> | > >> >> VC2005 will only convert the solution and project files.
>> | > >> >> if the code contains something that was valid in VC2003 but
>> not
>> | > >> >> VC2005,
>> | > >> >> (or
>> | > >> >> default build settings that were changed), you will have to
>> resolve
>> | > >> >> that
>> | > >> >> yourself.
>> | > >> >>
>> | > >> >> for example, in a small test project that i made, i used
>> 'array'
>> as a
>> | > >> >> variable name. in VC2003 this compiles fine, in VC2005 this
>> is
>> a
>> | > >> >> reserved
>> | > >> >> keyword, leading to lots of compilation errors.
>> | > >> >>
>> | > >> >> it seems there are some implicit casts from const char * to
>> char *
>> in
>> | > >> >> your
>> | > >> >> code. check them out and do an explicit cast if you
>> determine
>> it
>> is
>> | > >> >> safe.
>> | > >> >>
>> | > >> >> for the 'i' undeclared identifier you'd have to show us some
>> code.
>> | > >> >>
>> | > >> >> kind regards,
>> | > >> >> Bruno.
>> | > >> >>
>> | > >> >>
>> | > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > >> >> news:34**********************************@microsof t.com...
>> | > >> >> > Hi,
>> | > >> >> >
>> | > >> >> > I have received a source code project written in C++
>> VS.NET
>> 2003
>> on
>> | > >> >> > .NET
>> | > >> >> > 1.1
>> | > >> >> > that compiles without a problem.
>> | > >> >> >
>> | > >> >> > I have opened this source code in VS.NET 2005 and the Log
>> wizard
>> | > >> >> > says
>> | > >> >> > that
>> | > >> >> > Errors 0 and Warnings 0.
>> | > >> >> >
>> | > >> >> > When trying to recompile the project I have received these
>> errors:
>> | > >> >> >
>> | > >> >> > Error 5 error C2065: 'i' : undeclared identifier c:\Zip
>> for
>> | > >> >> > .NET\kernel\Span\TSpanning.cpp 383
>> | > >> >> > Error 6 error C2065: 'i' : undeclared identifier c:\zip
>> for
>> | > >> >> > .net\kernel\TFile.h 154
>> | > >> >> > Error 7 error C2440: 'initializing' : cannot convert from
>> 'const
>> | > >> >> > char
>> | > >> >> > *'
>> | > >> >> > to
>> | > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> | > >> >> > Error 9 error C2065: 'i' : undeclared identifier c:\zip
>> for
>> | > >> >> > .net\kernel\TFile.h 154
>> | > >> >> > Error 10 error C2440: 'initializing' : cannot convert from
>> 'const
>> | > >> >> > char
>> | > >> >> > *'
>> | > >> >> > to
>> | > >> >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> | > >> >> > Error 14 error C2440: '=' : cannot convert from 'const
>> char
>> *'
>> to
>> | > >> >> > 'char
>> | > >> >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> | > >> >> > Error 25 error C2065: 'i' : undeclared identifier c:\Zip
>> for
>> | > >> >> > .NET\kernel\TFile.h 154
>> | > >> >> > Error 26 error C2440: 'initializing' : cannot convert from
>> 'const
>> | > >> >> > char
>> | > >> >> > *'
>> | > >> >> > to
>> | > >> >> > 'char *' c:\Zip for .NET\kernel\TFile.h 365
>> | > >> >> >
>> | > >> >> >
>> | > >> >> > 1. Isn't it that VS.NET 2005 supposed to be fully
>> compatible
>> with
>> | > >> >> > VS.NET
>> | > >> >> > 2003 projects for upgrading?
>> | > >> >> >
>> | > >> >> > 2. I have no much knowledge with C++ as I am a C#
>> developer
>> so
>> can

Jan 15 '06 #15
Hello Bruno,

Thanks to you I am able to compile the assembly and it is working on other
machines without a problem.

Many thanks for your time & support :)

Regards,
Asaf
"Bruno van Dooren" wrote:
you can use sn.exe to re-sign the assembly. check out Sn.exe in MSDN.

also, if you run your app on computers that do not have VC2005 installed,
you have to distribute the msvc80 runtime dlls with your application.

kind regards,
Bruno.
"Asaf" <AG**@newsgroups.nospam> wrote in message
news:B8**********************************@microsof t.com...
Hi,

It is compile ok but with warning:

general warning 810100b3: .\Release\MyProject.dll is a strong-name signed
assembly and embedding a manifest invalidates the signature. You will need
to
re-sign this file to make it a valid assembly. File: mt.exe

In the solution explorer there is a key.snk

When trying to run my application in other machine it does not work
because
of an error with the key.

Is there a way to compile it without this key or other way to compile?

Regards,
Asaf
"Bruno van Dooren" wrote:
Hello,

> 1. When trying to compile for release I have got the error:
>
> Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line
> options
> are incompatible
> So I switched it to: Multi-threaded DLL (/MD) for the C\C++ -> Code
> Generation -> Runtime Library.
>
> Is that ok?

from MSDN:
a.. The following compiler options are not supported with /clr:

a.. /EHsc and /EHs (/clr implies /EHa (see /EH (Exception Handling
Model))

b.. /fp:strict and /fp:except (see /fp (Specify Floating-Point
Behavior).)/Zd

c.. /Gm

d.. /MT

e.. /RTC

f.. /ZI

/MD is not in the list, so that is fine.
>
> 2. After compile I am receiving the error:
>
> Error 546 error AL1019: Metadata failure while creating assembly -- The
> process cannot access the file because it is being used by another
> process.
> ALINK
>
> But the Assembly is working ok, so do I need to worry about this error?
you don't have a resource file open for editing, or something like that?
try to close VS2005 completely, then reopen your project, make sure all
resource editing windows are closed, and then do a complete rebuild.
if that doesn't solve it, try to find out which files al is trying to
access. that might also give you some clues as to what is going on.

kind regards,
Bruno.

>
> Regards,
> Asaf
>
>
> "Willy Denoyette [MVP]" wrote:
>
>> The /clr flag is only valid for C++, so you should turn of this flag
>> to
>> compile .c files. I don't get it that this project compiled with
>> VS2003
>> as
>> this requirement didn't change.
>>
>> Willy.
>>
>>
>>
>> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> news:D9**********************************@microsof t.com...
>> | Hello Bruno,
>> |
>> | After setting the file to compile with C++ the compilation for that
>> file
>> | results in about 34 errors.
>> |
>> | Any thing else that can solve this problem please?
>> |
>> | Regards,
>> | Asaf
>> |
>> |
>> | "Bruno van Dooren" wrote:
>> |
>> | > if you right-click the file in your solution window, then under
>> | > configuration properties -> C/C++ ->Advanced
>> | > you can set the option 'Compile as' to C++.
>> | >
>> | > that will cause VC2005 to compile it as a C++ file instead of a C
>> file.
>> | >
>> | > kind regards,
>> | > Bruno.
>> | >
>> | >
>> | > "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > news:5C**********************************@microsof t.com...
>> | > > Hello Bruno,
>> | > >
>> | > > Now when trying to compile the solution I am receiving the
>> error:
>> | > >
>> | > > Error 121 Command line error D8045 : cannot compile C file
>> | > > '.\kernel\Zip\win32\win32zip.c' with the /clr option cl
>> | > >
>> | > > Is there other switch I can set on the file so it will compile
>> with
>> VS.NET
>> | > > 2005?
>> | > >
>> | > > Regards,
>> | > > Asaf
>> | > >
>> | > >
>> | > > "Bruno van Dooren" wrote:
>> | > >
>> | > >> In your case it is perfectly safe to use a cast to get rid of
>> the
>> const
>> | > >> qualifier.
>> | > >> char* psz = (char *) max(strrchr((LPCTSTR)szName, '\\'),
>> | > >> strrchr((LPCTSTR)szName, '/'));
>> | > >>
>> | > >> the max macro returns a const char *, because that is what
>> strrchr
>> | > >> returns
>> | > >> in this case.
>> | > >> since you already know that the buffer is not const (it is your
>> own
>> | > >> buffer)
>> | > >> it is safe to cast the const away.
>> | > >>
>> | > >> kind regards,
>> | > >> Bruno.
>> | > >>
>> | > >>
>> | > >>
>> | > >>
>> | > >>
>> | > >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > >> news:85**********************************@microsof t.com...
>> | > >> > Hello Bruno,
>> | > >> >
>> | > >> > Thanks for your reply.
>> | > >> >
>> | > >> > For all the lines that contains "for" loop I have added the
>> "int"
>> like:
>> | > >> >
>> | > >> > for ( i = 0; i < EOC.TotalEntries; i++ )
>> | > >> >
>> | > >> > for (int i = 0; i < EOC.TotalEntries; i++ )
>> | > >> >
>> | > >> > So only four errors remains.
>> | > >> >
>> | > >> > For the line:
>> | > >> >
>> | > >> > char* psz = max(strrchr((LPCTSTR)szName, '\\'),
>> | > >> > strrchr((LPCTSTR)szName,
>> | > >> > '/'));
>> | > >> >
>> | > >> > I am reciving the error:
>> | > >> >
>> | > >> > Error 16 error C2440: 'initializing' : cannot convert from
>> 'const
>> char
>> | > >> > *'
>> | > >> > to
>> | > >> > 'char *' c:\zip for .net\kernel\TFile.h 365
>> | > >> >
>> | > >> > Same for more identical three lines.
>> | > >> >
>> | > >> >
>> | > >> > And for the line:
>> | > >> > psz = max(strrchr((LPCSTR)szName, '\\'),
>> strrchr((LPCSTR)szName,
>> '/'));
>> | > >> >
>> | > >> > I am receiving the error:
>> | > >> > Error 26 error C2440: '=' : cannot convert from 'const char
>> *'
>> to
>> 'char
>> | > >> > *' c:\Zip for .NET\kernel\TStringUtils.cpp 195
>> | > >> >
>> | > >> > The line is part of:
>> | > >> >
>> | > >> > char* psz;
>> | > >> > char szName[_MAX_DIR];
>> | > >> > strcpy(szName, (LPCSTR)strFileName);
>> | > >> > psz = max(strrchr((LPCSTR)szName, '\\'),
>> strrchr((LPCSTR)szName,
>> '/'));
>> | > >> > if(psz == NULL)
>> | > >> > {
>> | > >> > return PString("");
>> | > >> > }
>> | > >> > else
>> | > >> > {
>> | > >> > *psz = 0;
>> | > >> > return PString(szName);
>> | > >> > }
>> | > >> >
>> | > >> > I am a C# developer not a C++ so will be much appreciated if
>> you
>> can
>> | > >> > help
>> | > >> > me
>> | > >> > solve this problem.
>> | > >> >
>> | > >> > Regards,
>> | > >> > Asaf
>> | > >> >
>> | > >> >
>> | > >> > "Bruno van Dooren" wrote:
>> | > >> >
>> | > >> >> VC2005 will only convert the solution and project files.
>> | > >> >> if the code contains something that was valid in VC2003 but
>> not
>> | > >> >> VC2005,
>> | > >> >> (or
>> | > >> >> default build settings that were changed), you will have to
>> resolve
>> | > >> >> that
>> | > >> >> yourself.
>> | > >> >>
>> | > >> >> for example, in a small test project that i made, i used
>> 'array'
>> as a
>> | > >> >> variable name. in VC2003 this compiles fine, in VC2005 this
>> is
>> a
>> | > >> >> reserved
>> | > >> >> keyword, leading to lots of compilation errors.
>> | > >> >>
>> | > >> >> it seems there are some implicit casts from const char * to
>> char *
>> in
>> | > >> >> your
>> | > >> >> code. check them out and do an explicit cast if you
>> determine
>> it
>> is
>> | > >> >> safe.
>> | > >> >>
>> | > >> >> for the 'i' undeclared identifier you'd have to show us some
>> code.
>> | > >> >>
>> | > >> >> kind regards,
>> | > >> >> Bruno.
>> | > >> >>
>> | > >> >>
>> | > >> >> "Asaf" <AG**@newsgroups.nospam> wrote in message
>> | > >> >> news:34**********************************@microsof t.com...
>> | > >> >> > Hi,
>> | > >> >> >
>> | > >> >> > I have received a source code project written in C++
>> VS.NET
>> 2003
>> on
>> | > >> >> > .NET
>> | > >> >> > 1.1
>> | > >> >> > that compiles without a problem.
>> | > >> >> >

Jan 15 '06 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: S. Crespel | last post by:
Hi, Where can I find informations about consequences of upgrading from PHP 4.2.3 to 4.3 regarding existing PHP applications ? I have lots of existing PHP (4.2.3) scripts, will everything still...
1
by: bartolomesintes | last post by:
Hi, I have installed PHPHome 2.3.4 in Windows XP. This WAMP package installs Apache 2.0.50 , PHP 5.0.0 and it works fine. The SQLite installed version is 2.8.14 and I would like to upgrade to a...
6
by: Michael Foord | last post by:
http://www.voidspace.org.uk/python/articles/upgrading_python.html I've been looking at whether to upgrade immediately from Python 2.3 to Python 2.4 or postpone it. This is my first `major version...
0
by: Jonathan Hilgeman | last post by:
Currently, I'm running 3.23.51 on Red Hat 7.1, and I'm contemplating upgrading to MySQL 4.0, but I'm not sure what to expect. I don't know if MySQL 4.0 is fully backwards-compatible with 3.23.x...
2
by: wellington fan | last post by:
Dear newsies, My ISP has offered to upgrade my servers from 3.23 to 4.1. I'm excited by the potential gains in performance, and the ability to write subqueries, but am wary of any forward...
5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
13
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine,...
11
by: Aidan Tobin | last post by:
Hi, I have to upgrade a number of databases from Access 2.0, Access 97 and Access 2000 to work in Office 2003. These databases contain a number of Forms coded with VBA as well as a number of...
1
by: progTiger | last post by:
The upgrade wizard just hangs on step 5 of 5 when it reaches "Upgrading DataEnvironment..." I have let it sit for 3 hours and it does nothing. .Net Studio is not frozen, but the process does...
6
by: JimLad | last post by:
Hi, We have a major ASP app that we are in the process of upgrading to ASP.NET 1.1 and probably on to ASP.NET 2.0 in the middle of next year. (We will also be upgrading to SQL2K5 at the same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.