Feathers and Code

Profile
None
My journal as a broadcast graphics engineer.
4 comments
17 entries
Advertisement
GameDev.net
December 10, 2010
Welcome To My Blog!
This is my first entry. =)
1,662 views
Mathucub
November 16, 2010
Practical Example of needing decoupling...
Some people are probably thinking "Matty, your crazy. Coupling
is how programs do things; there is no way around it!" Well...
all I have to say is its time to put on your big girl panties
and grasp the larger picture.

All software projects grow until they are abandoned. The more
flexible the project--th…
1,415 views
Mathucub
November 15, 2010
Coupling
It is impossible to write any non-trivial software without having to deal with
some variant of coupling. Even simple applications need to be coupled against
standard OS or Framework functionality to achieve many tasks.

Coupling is the action of having two independent entities where; for one to
function…
1,530 views
Mathucub
October 26, 2010
System Design -- Finite State Machines
Hello fellow developers! I'm working a project where I can share info with
the public again so I figured I would restart my developer journal.

I've been tasked with re-architecting a large project. The project grew
'organically' and has evolved into a large tangled mess. At this point it is
impossible …
4,578 views
Mathucub
July 15, 2010
Debugging the Dreaded 1935 During MSI Install
This is one of the most annoying issues when coping with installers.
At least its better than "your boned, good luck finding it;" however,

Error 1935. An error occured during the installation of assembly component
{} HRESULT:

is pretty frustrating.

Luckily, for once, it actually put an error in the eve…
5,682 views
Mathucub
July 14, 2010
Installing To \Windows\WinSxS
If you've been following my manifest journal entries, then at this point you
will have everything you need to use winsxs/fusion--save one major problem: to
place files into \windows\winsxs you have to be running from a .msi installer.

The the days of xcopy and regsvr32 are officially over.

I've found …
3,437 views
Mathucub
July 09, 2010
strtok not threadsafe on windows
Anyone, like me, who started off in the land of "C" or before
stl really got standardized probably uses, or has legacy code that has strtok
for tokenization.

On Unix/Mac platforms--strtok has been replaced by strsep.
To me, this is more for convenience: strsep is smart enough to know
to skip double deli…
2,927 views
Mathucub
July 03, 2010
Setting up Subversion on OSX
Revision control software is one of the most important tools a developer will ever use.

If you on windows and developing alone, microsoft source safe (VSS) will often be all you need to use.
VSS uses the SMB protocol for transferring files and as such, is not suitable for access across networks.
There…
1,149 views
Mathucub
June 29, 2010
Dealing with a side effect of sxs.
I've you've been following my posts at this point you are almost
ready to install as many versions of your application on a system as you want.

Ready for another speed bump?
WinSxS is really only appropriate for compiled code:
You will have to change your distribution to place files in a versioned
locat…
1,099 views
Mathucub
June 26, 2010
Starting to pull the understanding of Manifests together.
If you are writing an application in c++ application in visual studio you will
typically be linking against the "microsoft c runtime."

If you look in your windows\system32 folder you will see a few of these.

...
Directory of C:\Windows\System32

07/13/2009 09:15 PM 149,019 crtdll.dll
07/13/200…
1,667 views
Mathucub
June 25, 2010
An adventure debugging a winsxs error.
[Bear with my, I'm journaling this as I debug... we will find the solution
together, since I won't have time to do a post edit on this entry.]

As powerful as WinSxS is, its not without its pitfalls. After adding a new
component to our install, I was hit with the application failing to start,
and this i…
2,295 views
Mathucub
June 19, 2010
Lets talk about COM, InterOp, and Manifests
Manifests are loaded two ways: by the OS loader, and manually. They can
either be embedded or the can be on the file system. For MFC Dll's MS
decided that it would manually be managed by the MFC state source. (See my
entry from last week if you missed it.)

It can be argued MFC and COM are legacy, but …
3,331 views
Mathucub
June 18, 2010
Signing with a Verisign 2048 bit Cert
This entry is a little out of order for my manifest discussion; however,
I've finally mastered this monstrosity and its a good time to share the
the wealth. To do a winsxs install on Vista or 7 MS requires you to
sign with a trusted 2048bit cert.

This is a MAJOR problem, and is probably the reason that…
1,743 views
Mathucub
June 16, 2010
Generating SxS Manifests
The visual studio ide provides limited support for Reg Free COM generation but
its not really a complete solution. I decided to bail on using it. Unfortunately
this moves a lot of code to the prebuild, postbuild, and external batch files.


First things first... You have to understand that a Reg Free …
1,904 views
Mathucub
June 11, 2010
Manifest Embedding and Activation
First, you cannot understand manifests without understanding the Activation
Context (ActCtx) API. I'll go into more details later, but the ActCtx API
subverts ::LoadLibrary, ::CoCreateInstance and a couple other windows functions
that deal with loading libraries and resources.

This allows a module…
5,891 views
Mathucub
June 09, 2010
What is a manifest?
There are a few types of manifest formats that I understand: Application,
Assembly, SxS Assembly, and Dependency.


Application manifests will usually appear as "myprogram.exe.manifest" or
embedded in the exe as an RT_MANIFEST (more on this later).


Assembly manifests are analogous to Application manif…
1,593 views
Mathucub
June 09, 2010
Real world implementation of Reg Free Com (WinSxS)
.NET has taken over much of Windows development; however, for those of us that
have large applications in COM we can't simply jump ship. COM/C++ is still a
valid development platform. The major drawback of COM was actually once one of
its selling points: there can only be one component on a system …
1,199 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
9 Followers
15 Entries
10 Followers
johnhattan
Programmer
1,277 Entries
47 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
dgreen02
Generalist
338 Entries
56 Followers
Advertisement