CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: InternetSetCookie - error 126

  1. #1
    Join Date
    Jun 2003

    InternetSetCookie - error 126

    I am getting an error “126” (“The specified module could not be found” when making a call to “InternetSetCookie”. What is strange is that (I think) I staticly link to ‘wininet.lib’, this error is usually caused by an error loading a DLL.

    The code have a line “#pragma comment(lib, "wininet.lib"” )
    It’s the first time I see / use this.

    I am using V-Studio 7

    If I call InternetGetCookie right after I get an error 12006, and FormatMessage returns no error on that one!!??

    Any hints?

  2. #2
    Join Date
    Jun 2003


    Got it .. Funny when I pass hours on a problem simply posting on CodeGuru solves my answer faster.

    So after checking the details of the linker in verbose mode ... nothing

    I was trying to write a cookie to test a client setup, so trying to write passing the client url (, that fails because of a security issue (I am guessing)!!!

    Writing a cookie using works FINE ...

    Hope this will help someone else in the future !!!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)