Questions tagged [com]

10770 questions
1

votes
0

answer
56

Views

How to get the JSON Body for CreateAsync Force.com Toolkit for .NET

Hi I am trying to create an Orderitem for an Order just created but I am getting this following error JSON Deserialization failed on token 'null' and has left off in the middle of parsing a row. Will go to end of row to begin parsing the next row How do I get the JSON RAW Body that is being posted s...
CidaoPapito
1

votes
0

answer
403

Views

Symfony - Api Platform - How to automatically add the authorized user as a resource owner

I'm building an API using the new Symfony 4 and API Platform, and what I cannot seem to gather from the documentation is how to automatically add the currently authorized user to a resource upon creation. I am using JWT authentication, and /api/ routes are protected from unauthorized users. I want t...
Danielle Suurlant
1

votes
0

answer
234

Views

Authorization Required error while trying to list hotels.

I'm affiliate to booking.com then I want to use Booking API docs here. The request which I'm using is this: GET https://distribution-xml.booking.com/2.0/json/hotels?hotel_ids=10004 I have used basic authentication in my request headers But I am getting this error : { 'errors': [ { 'message': 'Auth...
persia
1

votes
1

answer
189

Views

ApiPlatform + JwtAuthenticationBundle

I am trying to configure api platform with JwtAuthenticationBundle, on top of a Symfony 4 app, without FOSUserBundle. I want to be able to use the swagger interface. # config/packages/api_platform.yaml api_platform: swagger: api_keys: - { name: 'Authorization', type: 'header' } mapping: paths: ['%ke...
MatMouth
1

votes
0

answer
243

Views

Variant type mismatch at run time

