|
Yes you can
Dushan Perera
|
|
|
|
|
Your question is a little vague in that you don't give any information on the component you wish to reuse. A possible interpretation of your question is that you have developed a portion of business logic designed to run on a desktop or server and you want to copy that DLL to a mobile device. If that is what you are planning to do then it won't work (it is possible to develop a component targetting the Compact Framework and run it on a desktop without recompilation, but that's not practical). If this doesn't answer your question please give more information on this component and how you need to use it.
|
|
|
|
|
Hi,
I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf or any other methods of Marshal class, it gives me NotSupportedException exception.
Please tell me how can i solve this problem.
Thank you.
DMASTER
|
|
|
|
|
can you make a simple console mode program that recreates the error? NotSupportedException is thrown for a wide range of problem sources and a code example would help diagnose your problem.
|
|
|
|
|
I use Mywork network settings to connect local network and use MyIsp connect using GPRS so i use several gprs and local network connection. I need to change the connection according to MY program. I am using C# Please help me.
Dushan Perera
|
|
|
|
|
help with socket programming ?? no respnse frm PC
i am doing a project on GPRS communication
my project requires sending a string of data from PC to a mobile
the MOBILE service provider i use uses a WAP GATEWAY so i cannot connect to it
becoz the IP address of the mobile is hidden behind the gateway
so i changed it to that the mobile will connect to the PC
i am able to establish the connection and the string of data is going to PC
but the response i.e " data recieved"
should be sent but how do i send the repsone
plz tell me becoz i do not know the IP ADDRESS OF THE MOBILE ???
plz help me with code if u can becoz i am new to J2ME or plz explain me the logic atleast
|
|
|
|
|
hai all,
i very fresh to wm development and recently looking for some samples how to development an application to sent out an email in window mobile. Can somebody help?
Thanks
|
|
|
|
|
In another article[^] I had to make the device send an e-mail with GPS coordinates upon receiving a special SMS message. The code to do that looked like the following. I've removed some code from this to make it simpler but you need to adapt this to your needs. Note that a device can have multiple accounts and you need to identify the account that you want to use.
public void EmailSendCoordinates(string emailAddress, message, string subject)
{
EmailAccount account =
(new OutlookSession()).EmailAccounts[_Settings.EmailAccount];
EmailMessage msg = new EmailMessage();
msg.To.Add(new Recipient(emailAddress));
msg.Subject = "My location";
msg.BodyText = message;
msg.Send(account);
}
|
|
|
|
|
Hi guys,
Does somebody how can I use ANSI versions of WinAPI?
For example: ExtTextOutA (not ExtTextOutW)
Well I tried, compiling was ok, but the linker said that can't find ExtTextOutA.
P.S. Windows Mobile 5.0 native, VS 2005 SP1.
|
|
|
|
|
Windows Mobile is based on Windows CE OS, which was Unicode based from day one. The ANSI versions aren't available.
|
|
|
|
|
Thank you. I expected this, but because ANSI function were declared I hoped that they are implemented.
|
|
|
|
|
Hi all,
I written the below code with the purpose to sort several string-arrays and two ComboBox.Items.
It's important to precise that I only want to change the order with witch them are stored (in arrays) or displayed in ComboBox.Items (not to sort them alphabetically).
It's also important to precise for Lat1 and Lon1, I input them in TextBox3, using the "." (dot) separator. Using ",", return me an error.
Well, the following code works perfectly (as I espected from it) in emulator of English VS 2005, but doesn't works perfectly in real device (PPC Windows mobile 2003 SE).
I obtain in ComboBoxes. items a not correct and different order of items.
I am almost sure that cause of the problem is the different Language of device (Italian) because the logic of the code is correct, but I don't know how to resolve it.
Italian language use the comma "," as decimal delimitator, instead of the dot.
Can someone help me, please?
Thanks
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Dim Lat1, Lon1, Lat2, Lon2 As Double
Distances = New Single(LatsWpt.GetLength(0) - 1) {}
Dim Distance As Single
Dim Index As Integer
Dim NRow As Integer
Dim LatString As String = ""
Dim LonString As String = ""
For Counter = 1 To Len(TextBox3.Text)
If Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) <> " " Then LatString = LatString + Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) Else Exit For
Next
For Counter = Counter + 1 To Len(TextBox3.Text)
If Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1) <> " " Then LonString = LonString + Microsoft.VisualBasic.Mid(TextBox3.Text, Counter, 1)
Next
Lat1 = Val(LatString)
Lon1 = Val(LonString)
For Index = 1 To LatsWpt.GetLength(0) - 1
Lat2 = LatsWpt(Index)
Lon2 = LongsWpt(Index)
Distance = (6371 * 3.1415926 * Math.Sqrt((Lat2 - Lat1) * (Lat2 - Lat1) + Math.Cos(Lat2 / 57.29578) * Math.Cos(Lat1 / 57.29578) * (Lon2 - Lon1) * (Lon2 - Lon1)) / 180)
Distances(Index) = Distance
Next
For Index = Distances.GetLength(0) - 1 To 1 Step -1
For Counter = 1 To Index
If Distances(Counter) > Distances(0) Then Distances(0) = Distances(Counter) : NRow = Counter
Next
Distances(NRow) = Distances(Index) : Distances(Index) = Distances(0) : Distances(0) = 0
WptFile(0) = WptFile(NRow) : WptFile(NRow) = WptFile(Index) : WptFile(Index) = WptFile(0) : WptFile(0) = Nothing
NamesWpt(0) = NamesWpt(NRow) : NamesWpt(NRow) = NamesWpt(Index) : NamesWpt(Index) = NamesWpt(0) : NamesWpt(0) = Nothing
DescriptionsWpt(0) = DescriptionsWpt(NRow) : DescriptionsWpt(NRow) = DescriptionsWpt(Index) : DescriptionsWpt(Index) = DescriptionsWpt(0) : DescriptionsWpt(0) = Nothing
LatsWpt(0) = LatsWpt(NRow) : LatsWpt(NRow) = LatsWpt(Index) : LatsWpt(Index) = LatsWpt(0) : LatsWpt(0) = Nothing
LongsWpt(0) = LongsWpt(NRow) : LongsWpt(NRow) = LongsWpt(Index) : LongsWpt(Index) = LongsWpt(0) : LongsWpt(0) = Nothing
Next
ComboBox1.Items.Clear()
ComboBox4.Items.Clear()
For Index = 1 To Distances.GetLength(0) - 1 : ComboBox1.Items.Add(NamesWpt(Index)) : Next
For Index = 1 To Distances.GetLength(0) - 1 : ComboBox4.Items.Add(DescriptionsWpt(Index)) : Next
End Sub
modified on Saturday, November 29, 2008 11:17 AM
|
|
|
|
|
dear master,,,
I plan to make GPS application in Hand Phone (SE C702) using J2ME,,,
until now, I still confuse about step by step to build this application,,,,
I hope anyone can help to save me from this problem,,,
Cry
thanks,,,,
|
|
|
|
|
Hello,
We have developed a mobile application, but it does not work on Samsung mobiles. I uploaded both Jar and Jad files to my mobile.
Ahmed
|
|
|
|
|
i is an integer holding an 8 bit value of a joysticks position. How do i get an emulator on my pocket pc to see it as an input/button press?
|
|
|
|
|
Hello,
I maintained a program on the mobile device. (OS is wm 5)
The program has a dialog window, the dialog window contains some user-defined listboxes.
And the listbox has check marks and a vertical scroll bar.
If I clicked the up arrow and the down arrow on the scroll bar. The listbox can be scrolled successfully.
But if I dragged the scroll, sometimes the contents of the listbox is disappeared, but sometimes the contents still exists.
In my opinion, the function OnVScroll() must been existed in the program.
But after search within the program, I didn't find a function like OnVScroll to process the scrolling message.
So I thought the scroll message mighe be handled automatically by the OS.
But if the system automatically handle the scroll message, why sometimes success and sometimes fail ?
Then I searched the string "scroll" in whole project. The related result which I found only are
in .rc file :
LISTBOX IDC_LIST_EV,13,74,133,45,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
in the user-defined listbox.cpp:
hWnd = ::CreateWindow(_T("button"), (LPCTSTR)lParam,
WS_VISIBLE | WS_TABSTOP | m_nStyle,
3, i * m_nItemHeight + 1,
rc.Width() - GetSystemMetrics(SM_CYHSCROLL) - 3,
m_nItemHeight - 1,
m_hWnd,
(HMENU)(i + BUTTONBASEID ),
hInst, NULL );
Can someone give me a suggestion for this strange problem ?
My environment : Visual Studio 2005 SP1 + Windows Mobile 5.0 Pocket PC SDK
Thanks
|
|
|
|
|
Hi guys,
I am developing a smart device application in visual studio 2005. I need to connect the compact device (PDA) to a mysql database which is supposed to be on another computer in the same office. Don't know how to do it. Is there a direct way to access it using oledb provider for mysql (if any) or i have to create a web service and use it? Please help me by providing the code for connectivity.
Thankyou.
|
|
|
|
|
Does WinCE support services?
Also, does anyone know of a good WinCE Logger? Looking for just about anything ATM.
|
|
|
|
|
WinCE certainly supports services. There is one great article about them in MSDN[^]
I don't know of any WinCE Logger. I usually open a file and append data to it. You can do this from a service - watch out for synchronization situations.
|
|
|
|
|
Most excellent! Every article I looked for on MSDN (via search) popped up vista related articles. Thank you very much!!
|
|
|
|
|
Here's the issue:
I'm painting a gradient background on a dialog via WM_PAINT.
For static controls to look transparent, we capture WM_CTLCOLORSTATIC and return a NULL_BRUSH.
This far all looks great, until a MessageBox hovers over any of the static controls - then their backgrounds do not get repainted, and instead end up looking pretty junky.
The controls are dynamically created / destroyed based on user input, so sub-classing them would be a painful workout.
The app is a wizard-type interface controlled by a script file, using just one dialog resource with a BACK and NEXT button for navigation.
I've tried just about all I can think possible to repaint the areas that get overlapped, but so far, nothing is working. I have verified that the WM_CTLCOLORSTATIC gets called during a 'need-to-paint' and I try to re-gradient the controls RECT from there, but that is not working..
Need some help-
(btw) I have a global memory DC containing the gradient image and use BitBlt to update the invalidated areas.
James
|
|
|
|
|
Hi,
I am running a WinCE6.0 Stream interface Driver on a DTE device which will open a handle to Serial port which is
connected to a modem.WriteFile API returns non-zero Value, but NumberofbytesWritten parameters is coming as Zero.
The Windows CE 6.0 device is a DTE terminal and when connected to PC (Another DTE)) over NULL Modem cable with hyperterminal, all the data from the are seen on the hyperterminal, and WriteFile API fills the NumberofbytesWritten is exactly the same as the
bytestoWrite.
When the CE6.0 DTE device is connected to DCE Modemdevice using a Straight serial cable, WriteFile API
is succedding by returning Non-Zero Value, but NumberofbytesWritten parameters is coming as Zero.
The following is the DCB in the driver:
dcb.BaudRate = m_BaudRate;(115200)
dcb.fBinary = TRUE;
dcb.fParity = TRUE;
dcb.fOutxCtsFlow = TRUE;
dcb.fOutxDsrFlow = FALSE;
dcb.fDtrControl = DTR_CONTROL_ENABLE;
dcb.fDsrSensitivity = FALSE;
dcb.fTXContinueOnXoff = TRUE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.fErrorChar = FALSE;
dcb.fNull = FALSE;
dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
dcb.fAbortOnError = FALSE;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
Also, I am setting EscapeCommFunction(m_hCOMHandle,SETDTR);
On the hyperteminal I have the following setting:
baudrate = 115200
Data bit = 8
Parity=None
StopBit=1
FlowControl=None
Also, with the same hyperterminal setting with PC(Hyperterminal) connected to Modem over Straight SErial cable,
I am able to fire the AT Commands from the PC(hyperterminal) to the modem.
Also CommTimeout, I have set the following:
CT.ReadIntervalTimeout = MAXDWORD;
CT.ReadTotalTimeoutMultiplier = 0;
CT.ReadTotalTimeoutConstant = 0;
CT.WriteTotalTimeoutMultiplier = 0;
CT.WriteTotalTimeoutConstant = 100;
-Can a timeout issue cause WriteFile Still succeed and Numberof Bytes Written as zero?
- In hyperterminal Flow Control None, what are the Flow control affected in the DCB?
Can somebody give me some hints on the same.
Thanks..
|
|
|
|
|
I am currently trying to develop an application, where i need to access excel file and process data in that excel file in my application. I am developing the application using Visual Studio 2005 with Windows Mobile Emulator.
I tried to find code on internet. But whatever i found is working for Windows XP but it is not working on the simulator.
Please help me. How can i read that excel file??
|
|
|
|
|
Same question, how can I import data from an excel file to SQL Server CE?
thanks in advance
danhpt
|
|
|
|
|
same question:
I am trying to import data from an excel file to SQL Server CE?Would u pls help me out?
|
|
|
|
|