|
In order to exit the application use Application.Exit(), instead of Form.Close() ... this should work fine.
Croitoriu Andrei
andrei.croitoriu@gmail.com
|
|
|
|
|
Hi Friends,
I have created a native dll in C++. How can I import the dll to an CSharp smart device application.
/////////////////////////////////////////////////////////////
Sample Code in C# is given below.
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace CallingSquareDllInSharp
{
class One
{
[DllImport("SquareDll.dll")]
public static extern int squ(int x);
static void Main(string[] args)
{
int a = 10;
int result = One.squ(a);
Console.WriteLine(result);
}
}
}
////////////////////////////////////////////////////////////////////
When I debug the the exe , I am getting an exception DllNotFoundException.
The above C# application is Console program run on visual 2005.
Kindly reply.
Thanks
Phijo
|
|
|
|
|
Your syntax is correct be sure your dll compiled for correct CPU (for ex. arm )
UMS
|
|
|
|
|
Hi all,I am doing mobile web application.In that,I need to display datas in a table format,objectlist is the only way to do that...In objeclist
1)How to align a particular column...?It will be good, the numeric value fields should right aligned...for easy calculations...
2)Is there any other way to display datas in a table format without using objectlist ?
Thanks..
-- modified at 8:09 Monday 18th September, 2006
|
|
|
|
|
Hi,
I would like to develop a simple pocket pc application which could be retrieve data from my desktop database server (SQL Server 2000) via WiFi network.
Here is the code I have written. I am using Visual Basic 2005 with Windows Mobile 5 Pocket PC SDK.
Imports System.Data.SqlClient
Public Class frmMain
Private m_adoCon As SqlConnection
...
Public Sub New()
...
' Add any initialization after the InitializeComponent() call.
m_adoCon = New SqlConnection
End Sub
Private Sub cmdConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdConnect.Click
m_adoCon.ConnectionString = "Data Source=192.168.1.103;Initial Catalog=SWSSDB;User ID=swssuser;Password=swssuser01;"
m_adoCon.Open()
End Sub
There is one error occurs at the time it executes Open() method of the connection object and the error description says "General network error.". I am sure the WiFi connection is up and running smoothly.
Could you help me to figure it out?
Thank you for you help.
Dina
|
|
|
|
|
I'm not sure that this way will ever work. You cannot establish direct connection between PocketPC and SQLServer. For that purpose you need to use IIS. You need to study help file that came with SQLServer CE. There is a good example how to implement this feature. But not a direct communication, that is for sure.
KTB
|
|
|
|
|
Ive been programing abit with C++ for windows, but what compiler is used for CE applications? Whats the code type? (anything special?mfc for ppc?)
thanks!
/Johannes
|
|
|
|
|
You need either eMbedded Visual C++ 4.0 (with SP4) for Windows Mobile 2003, Windows CE 4.2 or Windows CE 5.0 custom platforms, or for Windows Mobile 5.0, Visual Studio 2005. Programs compiled with eVC 4.0 will (typically) run on Windows Mobile 5.0, but you cannot debug a program on WM 5.0 with eVC 4.0.
You must have at least the Standard Edition of VS2005 to do device development. The feature is not in the free Express Edition.
For Windows Mobile/Pocket PC devices you need the corresponding SDK from Microsoft. For a custom CE platform, you need to obtain the correct SDK for your device from the OEM.
eVC 4.0, eVC 4.0 SP4, and the Windows Mobile 2003 for Pocket PC SDK (Pocket PC 2003 SDK) can be downloaded from the Microsoft Download Center[^].
There's an edited version of MFC 6.0 for Windows CE included in the SDKs for devices prior to Windows Mobile 5.0. WM5.0 Pocket PC devices include the classic MFC runtime in ROM (mfcce300.dll) but you are expected to use the new MFC 8.0 runtime if you use VS2005. (The old MFC/CE headers do not compile with the new compiler).
|
|
|
|
|
Hi
Can anyone please help me in finding RFC for IEEE 802.15.1. I have not been able to find it on internet. Any help would be much appriciated.
Thank you
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
Hi,
I was using gmtime() on WinCE with Dinkumware libraries. It returned local time instead of UTC. Although I can convert it to UTC by calling GetTimeZoneInformation, still wondering why that is, and if there's any other function can be called?
Thanks!
d8
|
|
|
|
|
Italian start-up Mazatech is offering the second technology preview of their commercial library for hardware-accelerated 2D vector graphics. The company's AmanithVG library implements the whole Khronos Group's OpenVG specifications, using a pair of 3D APIs, also from the Khronos Group.
AmanithVG implements the OpenVG specifications "entirely on top of" a pair of open standard 3D graphics APIs: OpenGL 1.1 to 2.0, using extensions where available; and OpenGL ES (embedded subset) 1.1 and 2.0. The company claims that using 3D hardware to accelerate 2D graphics can produce quality comparable to software rasterizers, while achieving speeds many times faster or, in embedded systems, using far fewer processor cycles, as shown by the new benchmarks.
OpenVG is an open standard maintained by the Khronos Group. It defines a low-level API for vector graphics libraries, such as those associated with Macromedia Flash, or the W3C's SVG (scalable vector graphics) specification. OpenVG enables "fluidly interactive 2D performance" at very low power levels, Khronos says, and targets small-screen devices with user interfaces based on vector graphics.
AmanithVG is implemented in portable ANSI C, and supports Linux and other embedded OSes.
You can watch online the AmanithVG video at YouTube
|
|
|
|
|
Is it possible to display mainmenu at the bottom in wince 4.2 using C#, .net cf 2.0?
please help.
-- modified at 17:58 Thursday 31st August, 2006
|
|
|
|
|
Hello!
I would like to develop an application for mobile devices (pdas with Windows Mobile) using VS2005.
Where can I find any relevant information about what I need, besides vs2005, and how to actually create such an application?
Thanks
dolaura
|
|
|
|
|
you have to first decide which languge you will use, VB,VC++, VC# ,based on the type of application. MSDN is a good source of information.
Rashmi
|
|
|
|
|
If by VS2005 you mean just the IDE then take a look at Symbian C[^]
It's C++ for the Symbian Operating System. You can do your development on the VS2005 IDE.
Note that I'm only saying IDE because you can't use Windows Programming features (MFC, Windows Forms etc)
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
If you want to use the .Net framework, check out The .Net Compact Framework[^]
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
Hi,
this is sample of my code. I want to recive single phonebook entry information in 528 bytes.
------------------------------
[DllImport("cellcore.dll")]
unsafe public static extern int SimReadPhonebookEntry(int hSim, uint dwLocation, uint dwIndex, ref byte* ret);
unsafe private void buttonEx1_Click(object sender, System.EventArgs e)
{
int hSim = 0;
SimWrap.SimInitialize(0, 0, 0, ref hSim);
byte[] tab = new byte[528];
fixed (byte* pAddr = tab)
{
byte *pCurrent = pAddr;
tab[0] = Convert.ToByte(0);
tab[1] = Convert.ToByte(0);
tab[2] = Convert.ToByte(2);
tab[3] = Convert.ToByte(10);
SimReadPhonebookEntry(hSim, 16, 3, ref pCurrent);
SimWrap.SimDeinitialize(hSim);
}
-------------------------
Final tab array contains only size of array.
Where is mistake ??
I need to run this code on Visual 2003 CF and using c#, Windows Mobile 5.0.
|
|
|
|
|
Hi,
Im using compact framework on VS 2005, Im binding a combobox alright, but I want to insert a new item at zero index, like on windows I used to: ComoBox1.Items.Insert(0,new ListItem("0","Select"));
but there is no ListItem in compact framework.
I am not able to insert that new item at an index, when I do a Combobox.Items.Insert(..... Vs gives me (int index,object obj).
How do I insert that 0 index in compact framework???
please help.
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
Dear all:
I am trying to implement an owner-draw list view in Mobile 5.0. Because I need to read the messages from SIM card and sort them before displaying, the overall time is very long.
So I want to display an item every time,in other words, update the list-view when adding a new item in WM_DRAWITEM,but I haven't found out any way to implement.
Could you give me some suggestions? Anticipating your replies! Thanks!
Yours, Roy.
|
|
|
|
|
Hi
I want to set up Infrared communication link between a PDA based on WinMobile5.0 and a robot (lego mindstorms).
Can any one help me in this regard. I just want the initial steps, how to start with it?
Thanx
Rashmi
|
|
|
|
|
Hi there! You need to enable the infrared port on the pda first(settings and config) and check if it is active(will show icon).The robot must have an infrared port so that it communicates with the pda.you can buy the infrared adapter and mount it on the robot if it doesn't have one already.then after that then you can control the robot using the pda;you should have software for controlling the robot installed on the pda or you can code it yourself.now get to work!
Regards,
Hesbon.
|
|
|
|
|
Thanks for your reply.
ya..both the PDA and robot are having IR port. The problem is that the PDA's port is IrDA where as robot IR port is not of IrDA standard. I want to code the software for controlling the robot. Do you have any idea in this regard?
Is it possible with Visual studio 2005 and win mobile5.0 SDK? What about Ircomm?
Regards
Rashmi
|
|
|
|
|
hi
i know that Game API is designed for Pocket PC environment. but the OS for Pocket PC is still Windows CE, but old versions.
let's start from the beginning, what's my problem?
my problem is that i need to know the beginning address of the display memory. in emulator i tried to link my project with gx.lib for Pocket PC 2003. my project is in Windows CE 4.2 and i'm using Embedded Visual C++ for developing. it generated no error. it couldn't run the program by F5, so i shared the output folder, copied the corresponding gx.dll into the same folder and ran it in the emulator with no problem. it gave me the address and when i used two nested for loops for assigning values into the memory, it worked and screen altered.
but the corresponding gx.dll for the device doesn't work. it seems it's not designed for this machine (ARMV4I). i just need an address!
ok, let's see what can i do:
1. find a gx.lib and gx.dll which work with AMRV4I, but how?
2. do a trial and error effort in finding the beginning address of display!
3. try alternate ways, like DirectDraw, but what is it? how does it work?
4. try to find gx.cpp and compile it within my project.
fortunately i could find it at:
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pc88va/vaeg/WinCE/GX/[^]
but unfortunately it doesn't produce the same output. it seems it doesn't work properly. let me give the values:
the value given for emulator with Pocket PC's gx.dll is 0x46300000 while the value given for the same emulator with this gx.cpp is 0x00080010! it's weird that this value may even change if i run the program again!
i tried the device also, but it's not a reasonable value for the beginning address of screen.
now tell me what can i do, please
thx
|
|
|
|
|
Have you tried GAPI for HPC's from http://www.wincesoft.de/index.html[^] ?
This free GAPI adaption for Handheld PC's (HPC2000, Windows CE .NET 4.2, Windows CE 5.0) supports a huge list of devices:
AboCom X-Pilot MA1000, CE 3.00, 16bit
AbaCom X-Pilot MA1000, CE 3.00, 24bit
AboCom X-Pilot II FJ2500, WinCE.NET 4.2
AboCom X-Pilot II MA2300, WinCE.NET 4.1
AboCom X-Pilot II MA2300, WinCE.NET 4.2
AboCom X-Pilot II PH2500, WinCE.NET 4.2
Acer D100
Advantech MPC-100, CE 3.00, 16bit
Advantech MPC-100, CE 3.00, 24bit
AIRIS T920A
Amoi E8, CE 4.20
Audiovox Thera, CE 3.00
Becker Traffic Assist 7934
Belson BNP-90
Bluemedia BM6300, WinCE.NET 4.2
Book Digital Smartbook G138, CE 4.20
Branium Wibook, CE 4.20
Caron FDN-4000
Coxion WebBook, CE 4.10
Coxion WebBook, CE 4.20
CNS Link 40-01
Cyberbank Majesty
Cyberbank Majesty
bSquare Power Handheld, CE 4.10
Demolux dbook1, CE 4.10
Demolux dbook1, CE 4.20
DTResearch WebDT 370, CE 4.10
DTResearch WebDT 375, CE 4.10
DTResearch WebDT 375, CE 4.10
DTResearch WebDT 375, CE 4.20, PXA255
DTResearch WebDT 375, CE 4.20, PXA250
Easylite 3600 GO
Epower EzPad, CE 4.1
Fine Digital FineDrive 350 GPS
FutureCom NETA 980, CE 4.10, 16bit
Gismosoft Pad, CE 4.20
GN Technologies, Pro Navi GNB-7100D
Höft & Wessel almex.mobile
Höft & Wessel skeye.allegro (240x320 display)
Höft & Wessel skeye.mobile, CE 4.10
Höft & Wessel skeye.pad classic, HPC2000
Höft & Wessel skeye.pad classic, CE 3.00
Höft & Wessel skeye.pad classic, CE 4.10
Höft & Wessel skeye.pad SL, HPC2000
Höft & Wessel skeye.pad SL, CE 3.00
Höft & Wessel skeye.pad SL, CE 4.00
Höft & Wessel skeye.pad SL, CE 4.10
Höft & Wessel skeye.pad SL, CE 4.20
Höft & Wessel skeye.pad XSL, CE 4.20
HP Jornada 710, HPC2000
HP Jornada 720, HPC2000
HP Jornada 728, HPC2000
Hyoncorp, Hyon 2700T
Hyoncorp, Hyon 2300T
Intel PCA PXA250 Development Kit, CE 4.10
Intel PCA PXA255 Development Kit, CE 4.10
Intel PCA PXA255 Development Kit, CE 4.10
Intrinsyc CerfBoard Reference Design, CE 4.20
IPM m810, CE 4.20
IPM m810, CE 4.20
IPM m910, CE 4.20
JADE Z228 Development Board
Jamicon Navi
LILLIPUT GN715
Looket G7
Medion MD 95780
Medion MD 96800
Medion MD 96900
Medion MDPNA 150
Medion PNA 210
Medion PNA 260T
Medion PNA 320
Medion PNA 350
Medion PNA 465
Medion PNA 465T
Medion PNA 500T
Medion PNA 510T
Medion PNA MD 95900
Mio 136
Mio C210
Mio C510E
Mio C810
Mio DigiWalker C310x
Mio DigiWalker C710
MITAC, MIO DIGIWALKER, WinCE.NET 4.2
Mobilemediatech ICLIP, CE 4.00
Mobilemediatech AIV+, CE 4.00
MobiNote ep8402, CE 4.10
Moby F220, CE 4.00
Mr Handsfree Blue Pilot ONE (untested)
MUTO i7 (untested)
Navigon PNA Transonic 4000 (ADAC)
Navigon Transonic 6000T
Naviteck
NAVMAN iCN 510
NAVMAN iCN 520
NAVMAN iCN 530
NEC MobilePro 900, HPC2000
NEC MobilePro 900C, CE 4.20
NEC/NTT DoCoMo Sigmarion 3, CE 4.10
Novogo Vxx
NOVOGO t700
NOVOGO t900
Packard Bell GPS 400
Packard Bell Compasseo 600
PSC Falcon 44XX, CE 4.20
PSC Falcon 4220, CE 4.20
Psion Teklogix NetBook Pro, CE 4.20
Samsung NEXiO S151, CE 3.00, 16bit TFT
Samsung NEXiO S151, CE 3.00, 16bit CRT
Samsung NEXiO S151, CE 4.10, 16bit TFT
Samsung NEXiO S151, CE 4.10, 16bit CRT
Samsung NEXiO S155, CE 4.10
Samsung NEXiO S155, CE 4.10, 16bit TFT
Samsung NEXiO S155, CE 4.10, 16bit CRT
Samsung NEXiO S160, CE 4.10, 16bit TFT
Samsung NEXiO S160, CE 4.10, 16bit CRT
Samsung NEXiO S160, CE 4.10, 16bit TFT
Samsung NEXiO S165, CE 4.10, 16bit TFT
Samsung NEXiO S165, CE 4.10, 16bit CRT
Samsung NEXiO XP30, CE 4.10, 16bit TFT
Samsung NEXiO XP30, CE 4.10, 16bit CRT
Samsung NEXiO ZXP30, CE 4.10, 16bit TFT
Samsung NEXiO ZXP30, CE 4.10, 16bit CRT
Samsung NEXiO XP40, CE 5,00, 800x480
Samsung NEXiO XP40, CE 5,00,1024x768
Samsung S3C2410, CE 4.20
Samwell Smartpad 8402, CE 4.1
Siemens SIMpad CL4, CE 3.00
Siemens SIMpad SL 4, HPC2000,Vers. B
Siemens SIMpad SL 4, HPC2000,Vers. A
Siemens SIMpad SL 4, CE 4.00
Siemens SIMpad SL 4, CE 4.10
Siemens SIMpad SL 4, CE 4.20
Siemens SIMpad SLC, CE 4.00
Siemens SIMpad SLC, CE 4.10
Siemens SIMpad SLC, CE 4.20 (Image available at: www.mullenger.org)
Smart Solutions iBEE sp402 HPC, CE 4.10
Smart Solutions iBEE sp402p HPC, CE 4.10
Smart Solutions iBEE sp402p HPC, CE 4.20
Sony NV-U50 GPS
Southpro Midas Pad, CE 4.20
StampComputer EB2000, CE 3.00
Sumo ST370, CE 4.10
Symbol MK2000, CE 4.10
Telekom T- Sinus Pad, CE 3.00
Telekom T- Sinus Pad, CE 4.00
Telekom T- Sinus Pad, CE 4.10
Thinkware iNavi Smart
Transonic 6000T
TUBE DN-4000
TUBE ND100
Typhoon 3200 GO
Typhoon 3500 GO
Typhoon MyGuide 3000
Typhoon MyGuide 3210 GO
ViaMichelin PND X-930
Viewsonic Airpanel 100, CE 4.10
Viewsonic Viewpad, CE 3.00
Viewsonic Viewpad, CE 4.10, 24bit
Vodafone Power Handheld, CE 4.10
Yakumo EazyGo
Zupera Smartbook 7c, CE 4.20
...
Available here: http://www.wincesoft.de/html/gapi_for_hpc_s.html[^]
|
|
|
|
|