key words: C#, P/Invoke, CreateToolhelp32Snapshot, error!

C

compboy

when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from managed
Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in MemoryDll.dll.
 
C

compboy

I do it in the emulator.
If that is not supported, how can I get the processes list in current system
running the emulator?

Alex Feinman said:
Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org
compboy said:
when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from managed
Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 
S

Sergey Bogdanov

You should deploy toolhelp.dll into \windows\ before run your
application. toolhelp.dll you can find in \Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\WinCE Utilities\ToolHelp\WinCE4\ for Simulator
processor architecture must be x86.

Best regards,
Sergey Bogdanov

I do it in the emulator.
If that is not supported, how can I get the processes list in current system
running the emulator?

Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org
when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from
managed
Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 
C

compboy

thanks

Sergey Bogdanov said:
You should deploy toolhelp.dll into \windows\ before run your
application. toolhelp.dll you can find in \Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\WinCE Utilities\ToolHelp\WinCE4\ for Simulator
processor architecture must be x86.

Best regards,
Sergey Bogdanov

I do it in the emulator.
If that is not supported, how can I get the processes list in current system
running the emulator?

Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org

when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from
managed

Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 
C

compboy

Sorry, Sergey, I could not find the library - toolhelp.dll - as your wrote
path. why?:(

Sergey Bogdanov said:
You should deploy toolhelp.dll into \windows\ before run your
application. toolhelp.dll you can find in \Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\WinCE Utilities\ToolHelp\WinCE4\ for Simulator
processor architecture must be x86.

Best regards,
Sergey Bogdanov

I do it in the emulator.
If that is not supported, how can I get the processes list in current system
running the emulator?

Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org

when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from
managed

Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 
S

Sergey Bogdanov

It seems that you have not installed the Windows CE utilities. You can
get it here
http://www.microsoft.com/downloads/...a6-2095-4086-b0cc-7c6c39b28762&displaylang=en

Best regards,
Sergey Bogdanov

Sorry, Sergey, I could not find the library - toolhelp.dll - as your wrote
path. why?:(

You should deploy toolhelp.dll into \windows\ before run your
application. toolhelp.dll you can find in \Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\WinCE Utilities\ToolHelp\WinCE4\ for Simulator
processor architecture must be x86.

Best regards,
Sergey Bogdanov

I do it in the emulator.
If that is not supported, how can I get the processes list in current
system
running the emulator?

"Alex Feinman [MVP]" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
:[email protected]...


Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org


when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from

managed


Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 
C

compboy

thanks again!

Sergey Bogdanov said:
It seems that you have not installed the Windows CE utilities. You can
get it here
http://www.microsoft.com/downloads/details.aspx?FamilyID=7ec99ca6-2095-4086-
b0cc-7c6c39b28762&displaylang=en

Best regards,
Sergey Bogdanov

Sorry, Sergey, I could not find the library - toolhelp.dll - as your wrote
path. why?:(

You should deploy toolhelp.dll into \windows\ before run your
application. toolhelp.dll you can find in \Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\WinCE Utilities\ToolHelp\WinCE4\ for Simulator
processor architecture must be x86.

Best regards,
Sergey Bogdanov


compboy wrote:

I do it in the emulator.
If that is not supported, how can I get the processes list in current
system

running the emulator?

"Alex Feinman [MVP]" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
:[email protected]...


Not every image includes toolhelp.dll. What is your device?

--
Alex Feinman
---
Visit http://www.opennetcf.org


when I did P/Invoke-calls(CreateToolhelp32Snapshot function) from

managed


Csharp code to unmanaged api toolhelp.dll, there is a error prompt:

---code------
[DllImport("Toolhelp")]
public static extern IntPtr CreateToolhelp32Snapshot(int flags, int
procID);

¡­¡­
¡­¡­

IntPtr h = CoreLibMem.CreateToolhelp32Snapshot(0x00000002,0);
¡­¡­

----error prompt----
unsettled¡°System.MissingMethodException¡± error returned in
MemoryDll.dll.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top