Solved

Axis IP camera and Windows mobile 5 & 6

Posted on 2007-12-04
10
3,628 Views
Last Modified: 2013-12-05
Hi everybody,
I would like to do a software for Pocket Pc with Windows Mobile 5 & 6 where the people can see on the screen an Axis ip camera images. Now I have Visual Studio 2005, Windows Mobile 5 Pocket Pc SDK and Axis 4.13 SDK installed. The problem is that the Axis is a COM object and i cannot select it for windows mobile device application (it want a .net object I suppose). Somebody could give me some tips to solve this problem, or tell me if there are others tools or SDK that I can use.
Thank You very much
Best regards
0
Comment
Question by:mpbejo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 20401986
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 20402471
0
 

Author Comment

by:mpbejo
ID: 20418404
Thanks Alexey I Think your suggestion is correct but i have a problem:
I used the tlbimp.exe to extract an interface definition and the result is a new .dll file I added the reference to my project and I wrote this few lines:
Imports System.Runtime.InteropServices
Imports AXISMEDIACONTROLLib
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            Dim axis As New AXISMEDIACONTROLLib.AxisMediaControl
            axis.MediaURL = "http://192.168.3.90/axis-cgi/mjpg/video.cgi?resolution=320x240"
            axis.MediaType = "mjpeg-unicast"
            axis.Play()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub
End Class

but when I debug the project I receive this exception:
COM object with CLSID '{DE625294-45ED-B895-CFFA13AEB044}' cannot be created due the following error: Class not registered.
I tried to the regsvr32.exe utility but it does not work with this dll
Suggestions? Thank You
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 24

Expert Comment

by:alexey_gusev
ID: 20418573
you have to register this COM objects on PDA, otherwise it really can't be created :)

if this object supports Windows Mobile, it might have some cab files to install in on PDA. Otherwise you have to register it. I thin the best way is to create smart device cab file project in VS2005 and mark this dll to be registered
0
 

Author Comment

by:mpbejo
ID: 20418741
Dear Alexej, thank you very much for your help, but could you tell me how to create a cab file project and mark this ddl as registered i am a beginner with windows mobile.
When I create a new smart device project i can select: Device application, Class Lybrary, Control Lybrary,console application, empty apllication
Thank you for support and patient
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 20418775
0
 

Author Comment

by:mpbejo
ID: 20420110
Dear Alexey,
I created the cab file project and enabled the on REGISTER the value COM Self Register for every DLL.
But the result is that when I try to install the cab file on my pocket pc appear this message: unable to install SmartDeviceCab1.CAB
I also tried the solution: http://msdn2.microsoft.com/en-us/library/aa446515.aspx
using the Aximp.exe and HostingLibrary
but with the same result
I think that this "COM object" generated with tlbimp.exe or Aximp.exe is correctly recognized by Visual Studio 2005 in the Smart device project but there is something wrong when this object is used with .NET Compact Framework.
Probably I do not say a correct thing, but really I do not what to do now!
0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 20421011
well, the output from tblimp.exe is a type library for that COM object (see http://msdn2.microsoft.com/en-us/library/tt0cf3sx(VS.80).aspx or http://msdn2.microsoft.com/en-us/library/zeaxheha(VS.80).aspx)

I wonder what is the actual COM object dll? you should see exported functions in dependency viewer (or via dumpbin utility - http://msdn2.microsoft.com/en-us/library/c1h23y6c(VS.71).aspx and http://msdn2.microsoft.com/en-us/library/aa446532.aspx). So there should be DllRegisterServer() etc. once you have this dll handy, you have to include it into your cab project and mark it to be registered.
0
 

Expert Comment

by:rherron2
ID: 20719436
mpbejo,

Were you successful in getting your windows mobile to view the axis camera in real time?
0
 

Author Comment

by:mpbejo
ID: 20721422
No for now, Alexey gave me some tips that you can see on this url
http://www.experts-exchange.com/Microsoft/Development/.NET/Visual_Studio_.NET_2005/Q_23016150.html
but I was not able to solve my problem, if you are more lucky than me please send me some tips
Bye
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question