Des, prog & doc.

Design
patterns and anti-patterns
Programming
Writing snippets for visual assist
C preprocessor and fun Macros
Google on c++
Coding advises
Documenting
File Header style
Self Documenting Code

Define Guard (google style) in Visual Assist


#ifndef $FILE_BASE_UPPER$_$FILE_EXT_UPPER$_
#define $FILE_BASE_UPPER$_$FILE_EXT_UPPER$_

$clipboard$

#endif  // $FILE_BASE_UPPER$_$FILE_EXT_UPPER$_

Debugging BIOS under VMWare using IDA’s GDB debugger

This is a very special task “To debug BIOS”. But we can do it, using TRUE soft. You must install on your system VMWare Workstation and IDA.

First thing, that you must do – to read article from HexRays. In this article were wrote method of Windows Kernel debugging, using VMWare + IDA. I’ll write some general information from this article and methods of BIOS debugging below.

So. Let’s go. Continue reading

How to install Windows 7 from usb flash drive 100% working

This guide works 100% for Vista & Windows 7 unlike most of the guides out there. I have seen many sites/blogs that have “Install Vista from USB guide” but either with incomplete steps or not working guide. I have also seen some guides that don’t’ use proper commands in this guide. After spending many hours I have come up with this 100% working guide.

Continue reading

subst.exe

I pressed F2 and got ^

Для чего нужна утилита subst.exe?
Вопрос:

Для чего нужна утилита subst.exe?
Ответ:

Для подстановки диска вместо папки. Допустим, имеем в C:\INSTALL\Delphi инсталляшку некой проги, которая хочет ставиться только при условии собственного размещения в корне диска. Выполняем команду:
subst z: C:\INSTALL\Delphi
Теперь в системе появился диск z:, который является полной копией C:\INSTALL\Delphi, т.е. абсолютно то же самое, только теперь это находится в корне диска z:. Теперь запускаем инсталляшку из диска z:, и она нормально работает. По окончании процедуры выполним команду:
subst z: /d
Эта команда прибьёт диск z:.

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\>subst

C:\Users\>subst /?
Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

 drive1:        Specifies a virtual drive to which you want to assign a path.
 [drive2:]path  Specifies a physical drive and path you want to assign to
 a virtual drive.
 /D             Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

C:\Users\>

write
 viola