Porting Visual C ++ code to another language [closed]

2

Next, I have a simple ShellExecute code that was made in Visual C ++ 2012, but because it is a closed and paid platform and because I need my clients to be downloading more programs I would like this project to be ported to another language . I'll post the main code and project link in GitHub.

link

I need this code, without needing Visual Studio, without needing additional DLLs on the client computer, I just need it to get the executable and run inside the game.

#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define NOMINMAX
#include <windows.h>
#include <cstdlib>

// Start L2 as .bin with IP as parameter.
// You can use IP or DNS as IP parameter.
// You could include other parameters.
// You can change the path to the .bin file to avoid including the L2.exe inside the System folder.
// Author: Zoey76
int _stdcall wWinMain(HINSTANCE hInst, HINSTANCE prevInst, LPWSTR szCmdLine, int nCmdShow)
{
    ShellExecute(0, L"open", L"cmd.exe", L"/C start l2ellite/l2.bin IP=127.0.0.1", 0, SW_HIDE);
}
    
asked by anonymous 23.11.2015 / 04:18

1 answer

5

The question is not very clear and maybe it's a little broad, but what you're trying to do does not make much sense.

You can get rid of Visual Studio but can not get rid of Windows which is a closed and paid platform.

But I do not know if this has relevance. What is the problem of Visual Studio being closed? Does it cause any real problems? Not that I know of. And it is not paid for the vast majority of cases . Even the almost complete version is much better than most similar software out there.

Something will have to be downloaded. Even if it is not a Microsoft product. The least of the problems that the person will have is to download Visual Studio.

The excerpt shown does not show anything specific to the Microsoft compiler, so it does not have to be ported. There is access to the Windows API. But this can not be done without throwing away what you are doing. In fact this code makes little sense as well. I do not know if there's going to be anything else, but forcing someone to download a compiler to compile just this is a huge overstatement. You do not need to do a "C ++ software" just to call the program. No one does this. If you want to do different, only you know what differences you want.

It may not be the answer you expect, but the real solution is this. Unless the question is unclear.

    
23.11.2015 / 04:41