English 中文(简体)
DL的职能是否自动在新版上运行?
原标题:Do DLL functions run in a new thread automatically?
  • 时间:2011-09-23 22:50:13
  •  标签:
  • dll

I did some research and I learned that if I run a program my system will automatically start it in a new thread. What does it look like with a DLL?

Some pseudo-code from a DLL, extern_func() is exported from the DLL:

func1()
{
  while(true) ...do something;
}
extern_func()
{
  ...do something
  func1();
  ...do something else
}

Now if call extern_func() in my program, will it run the function in a new thread or do I have to do this explicitly?

最佳回答

No, calling a method in another dll will not automatically start up a new thread.

问题回答

当一项方案启动时,便会产生一个线索。 这通常称为“主线”。

如果你不明确制造其他read子,或使用制造其他read子的职能,那么,即使你称其职能来自DL/图书馆,你的所有法典都将在座。





相关问题
What form is DLL & what makes it processor dependent

I know DLL contains one or more exported functions that are compiled, linked, and stored separately.. My question is about not about how to create it.. but it is all about in what form it is stored.. ...

Create Visual Fox Pro DBF with activex

any one knows if there is a activex dll that can create VFP DBF files? I mean im writing app with 1C:Enterprise 8.2 language, and i need to export some datas into VFP DBF. And i can only use activex ...

Dynamically loading a dll in C#

I have a window to use for editing. The editor should load a dll (which I have full control of) in response to the user s selection to know how to display the information visually. (They re dll s, as ...

How do I link to a DLL from javascript in XULRunner?

I have a dll (that I didn t write) and I would like to use it in an XULRunner application. I know nearly nothing about this, so bear with me. Apparently I can use XPCOM to load the dll and then call ...

Is there a minimal php5ts.dll?

I ve completed my web app and am using mongoose to serve the php pages. The whole app & mongoose is less then 2MB. The php5ts.dll is almost 5MB so that really adds bloat. Also, my app is very ...

DllGetVersion not giving expected results under Windows 7

I have some code that attempts to test whether my application is running with the themes set. Here s the C# code: internal class NativeMethods { [DllImport("comctl32", CharSet = CharSet.Auto, ...

How to restrict access to my DLL

Is possible to restrict access to my .NET DLL library? My application has more EXE assemblies and I need share some code, but I don t want someone else could use that.

Creating a thread in DllMain?

It seems that when a thread is created from within DllMain upon DLL_PROCESS_ATTACH it won t begin until all dll s have been loaded. Since I need to make sure the thread runs before I continue, I get a ...

热门标签