Running Pocket Word from inside a CF App event.

  • Thread starter Thread starter marcmc
  • Start date Start date
thanks girish
so what are the instructions, i have downloaded the
binary files Where do they need to live so as I can
reference them?
 
You can place the files anywhere, on the Add Reference dialog select browse
and locate the folder. Alternatively if you copy the file to your C:\Program
Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE
(Note the VS.NET Install folder may vary on your system)
Then the OpenNETCF.WinAPI assembly will be directly available in the Add
Reference dialog.

Peter
 
I've referenced the dll

what to do with
Core.ShellExecute("\windows\pword.exe")
as core is not defined!
 
Fair enough Peter, but what is the syntax for using it.
I have:

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Core.ShellExecute("\windows\pword.exe")
End Sub

as core is not defined and I get the squiggly under the
word core. What else do I need to do?
 
I have
Imports OpenNETCF.WinAPI.Core
at the top of the form before class is declared.

I have
core.ShellExecute("\windows\pword.exe")
inside by button event.

I get a squiggle under the word core.
but then
If I have
Imports OpenNETCF.WinAPI

And write
ShellExecute("\windows\pword.exe")
The squiggle is the under ShellExecute as not declared

what am i doing wrong?
 
A combination of the two

Imports OpenNETCF.WinAPI

Core.ShellExecute("\Windows\pword.exe")

OpenNETCF.WinAPI is a namespace, Core is a class (although all the methods
contained within it are static, which means you don't need to create a new
instance of Core to use them).

Peter
 
Dowload OpenNETCF.WinAPI.dll binary version, unzip and
put in \Windows Visual Studio.NET 2003\Compact Framework
SDL\ v1.0.5000\Windows CE

Add reference in solution

imports OpenNETCF.WinAPI.Core
at the very top of your code....

ShellExecute("\windows\iexplore.exe", "html file here
(eg.\windows\inbox.htm")
 
Back
Top