Article View: borland.public.cppbuilder.nativeapi
Article #3422Re: Create a shared network folder?
From: Remy Lebeau (TeamB)
Date: Fri, 23 Jun 2006 17:16
Date: Fri, 23 Jun 2006 17:16
24 lines
1651 bytes
1651 bytes
"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:
<449c2274$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,64233069cb76a215 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.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> Subject: Re: Create a shared network folder? Date: Fri, 23 Jun 2006 10:16:13 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <449c2274$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1151083124 68.69.17.41 (23 Jun 2006 10:18:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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