DodgingRain's Q&A profile
Smart Device Development WSDL bug
Hi all, wel i m working on windows mobile 5, i created a web service with a method "Invoke" when i generated its proxy via wsdl , the utility get confused by the EndInvoke method which it inherits from base class and the one it generates for it self for asynchronous calling. wsdl generates 3 methods for each method in a webservice, <function>() Begin<funtion>() End<Function>() it aslo has 2 mehtods BeginInvoke and EndInvoke, the generation utility does takes this exceptional scenario into account so i have to edit the reference.cs manually anyother workaround for this regards well this web service is part of enterprise solution that we are developing, this is not problem on full version of .net fx as wsd ...Show All
Visual Studio Does ReportViewer run in Medium trust ?
Hi guys. Just wondering if this thing runs in Medium trust, haven't found anything about it anywhere on internet. If not , are there any workarounds Regards. ademar yeah, just tracked the culprit here : private ReportSnapshotBase Snapshot { [PermissionSet(SecurityAction.Demand, Unrestricted=true)] get { return this.__ReportSnapshot; } [PermissionSet(SecurityAction.Demand, Unrestricted=true)] set { this.__ReportSnapshot = value; } } ...Show All
Windows Forms Window shrinking on restore.
I'm using Visual C# 2005 Express to make a windows forms application. The application works fine but when I added some user settings to keep track of the window size and position, the window shrinks to no size when the window is restored. If I start the application, resize the window, and close it, it will remember its size and position on restart. When I minimize the window and then restore it, however, it briefly returns to it's original size (a fraction of a second) and then resizes itself to have no client area at all. I can then manually resize it to it's original size. What is going on Thanks for any help. Bob Don't you have code in the form's resize event like Properties. Settings .Default.ClientSize = t ...Show All
Visual Studio Team System Custom rule dlls
I've created some custom rules dlls, and put it in C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules, it works fine. However, I want to put the custom rules dlls in solution folder and include it when loading my solution or starting visual studio, other developers can get and use the rule dlls from source safe when they get the source files, therefore, it does not require to ask everyone to copy dlls to the default rules folder. Is it possible to do so Thank you very much!!! Unfortunately there is no process to automatically deploy custom rules, this feature is being looked at for future versions. Moving to the managed code analysis forum as this is more appropri ...Show All
Visual C++ Add function or variable bug
I open VS2005. I create a Class Library CLR project. A default class is created called Class1. I go to Class View. I click on Class1. I right click and choose "Add | Add Function..." and receive an Error message box with the message of "A Runtime Error has occurred. Do you wish to debug Line: 842 Error: 'ParameterTypeValueLength' is null or not an object." If I then click No I am taken to another Error message box with the message of ""A Runtime Error has occurred. Do you wish to debug Line: 498 Error: Object doesn't support this property or method." If I then click No I am taken to the "Add Member Function Wizard". Is this a known bug Yes, you are certainly r ...Show All
Visual Studio Express Editions c++ structure to vb net
I have the following c++ struct: typedef struct { WORD idReserved; // Reserved (must be 0) WORD idType; // Resource Type (1 for icons) WORD idCount; // How many images ICONDIRENTRY idEntries[1]; // An entry for each image (idCount of 'em) } ICONDIR, *LPICONDIR; typedef struct { BYTE bWidth; // Width, in pixels, of the image BYTE bHeight; // Height, in pixels, of the image BYTE bColorCount; // Number of colors in image (0 if >=8bpp) BYTE bReserved; // Reserved ( must be 0) WORD wPlanes; // Color Planes WORD wBitCount; // Bits per pixel DWORD dwBytesInRes; // How many bytes in this resource DWORD dwImageOffset; // Where in ...Show All
Visual Basic First time user of Visual Studio 2005...need help DESPARATELY
I just started using visual basic the otherday..from visual basic 6....which by the way I'm still trying to master. Anyway i started this project that I saved and possibly built even before I could finish it. Now I can't get my forms to open in the windows form designer...even when I double click them in the solutions explorer... Detailed assistance required Please....I have a deadline for this project....and already facing hurdles We can't help you if you don't help us help you. At the very least, tell us what error you are getting when you try to open the form in the designer. Oh, and tell your boss that it is going to take a bit longer than anticipated, switching from VB6 to VB.NET is rough going. ...Show All
Windows Live Developer Forums GetMapView() TopLeftLatLong/BottomRightLatLong oddity
Im using GetMapView () with TopLeftLatLong and BottomRightLatLong to display a set of pushpins in the visible area of the map and i am seeing some weirdness with the values being returned for BottomRightLatLong. On page load i obtain the values i need using var v = map.GetMapView(); alert( "Vis cTOP LEFT" + v.TopLeftLatLong); alert( "Vis cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong show as: 42.488966 -83.102903 I also have an event attached to a mouse click which uses the same exact code: var v = map.GetMapView(); alert( "Click cTOP LEFT" + v.TopLeftLatLong); alert( "Click cBOTTOM RIGHT" + v.BottomRightLatLong); The values returned by BottomRightLatLong for the click function show as: ...Show All
Windows Live Developer Forums pushpin limit?
i coded an app that integrates with the mappoint 2004 object (not web service) and there is a limit of 10k pushpins per map... is there a limit like this with virtual earth and/or mappoint webservice i have a client that may have more than 10k pushpins per map... Check the article at: http://viavirtualearth.com/VVE/Articles/Clustering.ashx Basically you need some other means to only show < 200 points on a VE map at one time. Firstly given the current view you can only show what is visible or following the article you can use some simple clustering so at high zoom level points are merged into a cluster, as you zoom in they break apart into their repective points. The article uses vb.net 2.0 to show 1 million points on Virtual Earth ...Show All
.NET Development help with EventInfo please...
I have to use reflection to get the methods added to an event. How do I do this Thanks in advance, Devin EventHandlerList is the underlying class type for an event. It will not let you access in the internal delegate list directly. Its Item property only lets you index the list with a key that's locked away in internal framework classes. ...Show All
Visual C# Bit Fields
Hi all I am trying to convert code that being written in C++ to C# and I found that structure that using a property in C++ called "Bit Fields" and I didn't found it in C#, is there any way to convert it to C# thx all typedef struct _tagCPB { unsigned short DialMode :1; unsigned short LineToPBX :1; unsigned short TriggerMode :1; unsigned short DetectRoaringRemoteHangUp :1; unsigned short DetectBusyRemoteHangUp :1; unsigned short DetectRemoteHangUpWhenRecording :1; unsigned short DetectRemoteHangUpAlways :1; unsigned short StopOperationRemoteHangUp :1; unsigned short MonitorDTMF :1; unsigned short MonitorEnergy :1; unsigned short DetectVoltReverseRemoteHangUp :1; unsigned short DetectSilentWhenRecording :1; unsigned short LearnPuls ...Show All
.NET Development GetBytes() issue - attemting to load into a MemoryStream object
Hi all, I have a column in my database that is of type image (bytes) and what to load this data into a System.IO.MemoryStream object but can't seem to find out how to do it. Hopefully, someone out there would have had experience of doing this and can show me the way. I have the following code... System.IO.MemoryStream stream = new System.IO.MemoryStream(objSqlCeDataReader.GetBytes(0, 0, null, 0, int.MaxValue)); ...which I know is wrong as I think this call to GetBytes() only returns the size/length of the total bytes as I am passing in a null buffer (3rd param). How can I do the database call and pass it into the MemoryStream object in one scoop Thanks Hi, Take a look at this article for sample code: http://www.codeproject.com/cs/da ...Show All
Visual Studio Tools for Office Is there any "Hello World" tutorial for an Outlook 2007 Add-in ?
When I tried to create an add-in for Outlook 2007, I thought everything went smooth and seemed okay, even compiling the project and starting outlook when I clicked the play button. However, nothing happened, i.e. the code in the method "ThisAddIn_Startup" does not seem to ever become executed, but I never get any kind of error message.... Here is what I have tried to do from Visual Studio 2005 Professional (and I also have installed Visual Studio Tools including second edition): "File - New Project - Visual C# - Office - 2007 Add-ins - Outlook Add-in - OK" Then Visual Studio 2005 generates two project (one of them is the setup project). Then I add one line of code in the generated empty method "ThisAddIn_Startup" like this: private void ...Show All
SQL Server Force Excel Column type when exporting from SSRS
Hi all, I have a tricky behavior here. I have a column in my report which contains alphanumeric codes. When I have a code like 17E001 and I export the report to Excel, excel kindly shows that alphanumeric code to 1+E7 and the value of the column is changed to 1700 which is defintly not what I want. So I was wondering if there is any way to force the column types when exporting from SSRS Sebastien. By the way if there is a way to force all columns to be formated as Text that will do for me as the excel reports are only used to process data using SSIS. ...Show All
SQL Server Avegage from 4 columns
I have 4 columns and i need average from this columns. I can sum values from this columns and divide by 4, but this is inproper in case of nulls. Is there any easy way to do that Right now I'am using: You can use some other syntax to shorten the notation, but you will have to do essentially the same logic. If you have the choice to reorganize you tables, you might want to put the four columns in a separate table. That would allow you to use the Aggregate functions, which already have the NULL handling. Here is an example that shows how to use other functions to shorten the notation. In order to prevent a divide by zero in the case where all 4 columns are null. I chose to return 0, but you could also return null. drop table #colAvg ...Show All
