User Profile

Collapse

Profile Sidebar

Collapse
cme0848
cme0848
Last Activity: Nov 25 '09, 09:03 PM
Joined: Dec 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cme0848
    replied to sub called on program init ?
    You're correct its just an event handler (sorry, C programmer trying to keep up with the VB lingo)

    What you're saying would make sense because I do have the Default set to ZERO on the control handled by that event. Is there a way to stop this event handler from being called or event just differentiate that it was the software setting default value instead of a user??
    See more | Go to post

    Leave a comment:


  • cme0848
    started a topic sub called on program init ?

    sub called on program init ?

    I have an event callback that I created to respond to the value change of a numeric control. For some reason this sub is called event before my first Frm_Load submethod is called. Grrrr...why is this sub being called first before anything else?? The event passed appears to be "Empty".
    See more | Go to post

  • cme0848
    replied to Structure sizes differ in C and C++?
    in C
    I fixed my issue. .

    I declared my int as a short. This made both struct sizes equal to 27 and allowed me to get the desired output.

    FYI, I was using National Instruments CVI (ANSI C) and Visual Studio 2005 for C++. Still not sure why my C++ did not conform to a 32 bit word boundary but maybe its because C works on word boundaries and C++ does not? There seems to be some dissent on this topic among these forums. (see...
    See more | Go to post

    Leave a comment:


  • cme0848
    started a topic Structure sizes differ in C and C++?
    in C

    Structure sizes differ in C and C++?

    I am attempting to write a program which passes an array struct from an ANSI C environment into a C++ DLL. The struct is defined as this:

    Code:
    struct device
    {
       int ID;
       char name[25];
    };
    
    struct device myDevices[100];
    I was attempting to update the structure in the C++ DLL and somehow the pointer gets off and so i have incomplete data. To my surprise this struct...
    See more | Go to post
No activity results to display
Show More
Working...