Volleynerd Knowledge Base |
Volleynerd's Things to Remember
Hot TopicsFirefox Extensions
DVD issues (latest)
Site Feed (Atom) Archives here
February 2016
January 2016 November 2015 August 2014 February 2014 January 2014 December 2012 December 2011 August 2011 April 2011 March 2011 February 2011 December 2010 November 2010 September 2010 August 2010 May 2010 March 2010 January 2010 December 2009 October 2009 September 2009 August 2009 July 2009 May 2009 April 2009 February 2009 January 2009 December 2008 November 2008 September 2008 August 2008 July 2008 June 2008 May 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 May 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 June 2002 May 2002 April 2002
|
Monday, June 30, 2003
MIDL and Enum Name-ManglingI've gotten obscure build errors when building our SFP stuff with a bunch of dependent IDL (MIDL) files that contain ENUMs. A "deja" search finally set me straight - figured out how to avoid this name mangling issue...We start with something like this in IDL: typedef enumThen a method somewhere that uses this enum: HRESULT State([out, retval] SFP_STATE *pVal); The Problem When calling code uses #import on this generated type library, you end up with something like this in the .TLH file:
If you use this #import statement in more than one client file/project, you may get multiply defined symbols. The trick to getting around this is to use the "exclude" modifier on the #import in subsequent files/projects. The problem I've had is what to exclude. The multiply defined symbol is really this enum with a big mangled name. You can exclude by referring to this mangled name: exclude( "__MIDL___MIDL_itf_vzInstall_0263_0003"), but this is not optimal. You see, this symbol is *sometimes* mangled to slightly different numeric codes on different machines! I haven't pinpointed where the generated number comes from, especially the 0263 portion (the part that changes on various machines) in the above name. At work here, almost all machines come up with 0263, but then on a new laptop with a fresh install of the VS tools, it generates as 0264. So....how to avoid this constant chase of the mangled names... The Solution Thanks to this thread (search google with "#import" enum generated group:microsoft.public.* if the link doesn't work), I found a slightly different way to define the enums in IDL, to avoid the mangling all together. typedef [public] enum eSfpStateNotice the [public] enum eSfpState difference from the original way of describing. This results in the .tlh having a nicer set of #defines: typedef enum eSfpState SFP_STATE; Now you leave the method signature the same in IDL: HRESULT State([out, retval] SFP_STATE *pVal); And the caller still uses SFP_STATE as the enum parameter type, and all is well in the world !!! Wahoo!! Posted 5:57 PM | 0 comments | Permalink ![]()
Netflix for Video GamesRent video games via internet, have a queue of ones you want, etc.$22/mo Gamefly.com Posted 10:10 AM | 0 comments | Permalink ![]() Saturday, June 28, 2003
Whole House Video DistributionFinally, a decent overview article about all this.SMARTHOME - X10, Remote Security, Video Controls, Wireless Systems But, they don't get into the actual "coax-to-RCA and back-again" issues that I'm having. Posted 11:14 PM | 0 comments | Permalink ![]()
Open Source IM ClientIs this any better/different than Trillian? The tout "many common futures" as well as other unique features.SourceForge.net: Project Info - Gaim Posted 10:29 PM | 0 comments | Permalink ![]()
Remote Control MachineAs seen on The Screen Savers:SourceForge.net: Project Info - TightVNC Remote control to Windows and Linux. Funny, the dude said MS has some verbage in the license agreement that you can't "control" the mouse from any non-MS programs. (Just monopoly on RemoteDesktop, etc) Posted 10:26 PM | 0 comments | Permalink ![]()
National Do Not Call RegistryThis is all over the news these days, just opened this week.Just so I remember, registered using standard yahoo email address. (Home phone and 2 cell phones) Register here Posted 8:18 PM | 0 comments | Permalink ![]() Apparently, Adelphia is starting to rollout HiDef tv to select markets. Damnit -- not in Carlsbad yet!? ;-( Questions:
keywords: HD HiDef High Definition HDTV Posted 2:26 PM | | Permalink ![]() Wednesday, June 25, 2003
ATL headers with DDK are not mainstream. MS recommends only using them if you are doing driver development. We found some differences in the handling of CSimpleArray -- uses address-of operator & when doing Add on array. When storing COM smart pointers in the array, address-of operator calls Release( ) on the pointer first -- NOT GOOD. DDK docs that describe the ATL headers here excerpt here: Included ATL Headers The version of ATL that ships with this Windows 2000 DDK is not the same as the Visual C++ version and should only be used for driver development. General purpose ATL source code is available with your normal Visual C++ installation. Posted 12:31 PM | 0 comments | Permalink ![]() Tuesday, June 24, 2003
Activate NetMeeting in Windows XP apparently the guts are installed, but there's no way to get to it until you do this. Start, Run, "conf". walk through wizard steps and it will be there Posted 3:00 PM | 0 comments | Permalink ![]() Tuesday, June 17, 2003
Hacking - Tehnically Speaking. Guest on The Screen Savers. His web site here. Ejovi Nuwere Posted 4:37 PM | 0 comments | Permalink ![]()
Get Started with Digital Photography Articles from Microsoft about basic digital photography. Posted 9:21 AM | 0 comments | Permalink ![]() Monday, June 16, 2003
279664 - How to Set Logon User Rights with the Ntrights.exe Utility set user rights from a remote machine Posted 12:45 PM | 0 comments | Permalink ![]() Sunday, June 15, 2003
Spot on The Screen Savers about packet sniffing. Kevin Rose shows the tool called Iris. Not only a packet sniffer, but recreates the packets and shows you the native application (web browser, even Outlook email!). Bummer, it's apparently $1000, but there's a 15 day trial. Some suggestions to protect against this sniffing: - Trillian Pro, offers encryption - Encrypt your email, using something like PGP - Hushmail is a free, web-based encrypted email service Leo also notes that cable modems are inherently on a LAN with your neighborhood. Depending on the setup by the cable company, you may be seeing packets destined for your neighbors. SOME cable companies are changing to *switches* to help segment the traffic, but not all. Hmmm...doubtful Adelphia is doing this... Posted 11:55 AM | 0 comments | Permalink ![]() Thursday, June 12, 2003
Collection of Multiple Dispatch Implementations Chris Sells MVP VC++ FAQ has some thoughts about this too. keywords: IDispatch multiple inheritance inherit Posted 5:00 PM | 0 comments | Permalink ![]()
Wireless LinksNetStumbler Access Point coverage, and a whole lot more... War Driving driving around the city, looking for access points! :) Encryption Key Recovery Tool (Really, a way to hack the WEP encryption key?) keywords: wireless, acess point, dlink, wardriving, war driving Posted 2:41 PM | 0 comments | Permalink ![]() Wednesday, June 11, 2003
Tuesday, June 10, 2003
The Screen Savers - Hacking and TrackingASTALAVISTA SECURITY GROUP Kevin Rose (The Screen Savers hacker) recommended this site for all underground searching. Yoshi's list of mod sites:
Sarah Lane -- NeoTrace, a tool to track back to an ISP for a given poster, user, etc. Posted 10:20 AM | 0 comments | Permalink ![]() Thursday, June 05, 2003
MPEG-4: Movie Encoding Guide Be sure to go down to the bottom and select other parts of the Table of Contents. There are a lot of good articles here... Posted 10:56 PM | 0 comments | Permalink ![]() Monday, June 02, 2003
Microsoft Baseline Security Analyzer Scan for "common system misconfigurations" in the following products: Windows 2000, XP, IIS, SQL Server 7.0 and 2000 Posted 11:38 AM | 0 comments | Permalink ![]() Sunday, June 01, 2003
Perl for IISMay want to install Perl on a Windows IIS machine to run the Replay TV Recording Scheduler. ActiveState has an install for this here. And some dude's instructions for all this. Posted 8:33 PM | 0 comments | Permalink ![]()
|