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??
User Profile
Collapse
-
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". -
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...Leave a comment:
-
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:
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...Code:struct device { int ID; char name[25]; }; struct device myDevices[100];
No activity results to display
Show More
Leave a comment: