HIRASE CONNECTION WK

programming collection

目次

Blog 利用状況

ニュース

書庫

日記カテゴリ

Link Collection

Visual Studio 2008で、STL/CLRを使う。

Visual Studio 2008で、STL/CLRが使えるようになったとのことで、使ってみました。
コードはこんな感じ。

#include <cliext/vector>
using namespace System;

int main(array<String ^> ^args)
{
    cliext::vector<String^>^ stlArgs;
    stlArgs = gcnew cliext::vector<String^>(args);

 

    // おぉ。イテレータだ。
    for (cliext::vector<String^>::iterator it = stlArgs->begin(); it != stlArgs->end(); ++it)
    {
        Console::WriteLine(*it);
    }
    Console::WriteLine();


    // for eachもつかえる。
    for each (String^ arg in stlArgs)
    {
        Console::WriteLine(arg);
    }
    Console::WriteLine();

    return 0;
}

参照設定に「Microsoft.VisualC.STLCLR.dll」を入れて、プロジェクトの設定で「C/C++」→「全般」の「#using参照の解決」に「C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5」を追加してビルド。

 

おぉ・・。

投稿日時 : 2008年2月12日 13:19

コメントを追加

# re: Visual Studio 2008で、STL/CLRを使う。 2017/11/28 12:04 cc

http://www.reebokoutlet.us.org
http://www.adidasnmds.com
http://www.kyrie3.us.com
http://www.fitflops-saleclearance.us.com
http://www.adidassuperstar.us.com
http://www.boostyeezy.us.com
http://www.yeezyboost350v2.org.uk
http://www.goldengoose-outlet.us.com
http://www.rosherun.us.com
http://www.adidasnmdrunner.us.com
http://www.hermes-birkin.us.com
http://www.outlettimberland.us.org
http://www.balenciagashoes.us.com
http://www.stephencurry-shoes.us.com
http://www.nikerosheone.co.uk
http://www.nikemercurial.us.com
http://www.tomford-sunglasses.us.com
http://www.adidasstansmith.us.com
http://www.nikeairmax2018.us.com
http://www.nikezoom.us.com
http://www.toryburchshoes.org.uk
http://www.michaelkors-outletsonline.us.com
http://www.toryburchshoes.us
http://www.hermes-belt.co.uk
http://www.longchamps.org.uk

# I ddo not eѵen know the waү I ended ᥙp herе, hoᴡevеr Ӏ assumed this post was once gⲟod. I don't realize wһo you're bսt certainly you аre going to a well-known blogger in cаse you аren't already. Cheers! 2019/07/04 15:35 I do not even know tһe ѡay Iended up hеre,however

I do not e?en know t?e way I ended up heгe, however I assumed
this ppst waas oncе good. I don't realize ??o you're but certainly
yyou aге go?ng to a ?ell-?nown blogger in case you aren't already.
Cheers!

# I ddo not eѵen know the waү I ended ᥙp herе, hoᴡevеr Ӏ assumed this post was once gⲟod. I don't realize wһo you're bսt certainly you аre going to a well-known blogger in cаse you аren't already. Cheers! 2019/07/04 15:35 I do not even know tһe ѡay Iended up hеre,however

I do not e?en know t?e way I ended up heгe, however I assumed
this ppst waas oncе good. I don't realize ??o you're but certainly
yyou aге go?ng to a ?ell-?nown blogger in case you aren't already.
Cheers!

# I ddo not eѵen know the waү I ended ᥙp herе, hoᴡevеr Ӏ assumed this post was once gⲟod. I don't realize wһo you're bսt certainly you аre going to a well-known blogger in cаse you аren't already. Cheers! 2019/07/04 15:36 I do not even know tһe ѡay Iended up hеre,however

I do not e?en know t?e way I ended up heгe, however I assumed
this ppst waas oncе good. I don't realize ??o you're but certainly
yyou aге go?ng to a ?ell-?nown blogger in case you aren't already.
Cheers!

# BApBtrCzbBSoEILAFLE 2021/07/03 4:47 https://www.blogger.com/profile/060647091882378654

This blog is obviously educating and also factual. I have discovered helluva useful stuff out of this blog. I ad love to go back every once in a while. Cheers!

# Illikebuisse amdyx 2021/07/04 18:03 pharmacepticacom

tadalafil contraindications https://www.pharmaceptica.com/

# re: Visual Studio 2008??STL/CLR???? 2021/08/07 3:22 define chloro

chloroquinine https://chloroquineorigin.com/# can hydroxychloroquine cause blindness

# 250 mg chloroquine 2022/12/25 20:02 MorrisReaks

https://www.hydroxychloroquinex.com/# plaquenil 200 mg cost

タイトル
名前
URL
コメント