BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using XML as parameter between programs/dll

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Mikael
Guest





PostPosted: Mon Oct 09, 2006 10:58 pm    Post subject: Using XML as parameter between programs/dll Reply with quote



Is it possible to use a XML syntax as parameter when calling a program/dll?

I'm asking because the number of parameters differs from time to time.

Mikael
Back to top
Andreas Tscharner
Guest





PostPosted: Tue Oct 10, 2006 8:13 am    Post subject: Re: Using XML as parameter between programs/dll Reply with quote



Mikael wrote:
Quote:
Is it possible to use a XML syntax as parameter when calling a
program/dll?

When calling a progam: yes (short answer). Long answer: you could
provide XML as argument, but notice that it may not have any spaces (if
it has to have spaces, then quote the complete XML parameter (which
means you cannot have normal quotes in the XML). And this would only
work if that application gets called by another application, because if
you think you can make a user enter XML as parameter, well, then think
again.

A DLL: How can you call a DLL directly? Your usually need to provide an
application that uses that DLL
Quote:

I'm asking because the number of parameters differs from time to
time.

In this case I suggest you write your parameters to a file and provide
that file as command line parameter as XML tends to get quite long

Best regards
Andreas
--
Andreas Tscharner andreas.tscharner (AT) metromec (DOT) ch
------------------------------------------------------------------------
Real coders don't comment their code. It was hard to write, it should be
hard to understand. -- from the Linux Kernel Mailinglist
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.