Announcement

Collapse
No announcement yet.

text editor

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

  • Guest's Avatar
    Guest replied
    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).]

    Leave a comment:


  • Dominique Bodin
    replied
    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.

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

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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

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

    Leave a comment:


  • Dominique Bodin
    started a topic text editor

    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.
Working...
X