Marko Apfel - Afghanistan/Belgium/Germany

Management, Architecture, Programming, QA, Coach, GIS, EAI

  Home  |   Contact  |   Syndication    |   Login
  168 Posts | 2 Stories | 132 Comments | 4 Trackbacks

News



Twitter | LinkedIn | Xing

Article Categories

Archives

Post Categories

BizTalk

C#

Enterprise Library

SAP

SQL Server

Technologie

October 2009 Entries

Full error message in Visual Studio output window: The item "*.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. I saw this error on context of custom cultures usage. The compiling machine does not have a project used custom culture registered. Have a look under %WinDir%/Globalization. There should be special *.nlp files for each used custom culture. After registering a new custom cultures Visual Studio must be closed ......

Wie so oft im Leben sind manche Dinge auf den zweiten Blick komplexer als sie auf dem Ersten den Anschein haben. Es kam die Anfrage, ob es nicht doch einen Unterschied zwischen "as" und "is" gibt & dann wurden noch ein paar Inputs gefunden, dass im Falle des "Überladens von Cast-Operatoren" mögliche Fallen lauern. Für den Fall der Überladung muss man natürlich wissen, was der Programmierer bei der Überladung getrieben hat. Im ArcObjects-Kontext sollte man im Allgemeinen nicht in derartige Fallen ......

in unten stehendem Code ist ein Anti-Pattern, welches immer wieder im ArcObjects-Kontext zu beobachten ist. if (element is IMapSurroundFrame) { IMapSurround mapSurround = ((IMapSurroundFrame)element... .. Es wird eine is-Abfrage gemacht (element is IMapSurroundFrame) und dann ein Stück später der tatsächliche Cast ((IMapSurroundFrame)element). Im Hintergrund macht die is-Abfrage nichts anderes als einen Cast und schaut, ob der geht. Da ein Cast immer eine "teure" Angelegenheit ist, sollte ......

This error during compilation annoys me in a legacy project. Apparently because of performance issues the Visual Studio development team decided to limit the warnings of code analysis to 200 items. This behaviour could be parameterized under: HKEY_LOCAL_MACHINE\SOFTWARE... Unfortunately a value of 0 does not abrogate this behaviour but deleting/renaming this key helps a little bit. It seems that there is a default value of 1000 ......

In our team we have developers with Visual Studio 2005 and 2008. Often we have projects which must be coded by a mixed team. Visual Studio 2005 and 2008 compatibility for project-files Normally this is no problem because adding projects in Visual Studio 2005 and manually introducing the ToolsVersion="2.0" attribut in the new csproj-file allows an coexisting working when using two sln-files for Visual Studio 2005 and 2008. We name the sln-files normaly <solution>.2005.sln and <solution>.2008.sln. ......

When you search for files that contain text by using the A word or phrase in the file search criterion, the search results may not contain files that contain the text that you specified. For example, .log, .dll, .js, .asp, .xml, .xsl, .hta, .css, .wsh, .cpp, .c, or .h files, or files with no file name extension, may not appear in the search results even if the files contain the text that you specified. This problem may occur even if you specified the file name or type in the All or part of the file ......

Postings for blogs i write with Windows Live Writer. To support syntax highlighting a plugin must be used. Actualle source code is formatted with the plugin Code Snippet plugin for Windows Live Writer. Tested formatters The following formatters are tested, but in my opinion thats not a good decision: Insert Code for Windows Live Writer i miss the capability to specify a box which includes the source code content. Live Writer Source Code Formatter Plugin not convincing. Untested formatters The following ......

With the runas tool it is possible to start an application under an other account. But the explorer need the special parameter /separate to start. So the correct line for the run-menu is: runas /user:administrator "explorer.exe /separate" ......

to catch the COM-Exception in own applications thrown from the underlaying ArcObjects-Library could be done with: catch (COMException ComEx) { Console.WriteLine(string.Fo... errored: {0}, Error Code: {1}", ComEx.Message, ComEx.ErrorCode)); } the special error constants could be found under: ArcObjects Library Reference (GeoDatabase) - fdoError Constants ......

Because i often must think about it .. now i write it down and hope that my writing manifests the definition in my mind ;-) Kenneth Fly described it like: "URI stands for Universal Resource Identifier and URL stands for Universal Resource Locator. Often times people use the terms interchangably, which is not entirely correct. A URL is a subset of the URI popular protocols. These are protocols (http://, ftp://, mailto:). Therefore all URLs are URIs. The term URL is deprecated and the more correct ......

Resource Refactoring Tool a nice tool under Visual Studio 2005 - but with Visual Studio 2008 a lot of peoples (including me) have troubles :-( Multi-Language Add-In for Visual Studio must be evaluated - looks fine Zeta Resource Editor must be evaluated - looks fine RGreatEx Resource Refactoring Tool (Link 1) RGreatEx Resource Refactoring Tool (Link 2) must be evaluated - looks fine ......

Because i often must search for my written DOS-stuff now i would try to write here some interesting lines Batch which needs an user-input ECHO ITCC.DLL registrieren? SET /P X= (J)a oder (N)ein? IF /I "%X%"=="J" GOTO :ja IF /I "%X%"=="N" GOTO :nein :ja ECHO Registriere REGSVR32 ".\..\build\HTML Help Workshop\itcc.dll" ECHO Registriert GOTO Ende :nein ECHO Keine Registrierung erfolgt :ende PAUSE Working with PUSHD and POPD PUSHD %CD% CALL "Copy Ressources.bat" POPD REM PUSHD ".\..\tools\Sandcastle\" ......