🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages Started by Wulf Döring Sat, 03 Mar 2007 11:46
use NMHTTP in console application
#311
Author: Wulf Döring
Date: Sat, 03 Mar 2007 11:46
16 lines
1708 bytes
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
Re: use NMHTTP in console application
#312
Author: Remy Lebeau (TeamB)
Date: Sat, 03 Mar 2007 21:15
23 lines
1613 bytes
"Wulf D�ring" <wulf.doering-remove-@t-online.de> wrote in message
news:esbn2c$o3g$1@online.de...

> 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;

> 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
Re: use NMHTTP in console application
#313
Author: Wulf Döring
Date: Sun, 04 Mar 2007 11:10
4 lines
1204 bytes
Thanks,
it's really so easy. My little tool works now.

Wulf
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads