What the Heck?
-
Okay, so in a past project I had used IDL to expose a UDT i had in a dll to an excel spreadsheet. The DLL in that case was a straight C++ DLL, no MFC. In this case I have an MFC DLL. I want to expose a UDT to the excel spreadsheet. I have tried, but it does not work. I have the UDT defined in my IDL file, but when I use "references" tool in excel, I dont have access to the type? The code is below. Am I doing something wrong here?
[ uuid(A1CCE58E-553D-4394-828C-5227D4526293), helpstring("Topic Conversion Library For Tag List") ] ///////////////////////////////////////////////// // Library Declaration //////////////////////////////////////////////// library TopicConversionLib { /////////////////////////////////////////////// // Topic Data Type Definition /////////////////////////////////////////////// // This will be used to "transport" data info // from teh DLL to the VB application /////////////////////////////////////////////// typedef struct _vb_topic_data { short t_num; // Topic Number Short float t_value; // Topic Value Float BSTR t_name; // Topic Name String } VbTopicData; [ helpstring("topic stuff"), dllname("topic_conversion.dll") ] module topic_conversion { }; }
Ryan Baillargeon Software Specialist Fuel Cell Technologies Inc.
-
Okay, so in a past project I had used IDL to expose a UDT i had in a dll to an excel spreadsheet. The DLL in that case was a straight C++ DLL, no MFC. In this case I have an MFC DLL. I want to expose a UDT to the excel spreadsheet. I have tried, but it does not work. I have the UDT defined in my IDL file, but when I use "references" tool in excel, I dont have access to the type? The code is below. Am I doing something wrong here?
[ uuid(A1CCE58E-553D-4394-828C-5227D4526293), helpstring("Topic Conversion Library For Tag List") ] ///////////////////////////////////////////////// // Library Declaration //////////////////////////////////////////////// library TopicConversionLib { /////////////////////////////////////////////// // Topic Data Type Definition /////////////////////////////////////////////// // This will be used to "transport" data info // from teh DLL to the VB application /////////////////////////////////////////////// typedef struct _vb_topic_data { short t_num; // Topic Number Short float t_value; // Topic Value Float BSTR t_name; // Topic Name String } VbTopicData; [ helpstring("topic stuff"), dllname("topic_conversion.dll") ] module topic_conversion { }; }
Ryan Baillargeon Software Specialist Fuel Cell Technologies Inc.
-
Okay, so in a past project I had used IDL to expose a UDT i had in a dll to an excel spreadsheet. The DLL in that case was a straight C++ DLL, no MFC. In this case I have an MFC DLL. I want to expose a UDT to the excel spreadsheet. I have tried, but it does not work. I have the UDT defined in my IDL file, but when I use "references" tool in excel, I dont have access to the type? The code is below. Am I doing something wrong here?
[ uuid(A1CCE58E-553D-4394-828C-5227D4526293), helpstring("Topic Conversion Library For Tag List") ] ///////////////////////////////////////////////// // Library Declaration //////////////////////////////////////////////// library TopicConversionLib { /////////////////////////////////////////////// // Topic Data Type Definition /////////////////////////////////////////////// // This will be used to "transport" data info // from teh DLL to the VB application /////////////////////////////////////////////// typedef struct _vb_topic_data { short t_num; // Topic Number Short float t_value; // Topic Value Float BSTR t_name; // Topic Name String } VbTopicData; [ helpstring("topic stuff"), dllname("topic_conversion.dll") ] module topic_conversion { }; }
Ryan Baillargeon Software Specialist Fuel Cell Technologies Inc.