Click here to Skip to main content
16,006,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CArray::IsEmpty() Pin
Bartosz Bien10-Oct-02 9:55
Bartosz Bien10-Oct-02 9:55 
GeneralAutomating Excel without MFC Pin
Giles10-Oct-02 6:22
Giles10-Oct-02 6:22 
GeneralRe: Automating Excel without MFC Pin
Nick Parker10-Oct-02 6:36
protectorNick Parker10-Oct-02 6:36 
GeneralRe: Automating Excel without MFC Pin
Giles10-Oct-02 7:48
Giles10-Oct-02 7:48 
GeneralRe: Automating Excel without MFC Pin
Stephane Rodriguez.10-Oct-02 7:46
Stephane Rodriguez.10-Oct-02 7:46 
GeneralRe: Automating Excel without MFC Pin
Giles10-Oct-02 7:52
Giles10-Oct-02 7:52 
GeneralRe: Automating Excel without MFC Pin
Stephane Rodriguez.10-Oct-02 8:02
Stephane Rodriguez.10-Oct-02 8:02 
GeneralRe: Automating Excel without MFC Pin
Giles10-Oct-02 8:36
Giles10-Oct-02 8:36 
__Stephane Rodriguez__ wrote:
There is no direct Office support in the MFC classes.

I know, but using the class wizard to import the type library takes about 30 seconds, and makes life very easy.

__Stephane Rodriguez__ wrote:
In the unlikely case you have this problem, you may just end your troubles by using the namespace rename attribute in #import.

Yep, tried that, but it was having none of it.


__Stephane Rodriguez__ wrote:
Using smart pointers to drive Office apps is much like doing it with VB. Code is just easy to work with : in addition, you have intellisense!

Have you got a quick example? When I used namspace rename with #import it did not seem to work.

__Stephane Rodriguez__ wrote:
The only tip about it, but it's a general tip about using smart pointers, is to avoid at all cost to use smart pointer instances in class members. Smart pointers are almost by design meant to be used as local proc variables.

Never knew that. I've used parts of ADO happily as members of a class, well certain parts of it like the ADODB.Connection and Recordset, but not others, that are managed by a parent object e.g. Field, that could go out of scope if you moved to the next record.

As I said if you had a quick snippet of code with #import for Excel I would be really grateful.

Thanks,

Giles
GeneralRe: Automating Excel without MFC Pin
Stephane Rodriguez.10-Oct-02 8:45
Stephane Rodriguez.10-Oct-02 8:45 
GeneralRe: Automating Excel without MFC Pin
Giles10-Oct-02 8:48
Giles10-Oct-02 8:48 
QuestionCheck date modified http request? Pin
dazinith10-Oct-02 6:11
dazinith10-Oct-02 6:11 
AnswerRe: Check date modified http request? Pin
Paul M Watt10-Oct-02 6:17
mentorPaul M Watt10-Oct-02 6:17 
GeneralRe: Check date modified http request? Pin
dazinith10-Oct-02 8:00
dazinith10-Oct-02 8:00 
Generalcombobox that disappears over a listcontrol... Pin
Joan M10-Oct-02 5:52
professionalJoan M10-Oct-02 5:52 
GeneralRe: combobox that disappears over a listcontrol... Pin
Roger Allen10-Oct-02 6:14
Roger Allen10-Oct-02 6:14 
GeneralRe: combobox that disappears over a listcontrol... Pin
Joan M10-Oct-02 6:30
professionalJoan M10-Oct-02 6:30 
GeneralDisplay Transparent AVI Pin
Brigg Thorp10-Oct-02 5:49
Brigg Thorp10-Oct-02 5:49 
GeneralRe: Display Transparent AVI Pin
Daniel Strigl10-Oct-02 20:17
Daniel Strigl10-Oct-02 20:17 
General::CreateFileMapping Pin
Abin10-Oct-02 5:35
Abin10-Oct-02 5:35 
GeneralRe: ::CreateFileMapping Pin
Daniel Turini10-Oct-02 5:34
Daniel Turini10-Oct-02 5:34 
GeneralRe: ::CreateFileMapping Pin
Abin10-Oct-02 5:47
Abin10-Oct-02 5:47 
GeneralRe: ::CreateFileMapping Pin
Daniel Turini10-Oct-02 5:55
Daniel Turini10-Oct-02 5:55 
GeneralRe: ::CreateFileMapping Pin
Paul M Watt10-Oct-02 6:21
mentorPaul M Watt10-Oct-02 6:21 
GeneralRe: ::CreateFileMapping Pin
Abin10-Oct-02 7:29
Abin10-Oct-02 7:29 
GeneralRe: ::CreateFileMapping Pin
Joe Woodbury10-Oct-02 7:42
professionalJoe Woodbury10-Oct-02 7:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.