Announcement

Collapse
No announcement yet.

text editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • text editor

    Hello,
    i'm looking for a Text Editor Skeletton to work on.
    The help i need is about the way to edit files larger than
    64K . . .
    Could someone send me some source code to study and work on
    as a base . . .

    thank's a lot.
    Dominique

  • #2
    Dominique,

    Have you looked at the example file, PBNote that came with PB. Sounds like you've run into the Windows 95 restriction of 64K.

    Cecil

    ------------------

    Comment


    • #3
      Thank's a lot, i forgot about it .
      But, i've got an compile error:

      CASE %IDM_OPEN
      Path = CURDIR$
      f = "*.TXT"
      Style = %OFN_FILEMUSTEXIST OR %OFN_HIDEREADONLY OR %OFN_LONGNAMES
      IF OpenFileDialog(hWndMain, "Open File", f, Path, _
      "Text Files|*.TXT|All Files|*.*", "TXT", Style) THEN
      hMdi = CreateMdiChild("PBNOTE32", hWndClient, f, 0)
      ShowWindow hMdi, %SW_SHOW
      END IF

      Parameter Mismatch at line 333 . . .

      Could someone help me about it ?

      Thank's.

      ------------------
      Dominique

      Comment


      • #4
        Dominique,

        Some while ago, the PB clan changed the last parameter of the OpenFileDialog function. Check that Style is a DWORD now instead of a LONG. This function can be found in the Comdlg32.inc file.

        Cheers,
        Cecil

        ------------------


        [This message has been edited by Cecil Williams (edited June 21, 2000).]

        Comment

        Working...
        X