Article View: borland.public.cppbuilder.nativeapi
Article #396Re: Delete File
From: Bob Gonder
Date: Mon, 21 Apr 2008 21:34
Date: Mon, 21 Apr 2008 21:34
30 lines
1825 bytes
1825 bytes
bar wrote: >//Unit1.cpp file > >#define NO_WIN32_LEAN_AND_MEAN >#include <shlobj.h> > >#include <vcl.h> >#pragma hdrstop > >#include "Unit1.h" >... >... > > if(SUCCEEDED(SHGetSpecialFolderLocation(0,CSIDL_COMMON_APPDATA, &List))) >[C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set' >[C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set' Winsock has nothing to do with SHGet... and is a seperate problem. Somewhere in your deleted #includes, you have winsock.h being included before winsock2.h Include winsock2.h first, probably before vcl.h. Or make sure _WIN32_WINNT >= 0x0400 (See in windows.h where it includes winsock2.h, and the conditions that cause it to prefer version 2 over winsock.h)
Technical Details
Message-ID:
<u00q041qpn007qh9po1cp1ac8tkjehsud4@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<480642de@newsgroups.borland.com> <4806635f$1@newsgroups.borland.com> <48085050@newsgroups.borland.com> <480859c5$1@newsgroups.borland.com> <480ca220@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,afa23fc7a34d3bb6 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Delete File Date: Mon, 21 Apr 2008 14:34:16 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <u00q041qpn007qh9po1cp1ac8tkjehsud4@4ax.com> References: <480642de@newsgroups.borland.com> <4806635f$1@newsgroups.borland.com> <48085050@newsgroups.borland.com> <480859c5$1@newsgroups.borland.com> <480ca220@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.64 X-Trace: newsgroups.borland.com 1208813653 67.77.145.64 (21 Apr 2008 14:34:13 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mail