JMäkitalo's Q&A profile
.NET Development "Collection was modified; enumeration operation may not execute." error
Hello I have the following foreach loop: foreach ( string variable in _variables.Keys) { double fx = ObtieneValorParametro(variable, poliza, periodo); if (_variables[variable] == null ) _variables[variable] = fx; } Where _variables is of Dictionary<string, object> type. The only modification to the collection I'm making is to change the value of an element from null to a value, as you see. I'm not remov ...Show All
Visual Studio Crystal Reports in distributed environment
I'm writing a windows form application, and using remoting for communication between server and clients. But report document cannot be serialized and send to clients over the network. Could anyone suggest some ideas how you handle crystal reports in distrbuted environment Thank you very much!!! Hello, Here is a link to a walkthrough for exposing reports as a web service. This is how our developers env ...Show All
.NET Development ServiceController.ExecuteCommand - access denied
Hi, I got a simple service to which I want to send a custom command to make it refresh some data. I tried to do this through a console application like this: ServiceController sc = new ServiceController ( "TestService" , "Marvin" ); sc.ExecuteCommand(1); But I get an Exception: Unhandled Exception: System.InvalidOperationException: Cannot control TestService service on computer 'Marvin'. ---> System.Componen ...Show All
Microsoft ISV Community Center Forums Openning Excel from Access 97
Can anyone suggest a useful article / reference book which details how to open and close Excel worksheets from Access 97. I have copied some code from the help text into my database, but I have two probblems. One I don't really understand what the code does, and I would like to understand what is happenning. Two, the code checks if Excel is running, if not it opens it, then (with my worksheet name included) it opens the file I require; but if ...Show All
Visual C++ On adjacent ">"s in a parameterized declaration
Hello, There is a syntax erron in the following code -- adjacent ">"s need a delimiter (it is marked AAAA) template <class T> class A {}; template <class T> class B {}; int main() { A<B<int>>(); // AAAA } But VC8 can compile it. It seems to be a error but on the other hand Mr. Stroustrup have being dreaming on such a syntax for ages and he promotes it pretty vigorously now, as far as know. So, I a ...Show All
SQL Server Report Builder - is this a bug or is it by design?
After playing with report builder for some time I have stumbled upon a most annoying restriction in Report Builder: it does not allow including data from entities which are related to each other via a third entity in the following way: [table_A] many-to-one [table_B] one-to-many [table_C]. So if I want to show fields from both [table_A] and [table_C] Report Builder does not allow me to do so (unless I use an aggregate function on the fields ...Show All
Visual C# Abstract methods and cannot declare body.
I just wanted to confirm my understanding that there's no way to implement an abstract class with a method that must be overrriden but also provides a method body in the abstract class. e.g. the equivilant of a pure virtual method with a body in C++. i.e. the only way to force a derived class to override a method is with the "abstract" keyword on the method declaration. correct - or of course use an interface ...Show All
Visual Studio Team System Adding new Test Types
Hi, Can anyone tell me where I can get information on how to add my own test types to Team Test. An example would be really helpful. TIA Let me try to help. For that I need more information. Could you answer a few questions for me 1. Do you see your files unzipped under VSINSTALLDIR\Common7\IDE\ItemTemplates Cache \CSharp\1033 2. Does your .vstemplate file contain the following xml tag <TemplateGroupID>Tes ...Show All
Visual C++ Add anim gif to resource in VS 2005 (or 2003) doesn't working?
How to add anim gif resource to project I try Add resource/Import, choose a gif file, in Custom Resource Type Window typing GIF (trying so "GIF") but it doesn't working. This message box is displayed: http://www.racap.net/nuke/vc++/notvalidfile.jpg I try this with some another gif files. Thank for help. No reply, I try other way. Is thery any restriction for import gif resource in VS I can import gif with 8 bit color depth. ...Show All
Visual Studio Express Editions I really need a piece of advice...
Hello again. I am really wavering. I am a developer, windows applications, not web. Until now I used VB6 to build client side user friendly applications. Server side usually are DCOM VC++6 applications (we develop laboratories and quality systems for manufacture). Now I have to develop a new client application, and I would like to try VB2005: I downloaded the express edition to evaluate it. Of coarse I have a lot of code, and tested user interfa ...Show All
.NET Development ObjectDataSource doesnt read ReadOnly columns
Hello, Whenever I try to update a readonly BoundField column in a GridView, ObjectDataSource passes a null back to my DataAccessLayer. Same happens if I try to pass a value from a BounField column when 'Visible' property is set to 'false'. Here's the source code: Class1: <code> using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web ...Show All
Visual Studio Team System CA2000:DisposeObjectsBeforeLosingScope and async pattern
I get CA2000:DisposeObjectsBeforeLosingScope in the following case: public IAsyncResult BeginExecution() { SqlCommand cmd = new SqlCommand(...); return cmd.BeginExecuteReader(); } Is this a false positive If not then you should update documentation that says "Do not exclude a warning from this rule." Alex Alex, You're right, this is a false positive. This kind code pattern cou ...Show All
Visual C# Repeating Sequence
You how you put Console.WriteLine("Press Enter to continue"); and then you put Console.ReadLine(); Now i want it to say would you like another entry Y or N if they enter Y how do i repeat the process of going back to the excution of the program....basically how do i start it over... I know it seems i am asking very basic question...but i started programming very differently than most developers... Hi, Yep, you got it right... . Your ...Show All
Smart Device Development regarding Waveform recording
Hi All, I was trying to record a wav file using the code given below (source url is http://www.techmind.org/wave/ ). This i did for pocket pc.What i am not able to do is to save to a file .My problem is to save the data to a wav file.what will be the code for this.thankx any person in advance I have the following code #include <Mmsystem.h> const int NUMPTS = 44100 * 10; // 10 seconds int sampleRate = 44100; short int ...Show All
Visual C# Working with Certificate Revocation List
I need to load CRL file (or Byte array) and retrieve the Serial numbers in. I notice that System.Security.Cryptography.X509Certificates namespace is for certificates (and I'll use it) but what namespace can I use in order to retrieve the CRL What I would do is create a managed wrapper for CAPICOM. CAPICOM is an unmanged library that has extensive utilities for working with certificates. Perhaps that can help. Y ...Show All
