Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. what's the use of adding __declspec(uuid(".....")) in a struct

what's the use of adding __declspec(uuid(".....")) in a struct

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HeartFriend
    wrote on last edited by
    #1

    struct __declspec(uuid("F5748778-4F2F-4dd7-AB08-2616D76A1DA4"))// //why? mystruct { ... };

    T 1 Reply Last reply
    0
    • H HeartFriend

      struct __declspec(uuid("F5748778-4F2F-4dd7-AB08-2616D76A1DA4"))// //why? mystruct { ... };

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      HeartFriend wrote: struct __declspec(uuid("F5748778-4F2F-4dd7-AB08-2616D76A1DA4"))// //why? mystruct { ... }; Are you reading any Com header file!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta

      H 1 Reply Last reply
      0
      • T ThatsAlok

        HeartFriend wrote: struct __declspec(uuid("F5748778-4F2F-4dd7-AB08-2616D76A1DA4"))// //why? mystruct { ... }; Are you reading any Com header file!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        H Offline
        H Offline
        HeartFriend
        wrote on last edited by
        #3

        u can say that, it's a snippet i get from our project written by other developer

        T 1 Reply Last reply
        0
        • H HeartFriend

          u can say that, it's a snippet i get from our project written by other developer

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          For Uniquly Defined the Com Interface!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups