Re: Linking Application with the Library file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Thanks one and all for your responses.

Paul,

I agree with you. The Memory map functions which i am using are
not the application functions. I am using these functions to configure
the ISR for Timer. But i am not sure in which library these functions
are included. I have never worked with LOADLIBRARY and GETPROCADDRESS.
Do you have any snippets that can give me some information about how
to use these functions ( LoadLibrary and GetProcAddress). Here are
names of the functions which i am using in my application.

1) // Initialize GPT registers
OUTREG32();

2) EnterCriticalSection(&g_hGptLock);

3) BSPGptSetClockGatingMode(TRUE);

// Assert software reset for the timer
4) INSREG32BF(&g_pGPT->CR, GPT_CR_SWR, GPT_CR_SWR_RESET);

// Wait for the software reset to complete
5) while (EXTREG32(&g_pGPT->CR, CSP_BITFMASK(GPT_CR_SWR),
GPT_CR_SWR_LSH));

// Get BSP-specific clock source
6) clkSrc = BSPGptGetClockSource();

7) KernelIoControl(IOCTL_HAL_RELEASE_SYSINTR, &g_gptIntr,
sizeof(DWORD), NULL, 0, NULL);

8) LeaveCriticalSection(&g_hGptLock);

9) CeSetThreadPriority(g_hTimerThread, THREAD_PRIORITY);

If you tell me in which library these are included i will try to get
them included in my build.

Thanks in advance,

Chandra.


On Jan 22, 8:18 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Those functions are not application functions; they are present in the
device for use by drivers. Therefore, they are typically not in any library
file that would be shipped with an SDK. If you are the device OEM, you can
regenerate your SDK with the appropriate library in it, or you could change
your program code to use LoadLibrary and GetProcAddress to access the
function. The function is in ceddk.dll.

Paul T.

"Chandra" <forquer...@xxxxxxxxx> wrote in message

news:64b8906e-59df-4622-b73f-ea190ca8bfba@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Anthony,

Thnaks for your quick response.

I am using WINCE 5.0 and Evc++ 4.0 for application development. I am
able to compile my application but, unable to link the application
with LIB file. I have included it in the Project>Settings>Link Tab.
The errors which i am getting are like these

IsrClass.obj : error LNK2019: unresolved external symbol MmMapIoSpace
referenced in function "public: void __cdecl
Isr::InitGptInterrupt(void)" (?InitGptInterrupt@Isr@@QAAXXZ). I am
able to find the library file in the specified path but unable to link
it with the application. Does the dll should be placed in some default
directory of WINCE folders.

Hope i am clear to u.

with regards,
Chandra.

On Jan 22, 5:25 pm, "Anthony Pellerin"

<apellerin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Have a look at the SOURCES file of your application, you'll have sections
to
do so. You can also use the Visual Studio IDE to do so.
The DLL will go in the TARGET folder of your BSP and also in the
flatreleasedir.
But to be more accurate, you should gice us more on your environment :
which
version of the tools you're using (CE5, CE6, Visual Studio, eVC++, .......)

HTH

--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT
com>http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Chandra" <forquer...@xxxxxxxxx> a écrit dans le message de news:
44e2a5e2-5c92-4478-8877-4506b1a66...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

How can we link a library(.LIB files) to a application ? Is there any
default folder for the DLL. Any suggestion will be a great help to me.

with regards,

Chandra.

.



Relevant Pages

  • Re: Different folder of exe and dll
    ... choices are to put it in the same folder as the executable, ... I can not use LoadLibrary since the dll need to be pre-loaded. ... How should i create Manifest and update it ... In that case you should use GetProcAddress to access DLL functions (of ...
    (microsoft.public.vc.mfc)
  • Re: networking laptop wont let desktop in.
    ... When I logged off from the newly created account and logged into my ... Per user Group Policy Restrictions for XP Home and XP Pro ... Folder Options, View and scroll down. ...
    (microsoft.public.windowsxp.general)
  • Re: Out of Memory when editing graphic...
    ... Just add a reference to the DLL in the .NET folder. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... When I try to add the barcode to ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Service pack 3 problem
    ... Opening the regsvr32 file is as you say, no dll specified, followed by the ... and no dllcache folder exists, ... After show hidden files, folders, and system files, use WINDOWS Explorer ...
    (microsoft.public.windowsxp.general)
  • Re: Linking Application with the Library file
    ... LoadLibrary and GetProcAddress have been around since DLLs first ... Basically, you're manually loading the DLL, so you get back a handle, as is ... I recall, pointer, to be a pointer to the function signature that you want. ... coredll.dll (and it should be in the SDK headers, too, I think). ...
    (microsoft.public.windowsce.embedded)