CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Applications with two or more icons and allocating application memory.

    My first question is how can you give a Visual Basic application two or more icons (One for app and one for app files)


    When selecting or changing an icon with a file,
    eg. Menu View in directory window, Options, File Types, NewType or Edit, Change Icon.

    or a short cut icon,
    eg. Menu over shortcut, Properties, Shortcut, Change Icon.

    Some applications display more than one icon.
    I would like to give my application two or more icons.
    (One for the application and one for any files that are associated with it)

    How can you do this?
    I have tried having different icons (.ico) for each form and icon files with two or more images in each file with no luck.
    At the moment I have a normal separate icon (.ico) file for the files associated with it.


    My second question is repeated from a few weeks ago but had no response (See URL; <A HREF="http://www.codeguru.net/bbs/wt/showp...collapsed&sb=5">http://www.codeguru.net/bbs/wt/showp...lapsed&sb=5</A&gt


    How do you set/adjust the size of memory that a program/application can use?

    I am in the process of writing a program with a flex-grid of 1000 by 500 cells and a few dim variables of the same size.
    When I run the program (in the development window or as a exe file) the program produces an error message;

    Out of memory (err 8)
    Unable to Allocate Memory For FlexGrid (err 3006)
    etc.

    If I reduce the size of the flex-grid and variables I can run the program with no problems.
    (I can even run a number of copies at the same time)

    I don't know what command sets the size of memory?

    Can you use this command in the main form
    or do you need to put it in a bat file that sets the memory size and then loads the exe file.

    N.B.
    On the Acorn RISC operating system the command is;
    *WimpSlot -min size -max size -next size
    Eg.
    '*WimpSlot -min 64K' would allow the program to use 64Kilobytes or more for it's work space.

    Please post any replies here or e-mail me at;

    <A HREF="MailTo:[email protected]">[email protected]</A>.

    If you have ever had an application that uses too much memory, how did you fix the problem?




  2. #2
    Guest

    Re: Applications with two or more icons and allocating application memory.

    Use a resource file to put the icons in.
    The other q, I don't know...


  3. #3
    Guest

    Re: Applications with two or more icons and allocating application memory.

    Thank's for the reply about using a resource file.
    The next question is;
    How do you create a resource file.
    I've looked in the VB help file but had no luck.

    Please post replys here
    and/or e-mail me at;

    [email protected]


    (URL; http://members.aol.com:/MarkAgius )



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured