I'm totally baffled.
I've got this great VC++ DLL that does ActiveX modifications to IIS's virtual directories.
This works great:
szName as asciiz * 256
szPath as asciiz * 256
szName = "PBTEST2"
szPath = "D:\TNGMP3"
lResult = CreateVirtualRoot(szName,szPath,519,1,4)
Works great, creates a path!
This does not work:
Global ScriptDir as String
Global InstallDir as String
ScriptDir = "/mp3" 'Read from an INI file
InstallDir = "D:\TNGMP3" 'Read from registry
szName = ScriptDir
szPath = InstallDir
lResult = CreateVirtualRoot(szName,szPath,519,1,4)
'
WHy is that? I've seen WEIRD things like this before, where passing the string to an Asciiz DOES pass (I can do a Msgbox and validate that!) but it won't work in the function....
It's so close too, almost there.....
Scott
------------------
Scott
I've got this great VC++ DLL that does ActiveX modifications to IIS's virtual directories.
This works great:
szName as asciiz * 256
szPath as asciiz * 256
szName = "PBTEST2"
szPath = "D:\TNGMP3"
lResult = CreateVirtualRoot(szName,szPath,519,1,4)
Works great, creates a path!
This does not work:
Global ScriptDir as String
Global InstallDir as String
ScriptDir = "/mp3" 'Read from an INI file
InstallDir = "D:\TNGMP3" 'Read from registry
szName = ScriptDir
szPath = InstallDir
lResult = CreateVirtualRoot(szName,szPath,519,1,4)
'
WHy is that? I've seen WEIRD things like this before, where passing the string to an Asciiz DOES pass (I can do a Msgbox and validate that!) but it won't work in the function....
It's so close too, almost there.....
Scott
------------------
Scott
Comment