Answer Questions
NoEgo CF to load&insert image datatype into SQL Server 2005?
please.. can you help me to load & insert image into SQL VB.net sample code will be great. thx b4 and another thing, how can we make an on the fly events such as onclick of a button thanks Ilya, but i found another link this is how I insert Dim fs As New FileStream _ (OpenFileDialog1.FileName, FileMode.OpenOrCreate, _ FileAccess.Read) Dim MyData(fs.Length) As Byte fs.Read(MyData, 0, fs.Length) fs.Close() con.Open() Dim da As New SqlDataAdapter _ ( "select * from detailImg " , con) Dim MyCB As SqlCommandBuilder = New SqlCommandBuilder(da) da.MissingSchemaAction = MissingSchemaAction.AddWithKey da.Fill(ds, "img" ) Dim myRow As ...Show All
Anmol Ranka Breakpoint will not currently be hit in smart device DLL
I am trying to debug a C# .Net Compact Framework 1.0 application for Pocket PC using Visual Studio 2005. The application is made up of a number of DLL projects. All the projects are set to Debug, and they all deploy to the device fine. When I debug the application I can set breakpoints in all the classes except those in one particular project. Breakpoints are not hit in this project, and when I am stepping in other classes that use objects from that particular project, the debugger says "Could not evaluate expression" What I find even weirder is in the debug output it says "Symbols loaded" for that particular DLL, but in the Modules window the DLL is not listed. Even though the debug output indicates it is loaded and t ...Show All
alpefusk Force GPRS disconnection ?
As part of the application I am developping I sometimes have to force the GPRS connection to be shut down. For security reasons, the GPRS gateway of our wireless carrier voluntarily stops to enrich HTTP request with device MSISDN after a given period of GPRS traffic inactivity (GPRS connection being opened). Without this enrichment, our server can't identify the client and rejects its requests. A solution we found out was to explicitly close the connection and re-opens a new one if it has not had any HTTP activity for more than 'x' minutes, thus creates a new session with the gateway. So, we call ::RasHangUp() on every opened RAS connection and let the ConnMgr try to reconnect. (I know this is a rather extreme solution). The problem is tha ...Show All
Billr17 Running a DLL like an EXE
Hi, This may seem like a silly question, but is it possible to have a DLL just run by itself I know that the registered DLL will be accessed at startup by it's DllMain function (and then it's xxx_Init function... or is that wrong ), and this function will lock out all other processes. So I can't just go linking the rest of my program from there. But, is it possible to spawn a thread during the start up functions so that the program will continue to run Basically I want to just use my functions in a never ending loop in the background, so to write an EXE which just sits there calling the function seems a bit wasteful. Thanks for your help. Dan. I pretty sure XXX_Init and all other XXX comm ...Show All
Yodatg problem with pInvoke
I'm developing an application for pocket pc 2003. I need to use a dll with exposed C function to connect to an external device. Edit: the framework is 2.0 err System error codes and their descriptions can be found at http://msdn.microsoft.com/library/default.asp url=/library/en-us/debug/base/system_error_codes__0-499_.asp 6 is for ERROR_INVALID_HANDLE 87 is for ERROR_INVALID_PARAMETER So the error could be in the way you declared the types and invoking the function in managed code. You should at least post native declarations of these functions including all relevant types like tot_return . Solv ...Show All
cplusplus1 how to record the voice?
I want to record the call's voice. How to do that My develop platform is c# .net cf 2.0. Thank you. Please do not cross post. Merging threads... I want to record the call's voice. How to do that My develop platform is c# .net cf 2.0. Thank you. Please see this (you can skip the initial question, proceed strait to the answer): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=564626&SiteID=1 Are there any function at opennetcf can solution the question I want to record the call's voice. How to do that Thank you. No. You can record voice with ...Show All
0xDEAD Mobile application development : Which should use eVC++ or .NETCF ?
Hi, To develope a mobile application what platform any one should select between .NETCF 2.0 and eVC 4.0. Can you also mention the situation where each one would be most acceptable. You should be asking following questions Do you want to use native C++ code to do the programming OR You want to use managed code (C#, VB.NET) to do the programming What is the best IDE The answer is VS2005. You should not be using eVC++ to do the programming because many new features, devices, emulators have been added to VS2005 since eVC++ and you should be taking advantage of the new features. VS2005 supports both native & managed code. Manav it depends on what you're doing. using an environment that supports C++ gives yo ...Show All
Bianca_it Bluetooth programming
Hey, I have been working on a bluetooth program in c++ that will find devices and display them and send files to them. But I cant get it to work. I have tryed to use the Bluetooth Api and winsock. But no matter how I choose to look at it, will it not work. Under are some codes and links I have been throw.. My question is, If someone could make me a sampel of code that work. Would I be more than HAPPY! Hey, I was wondering if I could get some help with a project. I am trying to make program that find the bluetooth devices in range and show them to me. But with no luck. I need some serious help with this. If some one could give me apush in the right direction or a code sampel or anything would I be more then happy: Some codes I have been th ...Show All
Ralph13 creating cab files
Hi i am creating a cab file to install a program written in visual basic.net onto a pocket pc. The program was written in visual studio 2005. The project that creates a cab file uses cf version2 and my pocket pc although capable of windows ce 2003 has the earlier version. According to the help file my program will still run on my ppc but i may need to create my cab file using cf1 dll's. My question is how do i do this. I have tried opening the smartdevice cab file project and adding all the dll's but when i click on the project output choice on the right click menu all the v2 dll's are included. any ideas I was afraid someone would say that! I will try re-doing it as a version 1 project. thanks a lot. I'm afraid ...Show All
ottogbg Problems with Bluetooth Connection
Hello! I have a smartphone Qtek 8300 and Bluetooth pulse oximeter Nonin 4100 ( http://nonin.com/products/oem/4100.asp ). I'm a novice in Communication programming. My task is to write application that connects to this pulse oximeter and recieves some data. I have specifications of Nonin 4100 ( http://www.nonin.com/documents/4100%20Specifications.pdf ). As I read in this document I must use SerialPort for working with this pulse oximeter. But some people advice me to use WinSock but I don't know C++. I have some code on C++ and I don't know what can I do... :( BYTE buf[125]; if( (buf[0]!=1)||(buf[5]!=1)||(buf [10]!=1)||(buf[110]!=1)||(buf [115]!=1)||(buf[120]!=1) ) { // error return; } TUint16 HR = buf[3]; TU ...Show All
tovarish how to handle cancel key
hello all, How can i detect if user presses END key, i.e. red key (generally used for ending the call). i am working on smartphone 5.0. problem we are facing is it is ending the connection when it is pressed , when application is trying to connect. regards Rashmi Todkar Rashmi, I believe that you need to P/Invoke to the RegisterHotKey API and handle the WM_HOTKEY message. There's a discussion of it on the OpenNetCF Consulting forum . I haven't had a chance to verify that this works, so I'd be grateful if you would let me know what you find. HTH Dan ...Show All
RyomaEchizen WLN Messenger Add-in Wishlist
It seems the Messenger Liver Add-in API is a great start, but some great functionality is missing. I'd love to see these features: Place calls over Live Call from an API. Receive event notifications on incoming calls and chats. Send SMS messages through WLM. Access the History of a chat conversation while the window is open. Add my own toolbar or buttons to some of the WLM UI windows. Access the user's contact list programatically. And more. Do you guys have a beta program I could participate in to get acces to the newest API releases Best Regards, Gavin Stevens MCP, MCAD, MCSD.NET MCSD Software, Inc. http://www.MCSDSoftware.com MCSDSoftware<at>gmail.com (602) 405-4799 "If it keeps up, man will atrophy all h ...Show All
Dariuas What wrong in this code for smartphone work well in pocket PC
#include "common.h" #include "MYappext.h" #include "MYContactsProvider.h" extern LONG g_cRefDLL; extern HINSTANCE g_hinstDLL; UINT cmdCtxCustom = 0; UINT cmdCtxJournal = 0; UINT cmdCtxSales = 0; UINT cmdCtxFax = 0; UINT cmdCtxAdd = 0; UINT curCtxCmd = 0; const int WM_CUSTOM_FLDS = 0x0415; const int WM_JOURNAL_FLDS = 0x0416; const int WM_SHOW_SALES = 0x0407; const int WM_FAX = 0x0431; const int WM_EDIT_CONTACT_EXT = 0x0408; ContactsContextMenu::ContactsContextMenu() { MessageBox(0, L " ContactsContextMenu " , L " Constructor " , 0); m_cRef = 0; m_punkSite = NULL; ++g_cRefDLL; ...Show All
Andrew Buyan How does VS go about determing the location of referenced dll's in a project
Hi all, I have a project that will be deployed to a mobile device, and have some references to some Symbol dll's that are not being found on my PC (in work they are found ok). Now the path to these DLL's is blank in the properties window, yet the other DLL's being referenced have a path value (mainly pointing: C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE). Does VS have a certain order in which it looks to find DLL's that don't have a path (such as check the GAC etc) Also, if I open up the Proj file in TextPad the reference entry for the Symbol DLL has a HintPath. But the path in this entry doesn't exist on my PC - would it use this Path to locate the dll normally Thanks ...Show All
JR Lyon CeFindFirstFile using VB6
Ok, my first Smart Device project and I've come to a bit of a standstill, trying to find out what files are on the device. Tried the CeFindAllFiles, but from what I have read I don't think it will function in VB6. So, on to CeFindFirstFile and and CeFindNextFile. It all looks so easy. I'm confused as to how you set up the returning information. I keep seeing references to 'CE_FIND_DATA', but what is that all about If anyone has an example or ideas it would be appreciated. Bert Thanks, I can see the article now and the sample code, which pretty similar to what I already have. I can send a file from the pc to the pda, and I think I could get the reverse process to work, with what I already have, but that i ...Show All
