• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

help me to convert hid code delphi to c++builder

Started by pgerbet, September 18, 2012, 04:49:54 am

Previous topic - Next topic

pgerbet

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

Hello

You can try something like this:

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.