I am trying to automate Bentley Microstation from Excel using runtime objects without project References for a proof of concept. Sub MSFromXlRuntime() Dim MS As Object Dim DesignFile As Object Dim Line As Object Dim startPoint As Variant Dim endPoint As Variant Set MS = CreateObject('MicroStationDGN...
Alex
1

votes
0

answer
266

Views

Use InvokeMember to get a collection

I'm trying to use PowerShell to interact with SAP's Universe Design Tool (UDT) via its COM SDK. I've had success getting/setting the root object's properties: # create UDT instance $designer = New-Object -ComObject Designer.Application # get the version [System.__ComObject].InvokeMember('Version',[S...
craig
1

votes
2

answer
492

Views

python win32com Attribute Error in constants

I tried to program with the win32com Python library to handle PowerPoint files. However when I pass constants to the function in the following way, new_pre.ExportAsFixedFormat(options.output, win32com.client.constants.ppFixedFormatTypePDF, win32com.client.constants.ppFixedFormatIntentPrint, win32com...
Polydick
1

votes
1

answer
323

Views

API Platform: No such file or directory

I'm working my way through the API Platform tutorial called 'Creating your First API with API Platform, in 5 Minutes.' When I run this command: docker-compose exec app bin/console doctrine:schema:update --force I get these errors: [Doctrine\DBAL\Exception\ConnectionException] An exception occurred i...
Gary Harris
1

votes
0

answer
146

Views

COMAdminCatalogCollection.Populate throws error C#

I am using the COMAdminCatalog API for .net. I am currently getting certain properties of COM+ applications and components from an array of servers remotely. For the most part, my process doesn't have a problem retrieving this data. However, a few of the COM+ application's components will not popula...
Mattaceten
1

votes
1

answer
111

Views

Make .NET COM object accessable over the LAN?

Sorry, I'm very new to COM, and I'm trying to figure stuff out. So I created some test COM-object in C# based DLL: using System.Runtime.InteropServices; using System.Diagnostics; using System; [ComVisible(true)] [Guid('')] public interface IMyTest { string Test(); } [ComVisible(true)] [ClassInterfac...
user2102508
1

votes
1

answer
64

Views

How do I wait for third part application to finish updating. GUI

I'm using the unmanaged windows automation api from C# to automate a third party application. I use this to select a list item in list A in the third part application. This causes the third party application to change the list items in list B. List B items are logically child elements (not in terms...
Tim Galvin
1

votes
0

answer
193

Views

How to deploy to a Kubernetes Cluster on Google Cloud using a managed DBMS on Google Cloud SQL?

According to the documentation found here, I followed these steps: Created and Published the 3 Docker images by building them and publishing them correctly to my Docker registry on Google Container Registry Created a Kubernetes clusters with 3 nodes on Google Cloud Platform Created a SQL Instance on...
Erik Saunier
1

votes
0

answer
248

Views

Not able to add a video to a Medium story

I was writing a blog about the chatbot I made. I pasted the URL of my video which is uploaded on Vimeo and then pressed Enter. The video doesn't load and this is the error I get: cdn.embedly refused to connect I think it is an issue with Medium not being able to connect to Embedly's API but still I...
1

votes
0

answer
579

Views

C# Custom dll - ActiveX component can't create object error in Microsoft Access

I have created a c# dll that I use in COM. It also makes use of the EPPlus.dll VBA in MS Access picks up the object, but i get an error 'ActiveX component can't create object' I've posted my code for C# and VBA below. I use 32 bit MS Office, compile the dlls to 32bit and use 32bit regasm. using Offi...
Eminem
1

votes
1

answer
118

Views

C# Running Active Automation Object - How to Source events?

I have a (long running) console application, written in C#, which I want to be able to manipulate through COM (so no InProc DLLs and regasm.exe). IDispatch is all I need - so a classic OLE Automation object. Here I'll present a minimal version of what I try to do. I've defined a COM class like this:...
Cleric
1

votes
1

answer
95

Views

Crash when I use CRibbonUI.InvalidateControl or CRibbonUI.Invalidate in office2007 but it was good in office2013

I'm trying to develop a Windows office plug-in int ppt. There's a login button there. Its initial state is not logged in. When I click on it, its status is changed to login, I need change the text above it, I query to update function is RibbonUI InvalidateControl or Invalidate, but when I call these...
Barmaco
1

votes
1

answer
103

Views

Business model with APIPlateform

We use Symfony 4 + Doctrine + APIPlateform to deliver a HTTP API. APIPlateform exposes Doctrine entities as API Rest resources (via annotation inside entity class), which (I found) no a good practice, since the business model (exposed by the API) should be the same than the Symfony Doctrine model. A...
Thomas Decaux
1

votes
0

answer
45

Views

How do I programmatically add a user to the Access Permissions in DCOM Config

I have created an installer using WIX and have a custom action to add my COM+ application using COMAdminCatalog. But what I would like to do is also configure the security for the Access Permissions. After install these use the default COM permissions, but I would like to customise these in my insta...
BassetMan
1

votes
1

answer
204

Views

regsvr32 not registering COM dispinterface

My system is a Windows 10 64-bit fall creators edition with Visual Studio 2017 Professional. I have a COM interface with the following IDL (ISomeInterface.idl): import 'oaidl.idl'; import 'ocidl.idl'; [ object, uuid(61E246F6-3F22-404B-8EA8-E4D13F3206D6), pointer_default(unique) ] interface ISomeInte...
ScoJay
1

votes
2

answer
438

Views

How to go back to CTRL+ALT+DELETE logon page if the custom credential provider fails to do any authentication?

I have enabled CTRL+ALT+DELETE secure attention sequence (SAS) for windows logon using local security policy. (secpol.msc , Security Settings->Local Policies->Security Options->Interactive Logon: Do not require CTRL+ALT+DEL -> Disabled ) Currently the machine is using a facial based custom credentia...
RP.
1

votes
1

answer
306

Views

How to get a progID from the ROT?

Introduction: I'm trying to iterate through the ROT (Running Object Table) and search for a specific progID of a COM object. In my case, the progID should be Excel.Application. For example, if i have a single instance running of excel, i get the Excel.Application like this: Excel.Application excel =...
Essigwurst
1

votes
1

answer
107

Views

Excel COM interop - why are return types often dynamic?

stupid question possibly, but I'm working with Microsoft's Office/Excel Interop type library. I've noticed that many return types are of 'dynamic' type; for example, Excel.Workbook wb = ...; var ws = wb.ActiveSheet; ws would be 'dynamic' instead of returned as an 'Excel.Worksheet' - but why is that...
Bogey
1

votes
1

answer
463

Views

Use custom normalizer to modify class properties

I have an entity with 2 properties, name and photo. The name property is read from the database but I have to fill the photo property with some other information. I have followed the Writing a Custom Nomalizer tutorial from the docs and I have made my custom normalizer:
Carles
1

votes
1

answer
768

Views

Exc.: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

I am using the Microsoft.AspNet.WebApi.Client (Version 5.2.4). Also Newtonsoft.Json is referenced in my project (Version 11.0.2). I am trying to get the results of a web-service call as follows: ... using (var client = new HttpClient()) { ServicePointManager.SecurityProtocol = SecurityProtocolType.T...
Alexander
1

votes
1

answer
463

Views

Excel spawned from powershell script not quitting [duplicate]

This question already has an answer here: Excel, save and close after run 5 answers We're migrating databases so I'm using powershell to modify the hundreds of excel files that reference to old DB instance to the new one. This is all fine and works as intended. The problem I have is that the Excel...
George Rainone
1

votes
1

answer
44

Views

Issue with initializing COM object

I compiled the following VB code and got the dll ('TestVB.dll') and tlb ('TestVB.tlb') files as output. Imports System Imports System.Runtime.InteropServices Namespace TesterNS Public Interface _Tester Function GetMonth() As Integer End Interface Public Class Tester Implements _Tester Public Tester(...
user1198065
1

votes
1

answer
72

Views

Is Ruby able to import a C# COM DLL

I have tried to access a C# DLL using this approach described here without success: Can Ruby import a .NET dll? I have made a COM DLL (RubyToCSharp.dll) with: [assembly: ComVisible(true)] and Register for COM interop (like in the example): using System; using System.Runtime.InteropServices; using Sy...
1

votes
1

answer
47

Views

MSXM2.DOMDocument instance creation interrupts execution flow

When a MSXML2.DOMDocument() instance is created from .NET COM component, it allows the current method execution flow to be interrupted and let the other requests to execute on the same thread and when they are done it resumes the initial method that was interrupted. But the same observation is not...
akira
1

votes
0

answer
326

Views

“Insufficient resources” when sending message larger than 1.1 MB to MSMQ via PHP

I'm trying to send messages to MSMQ using PHP. When the message is smaller than approximately 1.1 MB the message is sent. Otherwise, I get exception 'com_exception: There are insufficient resources to perform this operation.' The message is smaller than the limit 4 MB. This is what I've found out s...
DropDropped
1

votes
0

answer
56

Views

Developing Com Wrapper to .NET Lib

I'm trying to create a COM Wrapper to an existing .net Lib. Nothing seems to work from a COM perspective. I started 'walking' back until nothing of my code remained I tried a basic C++ COM client pointing to a sample .net Server to figure out if the COM interop was working. I can __uuidof() and get...
DrBoo
1

votes
0

answer
243

Views

Basic Design - Rest communication with Symfony 4 projects

I would like know, how big api frameworks in Symfony 4 would look like. For example, there are three Apis: Price Api (data comes from a different system) Product Api (data comes from a different system) User Api and several symfony client projects (web-catalog, basket, special product configurator...
ABSimon
1

votes
0

answer
35

Views

Use functions to dll in php on windows

I need to use the functions of a dll using php. I have read that through the COM class I can call their methods and access their properties in php. This is my code for test:
Francisco Quijada
1

votes
0

answer
2.6k

Views

Retrieving the COM class factory for component 80040154 Class not registered - DLL is definitely in registry and app is using x86

I'm trying to integrate a Brother QL-700 label printer into a C# application that I'm writing. I've created a console application to test the printer with and added the following code (taken from the SDK on the Brother website): class Program { private const string TEMPLATE_DIRECTORY = @'c:\program...
markp3rry
1

votes
1

answer
171

Views

How to use IMAPI2 IBurnVerification Interface in powershell?

I'm making a script to burn image on a disc with IMAPI2 in powershell. I'm unable to use the IBurnVerification interface in order to set the BurnVerificationLevel so that it will verify the burn. I have compiled the Interop containing the interface into a dll and load it from my script since its app...
LiNEouT
1

votes
0

answer
67

Views

.NET: Can C#/C++CLI overload/hook IUnknown?

I have been playing with COM/NET for a while now, and I am curious if the common language runtime allows you to hook/override IUnknown::QueryInterface so that when QueryInterface is called with a specific IID, it will work differently than default. One way of accomplishing this is by creating a pro...
Dmitry
1

votes
0

answer
89

Views

Component Object Model via C++

I want to use object of my software using COM interface my code is : ::CLSIDFromProgID(OLESTR('SGNSAutomation.SGNSApplication'), &clsid); IID iid; HRESULT hr = CoCreateInstance(clsid, NULL, CLSCTX_ALL, IID_IDispatch, (LPVOID*)&pWMPDispatch); IDispatch * pdisp = (IDispatch *)NULL; DISPID dispid; DIS...
mahdi Lotfi
1

votes
0

answer
875

Views

information not available, No symbols loaded for .dll

I applied Invoke to use object of an application in C++ but an error occurred. error:information not available, No symbols loaded for GPNSAutomation.dll My codes is : ::CLSIDFromProgID(OLESTR('SGNSAutomation.SGNSApplication'), &clsid); IID iid; HRESULT hr = CoCreateInstance(clsid, NULL, CLSCTX_ALL,...
mahdi Lotfi
1

votes
1

answer
93

Views

How can I set value on slider

I tried set value on slider. I can connect to it. But then I try set value catch _ctypes.COMError: (-2146233079, None, (None, None, None, 0, None)) I tried this, but it not helps.
Denis_N
1

votes
0

answer
53

Views

Test: is caller from Internet Explorer ended?

(sorry for my bad english) In a my.vbs I start the IE with: Set oIE_ = WScript.CreateObject( 'InternetExplorer.Application', 'IE_' ) and make some settings in the IE with: oIE_.navigate my.html Then I have this Sub: Sub IE_onQuit msgbox 'IE closed !' End Sub With this callback-Sub the my.vbs can ‎...
Teddy
1

votes
1

answer
452

Views

API Platform returns type error instead of validation error when passing null to a string field

I'm using API Platform v2.2.5, and in the process of writing tests for my resources I've discovered that, when null is provided for a field of type string, an error response is being returned during the denormalization process, which includes a non client-friendly message and a stack trace. This is...
James Crinkley

View additional questions