I probably know the answer to this but lets see what others think.
I have a global variable g_hdEncryptionKey lets say...
It contaisn a HEX EQUIVELANT of a binary key used for en cryption, so lets say that key looked like this:
g_hdEncryptionKey = "A1B2C3D4E5F6A1B2C3D4E5F6"
Now, I want to keep this global variable just the way it is and then allow each function to call yet another function which will then modify the key for it's purpose.
I don't want it modifying the Global key however because other functions need it just like it is.
What's the "BEST" way to do this?
It's only 16 bytes long basically, would this be ByVal or ByCopy? I want to pass a COPY of the key basically...
Think I answered my own question but lets see...
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
I have a global variable g_hdEncryptionKey lets say...
It contaisn a HEX EQUIVELANT of a binary key used for en cryption, so lets say that key looked like this:
g_hdEncryptionKey = "A1B2C3D4E5F6A1B2C3D4E5F6"
Now, I want to keep this global variable just the way it is and then allow each function to call yet another function which will then modify the key for it's purpose.
I don't want it modifying the Global key however because other functions need it just like it is.
What's the "BEST" way to do this?
It's only 16 bytes long basically, would this be ByVal or ByCopy? I want to pass a COPY of the key basically...
Think I answered my own question but lets see...

Scott
------------------
Scott
mailto:[email protected][email protected]</A>
Comment