what is wrong with help system?

K

kathy

I am trying to build a help system for my CE.NET device using
Studio.NET 2003. In my program(VB.NET), I declared:

<DllImport("Coredll.dll", CallingConvention:=CallingConvention.Winapi)>
Public Shared Function CreateProcess(ByVal moduleName As
String, ByVal fileName As String, ByVal para1 As IntPtr, ByVal para2 As
IntPtr, ByVal hWnd As Int32, ByVal para3 As Int32, ByVal para4 As
IntPtr, ByVal para5 As IntPtr, ByVal para6 As
IntPtr, ByVal info As PROCESS_INFORMATION) As Int32
End Function

Then call this function:

CreateProcess("\windows\peghelp.exe", "\windows\my_help.htm",
IntPtr.Zero, IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero,
IntPtr.Zero,info)

When I run program, I got the CE.NET device system help, not
my_help.htm.

Why?
 
P

Peter Foot [MVP]

You have double checked that the path exists? for example the extension is
htm not html

Peter
 
K

kathy

By the way, I try to use OpenNETCF Core.CreateProcess. But it seems the
CreateProcess does not exsist. Where I can find it?
 
P

Peter Foot [MVP]

Use OpenNETCF.Diagnostics.Process.Start("peghelp.exe",
"\windows\my_help.htm") - this provides a consistent model with the desktop
and .NETCF v2.0 functionality, so will make it easier to reuse your code
between versions.
I'm not familiar with the Windows CE version of peghelp, having used it only
on Windows Mobile devices, therefore this may be a limitation on the
platform.

Peter
 

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