|
krillen
Oct 31, 2008, 1:36 PM
Post #26 of 49
(2936 views)
Shortcut
Registered: Jul 19, 2001
Posts: 4769
|
44 baby! Since I'm not bike commuting anymore my weekly exercise number hurt me.
|
|
|
|
|
bigfatrock
Oct 31, 2008, 1:43 PM
Post #28 of 49
(2930 views)
Shortcut
Registered: Aug 2, 2006
Posts: 1321
|
epoch wrote: bigfatrock wrote: Epoch how the hell did you post your code? It's a secret. Stupid moderator. Abuse of powers!!
|
|
|
|
|
carabiner96
Oct 31, 2008, 1:45 PM
Post #29 of 49
(2927 views)
Shortcut
Registered: Apr 10, 2006
Posts: 12610
|
big blue pm'ed!!!11
|
|
|
|
|
epoch
Moderator
Oct 31, 2008, 1:49 PM
Post #30 of 49
(2925 views)
Shortcut
Registered: Apr 28, 2005
Posts: 32163
|
bigfatrock wrote: epoch wrote: bigfatrock wrote: Epoch how the hell did you post your code? It's a secret. Stupid moderator. Abuse of powers!! Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap.
|
|
|
|
|
bigfatrock
Oct 31, 2008, 1:53 PM
Post #31 of 49
(2922 views)
Shortcut
Registered: Aug 2, 2006
Posts: 1321
|
epoch wrote: bigfatrock wrote: epoch wrote: bigfatrock wrote: Epoch how the hell did you post your code? It's a secret. Stupid moderator. Abuse of powers!! Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap. I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML.
|
|
|
|
|
epoch
Moderator
Oct 31, 2008, 2:02 PM
Post #32 of 49
(2919 views)
Shortcut
Registered: Apr 28, 2005
Posts: 32163
|
bigfatrock wrote: epoch wrote: bigfatrock wrote: epoch wrote: bigfatrock wrote: Epoch how the hell did you post your code? It's a secret. Stupid moderator. Abuse of powers!! Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap. I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML.
[ uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820) ] library LHello { // bring in the master library importlib("actimp.tlb"); importlib("actexp.tlb"); // bring in my interfaces #include "pshlo.idl" [ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) ] cotype THello { interface IHello; interface IPersistFile; }; }; [ exe, uuid(2573F890-CFEE-101A-9A9F-00AA00342820) ] module CHelloLib { // some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb"); importlib("actexp.tlb"); importlib("thlo.tlb"); [ uuid(2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable ] coclass CHello { cotype THello; }; }; #include "ipfix.hxx" extern HANDLE hEvent; class CHello : public CHelloBase { public: IPFIX(CLSID_CHello); CHello(IUnknown *pUnk); ~CHello(); HRESULT __stdcall PrintSz(LPWSTR pwszString); private: static int cObjRef; }; #include <windows.h> #include <ole2.h> #include <stdio.h> #include <stdlib.h> #include "thlo.h" #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" int CHello::cObjRef = 0; CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk) { cObjRef++; return; } HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString) { printf("%ws ", pwszString); return(ResultFromScode(S_OK)); } CHello::~CHello(void) { // when the object count goes to zero, stop the server cObjRef--; if( cObjRef == 0 ) PulseEvent(hEvent); return; } #include <windows.h> #include <ole2.h> #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" HANDLE hEvent; int _cdecl main( int argc, char * argv[] ) { ULONG ulRef; DWORD dwRegistration; CHelloCF *pCF = new CHelloCF(); hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); // Initialize the OLE libraries CoInitializeEx(NULL, COINIT_MULTITHREADED); CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &dwRegistration); // wait on an event to stop WaitForSingleObject(hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject(dwRegistration); ulRef = pCF->Release(); // Tell OLE we are going away. CoUninitialize(); return(0); } extern CLSID CLSID_CHello; extern UUID LIBID_CHelloLib; CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */ 0x2573F891, 0xCFEE, 0x101A, { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 } }; UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */ 0x2573F890, 0xCFEE, 0x101A, { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 } }; #include <windows.h> #include <ole2.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "pshlo.h" #include "shlo.hxx" #include "clsid.h" int _cdecl main( int argc, char * argv[] ) { HRESULT hRslt; IHello *pHello; ULONG ulCnt; IMoniker * pmk; WCHAR wcsT[_MAX_PATH]; WCHAR wcsPath[2 * _MAX_PATH]; // get object path wcsPath[0] = '\0'; wcsT[0] = '\0'; if( argc > 1) { mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1); wcsupr(wcsPath); } else { fprintf(stderr, "Object path must be specified\n"); return(1); } // get print string if(argc > 2) mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1); else wcscpy(wcsT, L"Hello World"); printf("Linking to object %ws\n", wcsPath); printf("Text String %ws\n", wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED); if(SUCCEEDED(hRslt)) { hRslt = CreateFileMoniker(wcsPath, &pmk); if(SUCCEEDED(hRslt)) hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello); if(SUCCEEDED(hRslt)) { // print a string out pHello->PrintSz(wcsT); Sleep(2000); ulCnt = pHello->Release(); } else printf("Failure to connect, status: %lx", hRslt); // Tell OLE we are going away. CoUninitialize(); } return(0); } My kung foo is adequate...
|
|
|
|
|
bigfatrock
Oct 31, 2008, 2:06 PM
Post #33 of 49
(2914 views)
Shortcut
Registered: Aug 2, 2006
Posts: 1321
|
I didn't know you were a programmer. Is that JavaScript? Kind of reminds me of COBOL though. That class made me drop my Business Computer Major.
|
|
|
|
|
epoch
Moderator
Oct 31, 2008, 2:13 PM
Post #34 of 49
(2912 views)
Shortcut
Registered: Apr 28, 2005
Posts: 32163
|
I don't program - per-say - but I know enough to be deadly. More or less I QA the stuff, and as a sys-admin I have many tools at my disposal. Though, for the past few weeks I have been a hardware and structural engineer. Programming is boring to me. I can do it, if forced - at gunpoint - but would rather leave that to the guys who actually like doing that stuff. I am happy in a GNU, Unix, Solaris, and my nemisis Linux.
|
|
|
|
|
epoch
Moderator
Oct 31, 2008, 2:13 PM
Post #35 of 49
(2911 views)
Shortcut
Registered: Apr 28, 2005
Posts: 32163
|
... and I'm home-schooled.
|
|
|
|
|
carabiner96
Oct 31, 2008, 2:29 PM
Post #36 of 49
(2904 views)
Shortcut
Registered: Apr 10, 2006
Posts: 12610
|
epoch wrote: ... and I'm home-schooled. Like, special ed style?
|
|
|
|
|
epoch
Moderator
Oct 31, 2008, 2:32 PM
Post #37 of 49
(2903 views)
Shortcut
Registered: Apr 28, 2005
Posts: 32163
|
carabiner96 wrote: epoch wrote: ... and I'm home-schooled. Like, special ed style? I'm not reading that.
|
|
|
|
|
jrnj5k
Oct 31, 2008, 2:32 PM
Post #38 of 49
(2902 views)
Shortcut
Registered: Sep 9, 2008
Posts: 86
|
45 im a motorcycle. i think thats accurate.
|
|
|
|
|
dr_feelgood
Oct 31, 2008, 2:49 PM
Post #39 of 49
(2893 views)
Shortcut
Registered: Apr 6, 2004
Posts: 26060
|
epoch wrote: bigfatrock wrote: epoch wrote: bigfatrock wrote: epoch wrote: bigfatrock wrote: Epoch how the hell did you post your code? It's a secret. Stupid moderator. Abuse of powers!! Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap. I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML. [ uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820) ] library LHello { // bring in the master library importlib("actimp.tlb"); importlib("actexp.tlb"); // bring in my interfaces #include "pshlo.idl" [ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) ] cotype THello { interface IHello; interface IPersistFile; }; }; [ exe, uuid(2573F890-CFEE-101A-9A9F-00AA00342820) ] module CHelloLib { // some code related header files importheader(<windows.h>); importheader(<ole2.h>); importheader(<except.hxx>); importheader("pshlo.h"); importheader("shlo.hxx"); importheader("mycls.hxx"); // needed typelibs importlib("actimp.tlb"); importlib("actexp.tlb"); importlib("thlo.tlb"); [ uuid(2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable ] coclass CHello { cotype THello; }; }; #include "ipfix.hxx" extern HANDLE hEvent; class CHello : public CHelloBase { public: IPFIX(CLSID_CHello); CHello(IUnknown *pUnk); ~CHello(); HRESULT __stdcall PrintSz(LPWSTR pwszString); private: static int cObjRef; }; #include <windows.h> #include <ole2.h> #include <stdio.h> #include <stdlib.h> #include "thlo.h" #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" int CHello::cObjRef = 0; CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk) { cObjRef++; return; } HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString) { printf("%ws ", pwszString); return(ResultFromScode(S_OK)); } CHello::~CHello(void) { // when the object count goes to zero, stop the server cObjRef--; if( cObjRef == 0 ) PulseEvent(hEvent); return; } #include <windows.h> #include <ole2.h> #include "pshlo.h" #include "shlo.hxx" #include "mycls.hxx" HANDLE hEvent; int _cdecl main( int argc, char * argv[] ) { ULONG ulRef; DWORD dwRegistration; CHelloCF *pCF = new CHelloCF(); hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); // Initialize the OLE libraries CoInitializeEx(NULL, COINIT_MULTITHREADED); CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &dwRegistration); // wait on an event to stop WaitForSingleObject(hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject(dwRegistration); ulRef = pCF->Release(); // Tell OLE we are going away. CoUninitialize(); return(0); } extern CLSID CLSID_CHello; extern UUID LIBID_CHelloLib; CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */ 0x2573F891, 0xCFEE, 0x101A, { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 } }; UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */ 0x2573F890, 0xCFEE, 0x101A, { 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 } }; #include <windows.h> #include <ole2.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "pshlo.h" #include "shlo.hxx" #include "clsid.h" int _cdecl main( int argc, char * argv[] ) { HRESULT hRslt; IHello *pHello; ULONG ulCnt; IMoniker * pmk; WCHAR wcsT[_MAX_PATH]; WCHAR wcsPath[2 * _MAX_PATH]; // get object path wcsPath[0] = '\0'; wcsT[0] = '\0'; if( argc > 1) { mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1); wcsupr(wcsPath); } else { fprintf(stderr, "Object path must be specified\n"); return(1); } // get print string if(argc > 2) mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1); else wcscpy(wcsT, L"Hello World"); printf("Linking to object %ws\n", wcsPath); printf("Text String %ws\n", wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED); if(SUCCEEDED(hRslt)) { hRslt = CreateFileMoniker(wcsPath, &pmk); if(SUCCEEDED(hRslt)) hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello); if(SUCCEEDED(hRslt)) { // print a string out pHello->PrintSz(wcsT); Sleep(2000); ulCnt = pHello->Release(); } else printf("Failure to connect, status: %lx", hRslt); // Tell OLE we are going away. CoUninitialize(); } return(0); } My kung foo is adequate... ^^ i'm not reading that.
|
|
|
|
|
I_do
Oct 31, 2008, 2:50 PM
Post #40 of 49
(2892 views)
Shortcut
Registered: Mar 2, 2008
Posts: 1232
|
39 hybrid car, seems exactly the amount of beers I need on an average weekday
|
|
|
|
|
Arrogant_Bastard
Oct 31, 2008, 3:51 PM
Post #41 of 49
(2864 views)
Shortcut
Registered: Oct 31, 2007
Posts: 19994
|
frogclimber wrote: 44. Hooray for being a runner! I'd outlast you all! The sad thing is that a single sub 6 minute mile really isn't much, they could have set the bounds better.
|
|
|
|
|
granite_grrl
Oct 31, 2008, 3:59 PM
Post #42 of 49
(2858 views)
Shortcut
Registered: Oct 25, 2002
Posts: 15084
|
Huh, 35.5mpg. That's better than I thought I would get considering I'm not able to run. Go 12min mile!!! W000!
|
|
|
|
|
reno
Oct 31, 2008, 4:11 PM
Post #43 of 49
(2853 views)
Shortcut
Registered: Oct 30, 2001
Posts: 18283
|
7.5 I'm a Sherman Tank, apparently. (Actually, 33.5)
|
|
|
|
|
fresh
Oct 31, 2008, 4:15 PM
Post #44 of 49
(2850 views)
Shortcut
Registered: Aug 7, 2007
Posts: 1199
|
43.. dunno how they figure that, I eat like 4000 calories and sit on my ass every day.
|
|
|
|
|
dr_feelgood
Oct 31, 2008, 4:15 PM
Post #45 of 49
(2847 views)
Shortcut
Registered: Apr 6, 2004
Posts: 26060
|
reno wrote: 7.5 I'm a Sherman Tank, apparently. (Actually, 33.5) M1A1 Abrams tanks require 3 gallons of diesel fuel to start.
|
|
|
|
|
reno
Oct 31, 2008, 4:28 PM
Post #46 of 49
(2843 views)
Shortcut
Registered: Oct 30, 2001
Posts: 18283
|
dr_feelgood wrote: M1A1 Abrams tanks require 3 gallons of diesel fuel to start. I require three pots of coffee in the morning to start. Kinda the same thing.
|
|
|
|
|
wildtrail
Oct 31, 2008, 6:18 PM
Post #47 of 49
(2826 views)
Shortcut
Registered: Jul 6, 2002
Posts: 11063
|
That's right. The average American walks approximately 900 miles a year and drinks 22 gallongs of alcohol. That's roughly 41 MPG. I'm more like a big stupid SUV. I get about 10 MPG. And, yes. I'm also big and stupid.
|
|
|
|
|
Gmburns2000
Oct 31, 2008, 8:25 PM
Post #48 of 49
(2805 views)
Shortcut
Registered: Mar 6, 2007
Posts: 15266
|
36 mph = hybrid
|
|
|
|
|
frogclimber
Oct 31, 2008, 11:59 PM
Post #49 of 49
(2793 views)
Shortcut
Registered: Jul 27, 2007
Posts: 103
|
Thats... random. But don't worry we runners forgive you for your foolishness.
|
|
|
|
|
|