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
M

michael thomas

@michael thomas
About
Posts
16
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • problem adding new interface method
    M michael thomas

    Hi and thank you for chyecking my post. I have added a new method to the interface of an existing COM+ component. The component (dll) runs as a library (runs in the creator's process). The trouble is that the the new method is not being picked up and added to the interface. Here is what I do :- - I build the dll - stop the IIS Out of Process on the server - copy over the dll and fire up an ASP page - I then check Component Services to see if the new method has been added to the interface. It has NOT. I know I am missing something but what is it? I'm relatively new to COM. Thanks for any help. Mike

    COM help question com sysadmin windows-admin

  • Possible to dvlp COM/ATL C++ code in VS.NET?
    M michael thomas

    Hi, I am currently using Visual Studio version 6.0 for C++/MFC development and I want to move to the new IDE Visual Studio .NET and continue learning COM and ATL C++ developlment. QUESTION Can I develop regular COM/ATL C++ code using the new VS.NET? I should say that I am new to COM programming so I don't want to make things more difficult. So my question is really - I would like to continue the same C++/MFC/COM/ATL coding but using the new compiler and IDE. Is that possible, without too much grief? Thanks Mike

    COM c++ visual-studio csharp question com

  • possible to provide VB app access to VC++ dll?
    M michael thomas

    Excellent resource. Thank you so much! I think this will do it. Thanks again. You are a star! Michael

    C / C++ / MFC csharp c++ tutorial question announcement

  • possible to provide VB app access to VC++ dll?
    M michael thomas

    Hi David, Thank you for responding. I have never produced a dll so I am completely ignorant of the terms, which I know is going to make this coding difficult. I guess I will have to go away and get familiar with how dlls are coded and generally fiddle around with them, since at this point I don't even know what 'exported' means. At least you have given me a starting point and thanks for that. Thanks Michael

    C / C++ / MFC csharp c++ tutorial question announcement

  • possible to provide VB app access to VC++ dll?
    M michael thomas

    Hi, Thank you for stopping by. I have a number of dlls written for VC++ 6 and I have been asked to make them available to a VB app (perhaps in the form of a .def file). I would be very grateful to know what or how to go about doing this. Any pointers would be much appreciated - the possibility of PAID work after so long is certainly a good incentive - I am sure you understand. Please note that I am a VC++ programmer on version 6. I have yet to transition to .NET. Thanks Michael

    C / C++ / MFC csharp c++ tutorial question announcement

  • how do I set lpstrFile of OPENFILENAME
    M michael thomas

    That worked just fine. Now I feel a little humble (i.e stupid) as to how easy the solution was. Thanks for your help. I think I need to take a break :) Michael

    C / C++ / MFC help question

  • how do I set lpstrFile of OPENFILENAME
    M michael thomas

    Hi, I am working with the common CFileDialog and I want to set the initial "File name:" editbox to something like "myfile.txt". I know I can do this with the lpszFileName of the CFileDialog class when constructing, but I would like to set it using the OPENFILENAME structure instead. To be honest, this LPTSTR thing is really bugging me now and I am determined to get it to work...but I do need some help :) I have tried to set lpstrFile, but the app crashes. This is how I have tried to set it so far :- //it crashed when I did this CString theString( "This is a test" ); LPTSTR lpsz = new TCHAR[theString.GetLength()+1]; _tcscpy(lpsz, theString); my_file_dlg.m_ofn.lpstrFile = lpsz; //so I tried this and again it crashes CString str("myfile.txt"); LPSTR ptr = str.GetBuffer(11); my_file_dlg.m_ofn.lpstrFile = ptr; Thank you for any pointers or guidance. Michael

    C / C++ / MFC help question

  • Property Sheet BackGround Color
    M michael thomas

    Hi, I was seraching the codeproject site and came across your post. I am sorry that no one has seemed to reply to your post. I was wondering if you managed to change the look of any of your property sheet buttons? I am trying to do the same...I want to simply change the color of the OK and other buttons. Thank you for any help you are able to give. Michael mikethomas@veryfast.biz

    C / C++ / MFC

  • OnCtrlColor - how do I set a button fore color?
    M michael thomas

    Thanks for the help. Michael

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

  • OnCtrlColor - how do I set a button fore color?
    M michael thomas

    Thanks Ryan.

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

  • OnCtrlColor - how do I set a button fore color?
    M michael thomas

    Hi, I'm about to spontaneously combust if I can't manage to set the color of one single little button in a dialog. It seems that with OnCtlColor() I can set the color of EVERYTHING EXCEPT my button's foreground. Please help me before I blow! :confused: I know I am missing something probably very simple. Do I need to use OnDrawItem()? Thank you for any suggestions. I am relatively new (1 year) to MFC so be kind and if possible detailed in your suggestions. Thank you so much. Here's one of several bits of code I have tried :- //CBrush is set within OnInitDialog() m_brush.CreateSolidBrush(RGB(0,0,255)); // Blue brush .... HBRUSH CTry_button_colorsDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); //this works ok - my editbox ends up a nice blue color if (nCtlColor == CTLCOLOR_EDIT || nCtlColor == CTLCOLOR_MSGBOX ) { pDC->SelectObject(m_brush); hbr = this->m_brush; } //THIS DOES NOT WORK if (nCtlColor == CTLCOLOR_BTN) { hbr = this->m_brush; pDC->SetBkColor(RGB(0,0,255)); } //THIS DOESN'T WORK EITHER if( pWnd->GetDlgCtrlID() == IDC_MYBUTTON) { pDC->SetBkColor(RGB(0,0,255)); pDC->SelectStockObject(WHITE_BRUSH); } return hbr; } Michael

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

  • PropertySheet - possible to change style OK btn?
    M michael thomas

    Thanks Mike

    C / C++ / MFC c++ tutorial question learning

  • PropertySheet - possible to change style OK btn?
    M michael thomas

    Hi Mike, Thank you so much for replying. I seem to recognize your name...I think you have kindly helped me in the past. Anyway, I did try GetDlgItem(ID_OK) before I posted my question and I couldn't get it to work. It must be the way I did it. It would compile ok but crash on running when doing the check "ASSERT(::IsWindow(m_hWnd));". Here's the code I used within my CPropertySheet class's constructor :- CMyPropertySheet::CMyPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) { //add each page to the propert sheet this->AddPage(&this->m_prop_page1); //get pointer to OK button so I can alter it CButton * pbutton = (CButton *)this->GetDlgItem(IDOK); } Actually, as I write this I realize that maybe the propertySheet is not a window (and that includes the OK button) until I run "property_sheet_obj.DoModal()", so that might be the problem right there. Do I have to alter the OK button after the DoModal().....I will try that. Thanks Mike and thank you all for any suggestions or confirmation. Michael

    C / C++ / MFC c++ tutorial question learning

  • PropertySheet - possible to change style OK btn?
    M michael thomas

    Hi, Thank you for checking out my post. I am writing a simple CPropertySheet (with property pages of course) VC++ 6 Doc/View application, and I want to change the look of the OK or CANCEL buttons. Trouble is that I don't seem to be able to create a control variable of either buttons. The buttons are provided by the framework I am thinking, but does anyone know how to access them? The only interaction I have with the Cancel or OK buttons is to check the return value when dlg.DoModal() returns and that is it. Thanks for any suggestions. Michael

    C / C++ / MFC c++ tutorial question learning

  • Possible to use CFontDialog in PropertySheet?
    M michael thomas

    Hi, Thank you for dropping by. I want to display a dialog box to the user so that they can choose a font. Now CFontDialog does this very nicely. However, all my programs options are in "tabbed Property sheets" so that the user can find all the config stuff in one place. What I would like to do is to add the CFontDialog as a Property Page to the Property Sheet along with all the other config dialogs. Is this possible? Thank you. P.S. I am using VC++ v6 Michael Thomas

    C / C++ / MFC c++ question

  • seeking activeX control/library fro vt100 terminal emulation
    M michael thomas

    Hi all, Thanks for reading my post. I am writing the client end of a custom terminal emulator and I want to add vt100 terminal emulation support to the application. It's written in VC++ 6. I was hoping I could do this by finding an activeX control that would provide some kind of virtual terminal support on the client end. Typically, the client will talk to a linux/unix server via TCP/IP. The trouble is that the linux/unix server sends back a whole bunch of strange characters and I don't know how to deal with them. Of course I could strip out the bad characters and yes that would work - but I would have to do this for every unix command and each one would be different. Thank you for any help or advice you can offer. Michael

    C / C++ / MFC c++ com sysadmin linux help
  • Login

  • Don't have an account? Register

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