Ronnie Diaz

  • call parent page from user control to invoke page methods

    To illustrate how we will accomplish this using Reflections, we will be using repeater in a user control within a page. Your repeater loads data easily within the user control code behind, but you want to utilize the “ItemCommand” event… Continue reading

  • C# .Net Clone and Copy Objects using Extension Methods

    One of my earliest blog articles – Clone Objects in .Net Using Reflections – briefly discusses shallow and deep object copying and cloning. For more info. on the semantics and what these terms really mean, see referenced wikipedia article. You… Continue reading

  • C# Create a Windows Installer Class Custom Action bootstrap DLL in .Net

    The standard windows installer project included with Visual Studio right out of the box is great in many deployment scenarios. For more advanced needs, organizations and developers usually defer to 3rd party solutions, such as InstallShield, Wise, wix or NSIS… Continue reading

  • Call Cancel from Custom Action in .Net Windows Installer Project

    As an alternative to using the “Rollback” or “InstallException” approach, simply use pinvoke/interop to call the cancel button on the base installer form directly. (see my related post for more detail and full code) References https://ronniediaz.com/2011/06/20/the-savedstate-dictionary-does-not-contain-the-expected-values-and-might-have-been-corrupted/ Continue reading

  • the savedstate dictionary does not contain the expected values and might have been corrupted

    This is a common error with custom action development, especially if you are working with your own custom installer class, not using wix or some other windows installer derivative. Since many of the Google entries for this were unresolved, thought… Continue reading

  • How To Create Mac Icons using Pic2Icon and IconComposer

    Using these steps any image you have can converted to an icon to use on Mac. This following article is a condensed version of one found on MacInstruct. (see references below) 1) Download and Launch Pic2Icon. 2) Drag and drop… Continue reading

  • Change Company Name in XCode __MyCompanyName__ Objective-C Cocoa

    See references below for original article. There are a couple ways to change the __MyCompanyName__ value. Permanently (open terminal and enter): Alternatively, changing the “Me” card in Address book or going to Project->Edit Project Settings->General Tab in XCode 3.2.3 also… Continue reading

  • Get Current Directory in Objective-C

    Since Mac OS X is a unix based system, you can always use “getcwd” from the standard C library, but in general if you want to stick within the context of Objective-C/Cocoa, see the examples below. Here’s one snippet you… Continue reading

  • Concatenate string in Objective-C

    Unfortunately, this is not as straight forward as it seems it should be. This really comes down to roughly two approaches in my opinion: stringByAppendingString approach: strigWithFormat approach: References StackOverflow, http://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c cocoadevcentral.com, “Learn Objective-C”, http://cocoadevcentral.com/d/learn_objectivec/ Continue reading

  • Convert Video to and from Adobe Flash .FLV format

    The first three tools are Windows specific, with the last being cross-platform and especially necessary for linux users. Super11 Link: http://www.videohelp.com/tools/SUPER Not well known, but very robust software with good features and overall good functionality. Riva FLV Encoder Link: http://rivavx.com/?encoder… Continue reading