'Programming > C#' 카테고리의 다른 글
C# delegate & event 작성순서- 20150604 (0) | 2015.10.21 |
---|---|
[펌] [STAThread] (0) | 2015.09.02 |
[펌] 관리 코드와 네이티브 코드의 상호 운용성을 위한 최상의 방법 [출처] [MSDN] 관리 코드와 네이티브 코드의 상호 운용성을 위한 최상의 방법|작성자 알콜코더 (0) | 2015.05.26 |
C# delegate & event 작성순서- 20150604 (0) | 2015.10.21 |
---|---|
[펌] [STAThread] (0) | 2015.09.02 |
[펌] 관리 코드와 네이티브 코드의 상호 운용성을 위한 최상의 방법 [출처] [MSDN] 관리 코드와 네이티브 코드의 상호 운용성을 위한 최상의 방법|작성자 알콜코더 (0) | 2015.05.26 |
Visual C++의 .NET 프로그래밍
How to: Parse Strings Using the Split Method (C++/CLI)
Example
// regex_split.cpp
// compile with: /clr
using namespace System;
int main(array<System::String ^> ^args)
//가능함. int main()
{
String^ delimStr = " ,.:\t";
Console::WriteLine( "delimiter : '{0}'", delimStr );
array<Char>^ delimiter = delimStr->ToCharArray( );
array<String^>^ words;
String^ line = "one\ttwo three:four,five six seven";
Console::WriteLine( "text : '{0}'", line );
words = line->Split( delimiter );
Console::WriteLine( "Number of Words : {0}", words->Length );
for (int word=0; word<words->Length; word++)
Console::WriteLine( "{0}", words[word] );
return 0;
}
결과
delimiter : ' ,.: '
text : 'one two three:four,five six seven'
Number of Words : 7
one
two
three
four
five
six
seven
[펌] C++ DebugView로 디버그 메시지 보기 (0) | 2015.05.13 |
---|---|
C++/CLI 에서 에러 : /LNK2028 발생시 (0) | 2015.04.22 |
VS2013의 찾기 결과창에 다음이동 F4 key로 변경 (0) | 2015.04.09 |
C++/CLI Console 프로그램 코드에서 |
MessageBox 사용시 다음 에러 발생하면 해결책은? |
- 에러 : /LNK2028: unresolved token(0A00003D) "extern "C" int __stdcall MessageBoxW ..... |
- 해결책 : Edit your project
properties, find the Linker Inputs option, and add kernel32.lib user32.lib advapi32.lib which are the usual libraries needed by Win32 code. |
How to: Parse Strings Using the Split Method (C++/CLI) (0) | 2015.04.22 |
---|---|
VS2013의 찾기 결과창에 다음이동 F4 key로 변경 (0) | 2015.04.09 |
SendMessage C#-> C++ (빠른 속도 지향) (0) | 2015.04.07 |
CLR - Windows Forms Application이 VC++2013에는 없음.
참고 :
이를 해결하는 편법이 인터넷에 있음. 내 Delicious에 저장함
아래가 그 링크임
http://mcn-www.jwu.ac.jp/~yokamoto/openwww/vsg/VCpp2012FormApp/
아래가 위 링크의 내용을 pdf로 저장.
VC++2010 |
VC++2013 |
FFmpeg [펌] [libav-user] Save AVFrame to jpg file (0) | 2015.04.27 |
---|---|
C#, 크로스 스레드 작업이 잘못되었습니다. (0) | 2015.03.19 |
[펌] [강좌] 델리게이트,이벤트,어튜리뷰트 - Delegate |C# (0) | 2015.03.19 |