grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries for January, 2007

VS2005 C++ Unit Tests - System.AccessViolationException: Attempted to read or write protected memory.

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..
If you have VS2005 C++ Unit Tests, written in managed C++ as they should be, and you are calling native code from them, and you see that error when running your unit tests - I have found it [...]

Comments (3) | 366 views

SSRS - Get TOP N Items - Filter with MDX

In your Query Builder, you can filter a dimension using MDX, here is how you get the TOP N
TOPCOUNT({Dimension Member},N,{Measure.Value})
Comes in pretty handy for building reports.

Leave a Comment | 241 views

VS2005 LNK1104 Error - cannot open file

If you are referncing another lib in a project and you goto build and get
fatal error LNK1104: cannot open file ‘C:\MyProject\Debug.obj’
Do a double check in the project you are referencing configuration. If you have a space in the name (Say “Debug Test”) you might see this error and scratch your head. If the project you [...]

Leave a Comment | 215 views

HowTo: Make a Win32 DLL without MFC and ATL

Vs2005->New->Project
Win32->Win32 Project
On the Wizard, Application Settings, choose DLL radio box, hit finish.
This is all great, except when you build it, you just end up with a dll. How do you use the dll in another project?
Add a Module-Definition File (.def) - call it Export.def
next time you build, there will be a “.lib” file avail so [...]

Comments (1) | 104 views

View Hard Disk Usage

A good tool to view files on your hard disk and see where you are using up space - SequoiaView. Gives a graphical representation of where files are and how big they are. Most other apps you find are going to be shareware or cost 20-30$. Using this tool I have found things I have [...]

Leave a Comment | 630 views

SSRS, SSAS - Auto Pick Yesterday

If you ever have written any Reporting Services reports off a cube (Analysis Services), and want to have a drop down that auto picks a day, this is for you. There is probably a more elegant way to do this, but it works.
=”[Time].[Calendar Date].&["& Year(DateAdd("D",-1,DateTime.Now())) &"-"& IIf(Len(Month(DateAdd("D",-1,DateTime.Now()))) < 2,Month(DateAdd("D",-1,DateTime.Now())),"0"&Month(DateAdd("D",-1,DateTime.Now()))) &"-"& IIf(Len(Day(DateAdd("D",-1,DateTime.Now()))) < 2,"0"&Day(DateAdd("D",-1,DateTime.Now())),Day(DateAdd("D",-1,DateTime.Now()))) &"T00:00:00]”
Remember, months [...]

Comments (6) | 511 views

SxSw

I so want to goto this - South By Southwest
It is in Austin, TX, and its like a geek and artist fest - Music, Film, Technology. Its close enough to South Padre that I could go visit my grandparents too. We will see whats up in March.

Comments (3) | 92 views

Holiday Party

Well, I promised a blog on the 2006 Holiday Party. Good times - as usual. Pre-party at Brye’s, playing Wii and listening to Best of Bootie 2006 - which I think I need to burn about 5 copies of for all the people that want it. Headed down to the hotel, pimped out room for [...]

Leave a Comment | 99 views

Backwards Logic..

What do you do when your house is on fire? You throw more gas on it and point a flamethrower at it of course!

Leave a Comment | 83 views

What’s A GUID?

GUID - “GooID - not Gee You ID” - a unique identifier. There is often debate on the uniqueness of GUID’s. Microsoft uses them for a ton of things. CLSID’s in the registry, uniqueidentifer fields in SQL, and just anything unique. Microsoft isn’t the only one to use them, Oracle, Novell, etc use them.
As far [...]

Leave a Comment | 129 views