Can somebody help me with this? The argument list in the combiler output is compleatly diffrent to the one in the specified header file and I have no clue why.
I just found the following code and I never worked with templates before.. can I just initialise an object of this template class? And why is the argument list in the header file compleatly diffrent but still expects the following?
1 2 3 4 5 6 7
template<class _Kty,
class _Ty,
class _Pr = less<_Kty>,
class _Alloc = allocator<pair<const _Kty, _Ty> > >
class map
: public _Tree<_Tmap_traits<_Kty, _Ty, _Pr, _Alloc, false> >
{ /* ........... members */ }
Thanks for the answer and sorry for the stupid question..
I got it working.. (fighting with other problems^^)
Do I understand it right that i defined "_Kty" and "_Ty" as wstring and "_Pr" and "_Alloc" will take the default value?
Is this a good practice to write that many templates? In my option it is messy at first sight and hard to understand when looking deeper. Why not use fixed typed classes or structs?
Maybe you can also point me out how to convert this function?^^
"__clrcall" implies you are not compiling a C++ program. You're compiling a Microsoft C++/CLI program instead - a different programming language, although it's very similar to C++ in many ways. I guess that MinidumpCallback expects a C++ function - I've never used managed C++ so I don't really know how they interact, but from what I could learn online, declaring DmpCallback as bool __cdecl DmpCallback ( might help, and obviously making a proper C++ (not any sort of "Managed" or CLI) project should help further.
Detail:
I have a .NET Core client application possible with Xamarin. (multiplatform support)
Now I want to distribute my project to my customers.
For that purpose I use google's omaha and the server implementation of crystalnix. These two projects are here to install and update software on windows. The server implementation proviedes additional functionalities like receving and displaying crash reports sent by breakpad.
So I'll wrapp the breakpad library for use in .NET so I don't have to worry about other exception logging methods compatible with my server. Furthermore I plan to use Sparkle for mac distribution as the server also supports this.
the calling convention didn't help. I just marked my callback function (DmpCallback) as unmanaged und now everything is fine. As I don't need the callback function in my .NET code this solution should be perfect