|
Please Mr. Sowinsky,
Can you please give me the exact URL. Becaus I gate a page that is about graphics and sprites.
Thanks in advance,
Raymond Bentoera
|
|
|
|
|
The article is in Microsoft's knowledge Base, not on my website Just type Q205158 in the Search pane of your VC++ help. If you don't have KB installed on your workstation, use this direct link:
http://support.microsoft.com/support/kb/articles/Q205/1/58.ASP
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
you can override the PreCreateWindow of your class that has CFrameWnd as its base class, and then exclude WS_SYSMENU as one of the class styles. but doing this will also remove the minimize, maximize, and close button in your application's title bar.
|
|
|
|
|
Does any one know how to dynamically set the text on top of a dialog box?
a sample code would be great!
Thanks!
|
|
|
|
|
What's the "text on top of a dialog box"? Caption? If yes, use SetWindowText for that.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
YourDialogClass::OnInitDialog()
{
SetWindowText(_T("Your Title"));
}
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
Does anyone know the maximum length of a CString object?
thanks in advance.
|
|
|
|
|
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...;)
|
|
|
|