Prev: Windows 7 Multi-touch driver capability discovery and reboot p
Next: development of a virtual cdrom UMDF driver
From: r1ddler on 19 Feb 2010 05:56 I am using WDK to build a driver. i want to use vector from STL. i added USE_STL=1 STL_VER=60 in sources and #include <vector>. do i have to add anything else? or is there a other way to add this? In general, what do you have to do to use part of the stl-lib.
From: Maxim S. Shatskih on 19 Feb 2010 07:16 >I am using WDK to build a driver. > i want to use vector from STL. i added > USE_STL=1 > STL_VER=60 > in sources and #include <vector>. > do i have to add anything else? Rewrite the whole STL (or at least std::vector) to be not dependent on C++ exceptions. Or: take some experimental hackerish C++ exception support for Windows kernel from the web. Or: write your own std::vector (trivial). Or: do not use vector at all, it is bad for kernel mode due to inferior allocation pattern. Add a LIST_ENTRY to each of your objects and a list head somewhere else. You can also use Rtl generic tables which are splay and AVL trees. -- Maxim S. Shatskih Windows DDK MVP maxim(a)storagecraft.com http://www.storagecraft.com
From: Don Burn on 19 Feb 2010 08:05
Don't use STL and since you are having to ask do not use C++ since until you know the driver development area you are asking for problems. C++ is used in the kernel by some experts but they recognize the large number of problems that are possible and work carefully to avoid them. -- Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "r1ddler" <r1ddler(a)discussions.microsoft.com> wrote in message news:9A1174CA-D446-42D6-88B8-6CB488D7CEE8(a)microsoft.com... >I am using WDK to build a driver. > i want to use vector from STL. i added > USE_STL=1 > STL_VER=60 > in sources and #include <vector>. > do i have to add anything else? or is there a other way to add this? > In general, what do you have to do to use part of the stl-lib. > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4879 (20100219) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4879 (20100219) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |