|
From: <br...@us...> - 2009-04-01 02:42:43
|
Revision: 3878
http://openvrml.svn.sourceforge.net/openvrml/?rev=3878&view=rev
Author: braden
Date: 2009-04-01 02:42:37 +0000 (Wed, 01 Apr 2009)
Log Message:
-----------
Fixes for the Windows implementation of openvrml::local::dl::error().
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/libopenvrml/openvrml/local/dl.cpp
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-04-01 02:28:51 UTC (rev 3877)
+++ trunk/ChangeLog 2009-04-01 02:42:37 UTC (rev 3878)
@@ -1,5 +1,11 @@
2009-03-31 Braden McDaniel <br...@en...>
+ * src/libopenvrml/openvrml/local/dl.cpp
+ (openvrml::local::dl::error()): Fixes for the Windows
+ implementation.
+
+2009-03-31 Braden McDaniel <br...@en...>
+
Added a dlerror work-alike; use it to emit some diagnostic
information if loading a module fails.
Modified: trunk/src/libopenvrml/openvrml/local/dl.cpp
===================================================================
--- trunk/src/libopenvrml/openvrml/local/dl.cpp 2009-04-01 02:28:51 UTC (rev 3877)
+++ trunk/src/libopenvrml/openvrml/local/dl.cpp 2009-04-01 02:42:37 UTC (rev 3878)
@@ -20,8 +20,12 @@
# include "dl.h"
# include <boost/filesystem.hpp>
+# include <boost/ref.hpp>
# include <boost/tokenizer.hpp>
+# include <boost/multi_index/detail/scope_guard.hpp>
+using namespace boost::multi_index::detail; // for scope_guard
+
int openvrml::local::dl::init()
{
# ifdef _WIN32
@@ -138,7 +142,7 @@
source,
err,
LANG_USER_DEFAULT,
- &buf,
+ reinterpret_cast<LPSTR>(&buf),
buf_size,
args);
assert(buf_chars != 0); // If FormatMessage failed, just give up.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|