Thread: UuidCreateSequential

  1. #1
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195

    UuidCreateSequential

    How do I fix this stub so it will compile? ( Windows XP, MSVC++ 6.0 )

    Code:
    #include <rpc.h>
     
    void main(){
         UUID Computer;
     
         UuidCreateSequential(&Computer);
         }
    from the docs, and msdn
    Declared in Rpcdce.h; include Rpc.h
    its giving the error
    error C2065: 'UuidCreateSequential' : undeclared identifier

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    I suppose you need some defines
    AS I remember - when you create a project in VC6 it ask you a question if you want to add a support for MFC or/and ATL

    I suppose one of these adds the required define.
    Have you tried firstly create a project that supports everything to see if this is a problem?

    And BTW - use int main()
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    MFC is out of the question, this is not an MFC application. I cannot realistically include 'everything'.

Popular pages Recent additions subscribe to a feed