The MASM Forum

General => The Campus => Topic started by: enzechen on August 03, 2015, 09:30:17 PM

Title: Is that possible to invoke WPF (mscorlib.dll) functions in my MASM program?
Post by: enzechen on August 03, 2015, 09:30:17 PM
I read one of the WPF for VB.net book. It says although most of the WPF function is managed code, the "mscorlib.dll" is not managed code.
Then I wondered is it possible to call functions in "mscorlib.dll" to indirectly call wrapped DirectX raw api?

Thanks.
Title: Re: Is that possible to invoke WPF (mscorlib.dll) functions in my MASM program?
Post by: enzechen on August 03, 2015, 10:43:47 PM
I checked the include and lib folder: there is no mscorlib...related header and static libarary.....Does that mean the saying from the book is incorrect?
Title: Re: Is that possible to invoke WPF (mscorlib.dll) functions in my MASM program?
Post by: K_F on August 03, 2015, 11:46:17 PM
I'm looking at connecting to managed code via normal stuff, but this is a side project which I'll do later.

The mscorlib is a COM object interface manager to and from managed code.
You have to use COM to get to the functions, which requires knowing your function GUIDs

This is as far as I've got.. I heard it can be quite messy.
:)
Title: Re: Is that possible to invoke WPF (mscorlib.dll) functions in my MASM program?
Post by: Vortex on August 04, 2015, 01:01:12 AM
Hi enzechen,

You could check the Mono Project :

http://masm32.com/board/index.php?topic=3858.0
Title: Re: Is that possible to invoke WPF (mscorlib.dll) functions in my MASM program?
Post by: Gunther on August 04, 2015, 01:46:16 AM
Hi enzechen,

it's not easy, but the proposal of Vortex seems a possibility. You can download the latest release and documentation here (http://www.mono-project.com/). But take care, the resulting applications are fairly large.

Gunther