13302

Why do I see a console window when I run a dynamically compiled EXE?

Question:

So I have a program that dynamically compiles a new program at the click of a button.

The new program generates and works perfectly.

The only weird thing is that when I run this newly generated exe, first a console window opens, the title is "C:\calculator.exe"

and then my calculator.exe program opens.

For some reason it is starting the console window and I'm not sure why.

Any suggestions?

Answer1:

Are you using the command line compiler? If so, try using /target:winexe instead of /target:exe.

Recommend

  • How to cache images only in disk using Kingfisher?
  • Why do native C++ projects have a TargetFrameworkVersion?
  • cast stl::vector containing pointers to stl::vector containing constant pointers
  • what is side-cast or cross-cast in Dynamic_cast in C++
  • Vim ctags behaves strangely
  • Modifying files nested in tar archive
  • Android libgdx prefs getting lost
  • C++ accessing vector
  • C++ Pointer Arrays
  • Generic/Unknown HTTP Error with response code 0 using UnityWebRequest
  • How to merge keras sequential models with same input?
  • aapt.exe'' finished with non-zero exit value 1
  • Memory error in python- how to use more memory
  • Updating both a ConcurrentHashMap and an AtomicInteger safely
  • List images(01.png) and descriptions(01.txt) from directory
  • Differences in dis-assembled C code of GCC and Borland?
  • Query to find the duplicates between the name and number in table
  • Tamper-proof configuration files in .NET?
  • Code in Job's Script Block after Start-Process Does not Execute
  • Eloquent update method change created_at timestamp
  • How to use an array of arrays with array_map(…) in PHP?
  • Algorithm for a smudge tool?
  • Initializer list vs. initialization method
  • Nant, Vault & Windows Integrated Authentication
  • How to recover from a Spring Social ExpiredAuthorizationException
  • How to set/get protobuf's extension field in Go?
  • Javascript Callbacks with Object constructor
  • ILMerge & Keep Assembly Name
  • Running a C# exe file
  • Cassandra Data Model
  • Trying to switch camera back to front but getting exception
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • Importing jscolor library in angular 2
  • Large data - storage and query
  • WOWZA + RTMP + HTML5 Playback?
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Checking variable from a different class in C#