Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

"STL .NET" in VS 2005 Beta 2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ioannis Vranos - 26 Apr 2005 02:39 GMT
Is "STL .NET" included in Beta 2? If yes, under what namespace?
Rodrigo Corral [MVP] - 26 Apr 2005 12:10 GMT
STL.NET Primer
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/stl
-netprimer.asp


Signature

Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org

Ioannis Vranos - 26 Apr 2005 15:15 GMT
> STL.NET Primer
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/stl
-netprimer.asp

temp.cpp(1) : fatal error C1083: Cannot open include file: 'cli/vector': No such
 file or directory

C:\c>
Ioannis Vranos - 26 Apr 2005 15:27 GMT
> temp.cpp(1) : fatal error C1083: Cannot open include file: 'cli/vector':
> No such
>  file or directory

OK I found it. The headers are in the style:

#include <cliext/vector> and the namespace is cliext.

I think this cliext is very confusing. Couldn't it be stdcli as it was before?

Anyway, a code example that compiles with /clr:safe.

#include <cliext/vector>

int main()
{
    using namespace System;
    using namespace cliext;

    vector<String ^> somevec;

    somevec.push_back("Test");

    Console::WriteLine(somevec[0]);
}

C:\c>temp
Test

C:\c>
Ioannis Vranos - 27 Apr 2005 02:50 GMT
Another interesting case:

#include <cliext/string>

int main()
{
    using namespace System;
    using namespace cliext;

    string s= "Test";

    for(string::size_type i=0; i<s.size(); ++i)
       Console::WriteLine(s[i]);
}

C:\c>temp
T
e
s
t

C:\c>
Tamas Demjen - 27 Apr 2005 18:39 GMT
I don't get it. My Beta 2 has nothing like that. There's no cliext in my
entire hard disk, stdcli doesn't exist either, even a grep returns
nothing but 4 dll files containing the string "stdcli", and there's
nothing at all that contains the string "cliext". I doubt the public
Beta 2 has STL.NET. Where did you download it from?

Tom

>> temp.cpp(1) : fatal error C1083: Cannot open include file:
>> 'cli/vector': No such
[quoted text clipped - 27 lines]
>
> C:\c>
Jürgen Devlieghere - 02 May 2005 14:40 GMT
I have the same problem. No cli at all, actually nothing of STL.NET in beta
2 of VS 2005.

I guess it's simply not in there?

Jürgen Devlieghere
Carl Daniel [VC++ MVP] - 02 May 2005 15:45 GMT
> I have the same problem. No cli at all, actually nothing of STL.NET
> in beta 2 of VS 2005.
>
> I guess it's simply not in there?

It simply is there.

Are you using VC++ Express or Visual Studio 2005?

-cd
Tamas Demjen - 03 May 2005 02:22 GMT
Not the express. "Visual Studio 2005 Standard Beta 2 (English)" from the
MSDN site. File: en_vs_2005_std_dvd_beta2.iso, downloaded on 4/18/2005.

Tom

>>I have the same problem. No cli at all, actually nothing of STL.NET
>>in beta 2 of VS 2005.
[quoted text clipped - 6 lines]
>
> -cd

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.