Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. qzou666

    Multi-line in CEdit

    "\r\n" worked now, thank you very much.
  2. qzou666

    Multi-line in CEdit

    Yes, I did set the ES_MULTILINE. And "\r\n" did not work either. Thank you very much
  3. qzou666

    Multi-line in CEdit

    Hi, I want to place a mutli-line CString on a CEdit, but the line break &quot;\n&quot; does not break line. &quot;\n&quot; displayed as a symbol like &quot;[]&quot;. Please help me out here. The following is the code: Ctring test=&quot;&quot;; for (int i=0; i<20; i++) { CString line=&quot;New...
  4. qzou666

    How to embed a CView in a CDialog

    Hi, I need to embed a CView object in a modeless CDialog. Can anyone help me out? Cheers!
  5. qzou666

    Modeless CDialog

    Thank you. I found the problem. It turns out that I have to set the Dialog style as &quot;visible&quot; while setting dialog properties for the modeless dialog. Thanks anyway.
  6. qzou666

    Modeless CDialog

    Hi, there, I am having a problem with creating a modeless CDialog. The CDialog code is: class ADialog : public CDialog { // Construction public: ADialog(SomeData* data, CWnd* pParent = NULL): CDialog(IDD_ADIALOG, pParent){ Data=data; } BOOL Create(CWnd* pParent=NULL){ return...
  7. qzou666

    Strange warning massage

    Thanks, programsecrets. I think the statement is OK since float is a basic type, not a class. float* a; (sorry, I missed ';') a = new float[5]; In fact, there are a large number of similar functions in the same class, and most of them do not cause the warning masssages. Cheers.
  8. qzou666

    Strange warning massage

    Hi, I have a function as follow: void ClassA::FunctionA() { float* a a = new float[5]; } The Visual C++ compiler keeps giving the following warning massages: warning C4305: 'initializing' : truncation from 'int' to 'short' warning C4309: 'initializing' : truncation of constant value...
  9. qzou666

    Multidimension array as function parameter

    Thank you, BobbyB. Your suggestion works when I ony use the array with fixed index range. However, I need to use the arrays with different index ranges as the function parameter. Can you think of any other answer to this situation. Cheers.
  10. qzou666

    Multidimension array as function parameter

    Thank you very much, Jeffray. I tried your suggestion (1)for 'call it as AFunction(&p1)' The compiler tell me cannot convert parameter 1 from 'float (*)[4][4]' to 'float ** ' (2)for 'change the definition of AFunction as: AFunction(float *)' I have to use expression such as p[3][3] in the...
  11. qzou666

    Multidimension array as function parameter

    Hi, I have a c++ programme as follow: void AFunction(float** p){ .....}; float p1[4][4]={{1.0f,0.7407f,0.2593f,0.0f}, {0.0f, 0.2593f, 0.7407f, 1.0f}, {0.0f, 0.1481f, 0.0741f, 0.0f}, {0.0f,-0.0741f,-0.1481f,0.0f}}; AFunction(p1); When I compile, I was told: cannot...

Part and Inventory Search

Back
Top