01. 필요한 도구OpenCVSharp : http://code.google.com/p/opencvsharp/downloads/listOpenCV Site : http://opencv.org/CMake : http://www.cmake.org/cmake/resources/software.html 02. C# 기반 콘솔 프로그램 생성References>추가 - OpenCVSharp 에서 다운 받은 파일 중 "OpenCVSharp.dll" 파일을 추가 03. Code using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenCvSharp; namespace CsharpEx2 { class Pro..
소스코드 속에 DLL 추가 #pragma comment(lib,"wininet.lib") C#에서 C++ DLL 파일 Import 하기 using UnityEngine; using System.Collections; // for DLL(필수로 들어가야 함) using System.Runtime.InteropServices; public class BluetoothConnectShap : MonoBehaviour { // DLL Import [DllImport("LibModule.dll")] private static extern void ReadPort( byte[] filename ); // DLL Import [DllImport("LibModule.dll")] private static extern ..
// int to string iNumber = int.Parse(TxtNum1.Text); dNumber = double.Parse(TxtNum2.Text); dResult = iNumber + dNumber; TxtNum2.Text = dResult.ToString(); // string to int string str; if (CardGroup.Text == "Major") { for (int i = 1; i
Question: How do I convert a string to a byte array and vica-versa in VB.NET and C#? Answer: ' VB.NET to convert a string to a byte array Public Shared Function StrToByteArray(str As String) As Byte() Dim encoding As New System.Text.ASCIIEncoding() Return encoding.GetBytes(str) End Function 'StrToByteArray // C# to convert a string to a byte array. public static byte[] StrToByteArray(string str)..