블로그 이미지
stluck

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
  • total
  • today
  • yesterday
2011. 5. 22. 23:50 Programming/C/C++/C#

1. i2cWrite
개체브라우저
public USB_Adapter_Driver.USB_Adapter.Status i2cWrite(System.Byte devAddr, System.Byte command, System.Int32 dataLen, System.Byte[] data)

실제 사용함수(Auto Compliation)
USB_Adapter_Driver::USB_Adapter::Status USB_Adapter_Driver::USB_Adapter::i2cWrite(unsigned char devAddr, unsigned char command, int dataLen, cli::array<unsigned char>^ data)
==> 왜 다르게 나오지?

example)

   array<unsigned char,1>^MyArray3 = gcnew array<unsigned char,1>(100);
    MyArray3[0] = 10;
    MyArray3[1] = 11;
    MY_USB.i2cWrite( Convert::ToByte( nUD_DeviceAddress->Text ), Convert::ToByte( nUD_StartRegisterAddress -> Text ),   2 , MyArray3 );

FAR)
 array<unsigned char^,1>^MyArray3 = gcnew array<unsigned^ char,1>(100);
 MY_USB.i2cWrite( Convert::ToByte( nUD_DeviceAddress->Text ), Convert::ToByte( nUD_StartRegisterAddress -> Text ), 2 , MyArray3 );
==> 요렇게 했더니 4번째 인수가 다르다고 에러 침. Type 선언 부분의 ^ 을 놓쳤음.

posted by stluck