Wednesday, August 29, 2007

So, it ain't "technical"...

...it's a gripe.

I recently ran into a situation where I needed to interface to a Win32 API style dynamic link library (DLL). Since most of the work I do is in a managed environment, I had to write a way to "thunk" into this older library.

I first wrote an Active Template Library (ATL) COM wrapper for the library but because of even more aggravating reasons, I had to abandon that project. I've written literally dozens of these ActiveX server wrappers for calling older code from .NET so I assure you, the aggravation factor was high.

So, the next best thing is to access this older DLL using the platform invoke (P/Invoke) mechanism of the .NET runtime. Being a typical programmer and laziness being truly a virtue in our profession, I didn't want to write all the P/Invoke function signatures by hand. Not to mention all the constants and enumeration declarations.

So, I finally decided to drop $60 on a tool that I'd seen a while back called the "P/Invoke Wizard". Since I have all the source to the target DLL, it'd be easy, right?

WRONG!

I go ahead and do the online purchase (from another software professional) and expect to be emailed my registration key. Only to discover, at the end of the purchase that they will email my registration code in 1 to 2 days after some one verifies the purchase.

Are you fucking kidding me? How hard is it to do online credit validation these days? So, I get to wait until "whomever" at that office decides to send an email.

The tool itself is very useful, I'm certainly not bitching about that. I'm not even bitching that it could take 1 to 2 days to get my registration code (although, that is a bit of an annoyance). What I am bitching about is the fact that I didn't know about the 1 to 2 day delay until after the purchase was completed.

Bitch fest off now... Just needed to vent a bit.

2 comments:

Anonymous said...

Oi, achei seu blog pelo google está bem interessante gostei desse post. Gostaria de falar sobre o CresceNet. O CresceNet é um provedor de internet discada que remunera seus usuários pelo tempo conectado. Exatamente isso que você leu, estão pagando para você conectar. O provedor paga 20 centavos por hora de conexão discada com ligação local para mais de 2100 cidades do Brasil. O CresceNet tem um acelerador de conexão, que deixa sua conexão até 10 vezes mais rápida. Quem utiliza banda larga pode lucrar também, basta se cadastrar no CresceNet e quando for dormir conectar por discada, é possível pagar a ADSL só com o lucro da discada. Nos horários de minuto único o gasto com telefone é mínimo e a remuneração do CresceNet generosa. Se você quiser linkar o CresceNet(www.provedorcrescenet.com) no seu blog eu ficaria agradecido, até mais e sucesso. (If he will be possible add the CresceNet(www.provedorcrescenet.com) in your blogroll I thankful, bye friend).

Anonymous said...

hi,

we are university students for computer enginering. this p invoke wizard demo export only 3 header files. can we send our dll and header can you export ginatures for us. thank you.