Click here to Skip to main content
15,887,135 members
Home / Discussions / COM
   

COM

 
AnswerRe: COMException, error code :80040154 Pin
Anup Kasat9-Feb-15 2:12
Anup Kasat9-Feb-15 2:12 
QuestionIFileSaveDialog / Filename using C++ Pin
jung-kreidler5-Jun-14 20:03
jung-kreidler5-Jun-14 20:03 
SuggestionRe: IFileSaveDialog / Filename using C++ Pin
Richard MacCutchan5-Jun-14 22:23
mveRichard MacCutchan5-Jun-14 22:23 
GeneralRe: IFileSaveDialog / Filename using C++ Pin
jung-kreidler23-Jun-14 21:17
jung-kreidler23-Jun-14 21:17 
QuestionHow to create a simple COM component in C++ Pin
CoRger5-Jun-14 1:07
CoRger5-Jun-14 1:07 
AnswerRe: How to create a simple COM component in C++ Pin
Richard MacCutchan5-Jun-14 3:04
mveRichard MacCutchan5-Jun-14 3:04 
AnswerRe: How to create a simple COM component in C++ Pin
Member 989964421-Jun-14 20:19
Member 989964421-Jun-14 20:19 
QuestionSetting up the COM+ Identity using C# Code Pin
Juan Topo19-May-14 8:50
Juan Topo19-May-14 8:50 
Hello, I recently started programming with COM Objects Catalog using C-Sharp.

In principle, everything turned out pretty simple and I managed crar COM objects, install them and make them visible from the console, register and configure some properties of automatic way.

However I am with some problems as it relates to the configuration of some properties, namely:

While I can configure the identity component, either as INTERACTIVE USER or a specific user, I could not configure the identity of the COM + application with the Auditors Local System (Local System, Local Service and Network Service)


I do this as follows:

C#
            Boolean resultado = false; ;
            ICOMAdminCatalog catalog;
            ICatalogCollection applicationCollection;
            ICatalogObject application;
            int applicationCount;
            int i;

            try
            {
                catalog = (ICOMAdminCatalog)new COMAdminCatalog();
                applicationCollection = (ICatalogCollection)catalog.GetCollection("Applications");
                applicationCollection.Populate();
                applicationCount = applicationCollection.Count;
                

                for (i = 0; i < applicationCount; i++)
                {
                    application = (ICatalogObject)applicationCollection.get_Item(i);
                    
                    if (application.Name == nombreApp)
                    {
                        application.Value["ApplicationAccessChecksEnabled"] = false;

// Interactive User:
 application.Value["Identity"] = "Interactive User";
                                applicationCollection.SaveChanges();

//Specific user:

 application.Value["Identity"] = txtUsuario.Text;
                                application.Value["Password"] = txtClave.Text; 

//Save Changes

 applicationCollection.SaveChanges();

            }

            catch (Exception ex)
           {
                resultado = false;
                MessageBox.Show(ex.Message);
            }
        }


Can you think how to configure the Local System Account? I tell them that if IDENTITY indicated in the following:

@ "nt authority \ LocalService"

and PASSWORD "" (empty)

Everything goes well, but in reality is set to a specific user with the supplied information.

From already thank you very much! Laugh | :laugh:
QuestionHow do I set variable in ShockwaveFlashObjects C# Pin
Member 106494598-Mar-14 5:04
Member 106494598-Mar-14 5:04 
QuestionVB6 to .Net Interop issue Pin
Sampath Sridhar1-Dec-13 22:10
Sampath Sridhar1-Dec-13 22:10 
QuestionCallback From .NET Com Class to Delphi Pin
P1kfr1k9-Oct-13 0:05
P1kfr1k9-Oct-13 0:05 
SuggestionRe: Callback From .NET Com Class to Delphi Pin
Richard MacCutchan9-Oct-13 0:49
mveRichard MacCutchan9-Oct-13 0:49 
QuestionThe group or resource is not in the correct state to perform the requested operation Pin
Hari-Adarapu19-Sep-13 11:49
Hari-Adarapu19-Sep-13 11:49 
QuestionWorkBooks::Opentext help Pin
ForNow13-Sep-13 10:37
ForNow13-Sep-13 10:37 
AnswerRe: WorkBooks::Opentext help Pin
ForNow14-Sep-13 16:12
ForNow14-Sep-13 16:12 
QuestionRe: WorkBooks::Opentext help Pin
Richard MacCutchan14-Sep-13 21:52
mveRichard MacCutchan14-Sep-13 21:52 
AnswerRe: WorkBooks::Opentext help Pin
ForNow15-Sep-13 5:13
ForNow15-Sep-13 5:13 
GeneralRe: WorkBooks::Opentext help Pin
Richard MacCutchan15-Sep-13 5:27
mveRichard MacCutchan15-Sep-13 5:27 
QuestionWin8: Credential provider. CPUS_ONLOCK_WORKSTATION scenario Pin
_clown_9-Sep-13 23:27
_clown_9-Sep-13 23:27 
QuestionATL and MFC string conversion macros conversion macros Pin
ForNow13-Aug-13 10:38
ForNow13-Aug-13 10:38 
AnswerRe: ATL and MFC string conversion macros conversion macros Pin
Richard MacCutchan13-Aug-13 20:50
mveRichard MacCutchan13-Aug-13 20:50 
Question0x80020009 access rights opentext Pin
ForNow9-Aug-13 10:22
ForNow9-Aug-13 10:22 
GeneralRe: 0x80020009 access rights opentext Pin
Richard MacCutchan9-Aug-13 23:34
mveRichard MacCutchan9-Aug-13 23:34 
GeneralRe: 0x80020009 access rights opentext Pin
ForNow12-Aug-13 10:39
ForNow12-Aug-13 10:39 
Generalits a text Formatting problem Pin
ForNow13-Aug-13 10:14
ForNow13-Aug-13 10:14 

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.