NO

Author Topic: Strlib  (Read 6348 times)

post from old forum

  • Guest
Strlib
« on: September 13, 2004, 09:54:52 PM »
Attached is my version of Microsoft's strsafe library. It has been made simpler and some crap has been removed. It is now more accessible so if anyone would like to use it, test it, develop it further..
Let me know if you find bugs or if you develop it further.

The binary strlib.lib is included in the str_test project folder.

www.btinternet.com/~john.findlay1/Strlib.zip

John

post from old forum

  • Guest
Strlib
« Reply #1 on: September 13, 2004, 09:55:18 PM »
Thank you John.
The library will not compile under Windows 98.

With Windows XP Pro, I successfully recompiled the library then compiled str_test\main.c.

When run, the main.exe output was

str_sprintf Error - Insufficient Buffer size!

str_sprintf 1234567890 7654 -2147483526
str_sprintfx 1234567890 6543 15
str_wsprintf PellesC! 76543 0
str_wlen PellesC! 76543 14
str_svprintf PellesC! 123456

str_svprintfx Pel 3


Robert Wishlaw

post from old forum

  • Guest
Strlib
« Reply #2 on: September 13, 2004, 09:55:48 PM »
What were the errors on Win98?

The output you've poested is right. Check the test runs, some are meant to produce errors.

John

post from old forum

  • Guest
Strlib
« Reply #3 on: September 13, 2004, 09:56:20 PM »
Compiling from the Pelle's C IDE with your .ppj project file

Building str_funcs.OBJ.
*** Error. Incorrect function.
*** Error code: -1 ***
Done.

post from old forum

  • Guest
Strlib
« Reply #4 on: September 13, 2004, 09:56:50 PM »
I've compiled it on WinME with no problems so can't imagine what's wrong on Win98.

John

post from old forum

  • Guest
Strlib
« Reply #5 on: September 13, 2004, 09:57:21 PM »
When trying to compile the Microsoft "Generic.c" example included with the PSDK I get errors
POLINK: error: Unresolved external symbol '_StringCchCatN'.
POLINK: error: Unresolved external symbol '_StringCchCopyN'.
POLINK: error: Unresolved external symbol '_StringCchPrintf'

Does the strlib.lib have equivalent functions for these strsafe.lib functions?

Thanks

Robert Wishlaw

post from old forum

  • Guest
Strlib
« Reply #6 on: September 13, 2004, 09:57:51 PM »
It has compatible funcs (for those) but not the same as the the MS library. Check the functions in str_funcs.c and read the str_readme.h

John