Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL Hell P2
Message
From
12/09/2000 17:14:42
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00415475
Message ID:
00415563
Views:
12
How would I do declared a function as exported?

Jim

>>How would I create a dll in C then?
>>
>>Jim
>
>In VC++ 6.0, select New/Project/Win32 DLL. There is one required function, DllMain, which would follow the skelton below:
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
>{
>	// Remove this if you use lpReserved
>	UNREFERENCED_PARAMETER(lpReserved);
>
>	if (dwReason == DLL_PROCESS_ATTACH)
>	{
>	}
>	else if (dwReason == DLL_PROCESS_DETACH)
>	{
>	}
>	return TRUE;
>}
You'll have to declare any exposed functions as being exported.
Thanks

Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform