Hi Mateusz,<br> <br> I am Daniel, I have been studying how to import a Dll with PInvoke<br> from Compact Framework.<br> <br> <br> > Please, confirm this checklist (though, there are more issues possible):<br> <br> > 1. Your DLL is indeed compiled for Pocket PC and correct CPU<br> > architecture, but not for desktop<br> That´s ok. I have my dll compiled for Pocket Pc. Your e-mails have been very helpfull to do that.<br> <br> > 2. You've deployed (tricky, may not work with DLL) or manually uploaded<br> > your shapefile.dll file to the mobile device, into directory where is<br> > your .NET CF application .exe file.<br> <br> Ok.<br> <br> > If you want to deploy DLL automatically, follow these steps:<br> > 1. Right click on your .NET CF app project in the solution explorer<br> > 2. Choose Add/Existing Item<br> > 3. Navigate to your shapefile.dll<br> > 4. Select this file in the solution explorer.<br> > 5. Change "Build
Action" to "Content"<br> <br> Ok.<br> <br> > Note, that after your DLL is uploaded on the device or emulator,<br> > File Explorer won't show it in directory listings because DLLs are<br> > hidden by default.<br> > So, enable "Show all files" to see it.<br> <br> Ok.<br> <br> When I deploy my application in the emulator I get the following<br> exception during the execution:<br> <br> <span style="font-style: italic;">"Can't find an Entry Point 'DBFCreate' in a PInvoke DLL</span><br style="font-style: italic;"> <span style="font-style: italic;">'shapelib2.dll'."<br> <span style="font-style: italic;"></span><br> </span><br> I have done <span style="font-style: italic;">"dumpbin shapelib.dll /EXPORTS"</span> in the VS2005 command line and I get the following result:<span style="font-style: italic;"><br> <br> </span> <pre style="font-style: italic;">Section contains the following exports for shapelib.dll</pre> <br style="font-style: italic;">
<pre><span style="font-style: italic;"> 00000000 characteristics</span><br style="font-style: italic;"><span style="font-style: italic;"> 44EE10C5 time date stamp Mon Apr 24 22:02:37 2006</span><br style="font-style: italic;"><span style="font-style: italic;"> 0.00 version</span><br style="font-style: italic;"><span style="font-style: italic;"> 1 ordinal base</span><br style="font-style: italic;"><span style="font-style: italic;"> 0 number of functions</span><br style="font-style: italic;"><span style="font-style: italic;"> 0 number of names </span><br style="font-style: italic;"><span style="font-style: italic;"> 1 number of names</span><br><br>That thing means that shapelib.dll has no external <br>functions I can use.<br><br>I think I have to declare the methods I am going<br>to use like extern in the C code.<br><br>What do you think?<br>I am no good with C code, can you tell me how to do it?<br>Do I have to declare them like
extern in the prototypes?<br><br>Can you help me? <br> <br><br><br></pre> <br> <br> <br> <br> -- <br> Saludos,<br> Daniel mailto:cues7a@yahoo.es<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <p>
<hr size=1><br><font face="Verdana" size="-2">LLama Gratis a cualquier PC del Mundo.<br>Llamadas a fijos y móviles desde 1 céntimo por minuto.<br><a href="http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/">http://es.voice.yahoo.com</a></font>