Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Neeraj Sinha

@Neeraj Sinha
About
Posts
24
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Not able to call dll through PL /SQL
    N Neeraj Sinha

    Hi, I am trying to call one dll inside pl/sql, which I have prepared though vc++. The dll works fine when I call it from any other vc++ applciation and hence tested but it's not working in the pl/sql Although I tried to test my pl/sql procedure with some windows default dll calling them from the procedure, in that case it worked fine. Can you please help me with any hint. I have not used lib file of my dll any where. Could this be the reason? Thank you

    With Regards Neeraj Sinha

    Database c++ database help question

  • Regarding buttons on propertypages
    N Neeraj Sinha

    Hi, Thnaks a lot.I got my problem solved.

    With Regards Neeraj Sinha

    C / C++ / MFC question

  • Regarding buttons on propertypages
    N Neeraj Sinha

    Hi, Can you please suggest me a way to find out the ID of Back,Finish and Next buttons on the property pages OR to find out the CWnd pointers of those button controls?

    With Regards Neeraj Sinha

    C / C++ / MFC question

  • Localization issue
    N Neeraj Sinha

    Yes ofcourse, I need to have multi languages in my application.

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Localization issue
    N Neeraj Sinha

    Hi, I am working on localization and I have to change the texts of "Next","Back" and "Finish" buttons which are displayed on the property pages.I need to change those texts to make them meaningfull in other language. So,Can you please suggest me how can change those button texts?

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Problem in deleting the windows registery key and it's sub key
    N Neeraj Sinha

    Hi Mike Thanks a lot for your help.I got it and my problem got solved.

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Problem in deleting the windows registery key and it's sub key
    N Neeraj Sinha

    Hi I have again some problem regarding windows registery. I am trying to delete a key and it's sub keys and all the corressponding values. Here is the code which I am using: HKEY m_htKey; LONG res; const char* lpSubNsKey = "SOFTWARE\\N K Product"; res = RegOpenKeyEx(HKEY_CURRENT_USER ,lpSubNsKey,0,KEY_ALL_ACCESS,&m_htKey); if (res == ERROR_SUCCESS) { //res = RegDeleteKey(m_htKey,lpSubNsKey); LONG status = SHDeleteKey( m_htKey,lpSubNsKey); RegCloseKey(m_htKey); } In the above code,the RegOpenKeyEx() is returning 0 means registery is getting opened but the SHDeleteKey() is returning 2 i.e. it's error code message is "The system cannot find the file specified". But the key name is available there in the registery. So,can you please suggest me what could be the problem?

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Problem in opening the windows registery
    N Neeraj Sinha

    Hi Cedric,Jonathan and D.Mani Thanks a lot for your quick replies. I got my problem completely solved now.

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Problem in opening the windows registery
    N Neeraj Sinha

    Yes I agree.Thanks for your help to remove my confusion.Now I am getting the correct message of error code 998 through FormatMessage, i.e."Invalid access to memory location". Can anybody please solve this problem?What could be the possible reason behind this message?

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • Problem in opening the windows registery
    N Neeraj Sinha

    Hi I have to retrieve the registery value through RegQueryValueEx().Before doing this I am using RegOpenKeyEx() to open the registery.But the return value of RegOpenKeyEx() I am getting is 998 i.e the function is not able to successfully open the windows registery.Although,I have tried to map the error code of getlasterror() with the help of FormatMessage(),the return value of getlasterror() is 0 i.e. "operation completed successfully". Here is the code: PHKEY m_htKey; const char* lpSubKey = "SOFTWARE\\MyProduct\\N K software\\1.5"; long* lpcbValue = NULL; DWORD valueType = 0; DWORD dwBufLen = 0; const char* valueName = "NKSDir"; long res = RegOpenKeyEx(HKEY_CURRENT_USER ,lpSubKey,0,KEY_ALL_ACCESS,m_htKey); DWORD dw = GetLastError(); LPVOID lpMsgBuf; FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |FORMAT_MESSAGE_IGNORE_INSERTS, NULL,GetLastError(),MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) &lpMsgBuf,0,NULL); //Display the string. MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION ); // Free the buffer. LocalFree( lpMsgBuf ); if (res != ERROR_SUCCESS) return TRUE; else { printf("hi"); res = RegQueryValueEx((HKEY)m_htKey,valueName,NULL,&valueType,NULL,&dwBufLen); } Now in the above code, the if condition is getting true and it's returning true.The control is not going into the else condition. Can you please suggest me what could be the reason behind it that RegOpenKeyEx() is returning non zero value?

    With Regards Neeraj Sinha

    C / C++ / MFC help question

  • window caption
    N Neeraj Sinha

    I am trying to create a custom window caption for SDI application.I have taken help from http://www.codeproject.com/gdi/customcaption.asp The project on the above link use WM_NCPAINT,WM_NCACTIVATE and WM_SETTEXT handlers in the window procedure to draw and paint the caption bar.In this project whole caption bar has been customized. In my application,I don't want to draw and paint minimize,maximize and close buttons and let them be like the system's created default buttons.Actually these default buttons are getting drawn and painted but are not visible when the mainframe window gets activated.When I move the mouse on that region, then only those buttons are visible and work fine on clicking them.So, Can you please suggest me why those buttons may not be getting visible when the mainframe window gets activated?

    With Regards Neeraj Sinha

    C / C++ / MFC com graphics help question

  • To change the font of caption for SDI application
    N Neeraj Sinha

    Hi I have to change the font of captions of mainframe window,property pages and simple dialog boxes.I am working on a SDI application. Please suggest me the way to do it and if possible give me the snippets of code if available.

    Thanks and Regards Neeraj Sinha

    C / C++ / MFC

  • Owner drawn context menu
    N Neeraj Sinha

    Hi, I want to change the font of context menu items and it's sub menu items. How to do it?Should I use owner drawn context menu?If so then can I have any snippet of code for it?

    With Regards Neeraj Sinha

    C / C++ / MFC tutorial question

  • Font of command buttons on property pages
    N Neeraj Sinha

    Thanks for your reply but what ID should I pass in the parameter of GetDlgItem(), as we do not add the buttons from the resource.

    With Regards Neeraj Sinha

    C / C++ / MFC question

  • Font of command buttons on property pages
    N Neeraj Sinha

    Hi Can you please tell me how the default font of command buttons like NEXT,BACK,FINISH and CANCEL can be changed?

    Best Regards Neeraj Sinha

    C / C++ / MFC question

  • Error executing BSCMAKE.exe
    N Neeraj Sinha

    Hi I have been using vc++ 6.0.The bscmake.exe utility which is meant to create .bsc file is not able to execute. When I build the application I get "Error executing bscmake.exe." at the end of the debug information and hence I am not able to avail the facility of source browser. Can you please tell me how to solve my problem?

    With Regards Neeraj Sinha

    C / C++ / MFC help c++ debugging tools tutorial

  • File addition problem
    N Neeraj Sinha

    Hi In a standard SDI mfc project, when I add .cpp and .h files to it by right clicking the project and using "Add files to Projec" option,those new file names are not shown in the "class names" combo box under "message maps" tab of Mfc class wizard. Can you please tell me the reason for it?

    With Regards Neeraj Sinha

    C / C++ / MFC c++ help question

  • Problem during transfer of dialog resources from one app to other app
    N Neeraj Sinha

    Hi I have copied some files and dialog resources used in that file to my application from some other application.Now while building the application, I got too many errors saying undeclared all the ID's of the resources.It seems this is mainly because resources Id's are not defined in the resource.h file. So, how to solve this problem?

    With Regards Neeraj Sinha

    C / C++ / MFC help tutorial question learning

  • Menu Font problem [modified]
    N Neeraj Sinha

    Thanks for your reply I have tried with Owner-Drawn menu.The menu items font didn't change.Only the submenu items font got changed.I have used code from the CP itself: http://www.codeproject.com/menu/menuch.asp.

    With Regards Neeraj Sinha Netstudio Pune

    C / C++ / MFC com help question

  • Menu Font problem [modified]
    N Neeraj Sinha

    Hi I am trying the change the default font of the menu. I have used code from http://www.codeproject.com/menu/menuch.asp. In the App file,there are AppendMenu(),DrawItem() overriden functions. Under drawItem(),I have written the code to change the default font of the Menu.I have declared objects like m_FileMenu, m_EditMenu of type App class in the Mainframe header file and through these variables I have called AppendMenu() from within the constructor of Mainframe class. Like m_FileMenu.CreatePopupMenu(); m_FileMenu.AppendMenu(MF_ENABLED,ID_MYFILE_NEW,"&New\tCtrl+N"); m_FileMenu.AppendMenu(MF_ENABLED,ID_FILE_OPEN,"&Open\tCtrl+O"); Similarly, I have called AppendMenu()for m_EditMenu object also. Next,Under CreateMenu()which has been called from OnCreate handler,I have taken the pointer of CMenu through GetMenu(), and all the default items of menu have been removed through RemoveMenu(). Like pMenu->RemoveMenu(0,MF_BYPOSITION); Then,through that CMenu pointer,I have called InsertMenu() through which all the appended items are getting inserted in the menu. Like pMenu->InsertMenu(0,MF_BYPOSITION|MF_POPUP, (UINT)m_FileMenu.m_hMenu,"&File"); pMenu->InsertMenu(1,MF_BYPOSITION|MF_POPUP, (UINT)m_EditMenu.m_hMenu,"&Edit"); Now,the problem is that although the font of all the submenu items are getting changed as per my given font in the drawitem(), but the font of menu items like "File" and "Edit" are not getting changed. If possible Can you please tell me what could be the reason behind it and what should I do to solve it? -- modified at 5:23 Monday 23rd April, 2007

    With Regards Neeraj Sinha Netstudio Pune

    C / C++ / MFC com help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups