|
There is no limitation.
Actually there is but it's has to be somewhere up to 4G.
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
Actually, its 2GB, but I don't think it makes any difference.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
I'm writing a simple newsreader and I'm a bit surprised at how much work it needs .
The NNTP protocol itself is simple enough; the tricky part is to parse and decode
attachments. There seems to be tons of RFC's that deal with this (MIME, UU Encoding,
base64, etc). Where is the best place to start reading? Are there any good C++ libs
around?
Thanks for suggestions
|
|
|
|
|
For Base46 and Quoted Printable you could take a look at http://www.codeproject.com/string/ammimeutils.asp
UUEncoded is a bit more tricky because there is no real standard for it. The only thing I have found describing it, is some Free BSD Header files
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
See Dundas Software
They have Ultimate TCP/IP that has also NNTP , MIME and UUencode.
I think they have C or C++ source code plus some COM
|
|
|
|
|
I've got a problem with CScrollView:
I initialise scrolling with SetScrollSizes(...) /*as it's written in every book*/, but afterwards when I scroll the text isn't scrolled properly: i mean, that the "old" text remains, the scrolled text is shown underneath the old (this concerns only the text which was visible at first), the text, which was output in the invisible part of the document, so to say, is not scrolled at all
|
|
|
|
|
You should post your OnDraw (and OnEraseBkgnd if you've overriden this function). Without that, it's rather hard to tell what's wrong.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
My OnDraw is this:
void CFormulaEditorView::OnDraw(CDC* pDC)
{
CFormulaEditorDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CFont font;
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT));
lf.lfHeight = 20;
lf.lfCharSet = 2;
strcpy(lf.lfFaceName, "Times New Roman");
VERIFY(font.CreateFontIndirect(&lf));
CClientDC dc(this);
CFont* def_font = dc.SelectObject(&font);
UINT l = lf.lfHeight;
for (int i=0; i<=pDoc->Formulas.GetUpperBound(); i++)
{
dc.TextOut(0, 110*i+110/2-l, pDoc->Formulas[i]);
}
/////////////////////////////////////////////////////
// Done with the font. Delete the font object.
dc.SelectObject(def_font);
font.DeleteObject();
}
I suppose the problem is in
for (int i=0; i<=pDoc->Formulas.GetUpperBound(); i++)
{
dc.TextOut(0, 110*i+110/2-l, pDoc->Formulas[i]);
}
that it redraws this text on every scrolling event, but where else can I write this??
|
|
|
|
|
Do not use CClientDC created inside OnDraw - use pDC passed as parameter.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
thanks, i know ut's very simple (but i don't have enough experience with VC - actually
<1 month)
|
|
|
|
|
I'm using CScrollView in my App. I want to Show the scroll bar all the time, regardless it is scrollable or not. So I try to change cs in CScrollView::PreCreateWindow(...). But Whatever I do, it dosn't work.
I hope someone could help me. Thanks a lot.
|
|
|
|
|
Hi All,
I have a problem with disconnected recordsets.I ahve a component.One if it's function will get all the Records in a Database.I am passing the Recordset pointer from the server to the Client.I am using disconnected recordsets for this.
I can see that at the server side I am getting the Recordset
pointer.But, I could not get this pointer on the client side.
the function has the protoype
STDMETHODIMP GetAllElements([out]IUnknown **ppRecordset);
I could get the Recordset pointer at the server side, but could not pass it to client.I am using Client side cursor(adUseClient) and standard Marshaling.
what could be the problem .
Thanx in advance for the help.
Regards,
yamini
|
|
|
|
|
I want to use dialog-based frame, but I cannot make CToolBar and CStatusBar to be displayed on the dialog form?
Please tell me how to do it.
|
|
|
|
|
Check DLGCBR32 sample. It demonstrates adding a status bar and toolbar to dialog boxes.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
|
STL is not working in my Vc ++ 6.0 ....
Even for microsoft examples this compiler is returning errors ...
Why ?
Does anybody have any idea ?
Is it corrected by patches ?
|
|
|
|
|
Works fine for me. I'm using SGI and Dinkumware in VC++ 6 SP5. Can you post some code?
|
|
|
|
|
Hmmm, if you would only tell *what kind* of errors, then somebody might actually be able to help you...;)
|
|
|
|
|
don't forget the /GX switch
|
|
|
|
|
What stl? Microsoft STL, Hewlett Packard STL,...?
|
|
|
|
|
There are many bugs in the version of STL that Microsoft ships. For instance, if you put more than 32,768 elements in a list and sort the list, some elements will disappear. Dinkumware has published some extensive patches at http://www.dinkumware.com/vc_fixes.html.
Another patch that dinkumware does not include is that if you want to sort a list using your own sort predicate (not just greater<>() ), you need to delete the line
typedef greater<_Ty> _Pr3;
in the header and then change the delcarations of sort() to
template<class _Pr3> void merge(_Myt& _X, _Pr3 _Pr) and
template<class _Pr3> void sort(_Pr3 _Pr)
He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
|
|
|
|
|
Hi,
I have a Problem with an ownerdrawn combobox. I want a special sort
order depending on the value in itemdata and the string.
In the CompareItem Method i cant get the string. ItemID2 of the
CompareItemstruct is always -1. ItemID1 is 0 or 1, the Itemdata1 is correct,
not the Itemdata2.
Where is my Problem
Chris
|
|
|
|
|
From MSDN docs on COMPAREITEMSTRUCT:
"itemID2: This member will be –1 if the item has not been inserted or when searching for a potential item in the list box or combo box."
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Yes, I know the docs.
It happens after i called the AddString and SetItemData functions (I hope the function names are correct).
chris
|
|
|
|
|
When you call AddString on owner-draw combobox with CBS_SORT and no CBS_HASSTRINGS, its index must be determined. WM_COMPAREITEM is sent to combobox parent, and MFC forwards it to your CompareItem method. This happens *before* item is actually added to the list, so -1 in itemDataX represents the item being inserted.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|