Category : delphi

In a Delphi 10.4.2 win-32 VCL Application associated with graphic file formats in Windows 10, I get parameter files selected in Windows File Explorer. Here I watch the files passed to my app: CodeSite.Send(‘AppInstances: ParamCount’, ParamCount); When I select ONE file in Explorer and then press the ENTER key, this file gets loaded in my ..

Read more

Delphi declaration of external c++ dll function. Const dllname = ‘NavServer.dll’; function FindNavMeshPath(MapID : integer; StartX : Single ; StartY : Single ; StartZ : Single ; EndX : Single ; EndY : Single ; EndZ : Single): PansiChar; stdcall; external dllname; extern "C" NAVSERVER_API const char* __stdcall FindNavMeshPath(const int MapID, const float StartX, const ..

Read more

I have field value dataset ‘EmployeeID’ which has value ‘007’ i want to assign it to one string variable ‘EmployeeID’ which is done by below code and value is copied to ‘EmployeeID’ variable successfully but i am not able to assign value from variable EmployeeID to dataset. Please help me. String EmployeeID = Customers->FieldByName("EmployeeID")->AsString; // ..

Read more

I have a value assigned to a dataset value and cleared it. But when I am reassigning it, the value is still null. mbxtb->FieldByName("name")->AsString = "Bond" string name = mbxtb->FieldByName("name")->AsString; for (register int i = 0; i < mbxtb->FieldCount; i++) { if (!mbxtb->Fields->Fields[i]->IsNull) { switch (mbxtb->Fields->Fields[i]->DataType) { case String: mbxtb->Fields->Fields[i]->Value = ""; break; } } ..

Read more

I have a value assigned to a dataset value and cleared it. But when I am reassigning it, the value is still null. mbxtb->FieldByName("name")->AsString = "Bond" string name = mbxtb->FieldByName("name")->AsString; for (register int i = 0; i < mbxtb->FieldCount; i++) { if (!mbxtb->Fields->Fields[i]->IsNull) { switch (mbxtb->Fields->Fields[i]->DataType) { case String: mbxtb->Fields->Fields[i]->Value = ""; break; } } ..

Read more

I have a DLL written in Delphi that I need to call from a C++ code. The signature of the procedure in Delphi is: procedure GetDeviceName( No: integer; Name: PChar; Len: integer; var Error: integer); stdcall; From the code from the DLL I believed that I could call it with this block of code: typedef ..

Read more