Passing a struct address to a 16-bit driver dll

From: Hobbe51 (Hobbe51_at_discussions.microsoft.com)
Date: 09/17/04


Date: Fri, 17 Sep 2004 05:13:08 -0700

I have started on an installable driver dll for a midi output device. I used
MSVC 1.52c to build it. It works fine under Windows 3.11, but under Windows
ME the address of the midiOutCapabilities struct seems to be wrong when
modMessage receives the MODM_GETDEVCAPS message. I use a MIDIOUTCAPS __far *
to adress the fields in the struct at the address passed via dwParam1.

Is it because I compile it with MSVC 1.52c? I thought that should be ok
since it produces 16 bit code.

Any other ideas?

-- 
The next step in human evolution must be built upon compassion, cooperation 
and a healthy competition. That is why we all help out here.


Relevant Pages

  • Re: Compact Framework 2.0 and Windows CE 4.2
    ... Windows CE on any version of the OS or with any version of the framework. ... I can now debug the C# app directly from MSVC 2005. ... doesn't officially support 4.2. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: What GUI toolkit looks the best?
    ... You must use MSVC for compiling on Windows. ... the complete program (including libraries) under a debugger. ...
    (comp.lang.python)
  • Gnu Scientific Library
    ... (GSL) ... on a Windows XP platform, and use it with MSVC++? ...
    (comp.graphics.algorithms)
  • Re: How to add WinXP users from C++ app?
    ... |>I'm writing an application under WinXP in MSVC .NET 2003 and don't know ... |>how to add a user to windows from my application. ...
    (microsoft.public.vstudio.development)