Skip to content

Do these two lines of code actually do anything? #4

@ewmailing

Description

@ewmailing

In DnssdServiceWatcher.h, there are two lines I am struggling to understand what they do:


    // C++ dsssd service changed callback
    typedef std::function<void(DnssdServiceWatcher^ watcher, DnssdServiceUpdateType update, DnssdServiceInfoPtr info)> DnssdServiceChangedCallbackType;

    // WinRT Delegate
    delegate void DnssdServiceUpdateHandler(DnssdServiceWatcher^ sender, DnssdServiceUpdateType update, DnssdServiceInfoPtr info);

I commented them out, and the program still seemed to work as they don't seem to be directly used in the codebase. But I'm wondering if I'm missing something because there is a lot I still need to learn about WinRT and C++CX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions