View Single Post
  #1 (permalink)  
Old 06-05-2008, 03:42 AM
cpplover cpplover is offline
Newbie
 
Join Date: May 2008
Posts: 8
Rep Power: 0
cpplover is on a distinguished road
Default A problem with win32 Strings

Hello

I have a win32 Application and a problem with it:

it's my code :
Code:
hOpen = InternetOpen("Test Aplication", 
                      INTERNET_OPEN_TYPE_PRECONFIG,
                      NULL, NULL, 0);
But when I use this code my program has below error :

error C2664: 'InternetOpenW' : cannot convert parameter 1 from 'const char [16]' to 'LPCWSTR'

can someone help me to solve this problem ?

thanks .

Last edited by WingedPanther; 06-05-2008 at 04:52 PM. Reason: add code tags
Reply With Quote

Sponsored Links