none
visual studio 2013 build & exe execution results are different. RRS feed

  • Question

  • Imports Microsoft.Office.Interop

    Module Module1

        Sub Main(ByVal path() As String)
            Dim oApplication As PowerPoint.Application = Nothing
            Dim oPressentation As PowerPoint.Presentation = Nothing

            'isRunningPowerPoint()

            Try
                If oApplication Is Nothing Then
                    oApplication = New Microsoft.Office.Interop.PowerPoint.Application
                End If

    If you build and run visual studio 2013, it will run normally even if PowerPoint is already on.

    However, if you run it with an exe created in release mode, it will not run with an error if PowerPoint is already on.

    How can I get the same results as when building with exe?

    Thank you !


    • Edited by Pada_ Thursday, October 24, 2019 2:22 AM
    Thursday, October 24, 2019 2:03 AM