 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Wulf Döring Guest
|
Posted: Sat Mar 03, 2007 5:46 pm Post subject: use NMHTTP in console application |
|
|
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
|
Posted: Sun Mar 04, 2007 3:15 am Post subject: Re: use NMHTTP in console application |
|
|
"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
|
Posted: Sun Mar 04, 2007 5:10 pm Post subject: Re: use NMHTTP in console application |
|
|
Thanks,
it's really so easy. My little tool works now.
Wulf |
|
| Back to top |
|
 |
|
|
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
|
|