|
I think its already being abused.
look who is at number 1 spot.
Nish BusterBoy, Who has he helped !!!!
|
|
|
|
|
|
Can some point me to some documents or website that describes the MSDEV .bcs file format? I want to genertate my own to be read my CodeWrite from a custom langauge.
Thanks,
RZ
|
|
|
|
|
I'm pretty sure MS has an SDK for dealing with .BSC databases, but I've tried a few searches and can't find it now. Check around the MS Visual Studio site, maybe you'll have better luck than me.
--Mike--
http://home.inreach.com/mdunn/
This posting is provided "as was" with no warranties, guarantees, lotteries, or any of those little bags of peanuts you get on planes. You assume all risk for crossing the street without holding mommy's hand. © 2001 Mike's Classy Software. Member FDIC. If rash develops, discontinue use.
your with and
|
|
|
|
|
KB article Q153393 has links to 'Browser Toolkits' for all versions of VC++.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks this was very useful. Unfortunately, the SDK does not allow writing new information to the .bsc file, just reading a searching it (unless I'm missing something obvious). They supply a .dll that does all the reading, so the file format is still a mystery. What I need to do is create .bsc files.
Thanks, RZ
|
|
|
|
|
Hi,
can you help please a newbie how to
1.maximize a view
2.set one of views to the foreground
in an MDI app.
Thanks
Pe
|
|
|
|
|
1. In the view GetParentFrame()->ShowWindow(SW_SHOWMAXIMIZED);
2. I'm guessing in the view do the abvoe with SW_SHOW, or use the same technique to get a HWND to call SetWindowPos on.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
If by 'view' you mean MDI child frame, this is the way to go:
1) MDIMaximize
2) MDIActivate
Both methods are available from CMDIChildWnd (this is the base class for CChildFrame) and CMDIFrameWnd (the base for CMainFrame).
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I have this code but need to be able to concatinate the two strings passed in using the overloaded + operator function. Help.
#include "myString.h"
#include <iostream.h>
#include <string.h>
myString::myString() // default constructor
{
length = 0;
stringData = new char[1];
}
myString::myString(char *A) //conversion constructor
{
length = strlen(A);
stringData = new char[length];
for (int I=0;I<length;i++)
{
="" stringdata[i]="A[I];
" };
}
void="" mystring::show()="" shows="" the="" converted="" string
{=""
="" for="" (int="" i="0;I" <="" length;i++)
="" cout="" <<="" stringdata[i];
="" endl;
};
int="" mystring::lengthof()="" returns="" length="" of="" return="" (length);
};
mystring="" operator+(mystring="" a,mystring="" b)
{
="" (a);
}
ostream="" &operator<<(ostream="" &a,="" mystring="" &b)="" done
{
="" a="" b.stringdata="" endl;
="" a;
="" for(int="" b.length;="" i++)
="" a<<="" b.stringdata[i];
="" };
="" a;
};
istream="" &operator="">>(istream &str_in, myString & d)
{
cout << "Enter string: ";
str_in.getline(d.stringData,32000);
//cout << "Enter string 2: ";
//str_in.getline(d.stringData,32000);
//str_in.get();
return(str_in);
};
void main()
{
myString string1;
myString string2;
cin >> string1;
cin >> string2;
//cout << string1.lengthof();
cout << string1;
cout << string2;
}
|
|
|
|
|
What about this.
myString operator+(myString A,myString B)
{
int nLength = strlen(A);
nLength += strlen(B);
char* pStr = new char[nLength+1];
for(int nCnt = 0; nCnt++; nCnt < (strlen(A)-1))
pStr[nCnt] = A[nCnt];
for(nCnt = 0; nCnt++; nCnt < (strlen(B)-1))
pStr[strlen(A)+nCnt] = B[nCnt];
pStr[nLength] = 0;
myString str(pStr);
return (str);
}
Think it should work.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
What's wrong with std::string, std::stringstream, etc. ?
|
|
|
|
|
Or strcat ? I suspect he's doing a homework assignment ( which is fair enough, he's had a go and posted code to ask for help, but I can't think of any other reason to write another string class. Having said that, I did it for the sake of the exercise, although I obviously use basic_string rather than my own, that was not the point. ).
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
He may be doing what he's doing because...
a) the existing code that has to be amended but cannot be changed beyond the new code being added
b) an insane project lead refuses to think outside the box and insist that the guy use his (the project lead) classes
c) he's doing a homework assignment which requires him to write his own string class
d) he doesn't like the std::string class
Why can't you just answer the question posted instead of asking why he doesn't use this or that?
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
The same way you answered the question?
His code doesn't even call the function he's asking for so I was somewhat confused as to what he wanted.
|
|
|
|
|
Hi, I need to make my own owner drawn/custom drawn trackbar control but all the examples that I have found are geared for the listview control. I was wondering if anyone has a tutorial or an example of what to do.
Thanks,
Clint
|
|
|
|
|
Here's the example - it draws the 'channel rectangle' in green:
void CMySlider::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult)
{
LPNMCUSTOMDRAW pcd = (LPNMCUSTOMDRAW)pNMHDR;
if (CDDS_PREPAINT == pcd->dwDrawStage)
{
*pResult = CDRF_NOTIFYITEMDRAW;
return;
}
*pResult = 0;
if (TBCD_CHANNEL == pcd->dwItemSpec &&
CDDS_ITEMPREPAINT == pcd->dwDrawStage)
{
CDC dc;
dc.Attach(pcd->hdc);
CRect rc;
GetChannelRect(rc);
dc.DrawEdge(&rc, BDR_SUNKENOUTER, BF_RECT);
rc.DeflateRect(2, 2);
dc.FillSolidRect(&rc, RGB(0, 255, 0));
dc.Detach();
*pResult = CDRF_SKIPDEFAULT;
}
}
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I can kind of get it to work. My control won't draw itself unless I set a breakpoint somewhere in the function and press F5 repeatedly. I am not sure if I have my message handler set up right. If anyone has a complete implementation that they could share with me so I can study it.
All help is much appreciated!
Thanks,
Clint
|
|
|
|
|
I have an MDI app that contains an open and modified document. The file specification of the document is in a UNC format (GetDocument()->GetPathName() returns \\Server\Share\MyDocument.txt). When I click on Save As, MFC calls GetSaveFileName() for me to display the CFileDialog so that I can enter a filename. When the dialog box is displayed I get four copies of the following message displayed in the debugger's output window: "First-chance exception in MyProgram.exe (RPCRT4.DLL): 0x000006BA: (no name)." If I look at the m_ofn.lpstrFile member variable that GetSaveFileName uses, the filespec is in UNC format. If I gludge things up, map a drive, and change m_ofn.lpstrFile to be a normal file spec (c:\temp\MyDocument.txt), I don't get these exceptions! In either case, the Save As appears to work just fine - the exceptions don't seem to bother things.
Does anyone with UNC experience know what is going on here? Is there something special I need to do when using UNC file specs - i.e. some flag I need to set?
Thanks,
Don Sanders
|
|
|
|
|
Does anyone with UNC experience know what is going on here?
I don't have much UNC experience, but think that you can safely ignore these messages. KB article Q105675 has more info on 'first-chance exceptions'.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How can I make the computer beep w/ a few lines of code?
|
|
|
|
|
|
or
::MessageBeep(0);
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
Is easy:
With the Beep function....
Carlos Antollini.
Today is Friday?
No Bob!!!
|
|
|
|
|
I don't know if it calls messagebeep, but beep(50,50) works fine. You can put any numbers you want, they still sound the same ;0)
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|