Evolution of A software Engineer……..
Enjoy Add comments
|
High School/Jr.High 10 PRINT “HELLO WORLD”
First year in College
Senior year in College
New professional for(i = 0; i <>
Seasoned professional class string public: string(const string &s) : size( s.size) ~string() friend ostream &operator <<(ostream &, const string &); ostream &operator<<(ostream &stream, const string &s) string &string::operator=(const char *chrs) int main() str = “Hello World”; return(0);
Master Programmer // bring in my interfaces [ [ // some code related header files // needed typelibs [ #include “ipfix.hxx” extern HANDLE hEvent; class CHello : public CHelloBase CHello(IUnknown *pUnk); HRESULT __stdcall PrintSz(LPWSTR pwszString); private: #include <> int CHello::cObjRef = 0; CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk) HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString) CHello::~CHello(void) // when the object count goes to zero, stop the server return; #include HANDLE hEvent; int _cdecl main( hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); // Initialize the OLE libraries CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER, // wait on an event to stop // revoke and release the class object // Tell OLE we are going away. return(0); extern CLSID CLSID_CHello; CLSID CLSID_CHello = { _/* 2573F891-CFEE-101A-9A9F-00AA00342820 */ UUID LIBID_CHelloLib = { _/* 2573F890-CFEE-101A-9A9F-00AA00342820 */ #include int _cdecl main( // get object path // get print string printf(”Linking to object %ws\n”, wcsPath); // Initialize the OLE libraries if(SUCCEEDED(hRslt)) { hRslt = CreateFileMoniker(wcsPath, &pmk); if(SUCCEEDED(hRslt)) { // print a string out Sleep(2000); // Tell OLE we are going away. return(0); |
———————————————————————————-
Output
HELLO WORLD
Jab output same hai to itni magajmari kyon ????????????????????????????????????????????????????????????????????????????????????????????????
Leave a Reply
You must be logged in to post a comment.
Recent Comments