Recent

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

440bx

  • Hero Member
  • *****
  • Posts: 6542
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.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12905
  • 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: 6542
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.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018