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 

use NMHTTP in console application

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Wulf Döring
Guest





PostPosted: Sat Mar 03, 2007 5:46 pm    Post subject: use NMHTTP in console application Reply with quote



Hello,
I want to use the NMHTTP component in a pure console application,
because I don't need any GUI.
How can this be done?
Simply include vcl.h and the http related header files seems not be
sufficient.

How can I make an instance from the TNMHTTP class?
When using the GUI environment, the main form class definition contains
just a pointer to TNMHTTP, but something like TNMHTTP* myinstance = new
TNMHTTP(); isn't visible in the source code.

Does somebody knows a guidance how to use c++ builder components in
console applications?

Wulf
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sun Mar 04, 2007 3:15 am    Post subject: Re: use NMHTTP in console application Reply with quote



"Wulf Döring" <wulf.doering-remove-@t-online.de> wrote in message
news:esbn2c$o3g$1 (AT) online (DOT) de...

Quote:
How can I make an instance from the TNMHTTP class?

The same way you instantiate an instance of any other class
dynamically - via the 'new' operator, ie:

TNMHTTP *http = new TNMHTTP(NULL);
//...
delete http;

Quote:
When using the GUI environment, the main form class definition
contains just a pointer to TNMHTTP, but something like
TNMHTTP* myinstance = new TNMHTTP(); isn't visible in
the source code.

That is because the DFM streaming system handles the creation at
runtime and then assigns the pointer afterwards.


Gambit
Back to top
Wulf Döring
Guest





PostPosted: Sun Mar 04, 2007 5:10 pm    Post subject: Re: use NMHTTP in console application Reply with quote



Thanks,
it's really so easy. My little tool works now.

Wulf
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) 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.