dimanche 26 mars 2017

How to handle different libraries that require different main() arguments

Actually I want to develop an interface using SDL and communicate with ports in c++. Recently, I learnt that communication with ports can be done through clr application via namespace System which is a part of .Netframework Now the problem is that clr application requires main to be defined as:

int main(array<System::String ^> ^args)

and SDL requires:

int main(int argc, char **argv)

So, actually how do i write the main? Plz help. Thanx in advance

Aucun commentaire:

Enregistrer un commentaire