|
Hello,
I'm currently developping a PDA application with Visual Studio 2005 using C# and the .NET compact framework. When I create PicutureBox controls in the Windows Form Designer, exceptions are thrown when running the application. Here is an example of the code which causes the exception. This code is automatically created by the Windows Form Designer.
this.picBoxLogo.Image = ((System.Drawing.Image)(resources.GetObject("picBoxLogo.Image")));
The exception thrown is:
"Une exception de première chance de type 'System.UnauthorizedAccessException' s'est produite dans mscorlib.dll"
How can I prevent these exceptions to be thrown?
Thanks.
Matt
|
|
|
|
|
Can anyone tell me how to make my device non-discoverable (with bluetooth)?
I want to be able to have my device connect to only bluetooth printers, and no other devices like mobile phones or bluetooth dongles....
thanks,
skyapie
|
|
|
|
|
I m asp.net developer.I want to develop Mobile Application so i want to ask that whether we can convert our web application to Mobile apllication i.e they can be viewed on Mobile too or we have to go another way.Plz do provide me essential Links if there are.
Any help will be appreciated
varun
|
|
|
|
|
Hi all
I originally placed this under .NET Framework but it may be best in this category.
I currently get the following error randomly in my software application - Native Exception Error: 0xc0000005.
This is a .NET Compact Framework 1.1 application for PocketPC 2002. I am using a Symbol PDT8037.
I am also using OpenNetCF 1.4.
It is all written in C#.
There are some calls to the Win32 library. E.g. setting the time on the PDA.
Also I use Symboll DLLs to access the inbuilt barcode scanner. Would these be Native code?
I am not using SQL CE.
My understanding of a Native Exception Error means that native code, e.g. C/C++ is using an address space and hasn't cleaned itself correctly. Then managed code, e.g. C#, is later accessing that same address space. Then CRASH!
Is this correct or am I totally on the wrong track?
Does anyone else get these errors?
This mainly happens 90% of the time in our Products screen which utilises the barcode scanner. I don't want to be quick in blaming Symbol though in case it is my own code.
I couldn't find too much information on the Internet. One strategy I implemented was to disable ALL native code (including the barcode scanner). However the crashes still occurred, albiet less frequently.
I'm at a loss. Can anyone help?
Mark Eaton
|
|
|
|
|
i have taken a notification control in my smart device application in c# and displayed the notification message ,after displaying the notification message the default notification icon which has been generated in the titlebar of the emulater is not being removed ,how do i remove the icon from the titlebar after displaying the notification message
|
|
|
|
|
You can show/hide the notification icon using the Visible property.
Anyway, I had a similar problem when first started to use the notification control and found out that the Icon should be 16*16 size in order to work fine.
Try this ...
Hope it will help you!
Regards,
AndreiC
------------
Croitoriu Andrei
andrei.croitoriu@gmail.com
http://www.stud.usv.ro/~acroitoriu
http://spaces.msn.com/acroitoriu/
"No complexity beyond what is necessary"
|
|
|
|
|
hi :
all the guru .sorry for my poor english .
there are two phenomena ,one is on a PB4.0 sdk ,in this case the first and second program is ok and dialog builded by dll is ok .The other case is is on a PB5.0 sdk ,the first program is ok ,but the dialog builded by dll can only be shown ,but it can not receive any message as if the dialog is not the forground window .While in this pb5.0 sdk ,the second program can builde the dialog by call the same dll ,and the dialog can receive mouse and ket message .
I'm puzzled ,if the sdk is wrong why other program can builde the dialog ,and it can receive the system message ? so I guess the first program must call some function which is not compatible in PB5.0 sdk .
I have do my best ,But i have no idea. help me
best regards
lirbert
-- modified at 21:49 Monday 9th October, 2006
|
|
|
|
|
Dear Experienced users!
I need your advice: which programming language to choose for writing a Windows PocketPC 2005 application.
Important features of the application are:
1) communication via GSM modem
2) communication via SMS
I have seen a few articles posted to codeproject.com about how to handle these features on both languages, but what do you think?
Thank you in advance,
Kirill
KTB
|
|
|
|
|
Dear All,
Is it possible to check programatically if an adapter is enable and using a 802.11 protocol? Thus being a wireless adapter?
Thank you,
Michael
|
|
|
|
|
Hi
I have created CAB file using VS2005, Copied to device,installed successfully in the device , but not able to find the installed application.
Any body know the reason?How to find the application?
Thanks
Aruna
|
|
|
|
|
|
Hello,
I'm C++ newbie,
I need a C++ control (for fast graphics) embedded into VB.net project.
I tried to compile test MFC Device application and it worked well,
Then I've tried to make MFC AX or ATL DLL with builtin control class to do the same work, It's built successfully, but when I try to import it into VB.net application, it's added but application does not start! Error message says "COM object with CLSID '{C011DD30-2476-4C47-8C4C-C1EE9BF20F0C}' cannot be created due to the following error: Class not registered ."
I tried to use regsvr32 to register it, but the control isn't registered: "aaa.dll is not an executable ... etc"
Everywhere I searched for this problem says "use regsvrce to register DLL on a device", but I need it registered on PC, to test project on Emulator!
How can I avoid this problem and safely use control?
Thank you.
Update:
I "Deployed" aa.dll on emulator device and then line
Me.aa = New aaaLib.ctlTest
worked well, but line:
Me.Controls.Add(aa)
throws error: "InvalidCastException"
to all appearances C++ ATL DLL class isn't considered to be compatible with .Net control class.
How can I make native C++ control to use it with .net app?
|
|
|
|
|
Is there a free mobile internet explorer simulator, so I can view the result
on my desktop?
Thanks
|
|
|
|
|
|
Hi
I am trying to set SocketOption in Windows Mobile Application, but its throwing Exception.
Please let me know how to set Receive Time out for socket in Windows Mobile VS2005 application.
s=new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
s.Bind(new IPEndPoint(IPAddr, port));
s.Listen(1);
s.SetSocketOption(SocketOptionLevel.Socket,SocketO ptionName.ReceiveTimeout,40000);
Socket actualReader = s.Accept();
|
|
|
|
|
Hi,
Does anyone know how to trigger a soft-reset programmatically on a Win CE device using RAPI?
Thanks
skyapie
|
|
|
|
|
I dont think its built in, but you can:
* Write a dll/exe that implements this[^]
* Detect what processortype is connected (CeGetSystemInfo), and transfer the correct version of your exe/dll to the pda (CeWriteFile)
* Execute the soft reset with CeCreateProcess/CeRapiInvoke.
HTH
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Hi
I looking for a way to resize my image to fit into a CStatic
Picture box is a way beside using stretchblt
thanks
|
|
|
|
|
Hi,
I developed a Smart Device Application using VS.NET2003 and the database. Now i want to Deploy it using the CAB Files into my PDA. Can anyone, please, help me how to install the CAB file into PDA?
sk sanavulla
|
|
|
|
|
copy the .cab file to you ppc and install it
|
|
|
|
|
Hi,
I am doing windows mobile 5.0 application.I want to add icon to .exe file.
How to add? which website i should refer? please anybody help me,
Thanks.
|
|
|
|
|
In VS2005:
Project > (projectname) properties, and there you can choose an icon
|
|
|
|
|
Hi all
I am new to Visual Studio 2005 Windows Mobile development, please bear with me for some questions.
I have exe file installed in the device.
1.The Application launching very slow.When I double click the exe. file, I need to register to SIP Server,then load the Login form.its taking 4 to 5 sec for loading login-form.
2.Right now Iam connecting to internet thru GPRS before I launch the application.Is there any way to connect to internet on clicking Login -button?
3.I am trying to Exit the application many ways, but its not closing ,still running at the back-ground.
Please help me.
regards
|
|
|
|
|
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
|
|
|
|