|
And have some problem. When i launch my programm on my Pocket PC i can't see the menu bar of my programm, seems like it biger than the window of pocket pc. What to do???
|
|
|
|
|
Hi,
i develop a .NET Windows application on a Win CE platform.
i do not know if my problem is a common bug, but i found no solution.
Within my application i want to use a proxserver to connect with a .NET Webservice. But everytime I get the 407 Error 'Proxy authentication required'.
I attached my code, where you can see that i try to solve my problem by using the Proxy Object of my Webservice instance and additionally use the GlobalProxySelection Object:
WebProxy myProxy = new WebProxy(myProxyAdress);
myWebservice.Proxy = myProxy;
myWebservice.PreAuthenticate = true; // do not know if this is necassary
System.Net.ICredentials credentials = new System.Net.NetworkCredential(this.proxyUser, this.proxyPWD,
this.domain);
//here i set the credential of my webservice instance, which i mean is not necessary.
myWebservice.Credentials = credentials;
//here i set the credentials of the Proxy Object of my Webserive Instance.
myWebservice.Proxy.Credentials = credentials;
further I tried the following Code:
GlobalProxySelection.Select = new WebProxy(myProxyAdress);
System.Net.ICredentials credentials = new System.Net.NetworkCredential(this.proxyUser, this.proxyPWD,
this.domain);
GlobalProxySelection.Select.Credentials = credentials;
Both examples result in the 407 error, while the same Code on a Win32 plattform still works.
May someone help me, I realy get confused about this problem.
Thx in advance.
Matthias Schröder
|
|
|
|
|
hi,
just wanted to know is there resource available for REX OS.
anybody knows about REX OS and its features, base services, richness compare with others OS ? if so, please let me know in detail.
regards,
aks
|
|
|
|
|
Hi all,
any resources available for REX OS ???
Now a days i am not getting valuable feedback from here.
is there any useful site where i can post messages and get answers for these kind problems?
Regards,
aks
|
|
|
|
|
Hello there
I am building one image viewer application using vb.net for mobile devices. I do not find any way to rotate or zoom the image.
The code which works with VB.Net application is not available in mobile development.
Can any body knows how to Rotate.
Best Regards
Awais
|
|
|
|
|
Hello !
I heve a SDI application (so, NO dialog box !) and when I 'open' the keyboard and press the Enter key, the program exits. I use 3 view classes that are managed by the CMainFrame class.
How can I solve the problem ?
Thanks
|
|
|
|
|
Are you using the document / view architecture?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
|
So, instead of a smart minimize button (x) you have an (ok) button, right? This may be what is causing the unwanted behavior.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hum... In fact it has been removed in the OnCreate function from the CMainFrame class:
ModifyStyle(0, WS_MINIMIZEBOX, SWP_NOSIZE);<br />
SHDoneButton(this->m_hWnd, SHDB_HIDE);<br />
But, ok, the behaviour is still there. So maybe I will need to override the OnChar method so that it doesn't call OnChar from base class when the key pressed is Enter... I hope it will solve the problem.
Thanks for your help
|
|
|
|
|
Hi,
I am developing an app on ppc2003 and i face some problems. I need to have at least 2 background processes that access the IR and BT port for serial comms. furthermore, the application is controlled by the main window and it has to terminate when the user presses stop and give a signal when the user clicks a button.
How do i go about doing this? is threads the best way out? and how do i start using threads. I am using MFC for my app.
Thanks
|
|
|
|
|
Hi,
you should use AfxBeginThread() function.
first,define your thread like this:
UINT TestThread(LPVOID lpvoid);
now,from the main dialog(which controls the threads) call the function
AfxBeginThread(TestThread,this);
now,the thread(let's say your main window class is CMainDlg):
UINT TestThread(LPVOID lpvoid)
{
CMainDlg *dlg = (CMainDlg *)lpvoid;
//All CMainDlg veriables are referenced throug dlg
while(!dlg->Exit)
{
//do something
}
return 1;
}
With best regards,
Eli
|
|
|
|
|
Hello!
I need a database system that would allow me to create a database dynamically during the execution of an application, following to the options selected by the user. For the moment I found the SQL server and the Excel files that could be used as a database. As I know Win CE doesn't yet offer Access databases (. The problem is that I don't what to create an application and then tell the user that he has to install the SQL Server to use it and the problem with Excel files is that for a small apllication they are OK... but for bigger and more complex ones they don't work... as you need to use more tables, relations between tables and so on... I need you to help me with a sugestion and help me select a database system that would be easy to use and has lots of capabilities. (all for Pocket PCs ))
Thank you! I'm waiting for suggestions...
Croitoriu Andrei
croi2001@yahoo.com
|
|
|
|
|
You can use the native property database engine on Windows CE. Check the online help for entries related to CeOpenDatabaseEx.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi, I have a similar problem that I want to input data on a handheld and later transfar data sets to the PC. Right now I am using Pocket PC 2002, C++ and possibly MFC. As a first guess I would store data into a database on the device, later sync and import it into a SQL database on a PC. Would be very helpfull to get:
a) overview of which database APIs and classes are available
b) posisble to automatically sync the database to an SQL server when device is connected to PC?
c) how about using flat files and no database on the device at all to store data, stone age?
Thanks, Moak
|
|
|
|
|
Hi,
When I try to open a raw socket on a pocket PC I get the following error code from the failed call to socket():
WSAESOCKTNOSUPPORT (10044)
•Translation: Socket type not supported.
•Description: The support for the specified socket type does not exist in this address family. For example, the SOCK_RAW optional type may be selected in a socket (Wsapiref_2qr6.asp) call but the implementation does not support SOCK_RAW sockets at all.
The code I use to open the socket is:
rawSocket = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
The error code suggests that raw sockets are not implemented on CE (Pocket PC 4.20) ? Can someone confirm this? I have some code that performs an ICMP ping and I would like to run it on CE, but it appears as if this will not be possible.
Thanks,
Tom.
|
|
|
|
|
I found the answer,
raw sockets are not supported but this exists :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcetcpip/html/cereficmpsendecho.asp
|
|
|
|
|
Hi!
I am planning, to by an SDA Smartphone (Qtek 8020) from a shop (not from a mobile operator). I read about the security model of smartphones (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtphn2k3/html/smartphone_security.asp)
and I would like to know, if a smartphone bought in a shop is good for development purposes. Now I got an SPV 200, it was good, but a newer one is needed.
Unfortunately it is an urgent question, I have to order it tommarow.
Thanks for the reply in advance!
Best regards,
S.
|
|
|
|
|
I am writing a dialer program in PocketPC2003. I want to notify the user the incoming call via a notification bubble. I hope the bubble not to be dismissed until the user click the button on the bubble or the call is dissmissed. Just like the one provided by MS in PocketPC phone.
When I test the shell notification APIs, I find that the bubble will be dismissed automatically when I tap anywhere outside the bubble region.
How can I avoid this?
Thanks.
|
|
|
|
|
I want to compile an .asm program.
Please tell me how to get the masm 6.0.
Thanks!
|
|
|
|
|
Masm ships with Professional and Enterprise versions of VS.Net. If you have either, you have the macro-assembler. I think it's called ML.exe.
-- modified at 14:21 Friday 3rd February, 2006
|
|
|
|
|
Is there any way to control the camera of mobile phone programmatically ??? I mean it takes snapshot at a part. instance of time which i have feed in my program ???? I mean through a piece of code i take a snapshot .... Any help in this regard will be helpful.
|
|
|
|
|
Hey all, just found this site and it looks pretty good from what I have seen so far.
For my Dell Axim X5 I am trying to develop a small app that will read the GPS stream from my Compat Flash GPS unit and write the stream to the CF card as a text file.
I have been able to write an application to do this on my laptop using Python and again in Java (the languages that I work in) All I have to do (have done on my laptop) is open the COM Port and start reading. Sounds simple, I know, however it has been quite some time since I have developed a native application for windows and I am lost when it comes to the PPC.
Thanks, and any help that you can give would be greatly appreciated.
Cartman
War does not decide who is right only who is left...
|
|
|
|
|
my program need to add control during runtime, and the control adding is triggered by a socket listening thread. However, i discover that the control adding cannot do in different thread, and ArgumentException will throw.
Here is the Code for demostrate the problem.(Click the button1 will open a new thread to add textbox1) Any Idea to solve the problem?
_____________________________________________________________________________________
Imports System.Threading
Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
MyBase.Dispose(disposing)
End Sub
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.TabControl1 = New System.Windows.Forms.TabControl
Me.TabPage1 = New System.Windows.Forms.TabPage
Me.Button1 = New System.Windows.Forms.Button
Me.TabPage2 = New System.Windows.Forms.TabPage
Me.TextBox1 = New System.Windows.Forms.TextBox
'
'TabControl1
'
Me.TabControl1.Controls.Add(Me.TabPage1)
Me.TabControl1.Controls.Add(Me.TabPage2)
Me.TabControl1.SelectedIndex = 0
Me.TabControl1.Size = New System.Drawing.Size(240, 272)
'
'TabPage1
'
Me.TabPage1.Controls.Add(Me.Button1)
Me.TabPage1.Location = New System.Drawing.Point(4, 4)
Me.TabPage1.Size = New System.Drawing.Size(232, 246)
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(128, 88)
Me.Button1.Text = "Button1"
'
'TabPage2
'
Me.TabPage2.Location = New System.Drawing.Point(4, 4)
Me.TabPage2.Size = New System.Drawing.Size(232, 246)
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(8, 88)
Me.TextBox1.Text = "TextBox1"
'
'Form1
'
Me.Controls.Add(Me.TabControl1)
Me.Menu = Me.MainMenu1
Me.Text = "Form1"
End Sub
#End Region
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub TabPage1_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage1.EnabledChanged
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ListeningThread As Thread
ListeningThread = New Thread(AddressOf AddTextBoxFunction)
ListeningThread.Start()
End Sub
Private Sub AddTextBoxFunction()
Me.TabPage1.Controls.Add(Me.TextBox1)
End Sub
End Class
|
|
|
|
|
The problem only occur in .Net compact framework. It work fine on windows platform's .net framework
|
|
|
|