This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need help in JNI code  RSS feed

 
Joseph Bashir
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone help me to remove the error?
Here is the code I get error .

------ code ------
void CTestDownloadDlg :: OnButton1()
{
UpdateData(TRUE);

if ( m_strURL.IsEmpty() )
return;

HINTERNET hINet, hFile;
hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );

if ( !hINet )
{
AfxMessageBox("InternetOpen Failed");
return;
}

hFile = InternetOpenUrl( hINet, m_strURL, NULL, 0, 0, 0 ) ;

if ( hFile )
{
CHAR buffer[1024];
DWORD dwRead;
while ( InternetReadFile( hFile, buffer, 1023, &dwRead ) )
{
if ( dwRead == 0 )
break;
buffer[dwRead] = 0;
m_strURL += buffer;
}
InternetCloseHandle( hFile );
}

InternetCloseHandle( hINet );
UpdateData(FALSE);

}
-----------------Error-----------------
fatal error C1083: Cannot open precompiled header file: 'Debug/testDownload.pch': No such file or directory

[ June 16, 2004: Message edited by: Joseph Bashir ]
[ June 16, 2004: Message edited by: Joseph Bashir ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!