[Media_api] Can media_api Build PortMIDI under Visual C++

Aaron Oxford aaron at hardwarehookups.com.au
Sun Apr 15 11:53:15 PDT 2007


Hi Peter,

IIRC, the problems with compiling C code cannot be overcome with 
compiler switches. You really *cannot* compile C in your managed C++ 
application. What I had to do was add a managed project to the 
solution and have it depend on the unmanaged output that PM builds.

Also, and this time I'm really hazy on the details, I think that 
pm_dll.dll turned out to be a red herring. I believe it is something 
to do with correctly cleaning up after using PM, whereas the actual 
project is built into a .lib.

In any case, I've attached what I had going. I only got as far as 
enumerating devices, and I don't have Visual C++ installed right now 
so I can't test it, but there it is.

Probably the vaguest help email I've ever written, but I hope it gets 
you somewhere. :-)

Aaron.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PortMIDI.rar
Type: application/octet-stream
Size: 106630 bytes
Desc: not available
Url : http://www.create.ucsb.edu/pipermail/media_api/attachments/20070415/840e17c2/PortMIDI-0001.obj
-------------- next part --------------
---------------------------------------------------------------------------------
Aaron Oxford   -   aaron+hardwarehookups .com .au
Director, Innovative Computer Solutions (Aust) Pty. Ltd.
49 Maitland Rd, Mayfield, NSW 2304 Australia
http://www.ic-solutions.com.au
Developer, SourceForge project VioLet Composer
http://sourceforge.net/projects/buzz-like


More information about the media_api mailing list