Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 #include list to show COM support files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ady
New Member

United Kingdom
3 Posts

Posted - Jun 07 2006 :  06:47:06 AM  Show Profile  Reply with Quote
It would be handy if the suggested include filenames could also include files ending with '_i.c'. The MIDL compiler defaults to this filename format for the UUID file.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 07 2006 :  3:09:49 PM  Show Profile  Reply with Quote
assume i know nothing about COM i try to avoid it

the file name suggests these generated files are C code files, normally people do not include these into their code.

is it easy for me to just generate one of these, to try and understand what you are doing?

zen is the art of being at one with the two'ness
Go to Top of Page

Ady
New Member

United Kingdom
3 Posts

Posted - Jun 08 2006 :  04:29:52 AM  Show Profile  Reply with Quote
To create a COM obj in C++ 6.0:
1. New project, ATL COM App Wizard, enter name MyCOMApp
2. Click all finish/ok accepting all defaults
3. Build - the _i.c will not be created until you do this step
4. Look at the file MyCOMApp.cpp this should have a line #include "MyCOMApp_i.c"
5. The file MyCOMApp_i.c is auto created, see the settings for MyCOMApp.idl, UUID File

Once this COM obj has a few interfaces etc when you reference the obj in another app you sometimes need access to the elements in the _i.c file
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 08 2006 :  3:24:12 PM  Show Profile  Reply with Quote
*follows steps*

i see the file, it looks rather like a header file to me, which makes sense since you are including it.

my concern here is how many non COM header files will also match the pattern "*_i.c", and will thus turn up in completion lists when typing #include lines.

is this something you do that often? i am wondering if there is a good alternative solution. the VA wizard bar will show you the full file name of the current file, which is very useful sometimes, allowing you to quickly and easily copy this information from the wizard bar into the clipboard.

zen is the art of being at one with the two'ness
Go to Top of Page

Ady
New Member

United Kingdom
3 Posts

Posted - Jun 09 2006 :  03:47:59 AM  Show Profile  Reply with Quote
You generally need to include a file of this format whenever you reference a COM obj in the app. However it is only needed once as it is an "include" file you can put it in stdafx.
I doubt you will get many false hits as the "*_i.c" is unusual and can't include .cpp files.
Maybe an option in VA to add additional file name filters to display in the suggested included file names.

Edited by - Ady on Jun 09 2006 03:48:47 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 09 2006 :  3:23:34 PM  Show Profile  Reply with Quote
i have put in a feature request, so we can see what the developers think of this

case=1261

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000