Article View: borland.public.cppbuilder.nativeapi
Article #3423Re: Create a shared network folder?
From: nivekski
Date: Fri, 23 Jun 2006 21:02
Date: Fri, 23 Jun 2006 21:02
34 lines
1894 bytes
1894 bytes
Thanks Remy
--
Nevikski
www.kevsbox.com
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:449c2274$1@newsgroups.borland.com...
>
> "nivekski" <nevikski@tisconi.com> wrote in message
> news:449bf567@newsgroups.borland.com...
>
>> wchar_t shareName = "DTTServer"
>
> You are trying to assign a char* string to a single wchar_t character.
> That
> will never work. You need to declare it as a char* instead, ie:
>
> char *shareName = "DTTServer"
>
> Or, because you are using the TEXT macro for the rest of the code, as this
> instead:
>
> LPTSTR shareName = TEXT("DTTServer")
>
> If you use this second one, then get rid of the TEXT macro in the other
> places that you are using that string:
>
> p.shi2_netname = shareName;
> p.shi2_remark = shareName;
>
>
> Gambit
>
>
Technical Details
Message-ID:
<449c56fc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<449b2212$1@newsgroups.borland.com> <449bc1af$5@newsgroups.borland.com> <449bcb65$1@newsgroups.borland.com> <449bf567@newsgroups.borland.com> <449c2274$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,64233069cb76a215 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "nivekski" <nevikski@tisconi.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <449b2212$1@newsgroups.borland.com> <449bc1af$5@newsgroups.borland.com> <449bcb65$1@newsgroups.borland.com> <449bf567@newsgroups.borland.com> <449c2274$1@newsgroups.borland.com> Subject: Re: Create a shared network folder? Date: Fri, 23 Jun 2006 22:02:59 +0100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 212.159.46.118 Message-ID: <449c56fc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1151096572 212.159.46.118 (23 Jun 2006 14:02:52 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail