Click here to Skip to main content
15,947,389 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is pradeep

I am developing application for windows ce device (dolphin 6500), the device has camera also. I want to invoke camera in my application, I try with "CameraCaptureDialog" but it raising error as
"Can't find an Entry Point 'SHCameraCapture' in a PInvoke DLL 'aygshell.dll'."

please help me......

Thanks in advance....
Updated 18-Dec-11 19:36pm

1 solution

Start with the following: run some binary dump utility to see what's really exported and under what names. For example, use
DUMPBIN.EXE \full-path-name-to\aygshell.dll > aygshell.dll.dump.txt
You can do it through Visual Studio Command Prompt.

Use explicit EntryPoint parameter in your [DllImport] attribute.

Then name could be decorated ([^]), you could misspell it, etc. This method is even useful if you write your own native DLL, especially with C++. This way, you can avoid pointless "extern C". As to the calling conventions and signature, you need to know it, possibly through documentation or even through some guesswork.

Share this answer
pradeepsvv 19-Dec-11 5:11am    
thanks for ur reply...............

can please give me some more detail..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900