Restrictions in Win95 for SetDlgItemText function?

Hi all,

I developped an application for NT based on the Win32 SDK wich uses the

function SetDlgItemText to pass some 15000 chars into an edit field.

Now I'm trying to port the app to Win95 and the very same function does

not fail but the edit field stays empty.

Reducing the input to less than 13000 chars works fine, but I need the 15000.

Does anybody know how to work around this problem?


Comments

  • Hi, if you could give the edit control styles you are using, and whether its in a dialog or a normal window. I've got an app and just tested with 15000 chars and worked fine with 95.




  • Hi moonshadow,


    the styles I'm using are:

    Multiline, Vertical Scroll, Auto VScroll, Border, Uppercase

    and Read-only.

    The weired thing about it is, that the SetDlgItemText

    function returns no error at all.





  • Hello Holger


    Still cant see any problems. Wrote this test and its working fine on 95 and NT

    http://www.geocities.com/SiliconValley/Orchard/5890/BigEditTest.zip


    Maybe its somewhere else in the code..


  • Hi moonshadow,


    think you're right. Must be somewhere else in the

    code. Originally this app was written for Win3.1.

    Somebody ported it partially to NT and now it shall

    run also under 95. So I've got lots of old stuff in

    it. I also tried your sample with success.

    I had some other ideas with linker options and so on

    (the doc says that this error might happen when windows

    can't allocate enough stack mem for getting the whole

    bunch of text into) - but didn't succeed.

    Thank you very much for your help.

    I'll let you know when I found it!


  • STACKSIZE and HEAPSIZE were big deal in Win16 and programmers almost always defined them. Not required in Win32 as you know and could cause havoc.


    Good luck catching the bug :)




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories