2

I would like to port a large Win32 DLL to native linux in C++. I don't think I can use Wine for a DLL like mine, because users of the DLL would then also have to be in Wine, and then they would all whine... As a Windows C++ programmer, I don't (yet) have any familiarity with the GUI front-end services in linux, but if it logically runs on anything like win32 message loops, fonts, bitmaps, invalidation regions, getmessage( ) calls and so forth, it should be a fairly straight forward remapping of my existing code.

So what am I looking at here, a remap or a rewrite? The path for such things must be well worn by now.

3
  • 2
    The path is Wine, and other similar emulators. They're already doing what you are attempting. Commented Oct 17, 2012 at 0:31
  • Ok, so my DLL sits on top of Wine, that sits on top of linux. User code sees my api/DLL, and doesn't necessarily care what it sits on. I like it--no remap, no rewrite, just new scripts and rebuild. Thank you. Commented Oct 17, 2012 at 1:51
  • 2
    Hopefully it's that simple. :) Commented Oct 17, 2012 at 1:59

1 Answer 1

2

Why not consider using Qt or some cross-platform library to solve this question?

Does your solution have GUI related core or just processing functions? Pure C/C++ cross-platform coding would be enough in this case.

2
  • A C++ cross-platform framework that provides consistent front-ends, file handling and networking, while giving my multithreaded concurrency services free reign, would be a much better solution than Wine. I am looking into Qt now, can you name any others that I should also consider? Commented Oct 19, 2012 at 20:02
  • There is wxWidgets also GTK+ and SDL. These I know that are widely used. You may also take a look on this Stack Overflow question to know about other alternatives to QT Commented Oct 21, 2012 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.