Search:

Type: Posts; User: ramdal

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,427

    advanced typecast

    Hi..

    Is there anyone that can help me with a clarifying comments on how typecast is used, I know the basic rules about typecast, but I wout like to learn the little more advanced function/rules...
  2. Thread: pointer in rom

    by ramdal
    Replies
    4
    Views
    1,815

    thanx..

    thanx..
  3. Thread: pointer in rom

    by ramdal
    Replies
    4
    Views
    1,815

    pointer in rom

    How do I place a pointer to a strings in the rom, I have attemptet this:


    const char *MenuAHeadline[NUM_OF_LANG]= {"1 Unload program",""};

    But it still puts the pointer into the ram. :mad:
  4. Replies
    5
    Views
    1,256

    Yes ok, I think I got it, thanks.

    Yes ok, I think I got it, thanks.
  5. Replies
    5
    Views
    1,256

    non Operating system. I have some struct’s...

    non Operating system.


    I have some struct’s with data.

    I don’t want to use the same function, for all of my struct’s, for this reason I want the pointer, then I will include the pointer I my...
  6. Replies
    5
    Views
    1,256

    pointer to a function

    Hi

    I have a pointer to a function, like this:


    extern MyProces();

    void(*ProcesPtr)(void) = MyProces;

    How do I place the pointer in the rom insted of the ram.
  7. Thread: less use of ram

    by ramdal
    Replies
    4
    Views
    1,640

    less use of ram

    Hi.

    In my menu system, I use different languages, about 5 different.

    I have stored my text in the rom and I use a pointer to every text line like this.



    const char...
  8. Replies
    13
    Views
    3,502

    Hi it has to be like this : struct...

    Hi

    it has to be like this :



    struct Template {
    struct Template const **NextMenu;
    };
  9. Replies
    13
    Views
    3,502

    I got it!!!!!!!!!! :D My *NextMenu has to be a...

    I got it!!!!!!!!!! :D

    My *NextMenu has to be a pointer to a pointer.



    extern struct Template const MenuA;

    struct Template const **PointerMenuA[] ={&MenuA,0};
    struct Template const MenuA...
  10. Replies
    13
    Views
    3,502

    Hi. I think we are on to something now :) ,...

    Hi.

    I think we are on to something now :) , but my array is in my struct.:(

    Like this


    struct Template const MenuA = {PointerMenuA[0]};
  11. Replies
    13
    Views
    3,502

    Yes that right, but I have more than one address...

    Yes that right, but I have more than one address in my array, that’s why I have to access the address of my menus through the array.

    Something like that: (still wrong) :(



    void main()
    {...
  12. Replies
    13
    Views
    3,502

    like this

    Hi
    If I do like this:


    Pointer = &MenuA;
    Pointer = Pointer -> NextMenu;

    I still get the address of the "PointerMenuA" array? :confused:

    Any other ideas? Or maybe I just need a little...
  13. Replies
    13
    Views
    3,502

    pointer to a struct

    HI Ng.

    I got a littel problem with a pointer to a struct


    struct Template {
    struct Template const *NextMenu;
    };

    extern struct Template const MenuA;
Results 1 to 13 of 13