Re: porting mfc windows application into linux



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


mktg@xxxxxxxxxxxxxxxxxxx wrote:
hi, this is praveen. I have ported MFC windows application into linux
with winelib software, the exe of windows application is working in
linux. the problem is we have our own card with this card. it is giving
errors drivers not found. what are the steps i have to do plz give
suggestions.how winelib supports these drivers.

If your Windows version of the application truely requires Windows
device drivers to interact with your "card", then you have a lot more
to do in porting your application to Linux.

Neither Wine nor Winelib support Windows device drivers; those are
low-level pieces of kernel code, and neither wine nor winelib "do"
kernel activities. Kernel interfaces to wine/winelib are entirely the
responsibility of the OS kernel, and neither wine nor winelib can take
over and "install" windows drivers to the Linux kernel.

So, you are likely going to have to port the Windows device driver to
the Linux kernel, in order to get your application to recognize your
"card". You might have an alternative if your card provides interfaces
already recognized by the Linux kernel; you might just have to write a
user-space interface to the already-existing Linux device driver, in
order to support the special aspects of your "card" (for instance, USB
devices are recognized by the kernel already, and userspace "USB
drivers" can talk to the general kernel USB interface to converse with
specialized USB devices).

/If/ you have to port some or all of your Windows device driver to
Linux, be aware that there may be licencing issues that you will have
to deal with. Linux device drivers are typically released as GPL code
becaues they are built on GPL code (the Linux kernel and it's
interfaces to device drivers). You /can/ release propriatary drivers
that are not GPL, so long as your driver doesn't actually interface
with the kernel (this is simplified, of course. You'll want to discuss
this with your lawyers and with those knowledgable on Linux kernel
licencing to get a real appreciation of the legal and licencing
requirements. IANAL).

HTH
- --
Lew Pitcher

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12

iD8DBQFE5GN3agVFX4UWr64RAlH2AJ9LJeoKpnvTvsko61itVVzpqMqOeACeJ/fd
rAYr5Zg+XnxHSZ8yTDG+6oQ=
=Bd6c
-----END PGP SIGNATURE-----

.



Relevant Pages

  • Re: Why linux is so stupid with hardware drivers?
    ... that sold to both the CP/M and DOS communities B.W. [Before the Windows ... Linux kernel drivers for complex custom systems that are used in ... Driver] programmer I have a bewildering API from which to choose ... some Windows 95 Device Drivers that can still be loaded and function ...
    (comp.os.linux.development.system)
  • Re: Delphi Bugs
    ... > recompile the Linux kernel just to install a driver. ... You configure the kernel to have whatever features you want in it. ... Are you saying the vast majority of windows users are idiots? ... there are millions of computers that are not the ...
    (borland.public.delphi.non-technical)
  • Re: The performance of Editplus is much better than notepad,Why?
    ... Linux is one of the finest operating systems to have ever been created in the 1960s. ... windows desktop app developing is .Net,OS is becoming weaker as VM ... If you need to write device drivers, I think that C/C++ is the way to ... If Microsoft "closes" the Win32 APIs for next versions of Windows, ...
    (microsoft.public.vc.mfc)
  • Re: sick of Linux bias
    ... the reason why you get such a bias towards linux even ... >>when some linux servers can be rooted just as easily as windows ones, ... no real kernel land and user land for applicaitons. ... redhat (for alot of them I just lie and install gentoo:)) that will ...
    (comp.security.firewalls)
  • Re: sick of Linux bias
    ... the reason why you get such a bias towards linux even ... >>when some linux servers can be rooted just as easily as windows ones, ... no real kernel land and user land for applicaitons. ... redhat (for alot of them I just lie and install gentoo:)) that will ...
    (alt.computer.security)