Hello All,
I'm having trouble linking winsparkle to my managed c++ windows form project. Following the Basic Setup page, I attempted to follow the instructions for native c++ applications but it didn't work (I guess that was obvious). The section under managed/.Net/C# applications give an example of a wrapper that needs to be implemented to get it to work - would implementing this wrapper in managed c++ context do the trick? Also, I cannot seem to add a reference to WinSparkle.dll - says it is neither a .NET assembly or registered activeX control. I obviously am doing this wrong...
Just for reference, I have the error messages I get from attempting the native c++ instructions
1>iFU.obj : error LNK2031: unable to generate p/invoke for "extern "C" void __clrcall win_sparkle_cleanup(void)" (?win_sparkle_cleanup@@$$J0YMXXZ); calling convention missing in metadata
1>iFU.obj : error LNK2028: unresolved token (0A00000E) "extern "C" void __clrcall win_sparkle_cleanup(void)" (?win_sparkle_cleanup@@$$J0YMXXZ) referenced in function "private: void __clrcall iFU::Form1::Form1_FormClosing(class System::Object ^,class System::Windows::Forms::FormClosingEventArgs ^)" (?Form1_FormClosing@Form1@iFU@@$$FA$AAMXP$AAVObject@System@@P$AAVFormClosingEventArgs@Forms@Windows@4@@Z)
1>iFU.obj : error LNK2019: unresolved external symbol "extern "C" void __clrcall win_sparkle_cleanup(void)" (?win_sparkle_cleanup@@$$J0YMXXZ) referenced in function "private: void __clrcall iFU::Form1::Form1_FormClosing(class System::Object ^,class System::Windows::Forms::FormClosingEventArgs ^)" (?Form1_FormClosing@Form1@iFU@@$$FA$AAMXP$AAVObject@System@@P$AAVFormClosingEventArgs@Forms@Windows@4@@Z)
1>C:\Code Projects\iFU\trunk\Debug\iFU.exe : fatal error LNK1120: 2 unresolved externals
I'm really new at this, so I just want to say thanks for everyone's patience in advance. Hope I can get winsparkle working soon.