Thanx Steve!!![:)]
Anil_vvs
Posts
-
Read the contents of a file -
Read the contents of a fileHi All, Can anyone tell me how to read the contents (words) of a text file into a vector/ list? I may be asking a very basic question but I am just a beginner. Hope you all understand. Thanks and Regards, Anil
-
std not recognizedThanx a lot Chris.....will try that...:)
-
std not recognizedmy .h file #pragma once using namespace std; class Logger { public: Logger(void); ~Logger(void); private: char *m_pFileName; std::ofstream m_oStream; public: void LogMsg(char * functionName, char * condition); }; cpp file #include "StdAfx.h" #include #include ".\logger.h" Logger::Logger(void) : m_pFileName(NULL) { m_pFileName = "E:\\projects\\something.log"; m_oStream.open(m_pFileName, std::ios_base::app); } Logger::~Logger(void) { } void Logger::LogMsg(char * functionName, char * condition) { } Thanks in Advance for any help....[:)]
-
std not recognizedright chris.....i am including iostream.....any problem with that...??
-
std not recognizedHi Christian, Now the previous error disappeared. But I still get error C2079: 'Logger::m_oStream' uses undefined class 'std::basic_ofstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits ] Can you please help? I am using Visual Studio .Net 2003 Thanks and Regards, Anil
-
std not recognizedHi All, My application doesnt compile if I use anything from namespace std. I have tried "using namespace std" and std:: Can anyone tell me what the problem could be? Extremely sorry for asking a basic question. I am just a starter. Hope you all understand. :-) Thanks and Regards, Anil
-
VB Addin in WordHi All, I have written a word Addin in VB and have added a sub-menu under "File" and some menu items under that. I have seen that the menu items added there sometimes appear at undesired places also ex: under AutoText-> Header/Footer menu in word. They also disappear after I delete Normal.Dot and restart the word session. This is not consistently reproducible. Can anyone tell me what could be going wrong here? Thanks and Regards, Anil
-
System FolderHi All, Can anyone tell me how to find out the location of System32 folder programmatically? Thanks and Regards, Anil
-
Unicode charactersHi All, I made an activex dll in VB for my application which has some forms in it. The captions of controls in these forms are read at runtime from a properties file. I find that the captions are not shown correctly to the user when I load a properties file having Unicode Chars. Can anyone tell me what could be wrong here? Thanks and Regards, Anil
-
Whether a directory existsCan anyone tell me how to find out whether a disectory with a given path exits on the local disk or not? Thanks and Regards, Anil
-
Crash dumpthanx a lot
-
Crash dumpFrom the development setup
-
Crash dumpThanx .... I think this will serve my purpose
-
Crash dumpHi All, Can anyone tell me how to obtain a crash dump?? I have Visual Studio 6 on my machine. Thanks and Regards, Anil
-
Desktop right click menus in Win XPHi All, Can anyone tell me how to increase the max number of right click menus displayed on any particular icon on the desktop in Win XP? Thanks and Regards, Anil
-
Desktop COntext MenusHi All, Can anyone tell me how to override the default implementation of windows's "Create Shortcut" menu handler for the context menu of "My Namespace Extension" icon? Thanks and Regards, Anil
-
Context menu extensionsThis is how I implemented my QueryCOntextMenu STDMETHODIMP MyShellFOlder::QueryContextMenu(HMENU hMenu, UINT uiIndexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) m_hMenu = hMenu; m_idCmdFirst = uiIndexMenu; m_id = idCmdFirst; if (CMF_DEFAULTONLY & uFlags) return MAKE_HRESULT(SEVERITY_SUCCESS,FACILITY_NULL,0); int i = uiIndexMenu; MxSNECmdMgr cmdMgr; try { if(!cmdMgr.IsConnectedFromShell()) { MENUITEMINFO mii = { 0 }; mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE; mii.wID = idCmdFirst + ID_CONNECT; mii.fType = MFT_STRING; mii.dwTypeData = _T("Connect"); mii.fState = MFS_ENABLED; bool b = InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE; mii.wID = idCmdFirst + ID_SEARCH; mii.fType = MFT_STRING; mii.dwTypeData = _T("Search"); mii.fState = MFS_DISABLED; b = InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE; mii.wID = idCmdFirst + ID_CREATEUSINGTEMPLATE; mii.fType = MFT_STRING; mii.dwTypeData = _T("Create Using Template"); mii.fState = MFS_DISABLED; b = InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE; mii.wID = idCmdFirst + ID_DISCONNECT; mii.fType = MFT_STRING; mii.dwTypeData = _T("Disconnect"); mii.fState = MFS_DISABLED; b = InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE; mii.wID = idCmdFirst + ID_ABOUT; mii.fType = MFT_STRING; mii.dwTypeData = _T("About"); mii.fState = MFS_ENABLED; b = InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii); } catch(...) { } return MAKE_HRESULT(SEVERITY_SUCCESS, 0, USHORT(i-uiIndexMenu)); }
-
Context menu extensionsHi All, I have implemented context menu extension on my Namespace Extension icon. I have added 4 menus in my QueryContextMenu function. This works fine in Windows 2k. But I am able to see only the first menu added by me when I test it on WinXP or on Win2k3. Also, explorer crashes when the user selects the "Create Shortcut" menu on win 2k. Can anyone tell me what may be going wrong here? Thanks and Regards, Anil
-
Namespace extension context menusHi All, Can anyone tell me how to remove the "Create Shortcut" context menu from my namespace extension icon? Thanks and Regards, ANil