G
Guest
I am storing a printer name in the registry. If its a networked printer, it
stores as so: \\server\printername.
When I pull that value in code, and throw it in a string, I get
\\\\server\\printername.
I get why this is happening, but I have a legacy dll that I need to pass
that value into. It does not like me passing the value that way. However,
if I hardcode the value \\Server\Printername and pass that in, its just fine
with it. I am unsure what language the dll is written in. Is there any way
to prevent C# from tacking on the escape sequences on the \'s ?
stores as so: \\server\printername.
When I pull that value in code, and throw it in a string, I get
\\\\server\\printername.
I get why this is happening, but I have a legacy dll that I need to pass
that value into. It does not like me passing the value that way. However,
if I hardcode the value \\Server\Printername and pass that in, its just fine
with it. I am unsure what language the dll is written in. Is there any way
to prevent C# from tacking on the escape sequences on the \'s ?