Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Managed AdHoc API? intel laptop gaming tdk...

serfio
Beginner
1,087 Views
Good morning,

I've used the Intel Laptop Gaming TDK for some c++ little test application...but know I need to use .net framework.
I Know that there isn't a managed version of the library...

I would try to make a c++/cli wrapper to use some of the adhoc api capabilities into the managed world...

How I can make this wrapper?..I've tried to compile a simple wrapper wich only include the AdHoc.h but I got a lot of error..(I've also add "AdHocAPI.lib" into the additional dependencies)

Can you point me out into the right direction?

Thanks
0 Kudos
5 Replies
James_M_Intel1
Employee
1,087 Views

How are you wrapping the API? Using PInvoke?
0 Kudos
serfio
Beginner
1,087 Views

How are you wrapping the API? Using PInvoke?

I'm trying to code a simple c++/cli wrapper using C++ interop.

With VS2005 "new project> VisualC++> CLR> Class Library"

I'm writing something like this:

#pragma once
#include "AdHoc.h"

using namespace System;

namespace myWrapper {
public ref class myAdHocWrapper
{
public:
myAdHocWrapper(void){
//initialize private AdHoc pointer
};
private:
//pointer to the native adHoc object -- AdHoc *nativeAdHocPointer;
};
}

I've also add AdHocAPI.lib into properties page (myWrapper properties> Linker> Input> Additional dependencies).

building the code above give me a lot of error into the following file: l2cmn.h, ifdef.h, devpkey.h


0 Kudos
James_M_Intel1
Employee
1,087 Views

I asked around and haven't yet found anyone who has done a .Net binding on top of the C++ api. I'll let you know if I find something out.
0 Kudos
James_M_Intel1
Employee
1,087 Views
FYI, I did find out that there is no .net API supported and no plans to implement a .net API at this time. Hopefully someone else who reads this post may have more information for you.

0 Kudos
serfio
Beginner
1,087 Views
FYI, I did find out that there is no .net API supported and no plans to implement a .net API at this time.

unfortunatly I know this...

I hope someone can help me to code a .net wrapper for the AdHoc API.
I really need the AdHoc API capabilities...I haven't found any other library to manage adhoc network out there.

If someone knows a .nety library to manage adhoc network let me know..

Thanks
0 Kudos
Reply