Recent

Author Topic: is there a unit for the strsafe.h api functions ?  (Read 1259 times)

440bx

  • Hero Member
  • *****
  • Posts: 3946
is there a unit for the strsafe.h api functions ?
« on: July 26, 2018, 06:26:56 pm »
Hello,

I need to use some of the functions that are in strsafe.h.  I've done a few searches but have not found a pascal unit that defines those functions.

Just in case I simply missed them, I figured I'd ask if there is already a unit that defines them. 

Thank you for your help.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: is there a unit for the strsafe.h api functions ?
« Reply #1 on: July 26, 2018, 06:57:00 pm »
No, since pascal string handling is totally different. You can just use basic widestring operations

440bx

  • Hero Member
  • *****
  • Posts: 3946
Re: is there a unit for the strsafe.h api functions ?
« Reply #2 on: July 26, 2018, 07:06:22 pm »
Thanks Marcov. 

I need a few of those functions.  I'll just translate the pieces I need.

(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018