My program will start a third party program(MSYNC). I want my program to press/execute the "SYNC" button in the program. How do I do that without instucting the mouse to move to the cordinate of sync button and click?

in Visual Basic its just MSYNC.sync but i can't figure out how to do it in C++

The first way doesn't help, just give me the same error message . I have tried to call QueryInterface() by adding the few line below and got the same error message. Note, I used the same "interface ID" for CoCreateInstance, is it correct?

Since you don't have a header file that has ISync defined, you will have to use IDispatch and call IDispatch::Invoke() on the methods you want to call. The dispid for doSync() is 2 according to the info you showed above.

plus according to help file, second parameter is "Reserved for future use; set to IID_NULL"
but I received "error LNK2019: unresolved external symbol GUID_NULL referenced in function WinMain"
when I put IID_NULL in second parameter and build the application(no error if I compile only).

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.
If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…

Let me explain this picture a little bit. First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right. They are on their respective cradles on my desk. But, you…