Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread

   

ANT+ProfileLib.dll (x64 version that targets .NETCore)

Rank

Total Posts: 3

Joined 2017-05-11

PM

I'm trying to build a UWP project that requires access to the Bike Power Sensor. Is using the ANT+ProfileLib.dll the only way to accomplish that? If so, Would it be possible to create a 64bit version of the ANT+ProfileLib.dll that targets .NETCore instead of .NETFramework?

Thanks

Jeff Johnson      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

The .NETFramework version is the only version of the ANT+ProfileLib.dll that we provide. It should be straightfoward enough to write your own code for an ANT+ Bike Power Sensor (did you intend to mean display?). The ANT+ Bike Power Profile provides the full specification you need to develop that code, and the UWP SDK we provide should walk you through the software API.

See the downloads page.      
Rank

Total Posts: 3

Joined 2017-04-06

PM

Is there a version of ANT+ProfileLib.dll that targets x64 or 'any cpu' of the .NET framework? I only seem to be able to find an x32 version.      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

ANT+ ProfileLib.dll currently only supports x86. Supporting .NETCore is something we are considering, but do not currently have plans to support.

BK.      
Rank

Total Posts: 3

Joined 2017-04-06

PM

Thank you for getting back on this so quickly. Just to clear any misunderstandings: we are not looking for a .NET Core version. We are simply looking for a dll supporting 64bit or ‘Any CPU’ for the standard .NET framework. Is it possible to build the ANT+ ProfileLib.dll as 64bit or 'Any CPU'? It would help tremendously as most people run 64bit versions of Windows. Thanks grin      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

The current .dll tragets x86, but should still work on x64 systems.      
Rank

Total Posts: 3

Joined 2017-04-06

PM

Hi BK,
Thank you for the feedback grin However to my understanding you cannot called a 32 bit dll from a 64 bit process. So you are forced to make the entire solution 32 bit. Maybe I'm wrong.... However there seems to be plenty of posts supporting this, f.ex.:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/644c2f9c-f06a-496a-b497-6420a7919fdb/64-bit-app-calling-32-bit-dll?forum=csharpgeneral

https://stackoverflow.com/questions/10113532/how-do-i-fix-the-visual-studio-compile-error-mismatch-between-processor-archit      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

That's right, you'll need to write a wrapper if you do want to use it (https://stackoverflow.com/questions/3036971/32-bit-dll-importing-in-64-bit-net-application?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa) . Thanks for bringing this up and clarifying your issue. We'll put this in our backlog.

BK.