|
Hey,
I'm trying to write a Windows Mobile application (C#) that will run on the background and will log to a file all the user input gestures: keyboard, mouse and especially touch (screen touch).
I was wondering maybe someone found/wrote code that does this task or similar that I can use.
I saw that 6.5 WM DKT supports motion-gestures API
but i could use a sample code (C#) and also- that only enable capturing motions in a specific application and not globally.
Thanks
|
|
|
|
|
hello guys...
Im trying to build a windows mobile application using visual studio 2008,Pocket pc 5.0 using C# and sql server 2008.
all programs are on the same laptop.
I almost had everything right except i couldnt connect to the database through the pocket pc.
Here is what i've done so far:
SQL SERVER:
-I enabled tcp/ip connection -> cleared all dynamic ip adress and set the port to 1433. i also enabled the name pipes.
-I enable the sql port through windows firewall.(Control Panel->Security->allow aprogram through windows fire wall->add port
Visual Studio:
-New Project-> smart Device project-> device application
added in the form_load the following code:
<br />
string conStr = "Data source = Computer name\1433; intial catalog = "database name"; integrated security = true";<br />
sqlConnection sqlCon = new sqlConnection(conStr);<br />
sqlCon.Open();
I also tried the followin connection strings
i- conStr = "Data source = Computer name; intial catalog = "database name"; integrated security = true";
ii-conStr = "Data source = C:\\"path of the .sdf file on my computer";
iii- conStr = Data source = ip address\1433; intial catalog = "database name"; integrated security = true";
Device manager:
i installed virtual pc and windows mobile center;
openned device manager from visual studio, right click on pocket pc 5.0->Connect;
when connected i configured it to enable NE2000 PCMCIA adapter and use attached network card
i then cradel it and it connected well with the DMA.and in windows mobile center it showed connected.
now when i run the application(F5); i get an sqlException when openning the connection
this is a headache but i need a soluttion.
i have a some additional questions:
1- can i connect directly to sql server database engine and access the database(which isent compact).mdf file.
or cant i because pocket pc only connects to sql server compact edition database(.sdf)
2- Am i suppose to install sql compact on the pocket pc, when i run my application, i find it inside the pocket pc with the database and my application solution
3- is it impossible to connect to sql server 2008 directly through a pocket pc. do i need a websrever, web service, replication, IIS....
im really stock at this point. i have no idea what to do or try next.
i'm findig it impossible connectin to sql server 2008.
PLease Helpppp!!!
thank you anyway..
|
|
|
|
|
HEY GUYSS...
WELL AFTER A LOT OF TRIES AND MIES AND FINALLY REACHED TO A SOLUTION.
I COULDNT CONNECT FROM THE POCKET PC TO THE SQL SERVER DIRECTLY. THAT WASENT POSSIBLE, BUT
WHAT I DID WAS, USED MERGE REPLICATION TO GET A SNAPSHOT(COPY) OF MY DATABASE AS COMPACT DATABASE;
I ADDED THIS DATA BASE(THE COMPACT .SDF FILE) AS A DATASOURCE IN MY POCKET PC PROJECT WHERE THE CONNECTION STRING IS: THE LOCATION OF THE DATABASE IN THE THE POCKET PC:
<datasource =="" "\program="" file\project="" name\database="" name.sdf";="">
this is how its written
<@"Data Source=""\Program Files\Final_Project\Bill_Sender.sdf">
this is the connection string to the database
<
public string ConStr = @"Data Source = \Program Files\Final_Project\Bill_Sender.sdf";
public SqlCeConnection connection = new SqlCeConnection(ConStr);
connection.Open();
>
in this case u can open connection easyly, update on the database and then synchronise back with the server which will save any updated rows in the database.
this is how i solved my problem.
i also used web services for more complicated calculations, printing and Console output...
hope this helps. and if any1 was so furtunate to connect directly through pocket pc to sqlserver. please let me know.(though i dnt think its possible)..
hope this helps...
regards.
|
|
|
|
|
Hi All,
I am using device with WINCE 5.0 and my application is in .NET compact framework in C#.I want to operate my device from my desktop pc.how can i do this process.
Thanks
Obalesu.N
|
|
|
|
|
Hey,
You can use Visual Studio 2005 Remote Tools.
|
|
|
|
|
Thanks for reply,
Can we access the mobile device without using active sync (with wifi)?.what i need is to access the mobile device(we can see, what all the proceses currently running the device) when running our application in the device remotely from PC.
Thanks
Obalesu.N
|
|
|
|
|
Hey.. I got this mail from Forum Nokia about some Developer Conference in India. It sounds pretty promising but there aren't any details!! Does anybody have any clue on this??? WHere is it?? When is it?? WHats it about???
|
|
|
|
|
Hi,
I wrote a program using VC++ that should scan for available wireless networks in the area.
In my SW I use the commands OID_802_11_BSSID_LIST_SCAN and OID_802_11_BSSID_LIST.
My questions are:
1. How can I Force the Wireless NIC to do ACTIVE SCAN (as contrary to PASSIVE scan) ?
2. According to tests that I did, the card does not flush the list between scans, i.e. I get for several scan a result of an AP that was on air during an old scan, but is no longer there, and new scans return's it's data as if it is still there.
A code part that I used is attached - in order to illustrate which functions I am using.
NDIS_802_11_BSSID_LIST* m_pBSSIDList;
m_pBSSIDList = (NDIS_802_11_BSSID_LIST *) VirtualAlloc (NULL,
sizeof (NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS,
MEM_RESERVE | MEM_COMMIT,
PAGE_READWRITE) ;
memset (m_pBSSIDList, 0, sizeof (NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS);
oidcode = OID_802_11_BSSID_LIST_SCAN;
DeviceIoControl (m_handle,
IOCTL_NDIS_QUERY_GLOBAL_STATS,
&oidcode,
sizeof(oidcode),
(ULONG *) NULL,
0,
&bytesreturned,
NULL);
Sleep (6100);
oidcode = OID_802_11_BSSID_LIST;
if (DeviceIoControl( m_handle,
IOCTL_NDIS_QUERY_GLOBAL_STATS,
&oidcode,
sizeof(oidcode),
(ULONG *) m_pBSSIDList,
sizeof(NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS,
&bytesreturned,
NULL) == 0)
{
return NULL;
}
else
{
return m_pBSSIDList;
}
If you have any idea of how can I solve my problems, or if you see that I forgot any important line- please let me know.
I am open to hear about completely new ways to do this. only requirement is that I will use VC++.
Thanks a lot,
--Amit.
|
|
|
|
|
Hi all,
I m trying to Run a blackberry app download from following link
http://test.teamkollab.com/bbsrc.zip
I hv installed
1. jdk-6u16-windows-i586
2. eclipse-java-galileo-win32
3. BlackBerry_JDE_4.3.0
But when i AntRun build.xml file then it shows following errors in console
Buildfile: E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml
build_all:
small:
init:
[echo] Build config: build.local.properties
[echo] WTK home: E:\Current\BlackBerry Projects\4th\mfunds-java/import/WTK25
buildAndPackageTarget:
clean:
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\small
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\classes\small
[echo] Target small was cleaned
preprocess:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\small
[wtkpreprocess] **************************************************************
[wtkpreprocess] * Antenna 1.0.1 initialized for project "telSPACE Java" *
[wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.0; MIDP-2.0) *
[wtkpreprocess] **************************************************************
[wtkpreprocess] Preprocessing 40 file(s) at E:\Current\BlackBerry Projects\4th\mfunds-java\src
[echo] Pre-processed successfuly with: j2me, ${platformver}, small, ${alias2}
compile:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\classes\small
BUILD FAILED
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:98: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:124: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:342: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:383: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 922 milliseconds
Plz helpout me how to fix them
|
|
|
|
|
The console output during building is ....as follows
Buildfile: E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
build_all:
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
small:
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
init:
[echo] Build config: build.local.properties
[echo] WTK home: E:\Current\BlackBerry Projects\4th\mfunds-java/import/WTK25
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
buildAndPackageTarget:
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
clean:
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\small
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\classes\small
[echo] Target small was cleaned
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
preprocess:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\small
[wtkpreprocess] **************************************************************
[wtkpreprocess] * Antenna 1.0.1 initialized for project "telSPACE Java" *
[wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.0; MIDP-2.0) *
[wtkpreprocess] **************************************************************
[wtkpreprocess] Preprocessing 40 file(s) at E:\Current\BlackBerry Projects\4th\mfunds-java\src
[echo] Pre-processed successfuly with: j2me, ${platformver}, small, ${alias2}
[typedef] Could not load definitions from resource antlib.xml. It could not be found.
compile:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\classes\small
BUILD FAILED
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:100: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:126: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:344: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:385: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 937 milliseconds
|
|
|
|
|
I am working on a device application using Visual Studio 2005 (C#). in the application i need an option to stream vdos within the application. i tried the web browser component by giving embed code as its document text to embed an flv player. no error is shown.. but i guess compact framework is not supporting ActiveX... it just displays a blank browser.. when i tried the same embed code on an HTML page... it is working........is there any way i can do this on a device application?
This code was posted by me...
|
|
|
|
|
Low im arnel...
im confused about what specific mobile device i could use to test my
sample program... im using windows mobile 6.0
|
|
|
|
|
That is depend on your targeted device application development.If you are using Wm 6.0 then you can test your application on Winods Mobile 6.0 device like for PPC Samsung Omnia, HTC Diamond, O2 and if you have developed your application for smartphone then you can test your application Samsung Black jack, Moto Q etc.
Pavan Pareta
|
|
|
|
|
Hi guys,
I've been working on a mobile application for making Digital Citations. It is made with EVC++ and i have it running on an HP IPaQ. Unfortunatelly because my work i have little time to keep working on it so I have decide to release the source code. It looks very similar to APS' Pocket Citation but there are some modules missing (camera, printer) that i'd like someone else work on them. Does any body know the way to release this code under GNU GPL license?
I know APS Pocket Citation is quite expensive so I think this way law enforcement agencies will have more affordable options to get digital applications.
Regards !!!
|
|
|
|
|
|
I need help with this function showDialog().
I'm using this to call camera function in my system.Before this i'm using TDS Nomad with window mobile 6 there is no problem with the system and now i'm chnging to new motorola FR68 with window mobile 6.1 it cannot display the camera.It show an error "invalid argument".Is there any different between WM 6 and WM 6.1.
This is my code..
Dim ccd As New CameraCaptureDialog
ccd.Resolution = New Size(50, 100)
ccd.Mode = CameraCaptureMode.Still
ccd.StillQuality = CameraCaptureStillQuality.High
ccd.ShowDialog()
If ccd.ShowDialog() = Windows.Forms.DialogResult.OK Then
If ccd.FileName <> String.Empty Then
PictureBox1.Image = New Bitmap(ccd.FileName)
ccd.Dispose()
End If
End If
i get this error..
message
An invalid argument was specified.
Stack Trace
at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.LaunchCameraCaptureDialog()
at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.ShowDialog()
at camera.Form1.Button1_Click_1()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at camera.Form1.Main()
Can anybody help me with this.Thank alot..
@h3aR
modified on Thursday, September 3, 2009 2:27 AM
|
|
|
|
|
Remove the resolution parameter and see if it works. I speculate your second WM device may not support that resolution.
|
|
|
|
|
Hello all,
this is my first post in this forum, hopefully I am not breaking too many rules at once.
I am writing a mobile application using Visual Studio 2005. When the mobile device needs
to synchronize with a server, I turn on the wireless hardware and then try "pinging" the
server to make sure it is available.
I want the device to try for 30 seconds and then abort with an error message.
This is code I wrote for that (myPing() just sends the string "PING" to the server and the
server is supposed to say "OK" or something like that) :
DateTime endTime = DateTime.Now + new TimeSpan(0, 0, 30);
bool serverFound = false;
while (DateTime.Now < endTime && !serverFound)
{
System.Threading.Thread.Sleep(100);
serverFound = Client.myPing();
}
Strangly, sometimes (but not always !) the loop keeps executing forever. I inserted logging statements to verify that the loop keeps executing (doesnt hang). It's just the condition is never false.
I fixed the code by using this instead :
int endTime = System.Environment.TickCount + (30 * 1000);
bool serverFound = false;
while (System.Environment.TickCount < endTime && !serverFound)
{
System.Threading.Thread.Sleep(100);
serverFound = Client.myPing();
}
Which works fine. Now I would just like to ask: is this a bug in the compact framework ?
Did I do anything wrong ?
Love to hear your comments. Thanks for reading.
modified on Wednesday, September 2, 2009 7:55 AM
|
|
|
|
|
KingLooie, I've never heard the .NETCF has problems (bugs) related to this issue. I do not know how experienced you are but I suggest that you do some search around timers in .NET.
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx[^]
Is the code you post running from the UI thread?
Although you made your code work, try using the OpenNetCF timer in your example to see if it runs exactly the same way even if the phone is in suspended mode.
Fergara.
|
|
|
|
|
Thanks for you comment and your suggestion.
Right now, the synchronisation is triggered by manually pressing a button,
so suspended mode is not a topic. Since it will only work when the user is
in range of the wireless network (before and after a tour) there are currently
no plans to add automatic synchronisation at this time. Maybe later sending
the data using GRPS will be a topic but not yet.
I am not using multithreading either.
About me, I am quite experienced in general windows programming, but I am still
learning new things concerning .NET and mobile development.
|
|
|
|
|
I m trying to Run black berry application on simulator after installing JDK,JRE, Eclipse And Appache Ant etc
But when i Run build.xml As RunAs Ant then get some building erorrs like this
Buildfile: E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
buildAndPackageTarget:
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
clean:
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
[echo] Target ${alias} was cleaned
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
preprocess:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[wtkpreprocess] **************************************************************
[wtkpreprocess] * Antenna 1.0.1 initialized for project "telSPACE Java" *
[wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.0; MIDP-2.0) *
[wtkpreprocess] **************************************************************
[wtkpreprocess] Preprocessing 40 file(s) at E:\Current\BlackBerry Projects\4th\mfunds-java\src
[echo] Pre-processed successfuly with: ${platform}, ${platformver}, ${alias}, ${alias2}
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
compile:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
BUILD FAILED
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:334: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:377: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 18 seconds
plzzzzzzz suggest some solution
|
|
|
|
|
Hi,
for normal .net framework, we can use the existing ini class that uses kernel32.dll.
Is there any similar class for the compact framework?
what is the way i can read an ini file on compact framework???
Thanks.
|
|
|
|
|
The standard Windows functions for INI files are not in the Windows Mobile SDKs so I doubt there's a way to call them from the Framework. You have to implement your own INI file interface (or maybe there's a class available somewhere!?). Otherwise, I suggest using the registry instead...
|
|
|
|
|
|
Hi Everyone,
I am new to smart phone and pocket pc development using visual studio 2005.
I have applied lots of search to get the help for obtaining IMEI number of PPC and Windows mobile using VC++ but could not succeed, if any one know some stuff about that how to get IMEI no of mobile please guide me.
I need only logic how to get it, not need any dll. Though I found some sample in C# I am not sure how to use that. Please concern my thoughts.
Thanks in advance,
Programmer...
|
|
|
|