|
It seems this code it good maybe your problem after IDOK did you use of debugger
|
|
|
|
|
|
so this problem isnt of CFileDialog.did you use of breakpoint and what is m_install and IDC_SETUP is valid
<br />
m_install.m_strSetup = oFileDlg.GetPathName();<br />
GetDlgItem(IDC_SETUP)->SetWindowText(m_install.m_strSetup);<br />
|
|
|
|
|
m_install is a CString variable of another class.Now i have defined the variable in the same class and i have removed the edit box which displays the path and the code for that line.Now it is working.Thanks
|
|
|
|
|
So how to create editbox if it has error
|
|
|
|
|
|
This is probably the wrong forum for this question. You code looks like Cpp/CLI to me
One problem here is that your array is not typed. Why dont you use a Generic::List<char^>?
You'll probably want to loop through your collection and append each char to a StringBuilder object and then get the string from it when your done.
|
|
|
|
|
Well, thank for the help... haven't thought of that,
"....You'll probably want to loop through your collection and append each char to a StringBuilder object and then get the string from it when your done....."
"...This is probably the wrong forum for this question...." Strange .... I'm using VS2K5 VC++ and this is a Visual C++ / MFC right ???
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
This code...
array^ buffer = gcnew array(10000);
is without a doubt CPP/CLI. You might be mixing it with MFC but its not standard c++ or MFC
|
|
|
|
|
My bad ....
But VS2K5 works with dotNet right??
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Hi,
The SetFocus() method of CWnd class works fine if the edit box is made on the window using the this pointer which is the current new window.
But SetFocus() method doesn't work if the edit box is made on a new window which is created using the following
AfxGetMainWnd()->SendMessage(WM_COMMAND, ID_FILE_NEW);
CMDIFrameWnd *pFrame =
(CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild =
(CMDIChildWnd *) pFrame->GetActiveFrame();
CView *pView = (CView *)
pChild->GetActiveView();
CRichEditCtrl *r1 = new CRichEditCtrl;
r1->Create(WS_CHILD|WS_VISIBLE|ES_AUTOVSCROLL,
CRect(x1,y1,x2,y2), p, 1);
if p= this pointer then SetFocus() works but if
p=pView the SetFocus() doesn't work
Prithaa
|
|
|
|
|
|
Hello all,
Iam trying to raise the event asynchronously, by invoking each subscriber using begininvoke method like this
C#
public event DrawTreeNodeEventHandler dr;
Delegate[] del= dr.GetInvocationList();
object[] obj=null;
foreach (Delegate d in del)
{
BeginInvoke(d, obj);
}
But this is not working in VC++(this is working in C#), its not compiling saying the error @ line1 "Usage requires to be a data member"
How to do that in VC++
|
|
|
|
|
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space,
for example:
my file
<UNIT><ATTR></ATTR></UNIT>
want to look like below in notepad:
<UNIT>
<ATTR>
</ATTR>
</UNIT>
how to solve the problem?who can help me ,i tried some method but can not solve so well.
|
|
|
|
|
Write a program that will enter a new line and a tab(or 2-4 spaces) after every '>' char. Of course it is a little more complicated but it shouldn't be too hard to implement.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
yes,that maybe ok.but how to control the layers,such like this,
<L1>
<L2>
<L3>
</L3>
</L2>
</L1>
should i compute the tab numbers about each line?
if i want to format the xml like this,what can i do?
<L1>
<L2>
<L3></L3>
</L2>
</L1>
that is if the node is the leaf node,do not add a new line?
is that possible?
|
|
|
|
|
I was looking for something similar a few days ago. Search google for "XML pretty Print" and you'll find a few things. In the end I opened it in VS2006 which formats the text, then copy & paste but I only needed to do it once
|
|
|
|
|
I haven't found a way to do this in MSXML, but i know that Xerces can do it.
Just use this:
<br />
DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter();<br />
theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);<br />
and possibly this:
<br />
theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);<br />
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
sharkmouse wrote: how to solve the problem?who can help me ,i tried some method but can not solve so well.
IMXWriter Interface
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You
|
|
|
|
|
can you give me a simple example?
|
|
|
|
|
How to get all the flash's url from IHTMLDoument?
Is this possible?
Thanks.
3.141592653... Never Stop
|
|
|
|
|
3141592653 wrote: How to get all the flash's url from IHTMLDoument?
Is this possible?
you have to use correct interface for same i.e. IHTMLAttributeCollection and IHTMLAttribute
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You
|
|
|
|
|
3141592653 wrote: How to get all the flash's url from IHTMLDoument?
Is this possible?
you have to use correct interface for same i.e. IHTMLAttributeCollection and IHTMLDOMAttribute
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You
|
|
|
|
|
Hi Everyone,
I am having problem while trying to deploy a windows app on a client's machine. I have developed the app in VS 2005 vb.net. I am able to install the app on the development pc but when installing it on the client machine it gives me MS general error: System.InvalidOperationException and gives me an option to send the message to MS of not. The client machine has framework 2.0 installed. Can it be the windows XP causing this problem? I would be really grateful if anyone can help me.
Vin
What goes around come around
|
|
|
|
|
I would recommend you to post this on the VB.NET forum - this one is for non-.NET C++
Windows Calculator told me I will die at 28.
|
|
|
|