Hi Erik!

Hey, that was it!
I defined m_domParser now as DOMParser* m_domParser!
When running into my function, it will be "newed" with
m_domParser = new DOMParser();

After this, i will call m_domParser->parse(cpMyXMLFile);

Now, the 998 Error doesnt appear, thank you very much!
One Problem, but not regarded to Xerces.

How do i parse a Filename from Delphi to C++?
I have a function in my C++ DLL:
readJDF( char* cpFileNameAndPath )

In Delphi, i call:
readJDF( PChar(Edit1.Text) );

But this will not work, because C++ gets only strange things like: "%$k" and
not "x:\test.jdf"

Really, thank you very much with your help...

Beste Gr�sse, BEST regards
Sascha Presnac

 |# -----Original Message-----
 |# From: Erik Schroeder [mailto:[EMAIL PROTECTED]]
 |# Sent: Thursday, July 12, 2001 2:04 PM
 |# To: '[EMAIL PROTECTED]'
 |# Subject: RE: Problems with Xerces 1.5 and buiding a DLL
 |# Sensitivity: Private
 |# 
 |# 
 |# Is m_domParser a member variable of a _global_ object 
 |# within the DLL?
 |# Perhaps its constructor is called prior to 
 |# XMLPlatformUtils::Initialize().
 |# You are calling XMLPlatformUtils::Initialize(), right?
 |# 
 |# What happens if you change the member var to be DOMParser* 
 |# m_domParser, and
 |# then "new" the DOMParser (m_domParser = new DOMParser) 
 |# after the call to
 |# XMLPlatformUtils::Initialize()?
 |# 
 |# 
 |# -----Original Message-----
 |# From: Sascha Presnac [mailto:               ]
 |# Sent: Thursday, July 12, 2001 3:26 AM
 |# To: Xerces Mailing List (E-Mail)
 |# Subject: Problems with Xerces 1.5 and buiding a DLL
 |# Sensitivity: Private
 |# 
 |# 
 |# Hi!
 |# 
 |# Since Weeks now, i try to build a .dll what calls the Xerces .lib.
 |# I have to build a .dll, because i want to access XML from Delphi.
 |# 
 |# So, i want to the .dll from Delphi and the .dll implements 
 |# the Xerces
 |# functions i need.
 |# 
 |# But, when i write this line into the Source of the .dll, i 
 |# cannot call the
 |# .dll. I can Build it, but when i call it from Delphi using 
 |# "LoadLibrary", it
 |# throws me an exception 998.
 |# Here is what MSDN says about this:
 |# 998 Invalid access to memory location.  ERROR_NOACCESS
 |# 
 |# The line i write witch is causing the problem is this one:
 |# 
 |# DOMParser                   m_domParser;
 |# 
 |# I have set all #defines and this stuff, but it will not work.
 |# 
 |# Can you help me?
 |# 
 |# Beste Gr�sse, BEST regards
 |# Sascha Presnac
 |# 
 |# -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
 |# 
 |# My Favorite Links:
 |# http://www.wo-gibts-geld.de/
 |# http://www.techcrawler.de/jamt/
 |# http://www.profiseller.de/shop1/mega/index.php3?ps_id=P3178618
 |# 
 |# -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
 |# 
 |# ------------------------------------------------------------
 |# ---------
 |# To unsubscribe, e-mail: [EMAIL PROTECTED]
 |# For additional commands, e-mail: [EMAIL PROTECTED]
 |# 
 |# ------------------------------------------------------------
 |# ---------
 |# To unsubscribe, e-mail: [EMAIL PROTECTED]
 |# For additional commands, e-mail: [EMAIL PROTECTED]
 |# 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to