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
D

doctorpi

@doctorpi
About
Posts
206
Topics
101
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Justify text in a CStatic control
    D doctorpi

    Cause in addition to the text I have graphics in the same CStatic derived class. SetWindowText() don't have any control about in which position inside the control you write your text. Imagine a INFO panel where there is a border, some graphics and a multiline text. Anyway don't worry, I've found a simple way. Dr.Pi

    C / C++ / MFC question

  • Justify text in a CStatic control
    D doctorpi

    The problem is that I have a CString too long for the width of the control (then I have to show as multiline). Then, I don't know how to manage this.

    C / C++ / MFC question

  • Justify text in a CStatic control
    D doctorpi

    Yes.

    C / C++ / MFC question

  • Justify text in a CStatic control
    D doctorpi

    Sorry, I was talking about a CMyStatic where your own paints the text,bitmaps,etc... Dr.Pi

    C / C++ / MFC question

  • Justify text in a CStatic control
    D doctorpi

    Hi guys ¿Do you know a way to show a long text (CString) in a CStatic justified or left aligned? Thanks in forwarding. Dr.Pî

    C / C++ / MFC question

  • Question for Michael A. Barnhart 's CXML class users
    D doctorpi

    Solved.

    C / C++ / MFC question com xml tutorial

  • Question for Michael A. Barnhart 's CXML class users
    D doctorpi

    Please if you use this class, could you tell me if it's possible to read a CDATA text value and how? Example of XML CDATA in this page https://www.quinielista.com/xml/comentarios.asp?jornada=20&temporada=2008 Thanks in forwarding Dr.Pi

    C / C++ / MFC question com xml tutorial

  • How don't let run a program from another
    D doctorpi

    The question is that 2 programs are really time consuming exigents. The point is don't let the user execute both at the same time. Then , if one is running don't let run the other and viceversa. Dr.Pi

    C / C++ / MFC tutorial question

  • How don't let run a program from another
    D doctorpi

    It is possible to avoid that a program executes from our own application? An example: I'm running my app and I don't want to let notepad.exe to execute. Is this possible? Thanks in advance. Dr.Pi

    C / C++ / MFC tutorial question

  • converting int to char
    D doctorpi

    I hope this help Streams were originally designed for text, so the default output mode is text. In text mode, the newline character (hexadecimal 10) expands to a carriage return–linefeed (16-bit only). The expansion can cause problems, as shown here: #include int iarray[2] = { 99, 10 }; void main() { ofstream os( "test.dat" ); os.write( (char *) iarray, sizeof( iarray ) ); } You might expect this program to output the byte sequence { 99, 0, 10, 0 }; instead, it outputs { 99, 0, 13, 10, 0 }, which causes problems for a program expecting binary input. If you need true binary output, in which characters are written untranslated, you have several choices: Construct a stream as usual, then use the setmode member function, which changes the mode after the file is opened: ofstream ofs ( "test.dat" ); ofs.setmode( filebuf::binary ); ofs.write( char*iarray, 4 ); // Exactly 4 bytes written Specify binary output by using the ofstream constuctor mode argument: #include #include #include int iarray[2] = { 99, 10 }; void main() { ofstream os( "test.dat", ios::binary ); ofs.write( iarray, 4 ); // Exactly 4 bytes written } Use the binary manipulator instead of the setmode member function: ofs << binary; Use the text manipulator to switch the stream to text translation mode. Open the file using the run-time _open function with a binary mode flag: filedesc fd = _open( "test.dat", _O_BINARY | _O_CREAT | _O_WRONLY ); ofstream ofs( fd ); ofs.write( ( char* ) iarray, 4 ); // Exactly 4 bytes written

    C / C++ / MFC tutorial data-structures question

  • Assigning parent to a Dialog
    D doctorpi

    Just one question then. If I want to modify from the CMyDialog the CDocument it's mandatory include the CMyDocument.h ? Then always the complete app is recompiled if I add a member to my CMyDialog? And then If CMyDialog affects CMyFormView (through CMyDocument) I have to update with Updateallviews from CMyDocument? Thanks -- modified at 14:31 Wednesday 11th April, 2007

    C / C++ / MFC question

  • Assigning parent to a Dialog
    D doctorpi

    Thanks, I knew I missed something ;P

    C / C++ / MFC question

  • Assigning parent to a Dialog
    D doctorpi

    Hi Guys I've got my CMyFormView class I define a Dialog and Create a Class for this dialog called CMyDialog From CMyFormView I call an instance of CMyDialog Ex: . . . CMyDialog dlgTest; dlgTest.DoModal(); . . . What's the right way to acces from inside dlgTest the CMyFormView members? (I could continue the question with... ...to avoid that each time that I touch the CMyDialog.h the complete app recompiles ?) Ex: BOOL CMyDialog::OnInitDialog() { CDialog::OnInitDialog(); // Write code here to acces m_nNumber a int variable declared in CMyFormView.h return TRUE; } Thanks

    C / C++ / MFC question

  • How to avoid to close my App?
    D doctorpi

    This is the place, thanks. Dr.Pi

    C / C++ / MFC tutorial question

  • How to avoid to close my App?
    D doctorpi

    It helps a lot, that works fine, thanks. Dr.Pi

    C / C++ / MFC tutorial question

  • How to avoid to close my App?
    D doctorpi

    In my CFormView? In my App? I've tried in my CFormView but the app is closing anyway. I miss something to do? Dr.Pi

    C / C++ / MFC tutorial question

  • How to avoid to close my App?
    D doctorpi

    Hi guys I was wandering where I have to put this... ----------------------------------------------------------------------- int ret=AfxMessageBox("You will exit the program.\nContinue?",MB_YESNO); if (ret==IDNO) return ; (someone more is needed ?) ----------------------------------------------------------------------- ...in my SDI application when someone clicks on the right upper Cross (standard close button) of my app. Thanks in forwarding. Dr.Pi

    C / C++ / MFC tutorial question

  • Calling Outlook Express
    D doctorpi

    Thanks a lot. mailto doesn't admit attachments?

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

  • Calling Outlook Express
    D doctorpi

    Hi guys, there is an easy way from C++ to make the same as when in a web page you click on a button an a New Mail (from outlook express) appears with a preselected adress on it? Do you know an example of this? Thanks and Merry Christmas.

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

  • Managing DoubleClick in CListCtrl with scrollbars
    D doctorpi

    Thanks, I'll take a look.

    C / C++ / MFC tutorial 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