OLE-Automation is a Microsoft COM based technology that allows one application to control another via an exposed public interface.
Questions tagged [ole-automation]
103 questions
1
vote
2 answers
What is exactly VARIANT data structure?
I am learning Microsoft OLE Automation and COM and it use VARIANT to pass data. I have read that it is union data structure but did not find enough information regarding this.
It would be helpful to me understand more about VARIANT as I am new to…

Mehul Donga
- 105
- 3
- 14
1
vote
1 answer
How to create safearray of POINT?
For oleautomation type, there are VT_xxx types:
SAFEARRAYBOUND rgsabound[1];
rgsabound[0].lLbound = 0;
rgsabound[0].cElements = m_cPoints;
psa = SafeArrayCreate(VT_VARIANT, 1, rgsabound);
For custom types, there is…

Jichao
- 40,341
- 47
- 125
- 198
1
vote
0 answers
Microsoft IDL, Change attributes on an interface
some time ago I prepared an idl file to define the interface for plugins of a VB6 application.
Reviewing code I found there is an interface which looks like this:
[
odl,
uuid(),
version(1.0),
nonextensible,…

Andrea Rossini
- 320
- 2
- 11
1
vote
1 answer
oleaut32.dll registry becomes corrupted
This issue is the biggest headache I deal with currently.
I have a VB6 application that receives an external data feed that I inherited a couple years ago from it's original developer. It runs on a remote server and will run fine for a month or so…

jpaull
- 278
- 1
- 6
- 17
1
vote
1 answer
Delphi Read Email with Outlook Automation
I have a running code which I can use to read the email body text .The problem is I would like to move the mails that I read. Forexample I read the mail in inbox and I want to move it to another folder in Outlook. After searchin I can do that with…

DelphiCoding
- 23
- 1
- 6
1
vote
1 answer
Recommend me a solution for generating print preview and printing
INTRODUCTION AND RELEVANT INFORMATION:
I am maintaining an old application and I need to implement feature that generates reports based on data calculated from a database. User must also have an additional option of printing the file ( user must be…

AlwaysLearningNewStuff
- 2,939
- 3
- 31
- 84
1
vote
1 answer
OLE automation: How to check if a variant references an automation object
I would like to know how can i determine, whether a variant is referencing an OLE automation object, or not.
I'm exporting some Excel graphs to Powerpoint.
I have this code:
var PptFile: Variant;
....
// PptFile _might_ be…

beerwin
- 9,813
- 6
- 42
- 57
1
vote
1 answer
How to debug a background IDE that Jenkins starts as a SYSTEM user
We are successfully using the Jenkins CI server on Windows 7. It mainly does compiles using CodeWarrior. Using the Win32::OLE library in Perl to automate the IDE, I recently added a new Unit Test job that compiles then also starts the debugger, runs…

Frank
- 83
- 1
- 6
1
vote
1 answer
Create a VFP Chrome or FireFox Object
We have a VFP application and need to open a specific site in Chrome or Firefox. The site is optimized for either of those browsers.
We know how to Createobject for InternetExplorer.Application to open a browser inside our application. This allows…

davids
- 5,397
- 12
- 57
- 94
1
vote
0 answers
800a0ad error in VBS, Windows 7 32
I wrote a simple ActiveX Dll object with C++ & ATL (VS2010) for using in VBS scripting engine embedded in a SCADA system. It's just a code carcass now, just interfaces with stubs, no dependencies. Every interface designed to be called from client…

Minor Threat
- 2,025
- 1
- 18
- 32
1
vote
1 answer
Programmatic Execution Excel Macro on Remote Machine from a website
I have a website where users generate an Excel report using a macro, when I try to run it in my local machine it generates perfectly and runs the macro inside Excel. When I publish it into the server and at the same time I am logged in there (RDP…

Raymund
- 7,684
- 5
- 45
- 78
0
votes
1 answer
Sql Ole Automation Procedure sp_OAGetProperty 'responseText' not returning text results
I am using SQL Ole Automation procedures to post content to Apis and then read the responses, all work successfully.
I have run into an issue with a specific API, in the case when the Response Code is not 200 then the 'responseText' is not in a…

ym185
- 16
- 3
0
votes
0 answers
How to make a typedef struct in ODL OLE compatible?
I'd like to define a struct in typelib definition language to create a typelib.
So far I have a struct and two interfaces:
typedef [uuid(FD68C55A-A933-4c4a-BD26-A1967ABA6F8F), version(1.0)]
struct tagVerbListEntry {
[helpstring("Key")]
BSTR…

René Rössler
- 7
- 2
0
votes
1 answer
How to get full path of active word document by using Ole automation
I've succeeded in obtaining the file name of the currently active word document using Ole automation. By the way, how do I get the full file path for this document?
I only get the name of the document currently open in fileName from the code below,…

secuman
- 539
- 4
- 12
0
votes
1 answer
How can I setup the numberr format of a region of an Excel worksheet using OleAutomation?
I am not beeing able to settup a region of cells using Excel OleAutomation, even changing the string type it raises an exception:
Variant xlApp, wBook, wSheet, vRange, vCell1, vCell2;
WideString xlFile = "C:\\Temp\\ExcelTestFile.xlsx",
…

Jayme Jeffman
- 53
- 6