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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

Johnny Peszek

@Johnny Peszek
About
Posts
24
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SDI and dialog based application
    J Johnny Peszek

    Hi Thanks for help. But I got two questions: wb wrote: now copy the clas CDialogDlg to the SDI app, you must also open the .rc file from the dialog app and add the dialogtemplate to your SDI app 1.I don’t know how to copy the calss CDialogDlg to the SDI app. I tried using Insert->New Class but I get that message: CDialogDlg.cpp is not a member of the current project. 2. I don’t know how to add the dialogtemplate do my SDI app. Any suggestions?

    C / C++ / MFC question

  • SDI and dialog based application
    J Johnny Peszek

    Hi! I have source codes of my programs. One of them is dialog based application and the other is SDI Single Document Interface. I would like to combine that two sources into one. SDI program should have the dialog based program inside. What should I do? Best regards.

    C / C++ / MFC question

  • USB in Visual C++
    J Johnny Peszek

    I participate in a project in which I have to establish comminication betwen Digital Signal Processor and PC via USB. This is the beginning of the project and we don't know that DSP would be the best. I will give more information as soon as the specification of the project is more clear. Thanks!

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

  • USB in Visual C++
    J Johnny Peszek

    Hi. How to use Visual C++ to create a program for Input/Output via USB port? Many thanks for help.

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

  • Reverse array
    J Johnny Peszek

    Thanks!

    C / C++ / MFC question data-structures

  • Reverse array
    J Johnny Peszek

    Hi. I got one dimensional array with integer numbers in it. I want to reverse the numbers. The fisrt number should be last and last should be first e.g. [1,2,3,4,5,6,7,8,9] reverse to [9,8,7,6,5,4,3,2,1]. How can I do it fast? Regards.

    C / C++ / MFC question data-structures

  • Bitmap
    J Johnny Peszek

    Hi! I have bitmap 256x256 pixels. The bitmap has white background and there is a black line drawn on that background. Bitmap is a matrix so is there way to extract the coordinates (x,y) of the black line? Regards.

    C / C++ / MFC graphics question

  • CString
    J Johnny Peszek

    Hi! I was thinking of that function but in my case the length of the CString depends on the data and is various so I don’t know exactly the iIndex. And that’s why I can’t use the function delete. Thanks.

    C / C++ / MFC question

  • CString
    J Johnny Peszek

    Your idea is pretty good. Thanks!!

    C / C++ / MFC question

  • CString
    J Johnny Peszek

    Hi! I got data stored in CString variable. The data consist of mulitiline numbers each number in new line. The length of the CString depends on the data and is various. How can I delete e.g. 5 lines from the end of the CString? Thanks in advance.

    C / C++ / MFC question

  • Enter
    J Johnny Peszek

    The code that you wrote works fine in SDI or MDI application. But I have dialog based application with edit box in which I want to count enter hits.

    C / C++ / MFC question

  • Enter
    J Johnny Peszek

    I almost got it. But when I press enter or any different key in the edit box the function OnGetDlgCode() returns always the same result so I’m not able to count enter hits. Am I missing something? Regards.

    C / C++ / MFC question

  • Enter
    J Johnny Peszek

    Hi! In a dialog based application with a multiline edit box I’m trying to count the number of enter hits. I tried to use code like this: void CNanoDlg::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { if(nChar==VK_RETURN) { counter++; } CDialog::OnChar(nChar, nRepCnt, nFlags); } The code doesn’t work. Any Ideas? Thanks in advance.

    C / C++ / MFC question

  • Modal dialog coordinates
    J Johnny Peszek

    Thanks!

    C / C++ / MFC help question learning

  • Modal dialog coordinates
    J Johnny Peszek

    Thanks!

    C / C++ / MFC help question learning

  • Modal dialog coordinates
    J Johnny Peszek

    Hi! I have a dialog based application with one modal dialog as an inserted dialog resource. The modal dialog is always displayed in the middle of the dialog based application. I would like to display it not in the middle but with given coordinates e.g. in the upper left corner of the screen. Can somebody help me? Regards.

    C / C++ / MFC help question learning

  • Mulitline Edit Box
    J Johnny Peszek

    Format with "\r" stands for "carriage return" which is an escape sequence.

    C / C++ / MFC question

  • Mulitline Edit Box
    J Johnny Peszek

    Thanks!

    C / C++ / MFC question

  • Mulitline Edit Box
    J Johnny Peszek

    Thanks a lot it works great!!!

    C / C++ / MFC question

  • Mulitline Edit Box
    J Johnny Peszek

    Hi! I want to display multiline text in the edit box. I use CString as a member variable. In edit box properties I checked Multiline. The text is from dialog based application and it consist of data. I would like to display each data in new line but when I use Format with “\n” I don’t get new line instead I get small black rectangle character. After the small rectangle there’s no new line. So what I should do to get new line displayed? Thanks in advance.

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