|
Hi to all,
I'm writing a code (in VB .net Compact Framework environment) to read a text file (where is included a field containing a DateTime in Ole Automation format i.e.: 39097.4010995 is equivalent to 1/15/07 9:37:34 AM ).
Before to adding the part of code relative to above work,the program (in fase of development yet), was working almost perfectly in both emulator (windows mobile 2003 SE) and the real device.
After I added the following code lines (only that relatives to DateTime elaboration):
----------------------------------------------------
Dim Tempi() As Single
Dim DatOra As DateTime
Dim Tempo As TimeSpan
Dim Tempo1 As DateTime
Dim Tempo2 As DateTime
Tempi = New Single(TotRecords) {}
DatOra = DateTime.FromOADate(Microsoft.VisualBasic.Mid(line, D1, D2))
If CountLines = 7 Then
Tempo1 = DatOra : Tempo2 = DatOra
Else
Tempo1 = Tempo2 : Tempo2 = DatOra
Tempo = Tempo2 - Tempo1
End If
Tempi(CountLines - 7) = Tempo.TotalSeconds
-------------------------------------------------------
the program is perfectly working only on emulator, but on real device, return me this error:
ArgumentException
Impossible to show an error message. It is not been found assembly of the optional resource that contain it.
in System.DateTime.DoubleDateToTicks()
in System.Windows.Forms.Form.WnProc()
in System.Windows.Forms.Control._InternalWnProc()
in Microsoft.AGL.Forms.EVL.EnterMainLoop()
My device is Windows mobile 2003 SE based, updated to Version 2.00 of Compact framework, and is Italian language Culture.
To develop code, I'm using English version of VS 2005 and Compact Framework environment.
Any idea on where is the problem?
May be that problem depends on different languages (I am not sure)? If yes can someone help me please?
Marco
|
|
|
|
|
Hello,
This thread relates to Windows Mobile 5.0 on a Motorolla Sybol MC35 device but I think its a bit more of a generic question than device specific.
I have a scenario where I have a form in my vb.net 2.0 compact application with a textbox near the bottom of the screen. When I open the Soft Keyboard (SID) it covers the textbox that the user may currently be working on. Does anyone know how to make the screen "jump" down (scroll down to the bottom) when the SID is enabled.
I have been playing round with the enabled changed event for the SID but cant seem to get around this problem. E.g.
Private mobjUCLoc As System.Drawing.Point<br />
<br />
Private WithEvents mypanel1 As Microsoft.WindowsCE.Forms.InputPanel = New Microsoft.WindowsCE.Forms.InputPanel<br />
<br />
<br />
<br />
Private Sub ipKeys_EnabledChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles mypanel1.EnabledChanged<br />
<br />
<br />
<br />
mobjUCLoc.Y = 220 <br />
<br />
MyBase.AutoScroll = True<br />
<br />
MyBase.AutoScrollPosition = mobjUCLoc<br />
<br />
MyBase.Anchor.Bottom.Equals(AnchorStyles.Bottom)<br />
<br />
MyBase.Location = mobjUCLoc<br />
<br />
<br />
<br />
End Sub
Any advice would be great and thanks in advance!
Kind regards,
Robert
|
|
|
|
|
Try someting like
Private Sub inputSip_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles inputSip.EnabledChanged
If Me.inputSip.Enabled = True Then
mypanel1.Height -= Me.inputSip.Bounds.Height
Else
mypanel1.Height = 221 ' This is the height of you mypanel1
End If
End sub
JB
|
|
|
|
|
hi
How to find platform builder in PDA windows CE 5.0?
|
|
|
|
|
I need to validate user input with reg expressions but need a library (C++). Preferrably, one that is already part of the Mobile 6 OS. However, the Mobile 6 documentation doesn't appear to list one. Does anyone know of one for Mobile 6?
|
|
|
|
|
Hi. I recently let my PocketPC (old ViewSonic V37, MS PocketPC v3.0.11171) go idle and loose battery charge.
When I tried to synch with my desktop, for which I used to do in the past, it said that I have to go through the whole Partnership configuration process again. Ok....
However, the default Device Name of "Pocket_PC" was flagged as already in use.
How can I find the Device Name I originally used so that I don't have so many instances of Partnerships on my desktop - and can recover the next time I let my PPC loose charge?
Thanks,
Johnny
|
|
|
|
|
Remove the Pocket PC from the cradle and open ActiveSync. On the File menu, select the "Delete Mobile Device" option. Connect the Pocket PC and you should be able to synchronize it.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
Thanks! I will try this.
|
|
|
|
|
Hi,
I know this isn't the right forum for this question. But i love this site, but i don't like the fact that it doesn't support java forum. So i'm posting my question here.
The problem is:
I'm using netBeans v 6.0 beta 2 and I have a problem with the system class
I write this simple line of code: system.out.println("something...");
And an error shows saying that system class does not exist.
But everything else works. The class java exists...
Thank you!
|
|
|
|
|
hi,
1.My QVGA device can display bitmaps perfectly alright.
However, when displaying the same bitmaps on a VGA(480x640) device the bitmaps
seem to appear only half the size seen on my QVGA(240x320) device screen.
Can someone advise me how do I enlarge those bitmaps accordingly
on my VGA device?
I would greatly appreciate if your advice can help me.
Here are bits of the code I have written:
-extract from a *.cpp file:
LRESULT CSIPMainWindow::OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
CPaintDC paintDC(*this);
WTL::CDCHandle renderingDC(paintDC);
CDC memDC;
CBitmap memBitmap;
HBITMAP oldBitmap = 0;
RECT rect;
GetClientRect(&rect);
memDC.CreateCompatibleDC(paintDC);
if (! memDC.IsNull())
{
memBitmap.CreateCompatibleBitmap(paintDC,rect.right-rect.left,rect.bottom-rect.top);
if (! memBitmap.IsNull())
{
oldBitmap = memDC.SelectBitmap(memBitmap);
renderingDC = memDC;
}
}
int iBmpID;
if (m_pCurrentIMWnd == m_paInputMethodWnd[2])
{
iBmpID = IDB_BITMAP_SYMBOLS;
} else
{
if(m_bIsCapMode == true && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P_CAP;
}
if(m_bIsCapMode == true && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M_CAP;
}
if(m_bIsCapMode == false && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P;
}
if(m_bIsCapMode == false && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M;
}
}
int iLogox, iLogoy,iBmpX, iBmpY;
iLogox= k_iDallabLogoX;
iLogoy= k_iDallabLogoY;
iBmpX = k_iIMBmpX;
iBmpY = k_iIMBmpY;
DrawSingleBitmap(renderingDC,IDB_BITMAP_DALLABLOGO,iLogox,iLogoy);
DrawSingleBitmap(renderingDC,iBmpID,iBmpX,iBmpY);
if (static_cast<HDC>(renderingDC) == static_cast<HDC>(memDC))
{
//paintDC.BitBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,SRCCOPY);
paintDC.StretchBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,rect.right-rect.left, rect.bottom-rect.top,SRCCOPY);
memDC.SelectBitmap(oldBitmap);
}
return 0;
}
- extract from a *.h file:
const RECT g_rectScreenArea = {0,250,240,294};//OK
const RECT g_rectScreenAreaHorizontal = {0,170,320,214};//OK
const RECT g_rectClientArea = {0,0,240,44};//OK
const RECT g_rectClientAreaHorizontal = {40,0,280,44};//OK
//left,top,right,bottom//
const RECT g_vgarectScreenArea = {0,500,480,600}; //ok but must make it double the size
const RECT g_vgarectScreenAreaHorizontal ={0,340,640,430);//ok but size must be double
const RECT g_vgarectClientArea = {58,0,480,44}; //ok but must make it double the size
const RECT g_vgarectClientAreaHorizontal = {58,0,580,44};//ok but size must be double
2.Also, I have switched from the BitBlt function to StretchBlt function but it doesn't seem to help. S.O.S
Denise
|
|
|
|
|
Hi Denise,
ttarantula wrote: Can someone advise me how do I enlarge those bitmaps accordingly
on my VGA device?
See http://msdn2.microsoft.com/en-us/library/ms889979.aspx[^] and following pages.
You might use the DRA namespace functions located in <Microsoft Visual Studio 8>\VC\ce\atlmfc\include\DeviceResolutionAware.h.
Cheers,
AR
|
|
|
|
|
Hi,
Thank you very much for your kind help.
Somehow, now the bitmaps are displayed perfectly fine.
However, the device under test (DOPOD PU10), is not responding to any key press on the alphanumeric keypad.
Someone please advise me.
cheerios,
Denise Ema
|
|
|
|
|
ttarantula wrote: However, the device under test (DOPOD PU10), is not responding to any key press on the alphanumeric keypad.
Are you sure that your window has focus and handles the keyboard messages?
cheers,
AR
|
|
|
|
|
I'm not sure that my window has focus and handles the keyboard messages.
Basically I just reused an existing code which works perfectly fine on a device with numeric keypad.
So what should I do now?
Ema
|
|
|
|
|
|
I hv read some references previously before getting into the code.
Anyway thank you for your advice.
I will keep that in view.
Someone out there,
Can please give me some instant idea/clue on how do I make
some progress?
S.0.S
Ema
|
|
|
|
|
How does one transfer/access a WinCE Object Store data base via ActiveSync onto your local PC? This one happens to be all text (CSV format) and would like to access it once I get it onto my local PC?
Thanks, ohart
ohart
|
|
|
|
|
i wrote program for pocket pc CE 5.0 but i can show arabic. what i can do for reslove this problem?
123
|
|
|
|
|
hi techs
I have to create a packet pc 2003 applicaltion using visual studio 2005
The future of the application is:
The packte pc should access the webservice from our local server(system)
The problem is:
i have written the webservice while i am accssing the webservice using the ppc client
packet pc gives the error msg "error in connection."(details: some exceptions)
plz any reply the solution.
Madhav From Ceg
|
|
|
|
|
Hii!
I'm working about mobile with C#. If you have got some ebooks. Please share to me. I need it for my project. And you can send email to bangtam170685@yahoo.com/ bangtam170685@gmail.com/htpoanh_5th2@agu.edu.vn
A student from Viet Nam
|
|
|
|
|
Hi ,
How to connect to sql server 2005 to retrieve data from db using asp.net for mobile(wml). Is it possible to asp.net only for connecting to sql server.
Could anyone please give me some examples.
Thnaks
Aruna.G
|
|
|
|
|
Hallo All,
I have a problem with wml and asp.net. I wrote wml deck which calls an aspx page. when I try to test it on my emulator , its giving "Page not available" message. I didnt understand why is this. My supervisor told me its because of web.config but I didnt understand what kind of changes I should do to the web.config.
I found that there is Mobile Internet Toolkit using asp.net, is it compulsory to download the Mobile Internet Tool kit to work with wml.
Could anyone please tell me, things to be done while working with wml and asp.net.
Any ideas would be appreciated.
Thanking you very much,
Regards,
Aruna.G
|
|
|
|
|
Hi,
I have to create a Pocket PC database file (*.sdf) on my PC. I intended to call several web services to get data and create a 'localDB.sdf' with a program running on my PC. I have created windows application project but I could not add reference to the System.Data.SqlServerCE assembly.
The System.Data.SqlServerCe didn't appear in the .net references tab. I had browsed and added the assembly manually but it didn't work because my framework is 2.0 and the assembly looks for CF 2.0.
How can I use the SqlCeEngine class in a Windows application? Or can I create a *.sdf file using a different class?
thanks,
- ferudun
|
|
|
|
|
Don't cross post.
You've asked this same question in 4 different forums, all within a 10 minute time span.
The people here answer questions on a volunteer basis and may not respond in a timeframe you desire or find acceptable.
I've responded to your initial message here[^].
|
|
|
|
|
Can Any One Give Me List Of Academic Projects In .Net Mobile Development or Any Link Related To This Topic.
Advance Thanx.
Prabumj
prabumj@gmail.com
|
|
|
|
|