|
|
We are working on Windows Mobile 5.0.(VS 2005 VC++) Bluetooth Search is established using WSALookup Service.
Things to resolve are :-
1. We want to pair the device detected.
2.We want to set the Paired device a com port (say COM8) as the out going port.
Pl provide any code samples for the above.
|
|
|
|
|
Hi everbody,
I had problems passing strings from a c# project to an unmanaged c++ dll.
I work with vs .net 2005. I've created a smart device win32 dll with c++, exporting some symbols. In my dll i have two functions.
My Headerfile looks like this:
#ifdef __cplusplus
extern "C"
{
#endif
UNMANAGED_API int fnUnmanaged(LPCTSTR lpszMessage);
UNMANAGED_API int fnUnmanaged1(char* message);
#ifdef __cplusplus
} // extern "C"
#endif
and my .cpp is this:
UNMANAGED_API int fnUnmanaged(LPCTSTR lpszMessage)
{
return MessageBox(NULL, lpszMessage, _T("Unmanaged"), MB_OK);
}
UNMANAGED_API int fnUnmanaged1(char* message)
{
if (message[1] == (int) 'a') return true;
else return false;
}
Then I created a c# smart device pocket pc 2003 application. I import the dll and the two functions.
private void OnPressMe(object sender, EventArgs e)
{
fnUnmanaged("That tickles");
mystring= "Hallo";
bool test = fnUnmanaged1(mystring);
}
[DllImport("Unmanaged.dll")]
private static extern int fnUnmanaged(string message);
[DllImport("Unmanaged.dll", CharSet = CharSet.Unicode)]
private static extern int fnUnmanaged1(string filename);
}
The first function (MessageBox) works fine but the second was wrong. I tried the same thing with c++ dll and c# application for normal windows applications and everything works fine. "filename"was automatically converted from string to char*. But it does not work within a smart device application. The return value is always false. But it should be true if the string passed to the dll in the right way.
Both projects (c# and c++) were created automatically with .net. I changed nothing in the settings or elsewhere.
Has anybody an idea where the problem is?
Thanks, Ivonne
|
|
|
|
|
To correctly convert from C# string to C++ char* , you should mark the import with CharSet.Ansi .
The Compact Framework does not support CharSet.Ansi . You can only pass Unicode strings to a native DLL.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi,
I'm trying to develop an application in both PPC2003 and PPC2003SE in eVC++ 4.0. In this application I need to call an external program so I use ShellExecuteEx and WaitForSingleObject in order to wait for the end of the external execution. This code doesn't have any problem running in PPC2003.
My problem comes running it in PPC2003SE, the process is created in background (I can see it's runing in the Process viewer) and I'm not able to bring it foreground. I tried with CreateProcess instead of ShellExecuteEx, FindWindow and EnumWindows (to obtain the Hwnd and set it to the foreground) and the most I achieved was an inmortal window that doesn't answer to the user's actions.
With the same code I can call another programs without any harm, but I found impossible to call that one. So, could anyone give me a hint? Thanks.
|
|
|
|
|
I need to draw antialiased lines quickly. Program "Notes" do it well, but it's using an InkX control. This control is not suitable for me. What kind of API's or SDK's should I use? It is desirable to use GDI (MFC), not GDI+ (.NET)
I think, that I have to use some low-level API to draw quickly.
|
|
|
|
|
Dear All,
Can someone give me some information about mobile device (Smartphone, PDA) send and receive SMS or MMS through HTTP Protocol.
Thanks
bibi0404
|
|
|
|
|
Through an internet sms gateway there are lot outthere where you can buy for an amount some sms
|
|
|
|
|
I'm trying to rewrite a DOS application developed for Symbol PDT3100 family, for Symbol MC3000 with Windows CE 4.2 Proffesional.
Can anyone please tell me how can I develop a database application for this device and what technologies should I use?
I saw some articles on CodeProject.com using ADOCE and ... . However I think they are built to be used for PocketPC family not with such a device. For example when I wanted to install ADOCE development components on my desktop computer I got a message telling me I should install Pocket PC Platform builder or something like that.
If someone knows that this problem can be solved using some techniques please tell me how can I do that.
My development environment is Embeded Visual C++ 4.
Thanks.
-- modified at 10:13 Tuesday 17th January, 2006
|
|
|
|
|
ADOCE using the CEDB provider is pretty much obsolete. It was never very reliable.
You could consider SQL Server CE 2.0. The install page[^] suggests that you need to have eVC 3.0 and the Pocket PC 2000 SDK installed in order for the installation to succeed. This may be where the Platform Builder error message came from.
The built-in CEDB database is a property database, not a relational one. It isn't really designed to be used with a fixed schema, and it's not particularly fast.
A friend of mine has some experience with and recommends SQLite[^].
If you're moving from a Symbol 3100 to an MC3000, the company I work for could help you port your existing application. We specialise in mobile applications development, and have already ported a few applications using our Quantum porting library, which emulates portions of the Series 3000 BiosXxx calls and Symbol UK's ADL library. See our product overview[^]. If you used the ADL's Indexed File Manager feature and want to reuse that while rewriting the rest of your application, we have a compatible library.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I solved my problems with ADOCE for now and I'm trying to port my old application to MC3000 as fast as possible. I will use your suggested tools whenever my company is not in a hurry and I can spend more time on this application.
However Thanks for your great response!
|
|
|
|
|
Hi
I'm having a problem installing evc++ 4.0. The Install goes well and completes. However when I try to create a wizard based project, or any project for that matter, and compile it, I get a whole bunch of compile errors relating to paths not found. Upon examining the global paths i.e. Tools->Options , Directories tab within the IDE, I found that there are no include directories set. Whats more is that I can't set any up at all. They don't get saved. Now I've tried installing on another system and everything works outs O.K. On my system It just won't work. And before you ask, I am installing on an account with administrative privelages.
Any advice would be greatly appreciated.
Cheers
Garth
F stands for Fundamentalism, a degenerative brain disorder cured by self-detonation.
|
|
|
|
|
Is a standard Microsoft Java developer IDE?
can i create webservices or wireless application?
|
|
|
|
|
Is there any example that i can refer which allow me to play a sound, either .WAV, .MP3 in window CE? I m currently using C#. I managed to do this in WindowApplication with AxMediaPlayer, but it doesnt seems to work in SmartDeviceApplication.
Any advice will be pretty much appreciated, TQ
|
|
|
|
|
Check out OpenNetCF for a soundplayer that will atleast do wavs.
OpenNETCF.Windows.Forms.SoundPlayer
sorry can't help with MP3.
tim
|
|
|
|
|
Hi everybody!
I am looking for a way to migrate a java j2se or midp jar-file to a .NET Compact Framework compatible dll. All I find on the network so far is either Java->.NET Framework (but not CF) or Virtual Machines for Compact Framework, probably not allowing to access the java code from other C# applications running on the same device.
Thanks in advance for any help,
Roland
|
|
|
|
|
Hello,
I develop with visual studio net 2003 and I use cabwiz.exe to create monappli.cab.
cabwiz.exe request a file monappli.inf which contains a section
[ CEStrings ]
AppName="MonAppli"
InstallDir="\Stockage intégré\MonAppli"
On the x50v in "Stockage intégré" the install is ok
On the x51v "Stockage intégré" does not exist any more,
therefore I thought that the install would have created what there is on the level of InstallDir.
The problem is that the install does not take the accents and installs me the appli in
\Stockage intgr\MonAppli.
My x51v is in VM 5.0 5.1.1702(build 14366.1.0.1) in French,
in the regional parameters I am in standard French and
the language of the system is FRENCH
I do not find null share where to indicate a page of code for the taking into account of the accents,
or another method so that it goes
thank you
gbohl
|
|
|
|
|
Hai.. I had make webservice from PHP, then i make program client with dot net(mobile pocket PC with VB.NET) How i can send soap envelope to call my webservice?
Thank's Before
-- Lie --
|
|
|
|
|
how can i start Mobile Development and what should i read?
|
|
|
|
|
To start mobile development, U have to learn about Java,J2ME(Java2 MicroEdition) & to deploy your source codes you need JavaWireless Toolkit, its free on sun.com site. u can than use ur package on any java compatible mobile.
Any query related to VB.NET+Network Programming
email: sharma.hariomprakash@gmail.com
|
|
|
|
|
thanks for ur help. but what about visual studio or C++?
and is there any books?
|
|
|
|
|
Hi,
I am trying to use the another language in my pocket pc device. I'd like to make wince.nls file but I don't know how to do. How can I do it by myself? Please kindly share the knowledge.
Best regards
|
|
|
|
|
Hi, does the signal that came out of mobile phone could affect our health during the time that have a phone conversation?
|
|
|
|
|
Can any tell me why this error is coming while rebuilding the Project.....
MySocket.obj : error LNK2019: unresolved external symbol _send referenced in function "long __cdecl ServerProc(struct HWND__ *,unsigned int,unsigned int,long)" (?ServerProc@@YAJPAUHWND__@@IIJ@Z)
MySocket.obj : error LNK2019: unresolved external symbol _WSAStartup referenced in function "int __cdecl InitSocket(struct HWND__ *)" (?InitSocket@@YAHPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _gethostbyname referenced in function "void __cdecl GetLocalIP(struct HWND__ *)" (?GetLocalIP@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _gethostname referenced in function "void __cdecl GetLocalIP(struct HWND__ *)" (?GetLocalIP@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _connect referenced in function "void __cdecl OpenSocket(struct HWND__ *)" (?OpenSocket@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _inet_addr referenced in function "void __cdecl OpenSocket(struct HWND__ *)" (?OpenSocket@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _htons referenced in function "void __cdecl OpenSocket(struct HWND__ *)" (?OpenSocket@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _socket referenced in function "void __cdecl OpenSocket(struct HWND__ *)" (?OpenSocket@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _closesocket referenced in function "void __cdecl CloseSocket(struct HWND__ *)" (?CloseSocket@@YAXPAUHWND__@@@Z)
MySocket.obj : error LNK2019: unresolved external symbol _accept referenced in function "unsigned long __cdecl StartListen(void *)" (?StartListen@@YAKPAX@Z)
MySocket.obj : error LNK2019: unresolved external symbol _select referenced in function "unsigned long __cdecl StartListen(void *)" (?StartListen@@YAKPAX@Z)
MySocket.obj : error LNK2019: unresolved external symbol ___WSAFDIsSet referenced in function "unsigned long __cdecl StartListen(void *)" (?StartListen@@YAKPAX@Z)
MySocket.obj : error LNK2019: unresolved external symbol _listen referenced in function "unsigned long __cdecl StartListen(void *)" (?StartListen@@YAKPAX@Z)
MySocket.obj : error LNK2019: unresolved external symbol _bind referenced in function "unsigned long __cdecl StartListen(void *)" (?StartListen@@YAKPAX@Z)
MySocket.obj : error LNK2019: unresolved external symbol _recv referenced in function "unsigned long __cdecl ReadInBuffer(void *)" (?ReadInBuffer@@YAKPAX@Z)
X86Dbg/MySocket.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.
Laeeq Ahmad
|
|
|
|
|
Looks like you forgot to link the Ws2_32.lib with your project!
Regards,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
-- modified at 23:58 Monday 9th January, 2006
|
|
|
|