|
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltreectrl.h(44) : error C2061: syntax error : identifier 'IXMLDOMElement'
E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'IXMLDOMElement' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'ele' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(180) : error C2440: '=' : cannot convert from 'int *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(205) : error C2059: syntax error : ')'
vs_treectrlDoc.cpp
vs_treectrlView.cpp
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltreectrl.h(44) : error C2061: syntax error : identifier 'IXMLDOMElement'
XMLTree.cpp
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(20) : error C2065: 'm_pXML' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(42) : error C2065: 'IXMLDOMElement' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(42) : error C2065: 'node' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(42) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(56) : error C2065: 'childNode' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(57) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(60) : error C2065: 'IXMLDOMNode' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(60) : error C2065: 'firstChild' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(60) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(61) : error C2227: left of '->get_firstChild' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(63) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(63) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(71) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(72) : error C2227: left of '->get_firstChild' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(74) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(74) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(85) : error C2227: left of '->hasChildNodes' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(102) : error C2065: 'IXMLDOMDocument' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(102) : error C2065: 'document' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(102) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(103) : error C2065: 'IXMLDOMParseError' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(103) : error C2065: 'parseError' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(103) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(104) : error C2065: 'element' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(104) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(114) : error C2065: 'CLSID_DOMDocument' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(116) : error C2065: 'IID_IXMLDOMDocument' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(122) : error C2227: left of '->put_async' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(126) : error C2227: left of '->load' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(132) : error C2227: left of '->get_documentElement' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(137) : error C2227: left of '->get_nodeName' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(146) : error C2227: left of '->get_parseError' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(147) : error C2227: left of '->get_errorCode' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(148) : error C2227: left of '->get_line' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(149) : error C2227: left of '->get_linepos' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(150) : error C2227: left of '->get_reason' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(173) : error C2059: syntax error : 'const'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(174) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(174) : error C2447: missing function header (old-style formal list?)
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(204) : error C2059: syntax error : 'const'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(205) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(205) : error C2447: missing function header (old-style formal list?)
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(228) : error C2059: syntax error : 'const'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(230) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(230) : error C2447: missing function header (old-style formal list?)
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(283) : error C2448: '<unknown>' : function-style initializer appears to be a function definition
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(345) : error C2227: left of '->save' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(348) : error C2143: syntax error : missing ';' before '*'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(348) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(349) : error C2501: 'AddNewNode' : missing storage-class or type specifiers
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(351) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(352) : error C2065: 'new_node' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(352) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(355) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(356) : error C2227: left of '->createElement' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(360) : error C2227: left of '->put_text' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(364) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(365) : error C2227: left of '->appendChild' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(378) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(382) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(385) : error C2065: 'parent' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(385) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(386) : error C2065: 'old_node' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(386) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(387) : error C2227: left of '->get_parentNode' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(389) : error C2227: left of '->removeChild' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2275: 'CString' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2146: syntax error : missing ')' before identifier 'strName'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2182: 'AddAttribute' : illegal use of type 'void'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2350: 'CXMLTree::AddAttribute' is not a static member
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2078: too many initializers
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2275: 'CString' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(395) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(396) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(396) : error C2447: missing function header (old-style formal list?)
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(404) : error C2061: syntax error : identifier 'IXMLDOMElement'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(406) : error C2065: 'ele_new' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(406) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(407) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(408) : error C2065: 'origin' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(408) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(414) : error C2065: 'strXML' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(414) : error C2228: left of '.AllocSysString' must have class/struct/union type
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(419) : error C2227: left of '->put_async' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(421) : error C2227: left of '->loadXML' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(425) : error C2227: left of '->get_documentElement' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(428) : error C2227: left of '->cloneNode' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(431) : error C2106: '=' : left operand must be l-value
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(432) : error C2227: left of '->appendChild' must point to class/struct/union
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTree.cpp(432) : fatal error C1003: error count exceeds 100; stopping compilation
XMLTreeCtrl.cpp
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement'
e:\downloads\vtree\test_float_control\vs_treectrl\xmltreectrl.h(44) : error C2061: syntax error : identifier 'IXMLDOMElement'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2065: 'IXMLDOMElement' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2065: 'element' : undeclared identifier
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2275: 'HTREEITEM' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\commctrl.h(3695) : see declaration of 'HTREEITEM'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2146: syntax error : missing ')' before identifier 'item'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2350: 'CXMLTreeCtrl::DisplayElementTree' is not a static member
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2078: too many initializers
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2275: 'HTREEITEM' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\commctrl.h(3695) : see declaration of 'HTREEITEM'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(121) : error C2059: syntax error : ')'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(122) : error C2143: syntax error : missing ';' before '{'
E:\DownLoads\vtree\test_float_control\vs_treectrl\XMLTreeCtrl.cpp(122) : error C2447: missing function header (old-style formal list?)
Generating Code...
Error executing cl.exe.
vs_treectrl.exe - 156 error(s), 0 warning(s)
|
|
|
|
|
I compile this example and it compiles without any error
|
|
|
|
|
Is there any another article based on my requirements.
|
|
|
|
|
I think yes see TreeCtrl section on codeproject
|
|
|
|
|
|
Could any one can provide an example for Windows service in Native VC++ code ?
|
|
|
|
|
Come on ! should wait atleast for few minutes.
I've posted reply to your last post already.
|
|
|
|
|
dvsr wrote: Could any one can provide an example for Windows service in Native VC++ code ?
search codeproject.com for service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
This is pretty good sample code: Using Services[^]
Straight from the horse's mouth
|
|
|
|
|
i have a sessional due on vc creating a data base but i know squat about programing
all we have to do is to have three edit boxes for first second names and current date and there respective butons
we have to enter patient id and store it in a text file than vew by exporting the functions in a dll file.
can offer you nothing but thanks in advance
|
|
|
|
|
Dont get worried.
Try to learn MFC. Its not that difficult.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Wow, didn't you even think of going to class?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
This makes no sense whatsoever. Not the assignment, that's easy, but rather asking for such elementary help outside of class. I realize it's been a few decades since I was in school, but surely things haven't changed that much for a teacher to make an assignment without having first gone over the subject matter. If your "squat level" is so low as you put it, why are you even in the class? Are your classmates having equal difficulty?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I am creating a windows service in VC++.Net. Is it possible to give comman line parametes when we are installing the windows service ?
Ex : WinServ.exe -Install -D "Display_name" -P "Path"
Once we created the service can we install this in any machine(older OS) or .net is a must ?
Thanks and Regards,
Venkat
|
|
|
|
|
If you are actually using .NET (i.e. managed code), then the .NET runtime must be installed. (Though I think writing services in managed code is a bad idea.) If written in native code, assuming you use only APIs from the older OS, they will run there as well.
Services can accept command line arguments.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thanks for the Information.
Could you please give any example of Windows service written in native code ?
Thanks and Regards,
Venkat.
|
|
|
|
|
|
I have checked the articles with the author name "Vagif Abilov" . I could not get any.
|
|
|
|
|
I've given link in previous reply.
|
|
|
|
|
Joe Woodbury wrote: I think writing services in managed code is a bad idea.
May I ask Why?
|
|
|
|
|
Two reasons:
Performance and resource bloat.
While some .NET code can, in fact, run faster than native code, my extensive testing has found that this is mostly in UI code; in non-UI code, this is rarely the case and I've found .NET code typically runs about 30-50% slower (after JIT.) While some services do nothing the vast majority of the time, many are required to periodically do small things as fast as possible. In this, well crafted native code is best. (Yes, I said well crafted; well crafted .NET code is very probably better than crappy native code, but that goes without saying for just about any software.)
Resource bloat is another problem; even "small" .NET applications take up lots of memory and resources. Among other things, this causes slow boots and long shutdowns. If an application or service is truly idle for a long time, and other things are happening on the system, odds are it's memory will eventually get paged out. With .NET, the amound of demand paging when the appliation or service becomes active again is quite significant. (This is one thing that really irritates me with the ATI Catalyst Control Center.)
Do recognize that many serverices have two component; the memory resident component, which should be lean and mean, and a management console or something comparable which is launched on demand. Using .NET for the latter may make perfect sense (though I've honestly yet to see someone actually do it efficiently on the client for a commercial product.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thank you for the excellent reply!
With so many choices in frameworks, languages, SDKs, etc., I'm constantly having to make decisions
on which way to go based on performance, ease of use, extensibility, longevity, etc. and it's
nice to add others' real-life experience and opinion to the "equation".
Had you answered "Because I heard it's slow" I would have screamed.
Thanks again,
Mark
|
|
|
|
|
my code:
CComQIPtr<IHTMLDOMNode> pRootNode(lpParentDisp);
CComPtr<IDispatch> spChildren;
if(FAILED(pRootNode->get_childNodes(&spChildren)))return;
CComQIPtr<IHTMLDOMChildrenCollection> pChildColl(spChildren);
long lCount = 0;
pChildColl->get_length(&lCount);
for (long l = 0;l<lCount;l++)
{
CComPtr<IDispatch> spChild;
pChildColl->item(l,&spChild);
CComQIPtr<IHTMLDOMNode> pChild(spChild);
CComQIPtr<IHTMLElement> pElement(pChild); // I don't obtain the point
}
please somebody help me ! thanks........
-- modified at 22:17 Thursday 7th December, 2006
I'm a good man!
-- modified at 22:17 Thursday 7th December, 2006
|
|
|
|
|
guti_milan wrote: CComQIPtr<ihtmldomnode> pChild(spChild);
CComQIPtr<ihtmlelement> pElement(pChild); // I don't obtain the point
SEE IHTMLDOMNode::childNodes
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
thank you!
I'm a good man!
|
|
|
|