|
The former one works as expected.
I've tried to subsitute \xb2 with \\xb2 in the string table, but no help.
|
|
|
|
|
OK - I overlooked your query previously. Resource editor is appending zeros after the slash. It looks like a bug to me (or may be a feature )
Try hard-coding the string in your program.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Strange. This works for me in both VS 2005 and 2008. I tried both UNICODE and ANSI mode to make sure that wasn't an issue.
When I add it through the resource editor, it converts it immediately to m².
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I have a custom control. Now i want to use it in another application. How to do that
Regards, Eswari
|
|
|
|
|
subramanyeswari wrote: I have a custom control. Now i want to use it in another application. How to do that
similar to how you used in your current application.
|
|
|
|
|
i placed my control on one of VC++ application and gave the class name. on debugging it came out saying failed to create empty document. What did i miss
|
|
|
|
|
may be you haven't registered the control. May be posting the code or explain what you have done can help.
|
|
|
|
|
It's MDI application.
In CMainFrame, I create a docked pane, which has a CMFCPropertyGridCtrl object in it.
And I wrote this (pseudo code):
void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView)
{
clear all the content in the property grid;
if (bActivate) {
GetDocument()->FillThePropertyGrid;
}
}
There are two problems, first assume there two opened document,
the major problem is that when I close one child view, the property grid is cleared, though the other view is activated.
the other problem is about efficient, when I switch from other application the this one, OnActiveView is called, and the grid is refilled unnecessarily.
How to them?
Thanks.
PS: I don't understand the usage of pActivateView and pDeactiveView.
|
|
|
|
|
"The pActivateView and pDeactiveView parameters point to the same view if the application's main frame window is activated with no change in the active view — for example, if the focus is being transferred from another application to this one, rather than from one view to another within the application or when switching amongst MDI child windows." from msdn
|
|
|
|
|
followait wrote: There are two problems, first assume there two opened document,
I guess you are using one Document with more than one View, and you are running two different instances of your application.
I made something similar once, I just got a CMyDoc* pointer declared in the StdAfx, then on the InitialUpdate in the first (main) view I made:
extern CMyDoc* myCommonDoc;
myCommonDoc = GetDocument ();
Afterwards everytime I wanted to use the document in all the other views I just had to use that pointer.
Advantage... when more than one App is running, everyone will have its own myCommonDoc so you will avoid the mixing from one on the other.
followait wrote: when I switch from other application the this one, OnActiveView is called, and the grid is refilled unnecessarily.
I guess this is not going to be the best solution, but you can try to get the pDeactiveView and check into your document if it is one of the views associated with it, with the functions GetFirstViewPosition and GetNextView . If there is no match, it means that you are comming back from another application into this one and avoid the refilling.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi,
I've been using VS 5.00 since 2001. Works Fine, Does the job!. iow Suits me. Since last December, the Help system stopped working on XP Machines. (still works on the W98 Machines though), Since 12 OClock last night, elements of the Source Browser stopped working. The question is, has anyone else noticed this happening, or, is there a timebomb in VS5.00.
BTW I've 3 computers running VS 5.00. Two of them have this 'Sudden' Problem. The only one still performing is the one running Win98.
It may be a Fluke, My Mind is still open, but,If it turns out that this is the way that Microsoft enforces a sales policy, we will very rapidly downgrade to Windows98.
Regards
Bram van Kampen
|
|
|
|
|
I would guess that there are system components (browser bits possibly) that have changed and don't function as VS5 expects.
The other possibility are Windows Updates that have removed components in VS5 that are now thought of as unsafe.
You might be able to restore the missing functionality by re-installing VS5.
|
|
|
|
|
Hi,
No, Tried to re-install. Same Problem. Formatted HD, Re-Installed OS from Original Disks, Re-installed Compiler:- Same Problem.
I run critical VC Projects on two core computers, neither of which is networked. (Never mind being on the Internet). One runs on WIN98 SP2, the Other on XP Professional (No Service Packs) I also run VS5.00 on two XP Professional Laptops.(Up to date with Service Packs) All started behaving daft about a fortnight ago, except for the WIN98 Machine. On one of them, Formatted Disk and installed WIN98,+ VS5.00, Problem Gone!!!
Something Daft going on here
Bram van Kampen
|
|
|
|
|
You used to be able to insert .bmp, .jpeg, etc. files into .rtf files in Help Workshop. Under this HTML Help Workshop are you able to somehow include .bmp,.jpeg, etc. files into the document?(.html)
I'm trying to create a help file for my program and I want to show the dialog I am using and explaining about it's usage in my .html document. Does anyone know how to do this?
A C++ programming language novice, but striving to learn
|
|
|
|
|
I tried to make a non English (persian) interface in a "Setup" project using InstallShield. But I saw ??? ?????? ????? ????? ???
What do I do now?
|
|
|
|
|
Hi,
I found some tuto to split a frame and it worked but i have an issue, what i wanna is to split a frame that is not the principal frame of my apps.
I followed those steps:
1:
class CMainFrame : public CFrameWnd
{
protected:
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
public:
CSplitterWnd m_wndSplitter;
2:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 2))return FALSE;
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CSdiSplitterView), CSize(100, 100), pContext) ||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CMyFormView), CSize(100, 100), pContext))
{
m_wndSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
That works but it splits the first Interface, But i wanna split another intrface when the user go to a specific one.
What shoul i alter on that code to make it run. ?
Thx!!! I really Need Help.
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
IS it so Hard ???
No reply !!!!
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Because CMainFrame is the first interface. Have you checked out CChildFrame?
I also recommend you to start reading some info about the MFC internals, at least in grosso modo, you seem to be quite lost with it.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I m using an SDI apllication so i think tht there's no need for CChildFrame.
let's say that i wanna split the second Interface into 2 frames. so ??
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Hello. I have a financial application that is being used by traders working on the floors (soon to be extinct) of some of the country's commodity exchanges. The application is mostly used on PC tablets with pen based input. To input data the user currently has to call up the data input dialog and then get the visual keyboard on the screen and then tap the data with a pen. I'm curious as to if there's a simple keypad (kind of like the on-screen calculator ) that I can embed in the dialog. All I would need are digits 0-9 and a +/- capability. I suppose I could write my own but, since I'm seriously backlogged, I'm wondering if anybody knows of a plug-in out there that will do the job without me having to commit scarce hours to creating this functionality. Thank you.
|
|
|
|
|
I have edit boxes, which accept int, float, date & CString.
If i check Style-Number of EditBox Number & retrive data via member variable associated with the control, I get some junk chars only or an empty string.
How can I get data and convert it back to int, float or date respectively.
Any guidance, examples, etc will be of great help & highly appreciated.
Thanks
Terry
|
|
|
|
|
try to use a CString var in which u read the text typed. and then use the atoi() funct/.
such :
CString TXT;
int Nbr;
m_EditContr.GetWindowText(TXT);
if (TXT.IsEmpty()!=0)
Nbr.atoi(TXT);
But when the user type such thing (ASD45O) it may not work. !!!
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Blood_HaZaRd wrote: Nbr.atoi(TXT);
or
Nbr = atoi(TXT);
Typo?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
LOL, yup it was a typo mistake :p
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Then edit your answer... or are you lazy? :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|