473,769 Members | 5,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is the STL.NET?

I'm using Visual Studio 2005 Professional, and I didn't find the
STL.NET. This code:

#include "stdafx.h"
#include <vector>

using namespace System;
using namespace std;

int main(array<Syst em::String ^> ^args)
{
vector<String^> v;
// don't work either
//vector<String^> ^ v = gcnew vector<String^> ();

v.push_back("sd fsdfsd");

return 0;
}

just gives me this:

------ Build started: Project: cppcli1, Configuration: Debug Win32
------
Compiling...
cppcli1.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\include\xu tility(2752) :
error C4439: 'std::fill' : function definition with a managed type in
the signature must have a __clrcall calling convention
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1187) : see reference to function template
instantiation 'void std::fill<Syste m::String^*,_Ty >(_FwdIt,_FwdIt ,const
_Ty &)' being compiled
with
[
_Ty=System::Str ing ^,
_FwdIt=System:: String ^*
]
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1117) : while compiling class template member
function 'void
std::vector<_Ty >::_Insert_n(st d::_Vector_iter ator<_Ty,_Alloc >,unsigned
int,const _Ty &)'
with
[
_Ty=System::Str ing ^,
_Alloc=std::all ocator<System:: String ^>
]
.\cppcli1.cpp(1 1) : see reference to class template
instantiation 'std::vector<_T y>' being compiled
with
[
_Ty=System::Str ing ^
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xu tility(3021) :
error C4439: 'stdext::_Unche cked_move_backw ard' : function definition
with a managed type in the signature must have a __clrcall calling
convention
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1200) : see reference to function template
instantiation '_BidIt2
stdext::_Unchec ked_move_backwa rd<System::Stri ng^*,System::St ring^*>(_BidIt1 ,_BidIt1,_BidIt 2)'
being compiled
with
[
_BidIt2=System: :String ^*,
_BidIt1=System: :String ^*
]
Build Time 0:03
Build log was saved at
"file://c:\temp\code\cp pcli1\cppcli1\D ebug\BuildLog.h tm"
cppcli1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

There's a C:\Program Files\Microsoft Visual Studio 8\VC\include\ms clr
folder, but it has only few header, like auto_gcroot.h.
I've found some __CLRCALL_OR_CD ECL macros before STL functions, and it
resolves to __clrcall if you're using /clr. But I didn't get it to work
even with just /clr (no pure or safe). Any ideas?

Rodrigo Strauss

Nov 17 '05 #1
7 1991
ro************@ gmail.com wrote:
I'm using Visual Studio 2005 Professional, and I didn't find the
STL.NET. This code:

#include "stdafx.h"
#include <vector>

using namespace System;
using namespace std;

int main(array<Syst em::String ^> ^args)
{
vector<String^> v;
// don't work either
//vector<String^> ^ v = gcnew vector<String^> ();

v.push_back("sd fsdfsd");

return 0;
}


