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
J

Jaime Stuardo

@Jaime Stuardo
About
Posts
57
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Window style for manually created CEdit
    J Jaime Stuardo

    WS_VISIBLE|WS_BORDER Jaime

    C / C++ / MFC question learning

  • CComBSTR to string
    J Jaime Stuardo

    You can use OLE2A macro, for example, USES_CONVERSION; CComBSTR bstrSource = "Text to convert"; std::string sTarget = OLE2A(bstrSource); Jaime

    C / C++ / MFC help question

  • outputing images from C++ to Excel
    J Jaime Stuardo

    why aren't you using Excel objects? some restrictions on design? Jaime

    C / C++ / MFC c++ question

  • Releasing MFC projects
    J Jaime Stuardo

    That project uses only MFC42.DLL. You can know what DLL your project uses with Depends utility. Depending on your application for generating installers, you will need a merge module that incorporates MFC42 with the installation, for example, InstallShield uses MFC42.MSM Jaime

    C / C++ / MFC c++ tutorial announcement

  • Removing Combo Box borders
    J Jaime Stuardo

    Derive your own CComboBox class and implement OnNcPaint handler. If you do nothing in that handler, no border will be appear. That is your starting point to draw your own border. Jaime

    C / C++ / MFC question

  • Cedit control, paste problem
    J Jaime Stuardo

    Have you used CF_UNICODETEXT as the format when you copied the data into the clipboard? Jaime

    C / C++ / MFC help question

  • make this variable global
    J Jaime Stuardo

    the question I did was not for the float, but for the test_26_tt1. What problem did you have with it? Variable isn'r recognize? did you receive a compilation error? Jaime

    C / C++ / MFC question

  • make this variable global
    J Jaime Stuardo

    what problem did you have when you used the same way as float? Jaime

    C / C++ / MFC question

  • Event Handler Never Called??
    J Jaime Stuardo

    some example code so that we can see what happen? I'm not a wizard :) Jaime

    C / C++ / MFC question

  • i can disable menu item but cannot gray it!!!!!!!!
    J Jaime Stuardo

    I can guess that you have in other part of your program a code to "ungray" the item. Check that. Other fact to check. Are other menu items grayed that you see grayed? maybe is only a display problem. Jaime

    C / C++ / MFC help question

  • i can disable menu item but cannot gray it!!!!!!!!
    J Jaime Stuardo

    Have you tried to put pCmdUI->Enable(FALSE) as the only instruction in the update handler? If that way the menu option is grayed, the problem is the condition you have. By the way, if that update handler is called only for item 3, you don't need that verification. Finally, I tell you that I use my own application to place pCmdUI->Enable(FALSE) for a specific menu item and it worked (disabled and grayed) so the problem may be in your condition. Jaime

    C / C++ / MFC help question

  • Conversion
    J Jaime Stuardo

    since CString (when UNICODE is defined) and std::wstring both are defined as an array of wchar, you could safely do: CString sOther = _T("This is a string"); T_String s = (LPCTSTR)sOther; Jaime

    C / C++ / MFC question

  • i can disable menu item but cannot gray it!!!!!!!!
    J Jaime Stuardo

    Just do: pCmdUI->Enable(FALSE); when pCmdUI->m_nID is ID_SETTINGS_ITEM3 that is, simply you can do: pCmdUI->Enable(pCmdUI->m_nID != ID_SETTINGS_ITEM3); Jaime

    C / C++ / MFC help question

  • Conversion
    J Jaime Stuardo

    Just curious.... Why are you doing that? CString has already unicode support. Jaime

    C / C++ / MFC question

  • library question
    J Jaime Stuardo

    Have you used __declspec(dllimport) myfuncName in your H file? Jaime

    C / C++ / MFC question csharp c++ visual-studio tutorial

  • Arrays!
    J Jaime Stuardo

    First of all, you cannot trust on compiler about filling all assigned memory with 0's. In VC++, it is initialized with garbage, so be sure to call a function to initialize array, for example, ZeroMemory or memset. Now to your question. If you declare char array[] you have an array of bytes, so you have to compare against 0, not '0' (comparing with '0' is like comparing with 0x30) Jaime

    C / C++ / MFC data-structures question

  • CDatabase && CRecordSet
    J Jaime Stuardo

    you are welcome... but my name isn't Eduardo, it is Jaime, and my surname Stuardo :)

    C / C++ / MFC c++ performance question discussion

  • Calling classes from DLLs
    J Jaime Stuardo

    In DLL you have to declare: class __declspect(dllimport) CDervDlg : public CDialog { void TestLoad(); void SomeFunc(CString, CString); BOOL m_SomeVar; }; and in EXE: class __declspect(dllexport) CDervDlg : public CDialog { void TestLoad(); void SomeFunc(CString, CString); BOOL m_SomeVar; }; In your DLL you are using a function declared in the EXE, that's why you need to export from the EXE, and import it into the DLL. Jaime

    C / C++ / MFC help question

  • CDatabase && CRecordSet
    J Jaime Stuardo

    MFC doesn't provide a class for connecting to database using ADODB, that's why I programmed my own CDatabase class that #imports the ADO DLL to use the wrapper classes, and call the more common methods, for example, Execute to execute a query. In order to fully understand, you need knowledge on COM technology. I think here in codeproject you may be able to find info on this topic (in www.google.cl you can find a lot of stuff, for sure) Jaime

    C / C++ / MFC c++ performance question discussion

  • CDatabase && CRecordSet
    J Jaime Stuardo

    it's wrong. ADO can connect to any database that has supporting driver installed in the system. I have used it in Access (Microsoft Jet), SQL Server (SQLOLEDB) and Oracle (MSDAORA) Jaime

    C / C++ / MFC c++ performance question discussion
  • Login

  • Don't have an account? Register

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