More VB6 - C data passing


Author: Dave
Date: 03.23.22 - 2:37pm



Somy last post on passing bstrs as longs and then stealing the ref, didnt work for me today.

its so annoying that vb6 screws around with any arguments/return values passed as string. But there is a way that it wont, and that is if you pass the string inside a variant.

So the following examples shows base64/gzip/zlib functions working on byte arrays and strings inside of variants. So one function prototype allows you pass a string or bytearray to the functions and it will figure it out on the fly.

https://github.com/dzzie/libs/tree/master/zlib2




Comments: (0)

 
Leave Comment:
Name:
Email: (not shown)
Message: (Required)
Math Question: 97 + 62 = ? followed by the letter: S 



About Me
More Blogs
Main Site
Posts: (All)
2024 ( 1 )
2023 ( 9 )
2022 (4)
     More VB6 - C data passing
     Vb6 Asm listing
     Byte Array C to VB6
     Planet Source Code DVDs
2021 (2)
     Obscure VB
     VB6 IDE SP6
2020 (4)
     NTFileSize
     BSTR from C Dll to VB
     Cpp Memory Manipulation
     ActiveX Binary Compatability
2019 (5)
     Console tricks
     FireFox temp dir
     OCX License
     Extract substring
     VB6 Console Apps
2018 ( 6 )
2017 ( 6 )
2016 ( 22 )
2015 ( 15 )
2014 ( 25 )
2013 ( 4 )
2012 ( 10 )
2011 ( 7 )
2010 ( 11 )
2009 ( 3 )