Re: calling DLL from a Device Drive

Tech-Archive recommends: Fix windows errors by optimizing your registry




In theory, your MSIL should be able to execute on any machine that contains the same kind of support as the .net framework (depends what your app requires). Take for example the mono project (www.mono-project.com). mono is the .net runtime for Linux, Solaris, Mac, etc.

Platform invoke (pinvoke) is used to make calls into the underlying operating system. Therefore as soon as you use pinvoke, your application is tied to the underlying platform (OS).

It probably isn't relavent in your situation since you are probably only targetting Windows for this project. But if not, be warned that pinvoke'd functions are platform dependent.

....Chris


In which sense do I become platform dependant?

"Chris Doré <cdore.connecttech.com>" wrote:

Willy wrote:

Note that the user application (at least the driver interface part)
in the "inverted call model" as mentioned by Don can only be written
in C/C++, not in any of the pure managed languages like C#, VB or
C++/CLI

However, you may be able to achieve what's needed by using pinvoke
from a managed app. Of course, you then become platform dependent.

Willy:
Or is there some other reason you say it cannot be done? I admit
I've never done it from a managed app and I may be missing something.
....Chris




.



Relevant Pages

  • Re: migrating VC6 to VC8
    ... > My MFC project consist of several files that constitute the MFC ... When you compile your existsing code with /clr, you can use .NET framework ... > Even if you have a managed app you can't use it as you can use Java ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Real-World Sample Application?
    ... My experience has been that if an application cost ... VB.NET app would be SQL Server and the back end in the MS Access ... The key to .Net is to know the .Net Framework, using the code in the library and what is in the namespaces of the .Net Framework. ...
    (microsoft.public.dotnet.general)
  • Re: Web vs Windows Application
    ... my app took several months to write and i was under contract ... client have .net framework cause of large operating system environment. ... i have designed large scale data entry ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web vs Windows Application
    ... my app took several months to write and i was under contract ... client have .net framework cause of large operating system environment. ... i have designed large scale data entry ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: (Raising my hand) I dont get it...
    ... Lars wrote: ... I'm a happy VB6 ... have all of those nasty .ddl's to tag with your app. ... really is if the target pc has the .NET framework on it. ...
    (microsoft.public.dotnet.general)