8 messages in net.java.dev.jna.usersRES: [jna-users] Problems finding nat...
FromSent OnAttachments
Felipe Armoni, felipe.armoniMay 18, 2009 6:11 am.bmp
Schneider JannMay 18, 2009 6:23 am 
Schneider JannMay 18, 2009 6:32 am 
Felipe Armoni, felipe.armoniMay 18, 2009 6:42 am 
Felipe Armoni, felipe.armoniMay 18, 2009 6:46 am 
Schneider JannMay 18, 2009 6:53 am 
Felipe Armoni, felipe.armoniMay 18, 2009 6:54 am 
Schneider JannMay 18, 2009 6:57 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RES: [jna-users] Problems finding native methodsActions...
From:Felipe Armoni, felipe.armoni (farm@itautec.com)
Date:May 18, 2009 6:54:20 am
List:net.java.dev.jna.users

Jann,

As I said in my last e-mail, the problem was with the extern EXPORT directive on my C++ code. When changed it to extern "C" EXPORT, everything worked fine.

Thanks again, Felipe

-----Mensagem original----- De: Schneider Jann [mailto:j.sc@ssi-schaefer-noell.com] Enviada em: segunda-feira, 18 de maio de 2009 10:53 Para: use@jna.dev.java.net Assunto: AW: [jna-users] Problems finding native methods

Hi

dunno exactly where my first mail is .. Obviously it didn't get through ..

I think you should declare your c methods as this:

extern "C" EXPORT char* capturaImagem();

btw. Did you check your dll with for example with dependency walker or something like this?

Regards jann