i assumed like that ,but i don't know what to do .
1. crete a new atl project, maybe it named TestA.
2. Add a class "A";
3. IA Add methods like TestErr(IErrSupport *pErr);
.\TestA.idl(19) : error MIDL2025 : syntax error : expecting a type specification near "IErrSupport"
.\TestA.idl(19) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
5. add import "../ErrSupport/ErrSupport.idl"; to TestA.idl ,compiling...
d:\errsupport\testa\testa_i.h(69) : fatal error C1083: Cannot open include file: 'ErrSupport.h': No such file or directory
Hello, I have a recordset which contains a lot of data , I need to save it into map or any kind of dictionnary (which have a key and other data)
I have for example :
strIdTrans = CUtils::GetVariantAsCString(vIdTrans);
strCaption = CUtils::GetVariantAsCString(vCaption);
strLang = CUtils::GetVariantAsCString(vLang);
strTranslation = CUtils::GetVariantAsCString(vTranslation);
// What I have here is :
- id_translation : key of table
- id_caption and id_language are REFERENCES from other tables.
- translation_text : data
So , what I need after is getting data by (id_caption and id_language) and it will be more better if (id_caption, id_language and id_translation)
how do that ?
I have created a STL List<customer> customer_list with several detail properties. all works fine.
However I now need to store a list of string for each customer. I have added a STL List<string> string_list to the customer object which is accessible the problem is the data in the list is not persisted.
Is it possible to have a list within a list? what could be the reason for the list not persisting the data?
Although it is possible to have a list within a list, it would help if you could post some relevant code.
You should use the STL vector class instead of a list if you do not do insertions and deletions from the middle of the list.
«_Superman_» I love work. It gives me something to do between weekends.
In Visual Studio, use #import.
It generates (and includes in your project) two files, with the extensions .tlh and .tli (short for 'type library header' and 'type library include'), and automatically includes them in your project.
You'll find more in the documentation for #import.
Hope this helps,
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899).
Yes, it seems to work for me , but when I try to export to .h file
i have the error message :
OLEViewer 2.0 Interface Viewers
Error running MIDL.exe: 2