Funny this came up in another thread, but I have an encryption program in PB/CC, works great, but then I thought, the same code is in a DLL I use, and I have a GUI version also...
So, by sending the GUI version teh same commandline I can in essence have a command console version in PB/DLL without any Console requirements...
So I ch eck for len(Command$), if it is > 0 Then I do this:
-------------
Scott
mailto:[email protected][email protected]</A>
So, by sending the GUI version teh same commandline I can in essence have a command console version in PB/DLL without any Console requirements...
So I ch eck for len(Command$), if it is > 0 Then I do this:
Code:
FileSpec is global as string If Len(Command$) Then 'User typed ncrypt <filename> <keyNumber> FileSpec = CurDir$ + "\" + Parse$(Command$, Any ";, ", 1) KeyNum = Val(Parse$(Command$,Any ";, ",2)) 'Doing a Msgbox CurDir$ right here produces: 'C:\PBDLL when I am in C:\PBDLL\Ncrypt Result = NcryptFile(0, _ FileSpec, _ KeySt,_ KeyNum,_ BitLevel) Exit Function End If Does CurDir$ Only read the mother directory?
Scott
mailto:[email protected][email protected]</A>
Comment