The reason CreateShortcut fail is because it needs System::Call OLE32::OleInitialize(p0) for COM to work on that thread.
System::Call OLE32::OleInitialize(p0)
That being said, neither StrCpy, SetOutPath nor System:: is safe to do in another thread.
Log in to post a comment.
The reason CreateShortcut fail is because it needs
System::Call OLE32::OleInitialize(p0)for COM to work on that thread.That being said, neither StrCpy, SetOutPath nor System:: is safe to do in another thread.