Can you use C++ dll in Cosmos

Topics: Developing Cosmos (Working on Cosmos source code directly), Other, Using Cosmos (Developing your own OS, projects, etc)
Developer
Dec 16, 2012 at 2:28 PM

Is it possible to use a C++ dll with cosmos?

Coordinator
Dec 16, 2012 at 3:05 PM
On 12/16/2012 10:28 AM, forest201 wrote:
> Is it possible to use a C++ dll with cosmos?

If its a managed DLL, yes.
Developer
Dec 16, 2012 at 3:40 PM

thanx

Developer
Dec 16, 2012 at 5:31 PM

i wrote a simple dll to test if it works but it doesn't.

the code for the entire  the dll is:

// TaskLib.h

#pragma managed
using namespace System;

namespace TaskLib {

	public ref class Thread
	{
	public:

	int Multiply(int x, int y)
        {
            return x * y;
        }
	
     };
}

Developer
Dec 17, 2012 at 4:14 AM
Have you got it set in the settings as a fully managed dll? You shouldn't need #pragma managed unless it's a mixed dll, which can't be compiled in Cosmos.


On 17 December 2012 04:01, forest201 <notifications@codeplex.com> wrote:

From: forest201

i wrote a simple dll to test if it works but it doesn't.

the code for the entire the dll is:

// TaskLib.h

#pragma managed
using namespace System;

namespace TaskLib {

	public ref class Thread
	{
	public:

	int Multiply(int x, int y)
        {
            return x * y;
        }
	
     };
}

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Developer
Dec 17, 2012 at 12:10 PM

How do you  do that?

Coordinator
Dec 17, 2012 at 2:52 PM
On 12/17/2012 8:10 AM, forest201 wrote:
> From: forest201
>
> How do you do that?

Project properties.