Board index » cppbuilder » Lenguage question on porting to 64bit?

Lenguage question on porting to 64bit?


2008-06-27 01:11:17 AM
cppbuilder77
Hi
Can some help... what is the diference on:
char* pruebaretorno(char* ptr); ///definition
char* msg;
msg = (char*)pruebaretorno("omar");
and this
char* msg;
msg = pruebaretorno("omar");
What is the diference between the 2 calls,
Thanks in advance
Omar Zelaya
 
 

Re:Lenguage question on porting to 64bit?

Omar Zelaya wrote:
Quote
Hi

Can some help... what is the diference on:

char* pruebaretorno(char* ptr); ///definition

char* msg;
msg = (char*)pruebaretorno("omar");

and this

char* msg;
msg = pruebaretorno("omar");

What is the diference between the 2 calls,
The first one is using an unnecessary call.
(BTW: Why don't you write it this
char* msg = pruebaretorno("omar");
way?)
Quote
Thanks in advance

Omar Zelaya
Schobi
 

Re:Lenguage question on porting to 64bit?

Hendrik Schober wrote:
Quote
The first one is using an unnecessary call.
Damn. I meant an unnecessary _cast_. Sorry.
Schobi
 

{smallsort}