Different version formats for .Net & win32 components

9 03 2009

For a win32 dll or exe , the  fileversion attribute means following:

majorversion.minorversion.releaseversion.buildversion

Whereas, a .Net component has different interpretation of these numbers.  i.e.

majorversion.minorversion.buildnumber.revision

This means, if you have an  exe or dll with fileversion 1.0.0.2 from a vc++ project, then corresponding assemblyversion for a .Net exe or dll for same build would be: 1.0.2.0.

This was causing little confusion while I was working with FinalBuilder to version all project executables before applying MSBuild.  Right now, I have kept consistent version format for all project types  and am interpreting them as win32 style version information.

Any opinions?

Advertisements




MS Word 2003 cheat sheet & quick reference

2 03 2009

Since I am not a superuser of MS Word, many times I need a quick reference or a cheat sheet.

Following are some quick references and cheat sheets you can easily find on www.

MS Word 2003 cheatcheet & MS Word quick reference

Sources:

1. http://www.customguide.com/pdf/word-quick-reference-2003.pdf

2. http://www.its.qut.edu.au/assist/userguides/exfiles/word.pdf





Windows mobile device platform not found

1 03 2009

If you are trying to load a windows smart device project set to .Net CF v3.5 in Visual Studio 2005, you might get this error message:

the project could not be opened because it refers to a device plaform that does not exist in your datastore

The reason being VS 2005 cannot work with .NET CF v3.5.

The workaround is to set project file’s .NET CF target framework to v2.0. i.e.

<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>

Sources:

  1. http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/f51d6fdb-2758-4b60-9527-149a18498481/
  2. http://groups.google.com/group/microsoft.public.pocketpc.developer/msg/8df085eaffb916a5




Remote install of DVD/CDs without any hassles

24 02 2009

This is a really simple but useful trick. If you have access to a remote machine via Remote Desktop Connection. But you are wondering how to run CD/DVD setups without having to create ISO images or virtual drives on remote machines and considering that you don’t have physical access to the remote machine, do the following:

  1. Share your local CD/DVD drive over the network.
    Right Click on CD/DVD Drive icon, go to Properties > Sharing and share the drive on network. Allow only one remote access.
  2. Map local CD/DVD drive to remote machine.
    In Windows Explorer, go to Tools > Map Network Drive. Enter network location of your local drive as \\local_machine_ip\shared_drive_name .
  3. Installation
    Insert installation DVD/CD in local drive & installation window will appear on remote machine.

I have tried installing Visual Studio 2005, and Crystal Reports this way, and it worked just fine.

Good Luck!





A revelation: C# doesn’t allow default parameters

11 01 2009

Wondering why?

Check out: http://blogs.msdn.com/csharpfaq/archive/2004/03/07/85556.aspx.

Quoting their reasons below:

1. The first one is that the correlation between the code that the user writes and the code the compiler generates is less obvious. We generally try to limit magic when possible, as it makes it harder for programmers.

2. The second issue has to do with things like XML doc comments and intellisense. The compiler would have to have special rules for how it generates doc comments for the overloaded methods, and intellisense would need to have smarts to collapse the overloaded methods into a single method.

The first reason kind of makes sense. Allowing default parameters is like forcing the programmer to know about default parameters before using them. Although, default parameters can make your program look magical(!) (initializing something without doing anything), it makes it harder to read.

It sucks if you are used to default parameters.

Check out this link for more How To’s or FAQs in C#.

Sources:

1. http://blogs.msdn.com/csharpfaq/archive/2004/03/07/85556.aspx

2. http://blogs.msdn.com/csharpfaq/default.aspx





Cool Tool – Photosounder

6 01 2009

Check out this tool : photosounder. It converts image into sound & vice versa.   Immediate question that would come to your mind is why would you wanna do that?

Well, there are many things you can actually do with this.

1. Converting image to sound could be an unconventional form of encryption.

2. You can draw music on screen. Of course, complicated the music gets, difficult (or impossible?) it will become to actually draw it. But nonetheless, you can create simple beats this way. check out various sounds made using this tool on http://photosounder.com/ (There is a small jukebox player on the right side.)

I found it interesting because I haven’t seen anything like this before, so there is that WOW factor.

Lemme know if you think of any cool application of this tool..





Dell wireless connection with LinkSys routers

25 12 2008

Whenever I try to connect to a LinkSys wireless router from my dell laptop, I cannot even see the list of connected networks.

Solution:

1. Enable WZC (Wireless Zero Configuration, that provides automatic configuration to wireless adapters) service.

Go to system services (control panel -> administrative tools -> services). Go to Wireless Zero Configuration Service & start it. Also, select automatic start-up type.

2. Let Windows configure the wireless settings.

Go to wireless Connection Properties and check ‘use windows to configure my wireless network setting’ . Now click on ‘Wireless Networks’. You will immediately see available network connections around..