Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

lineSetEquipmentState..missing method exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mobileboy36 - 21 Mar 2007 10:35 GMT
Hello group,

I use VS 2005, VB.NET and CF 2.0. Windows Mobile 5.0 Smartphone SDK For
Dotnet 2.0 has been installed.
I'm trying to set flight mode on and off. I found that this was possible
with opennetcf, but i don't have the opennetcf.Tapi assembly on my pc. Do I
have a wrong version (smart device framework free edition) and can I solve
the problem by buying a license???
So I decided to P/invoke. 2 problems:

1. For LineNegotiateAPIVersion I need tapi32.dll (for mobile 5). But I can't
find it. Where do I get tapi32.dll ? (I get a missing method exception which
is completely normal)
<Runtime.InteropServices.DllImport("tapi32.dll")> _
Public Shared Function LineNegotiateAPIVersion(ByVal m_hLineApp As IntPtr,
ByVal dwDeviceID As Integer, ByVal dwAPILowVersion As Integer, ByVal
dwAPIHighVersion As Integer, _
ByRef lpdwAPIVersion As Integer, ByRef lpExtensionID As lineextensionid) As
Integer
End Function

2. lineSetEquipmentState -> I get a missing method exception
<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub

<Runtime.InteropServices.DllImport("coredll")> _
Public Shared Sub lineSetEquipmentState(ByVal hline As IntPtr, ByVal dwState
As Integer)
End Sub
Any help would be greatly appreciated.

Best regards,
Mobile boy
Peter Foot [MVP] - 21 Mar 2007 15:58 GMT
On Windows CE the core TAPI methods are within coredll.dll. The cellular
specific methods are in cellcore.dll. You can use the SDK documentation to
determine this as the methods are shown in library coredll.lib and
cellcore.lib respectively.

Peter

Signature

Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

> Hello group,
>
[quoted text clipped - 31 lines]
> Best regards,
> Mobile boy
Mobileboy36 - 23 Mar 2007 14:07 GMT
Thank you peter I will take a look at it
> On Windows CE the core TAPI methods are within coredll.dll. The cellular
> specific methods are in cellcore.dll. You can use the SDK documentation to
[quoted text clipped - 38 lines]
>> Best regards,
>> Mobile boy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.