|
|
|
C++
|
|||
|---|---|---|---|
|
#18+
Мне необходимо из программы написанной на С++ динамически заполнять таблицы Excel. Системы Windows 98, Office 2000,Visual C++ 6.0 Я хочу воспользоваться Import. делаю так: Office.h - Это HideR #import "C:\Program Files\Microsoft Office\Office\MSO9.DLL" \ rename_namespace("Office") named_guids #import "C:\Program Files\Microsoft Office\Office\MSWORD9.OLB" \ rename("ExitWindows","_ExitWindows") \ rename_namespace("Word"), raw_interfaces_only, named_guids #import "C:\Program Files\Microsoft Office\Office\EXCEL9.OLB" \ rename_namespace("Excel"), raw_interfaces_only, named_guids \ rename("DialogBox","_DialogBox") \ rename("RGB","_RGB") \ exclude("IFont","IPicture") Тестовая программа: #include "stdafx.h" #include <stdio.h> #include "Office.h" int main(int argc, char* argv[]) { // console.cpp : Defines the entry point for the console application. ::CoInitialize(NULL); try { using namespace Excel; _ApplicationPtr excel("Excel.Application"); excel->Visible[0] = true; ........ Диагностика!! : error C2039: 'Visible' : is not a member of '_Application' Я ржавый чайник! Подскажите, Синьеры ?????/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.05.2006, 15:32 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=33721652&tid=2031316]: |
0ms |
get settings: |
7ms |
get forum list: |
18ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
64ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 213ms |
| total: | 356ms |

| 0 / 0 |
