Questions tagged [entry-point]

For questions concerning the "entry point" of an application or library. The entry point is a special function or location in the code where control is passed from the operating system to the program.

450 questions
4
votes
2 answers

delphi Import dll function with specified entry point

How can I define this function in Delphi ? I know imports only without entry point and can't find any usefull example :( That's written in C# [DllImport("dwmapi.dll", EntryPoint = "#131")] static extern int DwmpSetColorizationParameters(ref…
user532231
4
votes
1 answer

What's the differences between Address of Entry Point and Original Entry Point?

I'm learning PE files structure, but I'm confused about the concept of Address of Entry Point and Original Entry Point. I know Address of Entry Point can be calculated according to Image_Optional_Header, Does Original Entry Point do? And the code…
Hu Zhenwu
  • 41
  • 1
  • 2
4
votes
2 answers

What does "ENTRY" mean in a linker script?

I am beginning to learn to write some low-level software for micro-controllers, and I've started studying linker scripts. I don't really get the meaning of the ENTRY command in this context. Since most micro-controllers start execution at a…
josecm
  • 413
  • 3
  • 15
4
votes
1 answer

Entry point of an app in Objective-C

I started a new iOS project in Xcode. File-new-SingleViewApp Then I selected the following files and moved to the trash. Then I removed the following keys from the Info.plist file: Then I added a C file named main.c The content of the main.c file…
joan
  • 2,407
  • 4
  • 29
  • 35
4
votes
2 answers

Environment variables from env fiile in entrypoint in docker-compose.yml

I would like to use variable from env-file in docker-compose in entry point: # environment.env HOST=example.com # docker-compose.yml some_service: ... env_file: ['environment.env'] entrypoint: ['myexecutable', '--host',…
4
votes
1 answer

Python entry point commandline script not found when installing with --user flag

I recently wrote a package which comes with a command line tool. The setup.py looks something like this from setuptools import setup setup(... entry_points = { 'console_scripts': [ 'cmdname =…
Benjamin Maier
  • 522
  • 6
  • 14
4
votes
1 answer

Docker container exit(0) when using docker run command, but works with docker start command

I am attempting to dockerize a GUI app and have had some success. If I build the dockerfile into an image and then perform a docker run --name testcontainer testimage it appears that the process begins but the abruptly stops. I then check the…
codenaugh
  • 857
  • 2
  • 12
  • 27
4
votes
1 answer

How to change entry point of a Java program to a C signature?

I was fooling around with JNA trying to execute some C code in a Java program. This is a working example I found online (JNA required in build path): package core; import com.sun.jna.Library; import com.sun.jna.Native; import…
jaySon
  • 795
  • 2
  • 7
  • 20
4
votes
7 answers

How can I choose the "Startup object" in project properties while the listbox is empty?

I have a WPF project which I try to make it a single instance app using the recipe with Microsoft.VisualBasic dll described by Dale Ragan here at StackOverflow Doing so in Visual Studio 2013 with Framework 4.5 give me 2x the same error while…
Eric Ouellet
  • 10,996
  • 11
  • 84
  • 119
4
votes
3 answers

Why not call FreeLibrary from entry point function?

I'm writing a DLL that needs to call a separate DLL dynamically multiple times. I would like to keep the callee loaded and then just unload it when my DLL is unloaded. But according to Microsoft, that's a bad idea. The entry point function should…
John M Gant
  • 18,970
  • 18
  • 64
  • 82
4
votes
2 answers

Creating an entry point in a C# DLL to call from WIX

I am trying to find a way to create an entry point for my C# DLL. I am aware of how to call other DLL's in C# but cannot find how to create one. I need this in order to call it in my WiX installer as a customer action.
Scott Boettger
  • 3,657
  • 2
  • 33
  • 44
3
votes
0 answers

How to make a method channel call on a vm-entry-point instance?

I'm developing a flutter application that has some native codes, that is, I use the channel to retrieve some native resources, so far my application works fine, but when using libs to have a floating window in any part of the system I need to use…
3
votes
1 answer

Play framework entry point

When I send a request from my browser to Play! on localhost:9000, what object/method in PlayFramework first starts processing my request to the server? I know PlayFramework uses netty framework to work with requests. So maybe some netty method…
user471011
  • 7,104
  • 17
  • 69
  • 97
3
votes
1 answer

C# args without a main method?

I am new to the C# world but have seen other programming languages give access to command-line arguments from places like main function/method, sys.argv, etc. It was unusual to see the following statement placed globally in the boilerplate ASP.NET…
Ardent Coder
  • 3,777
  • 9
  • 27
  • 53
3
votes
0 answers

What are WinMainCRTStartup, tmainCRTStartup, WinMain functions used for?

Possible Duplicates: “APIENTRY _tWinMain” and “WINAPI WinMain” difference What functions does _WinMainCRTStartup perform? I just started to dive into windows programming. And when I tried to understand the win 32 program I noticed that the…
xiao 啸
  • 6,350
  • 9
  • 40
  • 51