CreateSemaphore Library for WinCE 5.0 - windows-ce

Building a WinCE 5.0 application to use a semaphore. The function I am using to create the semaphore is CreateSemaphore(). The problem is that the application cannot be linked because there is not reference to the symbol CreateSemaphore. The Windows documentation (https://msdn.microsoft.com/en-us/windows/desktop/ms885184) suggests that as long as I have nk.lib, the application should build. The problem is this library is no where to be found. I am also using the standard sdk for WinCE 5.0.
I have searched for the nk.lib library, but have not been able to find it.
Any thoughts on where this library is or if there is an alternative? I know this stuff is really old, but I am hoping someone knows where I can find this library.
EDIT: I figured I should add the link error:
error LNK2019: unresolved external symbol __imp__CreateSemaphoreA referenced in function _Syn_System_Semaphore_initialize

In CE 5.0, CreateSemaphore is exported by coredll, so you'll need to link with coredll.lib.

Related

The type or namespace XXX could not be found(are you missing a using directive or an assembly reference?

I'm working on a project that targeting .NET 4.0 Framework. I added a reference to a third party dll file and call its methods in my code and have no error. But when I build the project it gave me The type or namespace error with blue underline on the methods of the dll. Using .NET Reflector I checked dll .NET Version of mscorlib.dll it is 4.0.0.0. My application Target .NET Version is 4.0 then Why I'm getting this error.
What I have done.
Remove all references to the library. Clean the project. Restart the project. again add the references. Not good in English please guide me. Stuck in it last 4 days.
Check if you have privileges to access the dll file. Then try running Visual Studio as administrator. If it does not help try to build the solution as 64x/86x not Any CPU.

Runtime DLL issues with Haskell and Awesomium

I am trying to run a Haskell program that depends on the Awesomium library. I've compiled it but ran into the following issue at runtime:
Roughly translated, it says that the procedure start address for awe_history_entry_get_visit_count cannot be found in the DLL file [path to my executable].
It seems like it is trying to load that symbol from my program rather than awesomium.dll.
I'm on Windows 10
I'm using stack as my build tool
The program is 32-bit (i386), because that is the only architecture Awesomium supports
I've referenced the DLLs I need in the extra-libraries field in the .cabal file
Any help or hints will be much appreciated.
I eventually managed to solve it on my own. Turns out I was trying to link to a more recent version of the Awesomium SDK.
Having downgraded to Awesomium 1.6.5 and replaced the DLLs in my build folder with the older ones, I am now able to initialise the WebCore and create WebViews.
Unfortunately, I still haven't been able to render any HTML (stuck on loading), but that's for another question...

Having problems getting F# tutorial to work for me in Monodevelop. Composition error: the type 'Object' is required here and is unavailable

I am trying to work an F# tutorial on Pluralsight (see screencaps) where you have to install Xunit and write the tests but it's not working for me. It works fine for someone using Visual Studio as shown in the screencaps below, but I am not using Visual Studio. I'm on a Linux system using Monodevelop and I get this message: Composition error: the type 'Object' is required here and is unavailable. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I think it must be the Assembly.fs file where I'm supposed to add the reference but I am not sure, nor do I know exactly how to add this reference correctly. Furthermore, I am unsure if the problem may be due to Monodevelop not recognizing a valid Linux path and if so, how to fix that. Any help would be greatly appreciated because I'm completely stuck.
Here is the error I'm getting in Monodevelop:
As already mentioned in the comments, there is not enough information in your answer to give you a proper question. The error generally happens when you add reference to a dll that is itself referencing another dll and you do not have a reference to the other dll. So in general, you can fix this by adding the reference (as mentioned in the error message).
The specific assembly that you're getting an issue on is a core library referenced by portable .NET libraries. Try adding a reference as discussed for example here.
Otherwise, you need to give us more information - what type of project are you creating (what .NET version and profile) and what other libraries are you referencing in your project.

Where can I find winscard.lib for PC/SC programming in VC++ 2010 (Win seven)?

I want to write a PC/SC application using VC++ 2010 in win7 x32 environment.
My program fails to compile with some linking error like this:
error LNK2019: unresolved external symbol _SCardReleaseContext#4 referenced in function "void __cdecl pscs_app(void)" (?pscs_app##YAXXZ)
I guess that I need to include winscard.lib into my project, but I can't find it anywhere on my system. So I think I need to install something like a SDK or developer pack, but I can't find any suitable information about it on the web, can anybody help me please?
WINSCard.lib is included in microsoft windows SDK:
http://microsoft.com/en-us/download/details.aspx?id=8279

Linking to a C++ native library in MonoTouch

I am reading up about linking native libraries into MonoTouch, specifically this documentation:
http://monotouch.net/Documentation/Linking_Native_Libraries
Here it describes linking to C libraries. Is it also possible to link to C++ libraries from MonoTouch? I am very new to MonoTouch and particularly to importing libraries, so I would appreciate any advice about problems I may face trying to import a C++ library, if this is indeed possible. Would wrapping the C++ library in an Objective-C library and then using btouch to import this be a good route to take? Or is there an easier approach? Bearing in mind that my knowledge of C++ (and Objective-C for that matter) can best be described as "dangerous". ;)
The reason that I ask is that I am needing to make use of a C++ API from Sybase to access their Ultralite database. I have managed to get a sample application that accesses the Ultralite C++ API working in Xcode, with Objective-C. But now I am trying to port this sample to MonoTouch. The sample application can be found here:
https://github.com/BruceHill/Ultralite-Names-Sample-ObjC
The Sybase documentation for Xcode mentions the following, with reference to using the API in Xcode:
This tutorial uses the UltraLite C++ API. In order to eliminate the need to cast to C types, compile the source as C++. To compile the project as C++:
In the Search in Build Settings box, enter Compile Sources As.
Choose Objective-C++ from the options in the Value field
What are the implications of this for working with this API in MonoTouch?
You can certainly use a C++ api, but you will need to either wrap it in a C api, or a ObjC+btouch api to be able to talk to this. Invoking C api's uses PInvoke, and C++ libraries use symbol mangling. While theoretically you could pinvoke to the mangled symbol, this isn't a good idea as the mangling is compiler specific.

Resources