Networking Forums

Networking Forums > Computer Networking > Windows Networking > Help! Why RegConnectRegistry works in exe but not DLL?

Reply
Thread Tools Display Modes

Help! Why RegConnectRegistry works in exe but not DLL?

 
 
John Smith
Guest
Posts: n/a

 
      09-14-2006, 07:23 PM
I've written an exe that calls RegConnectRegistry to connect to a remote
computer's HKEY_USER (although in my example code I'm actually connecting to
the local computer). This all works perfectly in the exe when called from a
command-line.

However, when I ported the code to a DLL, RegConnectRegistry now fails with
"error 53" "network path was not found" even though I'm hardcoding the
Server name in both the exe and dll (for testing purposes).

Any idea why it works in an exe and not a dll?






 
Reply With Quote
 
 
 
 
Arkady Frenkel
Guest
Posts: n/a

 
      09-17-2006, 08:31 AM
Check in debugger that all parameters are the same and you start it on the
same user account
Arkady

"John Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've written an exe that calls RegConnectRegistry to connect to a remote
> computer's HKEY_USER (although in my example code I'm actually connecting
> to
> the local computer). This all works perfectly in the exe when called from
> a
> command-line.
>
> However, when I ported the code to a DLL, RegConnectRegistry now fails
> with
> "error 53" "network path was not found" even though I'm hardcoding the
> Server name in both the exe and dll (for testing purposes).
>
> Any idea why it works in an exe and not a dll?
>
>
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Omg, this REALLY works! Try it! Teacher Linux Networking 0 04-22-2006 09:17 PM
Strange: Works, doesn't works, then works Anthony Giorgianni Wireless Internet 23 05-24-2005 02:43 AM
! ! ! IT WORKS AGAIN ! ! ! ent10 Broadband Hardware 0 09-12-2004 05:16 PM
! ! ! IT WORKS AGAIN ! ! ! ent10 Broadband Hardware 0 09-12-2004 05:16 PM
How it works? Damian Wireless Internet 1 05-27-2004 04:23 PM



1 2 3 4 5 6 7 8 9 10 11