![Honeywell RS-232 Reference Manual Download Page 35](http://html.mh-extra.com/html/honeywell/rs-232/rs-232_reference-manual_149050035.webp)
PC Communication Driver
8/99
RS232 Communications Reference Manual
25
3.6
Frequently Asked Questions
,
continued
The implementation of these functions in the DLL would look like this:
CCommBase* CElnApi::Factory(…) // Static function
{
CCommBase* pDriver = new CElnApi(…);
Return pDriver;
}
void CElnApi::Destroy()
{
delete this;
}
Note: The Destroy function looks dangerous due to its self-destructive nature, but this is actually standard
practice. Just don’t try to access any member data after calling delete this.
Anyway, all of this complication can be neatly avoided by making the driver a statically linked library.
Since the drivers are small, there’s really no good reason to fight these battles.
Summary of Contents for RS-232
Page 12: ...Overview 2 RS232 Communications Reference Manual 8 99 ...
Page 24: ...Protocol Description 14 RS232 Communications Reference Manual 8 99 ...
Page 36: ...PC Communication Driver 26 RS232 Communications Reference Manual 8 99 ...
Page 143: ...Function Parameter Index Reference 8 99 RS232 Communications Reference Manual 133 ...
Page 150: ...Index 140 RS232 Communications Reference Manual 8 99 ...
Page 151: ......