Author Topic: help me to convert hid code delphi to c++builder  (Read 1014 times)

pgerbet

  • Newbie
  • *
  • Posts: 8
    • View Profile
help me to convert hid code delphi to c++builder
« on: September 18, 2012, 07:49:54 am »
hello,
i want use specific fonction in hiddemo example in delphi not in example in c++,
can you help me to covert this delphi code to c++ code

CopyMemory(@s2[1], @s[1], len);
best regards

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: help me to convert hid code delphi to c++builder
« Reply #1 on: September 20, 2012, 05:40:18 am »
Hello

You can try something like this:

Code: [Select]
void __fastcall TForm1::FormCreate(TObject *Sender)
{
AnsiString s = "456";
AnsiString s2 = "123";
CopyMemory(s2.c_str(), s.c_str(), 3);
ShowMessage(s2);
}

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.