Thanks, It's working yar... I have created the standard library. Now i have to implement in the console application. I have import standard library in to console application. Finally i got two error. Can u please give me some solution's.
It's working fine. But i got link error called
error LNK2001: unresolved external symbol _getaddrinfo@16
Debug/pro.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Note: I have included
and I have linked Ws2_32.lib.
please note i'm using MSVC 6.
please tell how to use getaddrinfo()
in VS 6. Thanks Mr.jhwurmbach
* The xmlparser XmlLite from microsoft uses IStream to read and write xml.
It is described how to copy text into a stream, but not how to read the text back from the stream. Do you know how to do this?
Code to write text to IStream.
IStream * pStream = NULL;
int iResult = 0;
// allocate global memory to copy the HTML content to
hXmlContent = ::GlobalAlloc( GPTR, ( ::_tcslen( kpszXML_in ) + 1 ) * sizeof(TCHAR) );
::_tcscpy( (TCHAR *) hXmlContent, kpszXML_in );
// create a stream object based on the HTML content
hr = ::CreateStreamOnHGlobal( hXmlContent, TRUE, &pStream );
I must hide my implementation from the user(in this case me ),
Which implementation ? I just see a structure with data in it, no functions at all. How can somebody manipulate an 'object' without knowing what's inside.
How could you know that the structure contains a localData member if it is hidden ?
Hide implementation means that you put your function definitions in a cpp file and only 'show' (through a header file) the function prototypes.
true, and that's what I do,
only I am not allowed to reveal the members of the struct because
then the user of the ADT can change their type or value directly
which can hurt the functionality and integrity of the ADT.
The error message tells clearly what is the error:
at this line the structs are unknown.
You have to include the struct declarations before, so, as is telling Cedric, you canto put they in the header file.
Or, if you want to hide that structs to the user, you have to put ALL the code that use they in the SAME file, above the declaration of that structs.
Elseway the compiler can't know that table_rec and data exists.