CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2001
    Posts
    323

    SetComputerNameExA undeclared identifier

    Hi,
    I can't get my compiler to see SetComputerNameEx.
    I included windows.h, kernel32.lib and I set the winver like so:

    Code:
    #define _WIN32_WINNT 0x0501
    #define WINVER 0x0501
    I installed the new sdk a few months ago and I can see the SetComputerNameEx in the winbase.h file, but my compiler can't see it.

    What did I forget to do??

    Thanks,
    Best Regards,

    --Zim
    If you find this post useful, please rate it.
    _________________________________
    "Have you the brain worms?!?!?"

  2. #2
    Join Date
    Nov 2001
    Posts
    323

    Re: SetComputerNameExA undeclared identifier

    Okay I fixed it.
    I just moved the winver definitions to the top of StdAfx.h
    Best Regards,

    --Zim
    If you find this post useful, please rate it.
    _________________________________
    "Have you the brain worms?!?!?"

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured