JerberSoft's Q&A profile
Windows Live Developer Forums Scale and messages language?
The default scale is in miles, can I setup the scale in km units The server messages appears in English, can be setup so that they appear in other languages Thanks!! Default scale is miles. You can call this before or right after map initialization: MapControl.Features.ScaleBarKilometers = true; This will set the scalebar in the bottom of the map to kilometers. When you calculate routes, you can specify which unit to use. I don't think the server messages are in other languages. You can translate them yourself by overriding them. ...Show All
Windows Forms Problem on access checkbox value in datagridview
I have a datagridview that contains an unbound column named "itemsApprovedCheckBox". I also have a button called ApproveStripButton in my form. I have the follow code for my ApproveStripButton Click event: private void ApproveStripButton_Click(object sender, EventArgs e) { for (int i = 0; i < myItemsDataGridView.Rows.Count; i++) { if((bool)myItemsDataGridView.Rows[ i ].Cells["itemsApprovedCheckBox"].Value == true) { //whatever } } } But everytime I clicked on my button, I get an NullReferenceException was handled error - Object reference not set to an instance of an object on if((bool)myItemsDataGridView.Rows[ i ].Cells["itemsApprov ...Show All
Windows Forms Any way to tell if scrollbar is being displayed in ListView?
Hi, Is there a way to determine if the vertical scrollbar is being displayed in a ListView I didn't see any ListView members that indicate this... any other way to do it Thanks, Leah C. Try this - private const int WS_HSCROLL = 0x100000; private const int WS_VSCROLL = 0x200000; private const int GWL_STYLE = (-16); [DllImport("user32", CharSet = CharSet .Auto)] private static extern int GetWindowLong( IntPtr hwnd, int nIndex); internal static bool IsVertical ScrollBar Visible (Control ctrl) { if (!ctrl.IsHandleCreated) return false; return (GetWindowLong(ctrl.Handle, GWL_STYLE) & WS_VSCROLL) != 0; } internal static bool IsHorizontal ScrollBar Visible (Control ctrl) { if (!ctrl.IsH ...Show All
Windows Live Developer Forums find a category
hi, i'm trying to use find(), to search categories, eg train station, Churches, hosipitals.. but i found the results return are not right, is there any other way i can do such kind of search thank you! Yuki is mappoint free i'm currently working in a php environment, what's the libray file do i need to include in my php or javascript, do u have a sample code that using php or javascript with mappoint functions does mappoint work in the browser other than IE Thanks Yuki ...Show All
Visual C++ MSVC 2003: ctor-try-block error: possible compiler bug
This message was originally posted to comp.lang.c++.moderated ----------------------------------------------------------------------------------------------- Hi! I 've faced a problem in my production code. I could deduce this problem to program shown below. It seems, that try-block in constructor doesnt work as it should (compared to case where no try block exists at all). I tested this small program on my MSVC .NET Pro 2003 (and separately on PC with MSVC2003 SP1 installed). In both cases I experienced the same behaviour - access violation. Please see comment inside the program body. To get this sample work - just comment out try block in ctor. Have anyone faced such behaviour before Is there known workarounds Thanks. Kiri ...Show All
Visual Basic Can VB6 code be compiled in VS2005 and run native in Win2000 without requiring .NET framework?
the win2000 server that the compiled dll will be running on does not allow .net2 framework to be installed. thus i wonder if it is possible to use VS2005 to compile the VB6 code into a dll that can run natively in win2000 server without installing the framework. any help will be much appreciated. thanks! If you are not able to install the framework on the server then you must revert back to VB6...Use vb6 to write your code and then to compile the dll! ...Show All
Visual Studio Express Editions Problems Compiling
I'm having troubles compiling my program and I'm not sure why it isn't generating the correct names. G:\RadASM\Cpp\Projects\TypeSpeech>cl TypeSpeech.cpp /link /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. TypeSpeech.cpp Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. /out:TypeSpeech.exe /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib TypeSpeech.obj TypeSpeech.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function "long __stdcall WndPr ...Show All
Visual Studio Can't find Class Designer
I have looked at the documentation but I can't find the Class Designer. I know that I need to add a Class Diagram to the project but I can't find a Class Diagram (in the templates) to add. I searched this forum and found Can't find Class Designer on IDE . I have tried the instructions in the documentation and that thread but I can't find a Class Diagram to add. We have VS Professional Edition installed. It is not a beta version. I did not install it so if it can be installed without the Class Designer then I would not have known that. Is that a possible explanation for why I can't find Class Designer When I try to add a Class Diagram to the project, I see templates only for VC. Is the Class Diagram template in a different Category ...Show All
Visual Studio 2008 (Pre-release) Is this forum live?
well it is live since you can post and I can post and many people can see this forum :-) If you mean why there arent any posts well, who knows - not many people maybe using the CTP or orcas and posting relevant questions ...Show All
Visual Studio Team System Team Explorer won't remember my password
When I first installed Team Explorer (with Visual Studio 2005) it remembered my password. They make us change our passwords every three days (I'm exaggerating a little). Once I changed my password, it began prompting me for a username and password every time I started Visual Studio. There was no "remember my password" checkbox visible in the dialog. I was forced to reinstall Visual Studio a while back, and after doing so, Team Explorer once again saved my password. But, yesterday was password change day, and now I'm back to re-entering my username and password every time I start Visual Studio. What's the deal In Windows 2003, take a look at the " ...Show All
.NET Development pulling info out of a string(xml) in c++?
I am new to XML and I don't really know how to access the information in c++. I have some code that is returning a directory and file tree to me in a string that has xml code in it. I need to know how to get all of the information pined between the href tags and stick them in a vector. I just don't know how to parse the string easily. I could write my own string parser specific to this case but I would rather not. Any thing out there already If you need a sample file I can post a simplified version. And if you need code I can post that also just let me know. Thanks a lot Matt In .NET you can use System.Xml.Reader class to parse string. Outside of .NET you can use MSXML: http://www.perfectxml.com/CP ...Show All
Visual C# Problem With ClickOnce Update
Hi!! I had published and installed a sample application using the click once. Then i had then updated the sample Application version and published the updated version(Just Published and not Installed) . Now when i run the previous version for the first time, i get the Message "Update is available,Would u like to install it. YES or SKIP". when i click the "Skip" button, the previous version is opened. But when i close the previous version and then again start the previous version , i dont get the update popup. I dont know why the update is not be checked for the second time...... How to solve this issue...PLz help me out.....This is an Urgent Issue....... check this blog entry. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing on texture
Hi :) Background: I have a very large 2D (tile-based) game map that I want to represent in a smaller window when the user hits a key. What I plan to do is create a small texture representation of that map when it is initially loaded and then display it when necessary. This texture would be a 512x512 pixel grid of which I need to colorize/set about 20% of the pixels at runtime. Question: Can someone please explain how to draw individual colored pixels directly on a Texture2D texture The XNA help on using SetData<T> is scarce at best and I'm unsure of what type of info to pass into it. TIA! Im a noob and this might sound too simple, but could you just draw a new sprite on top of the exi ...Show All
Windows Forms Temporary Behavior, Need Help
I am creating a control with a custom designer that should allow a data object to be dropped onto it, setting some properties. This object will be coming from another application. I've already been able to implement this by overriding the OnDrag events of the control's designer, but I'd like to do it "more correctly" by attaching a behavior to the control's body glyph and overriding those drag events. The idea being I could just add another behavior if I needed to support another drop source, as well as reuse them for other objects. This behavior/glyph should only be active during a drag operation, and more specifically during a drag from outside the process. Is there a clean way to do this Thanks ...Show All
SQL Server high Availability cubes: During Cube metadata updates + ProClarity
Hi, This is a kind of solution design issue. Scenario: We have a web page that displays information from a Oracle data warehouse. We collect the required information in the page and have used AMO to create cubes and other related objects from this information. The source for the cubes in SSAS 2005 would point to Oracle. This is modelled as a web service and used within the web page. Once the Cube gets created in SSAS, we model ProClarity graphs on them. The problem: The users can invoke the AMO web service from the web page, to add a new MeasureGroup to an existing cube. Once this is done the Cube becomes non-browsable. because we are adding a new MeasureGroup and thus modifying the cube metadata. In detail, If the new MeasureG ...Show All
