Search Result

Collapse
3 results in 0.0035 seconds.
Keywords
Members
Tags
alignment
  •  

  • awilliams
    started a topic Interop problem

    Interop problem

    I am trying to implement an interface into a database API.
    The API was originally designed for C, but has been used perfectly successfully in many programming languages (C++,Delphi/pascal even Cobol and VB)

    The API is like this:
    One declares a structure (actually a utility generates the declarations), which in C would be something like this

    Code:
    struct Customer
    {
      short l;
      short typenr;
    ...
    See more | Go to post
    Last edited by tlhintoq; Feb 11 '10, 04:21 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • taktiondotcom
    started a topic whats wrong with my site?

    whats wrong with my site?

    so i had a major problem with my site, www.taktion.com , in internet explorer. everything was lined up at the top of the page, and then horizontally went my header, then my nav bar, then my body content, then my footer at the top. I use dreamweaver cs4 to make it, and i went into the code to mix some things up, and i fixed my homepage (except for the top nav bar is still messed up), but i couldnt find out how to fix the rest of my pages.on my homepage...
    See more | Go to post

  • sizeof(struct) giving unexpected sizes. Memory alignment issues?

    I noticed some quirks with C++ (not sure if this is the same for C).

    I have:

    Code:
    struct A {
        char a[14];
    };
    
    struct B {
        char b[16];
    };
    
    struct C {
        struct A a;
        struct B b;
    };
    sizeof(C) produces 32, which is mind boggling. Is the C++ compiler trying to align it to the memory structure? This is god awful for doing things...
    See more | Go to post
Working...