Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Casting char * to string? 1

Status
Not open for further replies.

diaglez

Technical User
Jun 20, 2006
18
ES
Hi, I'm having casting problems with this code while trying to use argv[1] and argv[2]

this is the code:

-------inicio--------
int main(int argc, char *argv[])
{
system("rundll32 printui.dll,PrintUIEntry /in /c\\\\" + argv[1] + "/n\\\\" + argv[2]);
}
---------fin---------

any idea?
Thanks




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top