2008年6月25日水曜日

VC#2008 型 DLL対応について

VC#2008 型 DLL対応について

C#の変数のDLL対応について記述します。

[Windows] : [C] : [C#] : [.NET]
-----------------------------------------
BOOL : long : bool : System.Boolean
BYTE : unsigned char : byte : System.Byte
--- : --- : sbyte : System.SByte
CHAR : char : char : System.Char
--- : --- : decimal : System.Decimal
DOUBLE : double : double : System.Double
FLOAT : float : float : System.Single
SHORT : short : short : System.Int16
INT : int : int : System.Int32
LONG : long : long : System.Int32
UINT : unsigned int : uint : System.UInt32
ULONG : unsigned long : uint : System.UInt32
WORD : unsigned short : ushort : System.UInt16
LPSTR : char* : --- : System.Text.StringBuilder
LPCSTR : const char* : string : System.String

2008年6月18日水曜日

VC#2008 型 .NETの関係について

VC#2008 型 .NETの関係について

C#と.NETの変数の型について記述します。
[C#] [.NET]
bool → System.Boolean
byte → System.Byte
sbyte → System.SByte
char → System.Char
decimal → System.Decimal
double → System.Double
float → System.Single
short → System.Int16
int → System.Int32
long → System.Int64
ushort → System.UInt16
uint → System.UInt32
ulong → System.UInt64
string → System.String

2008年6月11日水曜日

>Form1 にツールボックスの以下のコントロールを配置のやり方がわかりません




図(1)ツールボックスのButtonやListViewを左クリックで選択状態にしておき、Form1[デザイン]に左クリックで配置します。

図(2)ツールボックスのserialPortを左クリックで選択状態にしておき、
Form1[デザイン]に左クリックで配置します。すると、フォーム上に配置されずに外の下側に配置されます。

図(3)Button1をダブルクリックすると、画面がソースコードへ切替わって、イベントハンドラが自動的に作成されます。


また質問等あれば遠慮なくどうぞ!