G
Guest
Hi All,
I am trying to use the sample discussed at
http://msdn.microsoft.com/library/d...en-us/dnnetcomp/html/ReceivingSMSMessages.asp
Topic: Receiving SMS Messages Inside a Managed Application.
I trying to target Windows Mobile 5.0 and using Pocket PC 2003 or Windows
Mobile 5.0 Emulators on MS Visual Studio 2005.
For some reasion, I enumerate all the Emulators I have installed by using
Microsoft.VisualStudio.DeviceConnectivity.ConMan object
The code is as follows
// Setup a connection to the device/emulator
public IServer ConnectToDevice(String platformName, String deviceName)
{
m_conman = new Microsoft.VisualStudio.DeviceConnectivity.ConMan();
m_conman.SetLocale(1033); // English
m_conman.Initialize();
m_ds = m_conman.DataStore;
m_platform= m_ds.Platforms.FindPlatformByInvariantName(platformName);
m_device = m_platform.FindDeviceByInvariantName(deviceName);
m_deviceAPI = (IServer)(m_conman.Connect(m_device));
if (!m_deviceAPI.EstablishConnection())
{
throw new Exception("Could not connect to - " + deviceName + ". Please
retry and reset the device if the problem pesists");
}
return m_deviceAPI;
}
It gives me only emulators that MS Visual Studio .NET 2003 has listed but
nothing for the emulators listed when am working in MS Visual Studio 2005.
Any idea what I can do? I did look in the .NEt Compact 2.0 but could not see
an equivalent dll for ConMan.dll.
thank you
I am trying to use the sample discussed at
http://msdn.microsoft.com/library/d...en-us/dnnetcomp/html/ReceivingSMSMessages.asp
Topic: Receiving SMS Messages Inside a Managed Application.
I trying to target Windows Mobile 5.0 and using Pocket PC 2003 or Windows
Mobile 5.0 Emulators on MS Visual Studio 2005.
For some reasion, I enumerate all the Emulators I have installed by using
Microsoft.VisualStudio.DeviceConnectivity.ConMan object
The code is as follows
// Setup a connection to the device/emulator
public IServer ConnectToDevice(String platformName, String deviceName)
{
m_conman = new Microsoft.VisualStudio.DeviceConnectivity.ConMan();
m_conman.SetLocale(1033); // English
m_conman.Initialize();
m_ds = m_conman.DataStore;
m_platform= m_ds.Platforms.FindPlatformByInvariantName(platformName);
m_device = m_platform.FindDeviceByInvariantName(deviceName);
m_deviceAPI = (IServer)(m_conman.Connect(m_device));
if (!m_deviceAPI.EstablishConnection())
{
throw new Exception("Could not connect to - " + deviceName + ". Please
retry and reset the device if the problem pesists");
}
return m_deviceAPI;
}
It gives me only emulators that MS Visual Studio .NET 2003 has listed but
nothing for the emulators listed when am working in MS Visual Studio 2005.
Any idea what I can do? I did look in the .NEt Compact 2.0 but could not see
an equivalent dll for ConMan.dll.
thank you