We have been using Regnow for more than 10 years without any problem! But now they are closing the service as it was aquired and moving everything to share-it
Mario M
Posts
-
Selling my software..... please help! -
WMI bug or what?Hi, When I try to connect to a remote computer with WMI between WinXP German edition and WinXP English it always returns "access is denied", between two english WinXP or two German WinXP computers it connects without problems. Does anyone know what's the problem ?, is it a bug in WinXP/WMI ? or I am doing something wrong? Thanks! Best Regards, Mario M.
-
stupid VC++ 7 error...I will try to make a new routine to get NETRESOURCE, I also made NETRESOURCE & CNETRESOURCE public, but I get the same error... Thanks for your time.
-
stupid VC++ 7 error...Thanks! :), this removes the error, but now I have to find something to replace the operator, since I get this error... SelectComputerNetwork.cpp(58) : error C2664: 'CSelectComputerNetwork::EnumServers' : cannot convert parameter 1 from 'CSelectComputerNetwork::CNETRESOURCE *' to 'NETRESOURCE *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast - Mario
-
stupid VC++ 7 error...CNETRESOURCE does have an operator NETRESOURCE...:(( else it would not compile in VC++ 6.0 Thanks for your time. - Mario
-
stupid VC++ 7 error...I have modified the post to 'as-is'. And here is the vector class... also you can read again the previous message with 'as-is'... class CSelectComputerNetwork { public: CSelectComputerNetwork(); virtual ~CSelectComputerNetwork(); public: static bool GetDomains(vector >& vecstrDomains); static bool GetServers(const basic_string& strDomain, vector >& vecstrServers); private: //NETRESOURCE structure wrapper used to save text data that freed by WNetEnumClose(_); class CNETRESOURCE { public: CNETRESOURCE(const NETRESOURCE& nr): m_nr(nr) { m_strLocalName = nr.lpLocalName ? nr.lpLocalName : _T(""); m_strRemoteName = nr.lpRemoteName ? nr.lpRemoteName : _T(""); m_strComment = nr.lpComment ? nr.lpComment : _T(""); m_strProvider = nr.lpProvider ? nr.lpProvider : _T(""); m_nr.lpLocalName = new TCHAR [m_strLocalName.size() + 1]; _tcscpy(m_nr.lpLocalName, m_strLocalName.c_str()); m_nr.lpRemoteName = new TCHAR [m_strRemoteName.size() + 1]; _tcscpy(m_nr.lpRemoteName, m_strRemoteName.c_str()); m_nr.lpComment = new TCHAR [m_strComment.size() + 1]; _tcscpy(m_nr.lpComment, m_strComment.c_str()); m_nr.lpProvider = new TCHAR [m_strProvider.size() + 1]; _tcscpy(m_nr.lpProvider, m_strProvider.c_str()); } CNETRESOURCE(const CNETRESOURCE& rhs): m_nr(rhs.m_nr), m_strLocalName(rhs.m_strLocalName), m_strRemoteName(rhs.m_strRemoteName), m_strComment(rhs.m_strComment), m_strProvider(rhs.m_strProvider) { m_nr.lpLocalName = new TCHAR [m_strLocalName.size() + 1]; _tcscpy(m_nr.lpLocalName, m_strLocalName.c_str()); m_nr.lpRemoteName = new TCHAR [m_strRemoteName.size() + 1]; _tcscpy(m_nr.lpRemoteName, m_strRemoteName.c_str()); m_nr.lpComment = new TCHAR [m_strComment.size() + 1]; _tcscpy(m_nr.lpComment, m_strComment.c_str()); m_nr.lpProvider = new TCHAR [m_strProvider.size() + 1]; _tcscpy(m_nr.lpProvider, m_strProvider.c_str()); } ~CNETRESOURCE() { delete [] m_nr.lpLocalName; delete [] m_nr.lpRemoteName; delete [] m_nr.lpComment; delete [] m_nr.lpProvider; } public: NETRESOURCE* operator &() {
-
stupid VC++ 7 error...The error comes from the first line here... ---- vector vecnrDomains; if (!EnumDomains(NULL, vecnrDomains)) return false; for (vector::const_iterator ci = vecnrDomains.begin(); ci != vecnrDomains.end(); ++ci) vecstrDomains.push_back(ci->GetRemoteName()); ------ I am not the author of these sources, someone else posted it to codeguru.com, and it works fine with VC++ 6. - Mario
-
stupid VC++ 7 error...Hi, You can find the complete source code project here http://www.codeproject.com/dialog/selectcomputerdialog.asp Mario
-
stupid VC++ 7 error...I have other source codes which uses vector and compiles fine, I think there is something which was changed by MS in this new VC++ release...
-
stupid VC++ 7 error...Thanks, I knew this. :(( I fixed the other 200 errors from my sources..., but I'm not an STL professional and I cannot fix this error. any help would be appreciated...:-O
-
stupid VC++ 7 error...Hi, Does anyone knows why I get this stupid error when trying to compile this source code http://www.codeproject.com/dialog/selectcomputerdialog.asp with Visual C++ 6.0 it compiles without problems, but with Visual Studio .net (release candidate) I get this error... X| e:\VSNet\Vc7\include\xutility(398) : error C2440: 'return' : cannot convert from 'NETRESOURCE *' to 'std::vector<_Ty,_Ax>::_Tptr ' with [ _Ty=CSelectComputerNetwork::CNETRESOURCE, _Ax=std::allocator ] Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast e:\VSNet\Vc7\include\xutility(397) : while compiling class-template member function 'std::vector<_Ty,_Ax>::_Tptr *std::_Ptrit<_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2>::operator ->(void) const' with [ _Ty=CSelectComputerNetwork::CNETRESOURCE, _Ax=std::allocator, _Diff=std::vector>::difference_type, _Pointer=std::vector>::_Tptr, _Reference=std::vector>::reference, _Pointer2=std::vector>::_Tptr, _Reference2=std::vector>::reference ] e:\VSNet\Vc7\include\vector(372) : see reference to class template instantiation 'std::_Ptrit<_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2>' being compiled with [ _Ty=std::vector>::value_type, _Diff=std::vector>::difference_type, _Pointer=std::vector>::_Tptr, _Reference=std::vector>::reference, _Pointer2=std::vector
-
June 2001 Platform SDK fails to install...online installer ? where can I donload it ? :confused: What about Windows Installer ?, did Microsoft changed their minds again ? X| :mad:
-
June 2001 Platform SDK fails to install...Does anyone knows why the June 2001 Platform SDK fails to install on a Win2K/SP2 machine with IE6/VC++6 with SP4. I have downloaded the full SDK and all files where ok. After setting all the install options when I click on the Install Now button I always get an error with invalid helper object or something like that and fails to install. Microsoft had to do another stupid change in the installer, I don't know why they did not used the Windows Installer instead of this stupid online installer.
-
How to access SQL Server 2000 databases?Hi, I have over 10 years experience with VC++, since it's first release. I know what COM/DCOM/ATL/SQL stands for, but I did not worked with SQL since last year and I still used it only ocasional. I made a simple application with the ActiveX controls, but the initializations and many other tasks are very slow with these controls, also they are somewhat limited and I don't like ActiveX at all. I heard that OLE DB is hard to use, and ODBC is seems a little bit old. If OLE DB will be supported by Microsoft in the future maybe that will be my choice, I don't want to learn something which will be not supported any more in a 1-2 years as Microsoft used to do. Thanks for the information, it was very useful in my decision. :cool:
-
Bug in CCheckListBox...Are there other controls than CCheckListBox which are affected if I have not inculded afxres.rc ? Thanks.
-
Bug in CCheckListBox...I have included afxres.h Now I have included afxres.rc in the DLL file and it works. :-O I thought that afxres.rc is already included in MFC static library. How come that other controls worked without including the afxres.rc file ? (checkboxes, listbox, and all other controls) Thanks a lot !! :cool: :cool: :suss: :)
-
Bug in CCheckListBox...I have created an entire new application just with a CCheckListBox and I have added the string AddString(_T("Test")); and it happends the same. We have a separate resource DLL file which is loaded at startup. All other controls works well except this. Even AddString works when we derive the listbox from CListBox not CCheckListBox. After almost 8 hours of debugging and compiling with all sorts of settings and modifications, I found that if we compile the executable/application with MFC Shared it works and when it's compiled with MFC Static it does not work. The DLL was compiled using the same settings as the application/exe. I know sounds strange, but I'm sure there is something with MFC CCheckListBox code. X|
-
Bug in CCheckListBox...It can be a programmer mistake, but not mine, maybe microsoft... I have created an entire new application just with a CCheckListBox and I have added the string AddString(_T("Test")); and it happends the same. We have a separate resource DLL file which is loaded at startup. All other controls works well except this. Even AddString works when we derive the listbox from CListBox not CCheckListBox. After almost 8 hours of debugging and compiling with all sorts of settings and modifications, I found that if we compile the executable/application with MFC Shared it works and when it's compiled with MFC Static it does not work. The DLL was compiled using the same settings as the application/exe. I know sounds strange, but I'm sure there is something with MFC CCheckListBox code. X|
-
Bug in CCheckListBox...There is a bug in CCheckListBox, when loading a DLL with the dialog and ListBox control (derived from CCheckListBox), the Checklist is always empty, no matter how many AddStrings do you use. This always happends in the latest version of "MFC Static Release". In debug mode it works and in Shared MFC Release works again. There were no conflicts between compiler settings from the EXEcutable and DLL file with the dialogs containing the controls. And also there were no conflicts between resource IDs or any programmer mistake. After changing the CCheckListBox derived control to CListBox it worked with no problems. Thanks M$ for your geniune bugs :eek: :eek: :eek: :mad: :mad: :mad: :mad:
-
How to access SQL Server 2000 databases?Hi, Thanks, I think ADO is ok, but I hate those ActiveX controls, they are extremly slow.