Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C++ Design » Interoperability   (RSS)

How to check if my code is executing inside a Managed App or Native App?

If you check the CRT source code (inside VC\crt\src\crt0.c ) you can find an interesting function check_managed_app() that returns 1 if managed app, 0 if not based on the COM Runtime Descriptor in the Image Data Directory of the PE or PE+ header. You

Well-designed libraries

It is very rare that we come across a well-designed library every day, and even rare that we get a chance to work on them on daily basis. While it is hard to define what makes any given library "well-designed", it is rather easy to identify what is not.

Having hard time marshalling parameters from C++ to .Net?

If you are finding it difficult to send parameters from C++ to .Net, try if you can use the following class: -------------------------------------------------------------------------------------------------------------------------------- #ifndef __PARAMETERS_H_A1B7ECCA_1691_43d0_ACDD_EBE1208005F9
Posted by P.Gopalakrishna | 1 Comments
Attachment(s): Parameters.h
 
Page view tracker