1. Open Eclipse C++
2. File->New->C++ Project
i. Enter your Project name
ii. Select Shared Library
o Empty Project
iii. Click Finish
3. In the Project Explorer, right click on your project select Properties
i. Select C/C++ General
Paths and Symbols
a. On the Includes tab add the paths to the CHeaders\XPLM
and CHeaders\Widgets folders using the 'Add' button and
checking 'Add to all configurations' and 'Add to all languages'
b. On the Symbols tab add the IBM=1 symbol by using the 'Add'
button and checking 'Add to all configurations' and
'Add to all languages' setting the Name: IBM and Value: 1
c. On the Library Paths tab add the path to the Libraries\Win
folder using the 'Add' button and
checking 'Add to all configurations' and 'Add to all languages'
ii. Select C/C++ Build
Settings
a. On the Build Artifact tab select Configuration: [All
configurations] set the Artifact name to what you
would like your plugin's filename to be.
b. On the Build Artifact tab select Configuration: [All
configurations] set the Artifact extension to 'xpl'
c. On the Build Artifact tab select Configuration: [All
configurations] you may delete the output prefix
d. On the Tool Settings Tab for MinGW C++ Linker
Libraries
Add XPLM and XPWidgets to the Libraries(-l) box.
5. Create <YourProjectName>Win.cpp containing:
#include <windows.h>
#include <stdio.h>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Code
eclipse, plugin, quick, sdk, setup, x-plane
I drafted this a while back. I think it is interesting now so publishing (5/19/2009):
In my opinion, one of the biggest worries of any IT organization is what I refer to as ‘Blind Monkey IT’. What this leads to in my limited experience is a lack of initiative and a ‘blind action’ mentality. Perfect examples of this are the pc support tech. who can’t fix your problem because it isn’t in his script. I know right now every manager is shaking their collective fist at me, but this seems to be the perfect way to make your team redundant. Ever wonder why the off-shore csr with the bad accent insists your problem is on his script. Now, don’t get me wrong documentation is a good thing but there has to be a stopping point.
Code, Life
blind, creativity, it, monkey, outsource
I am always in need of very basic logging for my projects, here is the logger I wrote for my XPFF project, remember this code is as-is as the project is still very active:
Read more...
Code
c++, logger, logging, project
My Social Networks