Answer Questions
kschuler Using a cdb database with evc++ 4.0
Hi there, I'm quiet new at this stuff (former VB6.0 programmer) and now i'm trying to build an apllication wich should access a database with 5 table's. This application should be running under windows CE 5.0 and therefor i chose the *.cdb database. This is how far i'm right now, i don't have enough background in evc++ or c++ to fully understand the info from the MSDN. Has anybody got an example for me to get me on the way I guess you'd have to get up to speed with C++ then. As to using deprecated database, it’s way worse than using “unproven” EDB. Not to mention you can use SQL CE/Mobile which is a proven database. the fact i choose this dBase is that *.edb hasn't proven itself ...Show All
SmallRat Custom push pin no longer works after update.
After the recent update to the virtual earth, the custom pushpin code that was provided by Dr. Neil from a previous post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=449200&SiteID=1 ) no longer worked and generated a javascript error. This was also confirmed by visiting his site that it was not just a problem with what I did. To fix this issue I had to change the display method that was previously window.ero.display(e); to window.ero.dockToElement(e); I am not sure for the reason of the change, but thought I would post this in case it helps anybody who might have used this code or a variation of it mentioned in the post. This is a good example of: 1. Why it is risky ...Show All
Jassim Rahma Using HHP.DataCollection.Decoding.DecodeControl to scan the barcode
On a form, there are 3 textboxes to scan barcode. I need to know which of the 3 textboxes triggers the scan barcode event, so that I can display the barcode on that textbox. Is there any way to do this Finally manage to resolve the problem. ...Show All
Henry Ong Problem with OpenNetCF SoundPlayer/Player Classes
Hello, I want to play a .wav file using the SoundPlayer Class(OpenNETCF.Media) and right afterwards a video file. The problem is that i cannot find a mechanism to control whether the .wav file is completed or not in order to start playing the video file so the video starts while the sound file is still playing. I didn't find any event in the SoundPlayer Class that could be fired when the sound file is completed and i didn't find also a property that holds the state (playing or stopped) of the file. The Player Class (OpenNETCF.Media.WaveAudio) provides the above event and property but takes a stream as an argument and not a file which i think is easier to handle than streams. Should i work with the Player Class and define str ...Show All
Problem with Creating a Report Getting file's directory
I'm trying to get the full directory path for a file in VB .NET and have tried a variety of techniques. My biggest problem is either a 'NULL' return or a "" return. Attempts include: 1. FileSystemInfo.FullName .... this returns a Null 2. FileInfo.Directory....returns a Null How do I get this work without it returning a null result Thank's for that last post...unfortunately I'm working in VB .Net. Maybe if my questions were better worded I wouldn't waste your time. Sorry. You're trying to get full directory path of what I'm trying to retrieve a directory path of a file. Hi, try this using System.IO; FileInfo File = new FileInfo (FileFullPath ); Directory = File.Directory.T ...Show All
Sacristy VS2005 Deploy to CF Card
I have a VS2005 Deployment Project and want to install myApp to the \CF Card\myApp directory. I tried adding a Custom Folder to my Deployment Project, but it won't let me have the "\" character in the Folder name. How do I do install to the CF Card using a Deployment Project Please post your INF file. Thanks for the quick reply. I created a custom folder name "CF Card" and a subfolder name "myApp". I put all of the files that were in the Application Folder into the "myApp" directory and did a rebuild of my Deployment Project. When I run the CAB file, it still installs everything to the "\Prpgram Files\myApp" directory. I am running VS 2005 8.0.50727.42. ...Show All
js123 How to get pixels from Picturebox
Hi, I'm developing smart device application by using CF1.0 on VS 2003. I need your help. I've a code for drawing objects (Rect, Circle, String, Image) on PictureBox. what my question is how to copy/get Pixels particular part of area and display its in another PictureBox. Please send your suggestion or links. Thanx. M. GANESAN Hi, Thanx for your response. But you said only for PictureBox.Image. My requirement is how to get current view (suppose picturebox has drawing objects like rectangle, circle...) from the picturebox. Please send suggestions. Thanx. M. GANESAN Sorry, You misunderstood my question. I want to copy particular area of a picture box and displa ...Show All
Petr Manek How to detect if a Smartphone application is put in the background?!
Hi there! Following problem: I have a Smartphone application which has main window which consists of a single (docked) TreeView. I need to perform certain tasks when the application is put in the background. That is when the Escape/Back key (KeyCode 27) is pressed. However it looks like and TreeView / ListView eats up that KeyCode. I tried a number of things but i simply can't get the escape key event. This is probably because the escape key might also be used to collapse tree nodes. So how on earth can the application figure out, when it is put in the background when neither the TreeView nor the Form fires the KeyUp event for the Escape/Back key Do i have to do some dodgy constructs with the OnDeactivate / OnMinimise event ...Show All
B M E Close but no cigar - Bug plotting polygons
There seems to be a problem plotting polygons and polylines when you have your display DPI set to large fonts (120 DPI) rather than normal size (96 DPI). I've been trying to so a relatively simple plot of a square on a map. My problem was that the square wasn't centered around what should be the mid point correctly. My first thought was that I was doing something wrong so I tried plotting 2 squares one with the top left at the same Lat-Long location as bottom right of the other one. It ended up that there was a big gap between them. It struck me last night that the problem might not be me and on a whim changed my display DPI setting, magically the corner of the 2 squares were at the same point. What seems to be happening when I ...Show All
Ice-Ninja Visual Studio 2005 Pro -- create a resource for Windows Mobile 5 program
I would like to create a resource -- a bitmap file -- for a windows mobile 5 application, after which I hope to write code to read it into an HBITMAP, after which I hope to write code to manipulate the pixels directly. Where do I ask how to create a resource that I can access with LoadImage in my program I will go and look again to see if I can find Visual Studio help files somewhere to download and look in, but the help that Visual Studio provides appears to look through everything in God's creation for any search string I enter, and I end up with a lot of stuff that doesn't apply to Windows Mobile, a lot of stuff that doesn't apply to C/C++, and a lot of stuff that I can't even figure out how it ended up in the search results. Perhaps ...Show All
enric vives Announcing v4 - 3D Mapping!
Announcing v4 - 3D Mapping! Today at 2PM (PST) we launched v4 of the map control, and with it some pretty amazing additions to the VE mapping world. You can read all of the blogs and marketing materials (and of course, go to maps.live.com) to get all the “wow” stuff. Here I just want to highlight what I think matters to VE developers. The Good First, we also updated the v3 control (now, v3.2). The big change here—and this is also in the v4 control—is the ability to now turn off the location disambiguation dialog and easily build your own. Check the “Finding Information” topic in the SDK. The iSDK also shows how to do this, of course. The Great On to v4: The big change, of course, is that you can now sho ...Show All
Greg Beech Is a Pushpin image centered over or placed after a specific LatLong?
Hi, I am wondering whether a (custom) pushpin icon in Virtual Earth (VE) is centered over the LatLon position or placed html-style-like with the top left corner over the position. Comparing the position visualization via a pushpin icon in both Google Earth (GE) and VE indicates that the latter case seems to be true. However, the differences between GE and VE may also arise from general variation in geopraphic visualization. Anyone knows more about this Yes. By default, all pushpins (default and custom) are centered on the LatLong you specify. A simple tweak to the CSS allows you to place them however you want. The next version of the SDK will be out soon, and in there I show adjusting the position of a c ...Show All
BubbaRichard UPnP (once more): linking problems
Dear all, I am writting an application for windows mobile in VC++ 2005 and when I compile my program, I get error LNK2001: unresolved external symbol IID_IUPnPDeviceFinder and unresolved external symbol CLSID_UPnPDeviceFinder I included the "upnp.h" from UPnPctrl part of the MS Server Components but I get that error. I have also included the path to upnp.h in the project properties. I noticed that there is no .lib file included in the /lib directory of UPnPctrl part. do you think that this must be a problem Any help will be really appreciated. Thank you in advance. PS. The error comes up when I use the CoCreateInstance(CLSID_UPnPDeviceFinder, NULL, CLSCTX, IID_UPnPDeviceFinder, (void **) &finder); ...Show All
xplosiv_1 Draw nice line Compact Framework
I want to draw some lines and basic shapes on screen in Compact Framework. I've used the Graphics class and a bitmap, and then added the bitmap to a picturebox. The problem is the lines look like *** when they are not going straight up or to the side, and by *** I mean that it looks like stairs. Anyone know how I can fix this problem Try the AntiAlias SmoothingMode when drawing your line. Any chance we can see some of the code that's causing you problems Maybe implement the bresenham line algorithm yourself (it's very simple), and set each pixel. http://en.wikipedia.org/wiki/Bresenham's_line_algorithm Something like this: ...Show All
Gianluca Colucci Error: Object doesn't support this action
I'm doing Live Contacts Control intro from: http://dev.live.com/contactscontrol/v0.2/getstarted.aspx When I refresh the page I see the control and logo for a moment then it shows an error: "Error: Object doesn't support this action" How can I debug this First, which browser are you using If you're using Firefox 1.5, you'll need to get the Venkman plugin to debug JavaScript in Firefox. If you're using IE6 or IE7, you'll need to enable script debugging in the browser (Tools: Internet Options: Advanced, uncheck both "Disable script debugging" options), and possibly add a script debugger (I can't recall if the script debugger is already there or not). If you have Visual Studio installed, you're done, as ...Show All
