|
steph5 wrote: I'm a novice
Step 1: Put a subject on your post so people can click on it!
steph5 wrote: And I want to use .
Want to use what?
steph5 wrote: Apparently it is in TR1
I believe TR1 support was first added in the feature pack for Visual Studio 2008.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Lets try that agaiin!!!!
I can't even post a message. What chance do I have trying to program
I am trying to get unordered_set on my machine.
how can I get it?
p.s. if you put < and > it doesn't post in??
|
|
|
|
|
steph5 wrote: I am trying to get unordered_set on my machine.
You won't get it with Visual Studio 2005 (it's there in VS 2008 SP1).
You may want to try the Boost libraries[^]
steph5 wrote: p.s. if you put < and > it doesn't post in??
Not always - the text is interpreted as HTML and < starts an HTML tag.
In the formatting row below the editor window you'll find buttons to insert
< and >, or you can type the HTML for them yourself.
(this is pretty much the ONLY thing that really bugs me on this site...
I shouldn't have to go through and fix my posted code on a site with code
in the name... not all of us are HTML "programmers" )
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Many Thanks for your time and patience
|
|
|
|
|
Mark Salsbery wrote: not all of us are HTML "programmers"
So, the HTML guys insist on calling themselves as "programmers"? WTF. I need a hammer.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
I put the word in quotes....we all know they are just script kiddies.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Putting in a subject line is helpful, so folks know what they may expect when trying to open your post.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
As an Aside, the thing won't open in my browser at all (Nothing to Click on) Is it not a Bug in CodeProject that you apparently can submit a question without a Subject Line. (Never tried it, and I won't, but me thinks that those who wrote the site should have done so).
Regards,
Bram van Kampen
|
|
|
|
|
You can actually press [Ctrl]+[Left Arrow] to navigate to the particular post.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Intresting..I learned a new CP tip today
Regards,
Rane
|
|
|
|
|
hmm Never knew that. Hope I don't need it too often. Thanks anyways
Bram van Kampen
|
|
|
|
|
Hi All
I have Kept One MSFlexGrid Control on the view and rendering data in a specific tabular format where cell sizes are random throughout the document . only the width of document is fixed.
I want to print the same on print preview. how to do that.
regards
ulhas
|
|
|
|
|
I have switched from Office 2003 to Office 2007 (Excel 2007). After moving InterpX function call arguments to column IW and beyond, it returns a "#VALUE!". I know Excel 2003 has a limit of IV columns so I'm guessing the Interp32.xll addin (InterpX function) must have a column limitation. Is there a version of this addin that can be used in Excel 2007?
Thanks,
Michael
michael.slipper@navy.mil
modified on Thursday, September 18, 2008 2:12 PM
|
|
|
|
|
|
|
I want to be able to shut down my MFC SDI application from within CMainFrame::~CMainFrame if needed. What is the method I should use to do this.
|
|
|
|
|
This is a bit puzzling to me. If your main window's destructor is running, your program is all but gone already. The WM_DESTROY has already been handled, your window are gone. Unless you've added a lot of stuff to be done in CMyApp::~CMyApp (), there's only a few more lines of code left...
Iain.
|
|
|
|
|
I made a mistake, I want to be able to shut down in CMainFrame::OnCreate(). I am initializing a serial port there and if it fails I want to be able to shut down the app. I tried using PostMessage(WM_DESTROY) but I get an error on closing.
|
|
|
|
|
What happens when you just return -1?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Okay, that produces a message box "Failed to create empty document", and shuts down when OK is clicked, which is okay with me, but is there a way to do away with that message and just close down?
|
|
|
|
|
Damn MFC document interface stuff...
How about PostMessage(WM_CLOSE);
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I found that exit(0), usually does the trick. But be VERY carefull about what you log under 'onexit()'. BTW are you letting the User know why this happens? (Or do you write particulars to a Log File?, ifso, say that in a MessageBox.) Also, is there any User data to be saved? (Probably Not...).
Otherwise you may end up with an App that under Obscure Circumstances refuses to Start, without any visual effects. (Doubleclick 'exe', Hourglass Appears, Hourglass Dies, Nothing Happens. (Been there, have several teeshirts).
What I found usefull, was to write a Global Termination procedure:
void Terminate(DWORD ErrCode=MYERR_SUCCESS){
if(ErrCode==MYERR_SUCCESS)exit(0);
CString ErrMsg=GetErrMsg(ErrCode)
AfxMessageBox(ErrMsg,MB_ICONSTOP);
CErrorLog::LogError(ErrCode);
exit(ErrCode);
}
Hope this is Usefull
Bram van Kampen
|
|
|
|
|
FWIW I created a quick MFC SDI app and put PostMessage(WM_CLOSE);
at the end of the OnCreate() function of the main window class.
The app closed cleanly.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I am using some propety pages in wizard mode, on one of my pages i am using a toolbar
The first time you use the wizard it all works fine
if you run the wizard again, the toolbar fails to load correctly
The toolbar appears to be there, but there are no images shown on any of the buttons
I am creating the toolbar in the oninitdialog() of the property page using
if(!m_toolBar2.Create(this) || !m_toolBar2.LoadToolBar(IDR_TOOLBAR2))
AfxMessageBox("Failed");
Can anyone help at all ?
thanks
Simon
|
|
|
|
|
Hi all,
I made an ActiveX Control in VB 6.0 which uses region functions to give the control an irregular look, I mean, not a plain square or rectangle. The control looks as it should when placed on a VB Form at design time. However, when I put the same control on a dialog box in VC++ 6.0, it gets a square shape, though at run time the control appears how it should. Is there a difference in the ways VB and VC initalize the same control at design time? Or is there an issue with using the region functions? Please help. Thanks.
Henry.
|
|
|
|