Category: Seriously

Day by day work stuff

Reusable AVI Resources

While fixing Vista compatibility problems, an interesting issue arose with AVI clips. It is widely known that Windows shell animations are small AVI clips linked into shell32.dll binary as a resource of type “AVI”. Other DLLs have their clips too and standard animation common control is capable of picking the clips. It is quite convenient…

Read the full article

MD5 and SHA-1 using CryptoAPI from JScript

Alax.Info Crypt Tools provides an interface to popular cryptography hash functions (AKA one-way functions) for scripting code, such as JScript/JavaScript, VBScript etc. Also might be used in other COM/OLE/ActiveX compatible environments, however this makes less sense due to presence of native API. The usage is rather simple: function MD5(Text){ Hash = WScript.CreateObject(“AlaxInfo.CryptTools.Md5Hash”); Hash.AddStringA(Text); WScript.Echo(“MD5(\”” +…

Read the full article

ATL bug with “Minimize CRT use in ATL” option

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=255092 We are not planning to do any work to improve support for ATLMINCRT in the next release of VisualStudio. Please check MSDN forums or contact developer support team to get help with using ATLMINCRT in VS2005.

Visual Studio .NET 2005 C++/ATL attribute provider

Does it make sense that __event __interface may still only use dispinterface defined in this module and not imported? #import “libid:…” no_namespace raw_interfaces_only raw_dispinterfaces [ coclass, event_source(com), default(IFoo, _FooEvents), … ] class ATL_NO_VTABLE CFoo : public IFoo { public: __event __interface _FooEvents; // Imported using #import … OK, in Visual Studio .NET 2002 the attribute…

Read the full article

Visual Studio .NET Service Pack

I came across released service packs for Visual Studio .NET, 2003 and 2005: Microsoft® Visual Studio® .NETâ„¢ 2003 Service Pack 1 Microsoft® Visual Studio® 2005 Team Suite Service Pack 1 and was surprised, in a good way, that Microsoft finally released an update to fix at least some of the bugs. Some of the bugs…

Read the full article

Regular Expression bug in Visual Studio 2005

I already encountered similar issue once before but did not write down the details. Text: #define TBN_GETBUTTONINFO (TBN_FIRST-0) #define TBN_BEGINDRAG (TBN_FIRST-1) #define TBN_ENDDRAG (TBN_FIRST-2) #define TBN_BEGINADJUST (TBN_FIRST-3) #define TBN_ENDADJUST (TBN_FIRST-4) #define TBN_RESET (TBN_FIRST-5) #define TBN_QUERYINSERT (TBN_FIRST-6) #define TBN_QUERYDELETE (TBN_FIRST-7) #define TBN_TOOLBARCHANGE (TBN_FIRST-8) #define TBN_CUSTHELP (TBN_FIRST-9) Find What (using regular expressions): ^\#define:b+({([A-z\_])+}):b+.+$ Replace With: #define MSG_\1(nIdentifier,…

Read the full article