It hasn't been released yet. It should be released as a web download some
time soon (how soon? I don't know).

When it's released, you'll have to make a few changes to your code to use it
(classes in stdcli:: namespace for one, header naming differences for
another).

-cd
Nov 17 '05 #2
Actually, you are not using STL.Net, just plain STL, which does not work with managed types.

STL.Net has been postponed to after VS2005. It is in development right now. We are working on ensuring good performance and correctness in all scenarios. You may see some information about upcoming release of STL/CLR soon on either mine or Martyn's blogs.

Thanks,
Nikola

--------------------------------------------------------------
Nikola Dudar
Visual C + Team
This posting is provided 'AS IS' with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Suggestions? Bugs? Please report them on http://lab.msdn.microsoft.com/productfeedback/

-----Original Message-----
From: ro************@ gmail.com
Posted At: Tuesday, November 15, 2005 5:24 PM
Posted To: microsoft.publi c.dotnet.langua ges.vc
Conversation: Where is the STL.NET?
Subject: Where is the STL.NET?
I'm using Visual Studio 2005 Professional, and I didn't find the
STL.NET. This code:

#include "stdafx.h"
#include <vector>

using namespace System;
using namespace std;

int main(array<Syst em::String ^> ^args)
{
vector<String^> v;
// don't work either
//vector<String^> ^ v = gcnew vector<String^> ();

v.push_back("sd fsdfsd");

return 0;
}

just gives me this:

------ Build started: Project: cppcli1, Configuration: Debug Win32
------
Compiling...
cppcli1.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\include\xu tility(2752) :
error C4439: 'std::fill' : function definition with a managed type in
the signature must have a __clrcall calling convention
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1187) : see reference to function template
instantiation 'void std::fill<Syste m::String^*,_Ty >(_FwdIt,_FwdIt ,const
_Ty &)' being compiled
with
[
_Ty=System::Str ing ^,
_FwdIt=System:: String ^*
]
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1117) : while compiling class template member
function 'void
std::vector<_Ty >::_Insert_n(st d::_Vector_iter ator<_Ty,_Alloc >,unsigned
int,const _Ty &)'
with
[
_Ty=System::Str ing ^,
_Alloc=std::all ocator<System:: String ^>
]
.\cppcli1.cpp(1 1) : see reference to class template
instantiation 'std::vector<_T y>' being compiled
with
[
_Ty=System::Str ing ^
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xu tility(3021) :
error C4439: 'stdext::_Unche cked_move_backw ard' : function definition
with a managed type in the signature must have a __clrcall calling
convention
C:\Program Files\Microsoft Visual Studio
8\VC\include\ve ctor(1200) : see reference to function template
instantiation '_BidIt2
stdext::_Unchec ked_move_backwa rd<System::Stri ng^*,System::St ring^*>(_BidIt1 ,_BidIt1,_BidIt 2)'
being compiled
with
[
_BidIt2=System: :String ^*,
_BidIt1=System: :String ^*
]
Build Time 0:03
Build log was saved at
"file://c:\temp\code\cp pcli1\cppcli1\D ebug\BuildLog.h tm"
cppcli1 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

There's a C:\Program Files\Microsoft Visual Studio 8\VC\include\ms clr
folder, but it has only few header, like auto_gcroot.h.
I've found some __CLRCALL_OR_CD ECL macros before STL functions, and it
resolves to __clrcall if you're using /clr. But I didn't get it to work
even with just /clr (no pure or safe). Any ideas?

Rodrigo Strauss
Nov 17 '05 #3
Ok, thanks for the info.

But is there any reason to the __CLRCALL_OR_CD ECLs before some STL
functions?

Rodrigo Strauss

Nov 17 '05 #4
See http://blog.voidnish.com/?p=94

--
Regards,
Nish [VC++ MVP]
<ro************ @gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Ok, thanks for the info.

But is there any reason to the __CLRCALL_OR_CD ECLs before some STL
functions?

Rodrigo Strauss

Nov 17 '05 #5
Yes, Nish got the idea. This is to ensure that STL can be used in applications compiled /clr and /clr:pure.

Nikola
-----Original Message-----
From: Nishant Sivakumar
Posted At: Wednesday, November 16, 2005 8:42 AM
Posted To: microsoft.publi c.dotnet.langua ges.vc
Conversation: Where is the STL.NET?
Subject: Re: Where is the STL.NET?
See http://blog.voidnish.com/?p=94

--
Regards,
Nish [VC++ MVP]
<ro************ @gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Ok, thanks for the info.

But is there any reason to the __CLRCALL_OR_CD ECLs before some STL
functions?

Rodrigo Strauss

Nov 17 '05 #6
Seems you have to install the team version to get alpha versions of
STL.NET

http://forums.microsoft.com/MSDN/Sho...=4409&SiteID=1

Nov 17 '05 #7
Actually, in the final release of VC++ 2005, STL.NET has been totally
removed; and as far as I know, it was left in Beta 2 as an accident (someone
forgot to remove it). So, irrespective of what edition of VS 2005 you have -
you are not going to have the STL.NET bits.

I believe it will be available as a separate download (beta) in a month or
two.

--
Regards,
Nish [VC++ MVP]
"Herby" <pr********@gma il.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Seems you have to install the team version to get alpha versions of
STL.NET

http://forums.microsoft.com/MSDN/Sho...=4409&SiteID=1

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
3643
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable sources. Usage could be something like: >>> res = where: >>> def f(x):
3
22005
by: A.V.C. | last post by:
Hello, I found members of this group very helpful for my last queries. Have one problem with CASE. I can use the column name alias in Order By Clause but unable to use it in WHERE CLAUSE. PLS TELL ME IF IT IS POSSIBLE TO USE IT IN WHERE CLAUSE AND SOME ALTERNATIVE. QUERY: SELECT
3
2286
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years. Although I'm using C++ in my current job, I'm also interested in understanding C more and deeper at the same time. In the past half year, I decide to improve myself on C, read some books on C and digest some posts on comp.lang.c and comp.lang.c++. Now, I feel I have a better insight on C than...
7
3045
by: Britney | last post by:
Original code: this.oleDbSelectCommand1.CommandText = "SELECT TOP 100 user_id, password, nick_name, sex, age, has_picture, city, state, " + "country FROM dbo.users WHERE (has_picture = ?) AND (sex = ?) ORDER BY age " this.oleDbSelectCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("has_picture", System.Data.OleDb.OleDbType.Boolean, 1, "has_picture")); this.oleDbSelectCommand1.Parameters.Add(new...
5
2404
by: comp.lang.php | last post by:
if ($willLimitByDB) $sql = preg_replace('/#(+)#/i', '$$1', $sql); This does not give me the results I want, instead of the value of $where in $sql, I literally get '$where' instead. How do I substitute #where# with $where? Thanx Phil
5
5514
by: John | last post by:
I just cannot manage to perform a SELECT query with NULL parameter... My CATEGORY table does have one row where TCATEGORYPARENTID is null (real DB null value). TCATEGORYID and TCATEGORYPARENTID are uniqueidentifier columns. My questions: - is Type="Object", below, necessary? - what shall I specify for DefaultValue in my function? I tried everything.
0
80717
NeoPa
by: NeoPa | last post by:
Background Whenever code is used there must be a way to differentiate the actual code (which should be interpreted directly) with literal strings which should be interpreted as data. Numbers don't usually have this problem but Dates can too. Debug.Print Me.ControlName refers to a control on a form. Whereas, Debug.Print "Me.ControlName" simply prints the literal text Me.ControlName Where to Use Each Quote Type (' or ") In some places...
1
2769
by: not_a_commie | last post by:
I was hoping for increased functionality with the where clause in C# 3.0. Using the new keyword 'var' would really allow us to take nice advantage of these. Specifically: 1. I want to limit it to primitives: "where T : System.Type.Primitive" or something like that. 2. I want to limit it to an unspecified generic: "where T : List<>". 3. I want to limit it to a generic with a subset of types: "where T : List<new TTwhere TT : class" or...
9
19158
by: Emin | last post by:
Dear Experts, I have a fairly simple query in which adding a where clause slows things down by at least a factor of 100. The following is the slow version of the query ------------------------- SELECT * FROM ( Select x.event_date From x FULL OUTER JOIN y ON x.event_date = y.event_date
8
3481
by: chrisdavis | last post by:
I'm trying to filter by query or put those values in a distinct query in a where clause in some sort of list that it goes through but NOT at the same time. Example: ROW1 ROW2 ROW3 ROW4 , etc. I want to go to the first row, do a WHERE statement, return the
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3964
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3564
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.