i tried "CeRunAppAtEvent".
That works !! An Event that gives me the time I insert or remove a
memory card.
But i don´t want to call a Application.
May be i´m totally on a wrong way !
Here is my code:
[DllImport("note_prj.dll")]
public static extern int FindFirstFlashCard();
private void FindFlash()
{
try
{
int i = FindFirstFlashCard();
MessageBox.Show(i.ToString());
}
catch ...
}
You could show us your code and we might be able to tell where it's
wrong.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
hi,
when i use a return parameter with type int, my application hang up.
i don´t know why.
and when i use the type long (from msdn), i get a
"notsupportedexception"
what else can i do ?
i tried the FindFirstStorageCard() method but when i ran my
application my pocket pc crashed.
i had to make a hardware-reset.
i don´t know why.
i import the note_prj.dll und call FindFirstStorageCard()
i use visual studio 2005 and c# language.
i hope i can fix it...
.. or someone help me
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
spam DOT com> schrieb im Newsbeitrag
Depending on what you mean by "a pda", you can try the
FindFirstStorageCard() native code API. You'll have to P/Invoke
it. A quick search on that term using GoogleGroups leads to some
interesting pointers:
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=432
http://blogs.msdn.com/windowsmobile/archive/2006/07/26/678742.aspx
Paul T.
Hello,
i try to find out if a pda have a memory card.
i could search the directory but i think it is a bad way.
each card create a different directory-name and i want it
independant from language.
is there a way to find out if a memory card is inside.
and how do i find out the folder.
maybe there is a event that a can usw from the coredll or
something like that.
thanks a lot !
Martin