Dll Loading Snippets


28 March, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

24 August, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

jQuery example code to add image to browser cache

jQuery example to prevent Anchor Links from Loading

'The following code snippet displays the "Shut Down Windows" dialog. 'Is uses undocumented API function in shell32.dll

Here's how to check whether you are connected to the Internet.

Delphi code to check you are connected to the Internet

How to create a splash screen for slow loading apps. below shown a Delphi code example

22 December, 2011   

MaxScript code example to load a library

11 April, 2013   

Pull external HTML code from a file right into your webpage

How to check admin rights for XP and 2000

In some circumstances, you use the CreateObject function to create an object from an ActiveX class. The CreateObject function receives the class name as argument, and creates the object for you. In order to create the object, it loads and uses the right library or executable file that contains the interface for that object. For Example: set...

Optimize your website loading time by compressing files into smaller size.

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

06 October, 2012   

Tested on multiline textbox and listview.

29 January, 2011   

Cufon 101

21 July, 2012   

VB.NET Code for Auto Scrolling Controls

Delphi snippet details dynamically calling windows apis with encryption.

25 January, 2014   

To detect if Aero Glass is enabled we must use the DwmIsCompositionEnabled function.

05 February, 2011   

Link to CSS files: You essentially hotlink directly to CSS files on Google. Through URL parameters, you specificity which fonts you want, and what variations of those fonts.