I know, man I know. It was too many places to correct, so I was trying to be smart as:) I found that decls. in comdef is different than in msxml*.tlh, so I decided not to use defaults. Thanks, anyway.
:)
I know, man I know. It was too many places to correct, so I was trying to be smart as:) I found that decls. in comdef is different than in msxml*.tlh, so I decided not to use defaults. Thanks, anyway.
:)
Answer myself MSXML2::
:)
If you getting error like that error C2872: 'IXMLDOMParseErrorPtr' : ambiguous symbol could be 'c:\program files\microsoft visual studio 8\vc\include\comdefsp.h(1263) : _com_ptr_t<_IIID> IXMLDOMParseErrorPtr' 1> with 1> [ 1> _IIID=_com_IIID 1> ] 1> or '.\debug\msxml3.tlh(250) : MSXML2::IXMLDOMParseErrorPtr' What would be correct resolution 1. instead of IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; use ::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; Or use MSXML2::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;
:)
I took add files from C:\PROG Files\VS8\VC\Redist 5 files something like mfc80cm.dll which means it if not enough to take files from C:\windows\System32\WinSxS\... you also need to take files from C:\PROG Files\VS8\VC\Redist So second part I was missing. You see developer relying on manifest but ... there is always old comp. which have no clue about .net Framework which don't care about where key in your manifest pointing and what that manifest means at all :) Your catch my fix. Thanks again. Tbilisi is next to Chechnia on North and Arminia and Turkey on South, but you really don't need to know that. Sometimes it is enough to know that somebody somewhere build monument for you. (Old high school joke) :)
:)
Man thanks a lot it really helped. It was simple and so obvious. I will build monument to you in Georgia Tbilisi at the city Victory park, with the short modest words on it. "Here is standing monument to the smart guy". And please don’t ask me where is Georgia Tbilisi I don’t know, I know it is real. :) Just kidding -- modified at 15:19 Friday 3rd November, 2006
:)
regsvr32 MyDll.dll "Load library (MyDll.dll) failed. This application failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
:)
No I don't use .net Framework. I only use MFC80 and ATL30
:)
My application build using VS2005 now I want run it on the comp. which has only .net Framework 1.1 I put in app. directory ATL80.dll gdiplus.dll mfc80.dll mfc80ENU.dll msvcirt.dll msvcp80.dll msvcr80.dll msvcrt.dll Am I missing somthing? May be I need more modules to avoid installation of .net Framework on that machine? When I do regisration of my COM componetns I am getting error somthing like "... Configuration error application could not be loaded reinstall could help to fix problem"
:)
Are you kidding? You are, right? Why not code I posted works? Class, struct you can use either. Only in 2005 agregatable type like: CFoo oFooV[] = {{...},{...}, {...}}; can't be declared if CFoo has contructor, virtual function or base class the rest is OK. And never worry about private or protected members just take "this" pointer and add offset to access to the nesesarry field, and use it. Private, protected is only for compilers and school teachers, they like those restrictions. :)))
:)
Actualy I knew one gentelman who casted CString* to CDocument* using reinterpret_cast. Great!
:)
Dave did you see address of what they are taking and what is going to happen later. But reinterpret_cast solution was the best:)
:)
what is type of changeAmount?
:)
Ok here is answer for myself CElement elemArr[]={ CElement(1, 2), CElement(3, 4), CElement(5, 6) }; void OnBnClickedOk() { elemArr[1].Method(); elemArr[2] = CElement(7, 8); // here memcopy happens //here destructor called of local element } //here dtor of global element called
:)
Could you explain for how long? Show line where distructor of CElement will be called? void f(int nI) { CElement elemArr[]={ CElement(1, 2), CElement(3, 4), CElement(5, 6) }; //1 int nJ = nI; //2 nJ++; //3 }//4 I have guess it is ither 2 or 4? But I want to know motivated answer.
:)
Base class CBase //abstract class { virtual int Pure(int nA) = 0; } class CDerive : public CBase { virtual Pure(int nA) { return nA+1; } }
:)
No I talk only with situation with array, NOT just single object void f(int nI) { CElement elemArr[]={ CElement(1, 2), CElement(3, 4), CElement(5, 6) }; int nJ = nI; nJ++; //Question elements off array could possible be destroyed right after declaration line? //What is the scope/lifetime of my elements? }
:)
Because VC8 don't alows to intit array of objects this way: CElement elemArr[]={ {1, 2}, {3, 4}, {5, 6} }; I decided to convert it to that way, but I feel it not relible CElement elemArr[]={ CElement(1, 2), CElement(3, 4), CElement(5, 6) }; Is it possible that elements of array will be self destroyed before elemArr? class CElement { public: CElement(int nA){m_nA = nA;}; CElement(int nA, int nB){m_nA = nA;m_nB = nB;}; virtual ~CElement(){m_nA = 0;m_nB = 1;}; virtual int Method(){m_nA = -1;m_nB = -3;return 0;}; protected: int m_nA; int m_nB; };
:)
:) Yes thanks. I mean didyou discover any obvious issues I need to take care? Thanks anyway for usefull info. :)
Thanks. Any tips convering projects fom VC6 -> VC8 :)
Imagine I created my project in VS2005 professional at the moment when Team Edition wasn't released yet. Now I got Team Developer if I open solution/project in Team developer created in VS2005Prof is it going to migrate project or no migration needed? :)