Archive for the ‘C++’ Category

Get User IP address

Posted on the June 16th, 2007 under Builder, C++, [ En ] by Raz

So, you need a way to get your user local IP address? Here is the winsock way.

File version information

Posted on the February 25th, 2007 under Builder, C++, [ En ] by Raz

Q: How can I get file version information from my own exe/dll or any other file?
A: The VerQueryValue function retrieves specified version information from the specified version-information resource. To retrieve the appropriate resource, before you call VerQueryValue, you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function.

BPX (INT3)

Posted on the February 22nd, 2007 under Builder, C++ by Raz


The C++ Resources Network

Posted on the February 20th, 2007 under Bookmarks, C++, [ En ] by Raz

The C++ Resources Network

Disable XP Theme…

Posted on the January 13th, 2007 under Builder, C++, [ En ] by Raz

  So, you want to disable XP Theme applied on the entirely window or maybe just on a button? or any other control?

mciSendString: Playing with sounds

Posted on the December 9th, 2006 under C++, [ En ] by Raz

  I’m some how disappointed when I see a fellow programmer using 3d party controls/dll/activeX/whatever, just for doing easy stuff like playing a stupid event sound from their application. It’s very easy to play a sound (wav/mp3 even videos) it has been already implemented by M$ long time ago and if you don’t want advanced stuff like The BASS library has, (which is free for non-commercial use) you can use the MCI Functions from winmm.dll library (you will find this library even on a Windows 95 system -if you can find one- :) ) . Now how to use winmm in you application?

Encrypting your data

Posted on the December 7th, 2006 under C++, [ En ] by Raz

Sometimes it is necessary to hide the user sensitive settings like the passwords/ login etc in your application settings file (registry), so you have to make it somehow unreadable applying some encryption (scrambling the text). I’m only going to write two simple and fast ways to achieve that: