Using windows-native DLLs in WINSCW target

Login to reply to this topic.
Sat, 2006-01-14 19:50
Joined: 2006-01-12
Forum posts: 6
Hello,

Can I use windows-native DLLs from drivers under Symbian's WINSCW target?

I need to map some physical memory area (to use a physical device), and I have a DLL that maps that area to user-space, but I don't know how to use it under WINSCW.

Thanks in advace,

Nir

Mon, 2006-01-16 12:17
Joined: 2004-11-29
Forum posts: 1233
Re: Using windows-native DLLs in WINSCW target
How far have you gotten in your tries?

I have used the Windows API in WINSCW without much problems (didn't work well though together with symbians stdlib though.)

I have not used any DLLs though, but I assume you can manage them through the Windows API, loading it, etc.

To use the windows api i simply include the <window.h> header in the file needing it (I keep all windows specific functions in the same file, and only windows specific functions here),
And in mmp-file, you can specify wich windows specific libs to use like this:

START WINS
WIN32_LIBRARY GDI32.LIB USER32.LIB KERNEL32.LIB
END
Mon, 2006-01-16 12:22
Joined: 2006-01-12
Forum posts: 6
Re: Using windows-native DLLs in WINSCW target
Thanks. I did manage eventually.
I had to add win32_headers in the MMP file, and used #pragma comment(lib, <mylib>) - and it was fine.

A did came across another problem (mounting the media), but that's going in another post...

Nir
  • Login to reply to this topic.