1. Landing Page > 
  2. Notes > 
  3. Computer > 
  4. Microsoft > 
  5. COM > 
  6. COM VARIANT
  • #COM

COM VARIANT

Loosely speaking, a VARIANT is the COM equivalent of a C union. The data type is held in a VARENUM field and the data value is in a union of COM-compatible data types.

In practice, you probably want to interact with an ATL CComVariant.


References

  • VARIANT (oaidl.h) - Win32 apps | Microsoft Learn
  • CComVariant class | Microsoft Learn
Sep 2, 2023
Hugo Learn Documentation



  • Tools
    • Practice
      • Notes
        • Regex
        • Music
          • History
            • Computer
              • Artificial Intelligence
                • Functional Programming
                • Object-Oriented Programming
                • ROS
                  • Best Practices
                    • Git
                    • Computer Languages
                      • Text File Formats
                        • Data
                          • WWW
                            • Database
                              • Microsoft
                                • MSBuild
                                  • Blazor
                                  • COM
                                    • WSH
                                    • Structured Storage
                                    • Assemblies
                                    • SCM
                                    • MINFU
                                    • IMoniker
                                      • COM Support Features
                                      • Component Categories
                                      • Error Handling
                                        • OLE Automation
                                        • IDispatch
                                        • COM+ Objects
                                        • IClassFactory
                                        • DCOM
                                          • COM+
                                            • COM ActiveX
                                              • Dynamic Composition
                                                • ATL
                                                  • COM Apartment Models
                                                    • Events
                                                    • Running Object Table (ROT)
                                                    • SafeArray
                                                    • Persistence
                                                    • OutProc Server
                                                    • COM VARIANT
                                                    • Type Information
                                                    • Other Interfaces
                                                    • IEnumXXX
                                                    • Clipboard
                                                    • Drag 'n Drop
                                                    • Registry
                                                    • IUnknown
                                                    • DotNet
                                                    • Win32
                                                      • Azure
                                                      • OpenCV
                                                      • How To
                                                        • Mathematics
                                                          • Health
                                                          • Study

                                                            •  

                                                            Built with by Hugo