|
Hello, does anyone know how the CVS algorithm on comparing directory structure. For file comparing, I think it is using checksum. But how about the directory structure?
thanks.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Hi Folks,
I am trying to use a Java webservice from Visual C++ 7.1 (VS.NET 2003). This webservice exposes one function that returns an OBJECT (java.lang.Object). When I try to add web reference to this webservice in VC++7.1, it generates following error while creating webservice proxy.
-----------------------------------------------------------------------
Creating web service proxy file for MyJavaService ...
sproxy : error SDL1009 : could not resolve element, with
[
namespace = "http://www.w3.org/2001/XMLSchema"
name = "anyType"
]
sproxy : error SDL1002 : failure in generating output file: "MyJavaService.h"
-----------------------------------------------------------------------
I do not know why Visual C++ is not able to recognize "anyType" in WSDL file generated by Java. Does anyone has any idea? or is there any workaround possible ?
Thanks & Regards,
Arun Gupta
|
|
|
|
|
Hi,
I have a dialog based app, want to disable and gray a sub menu item and I cannot gray it. I tried to find a solution to this problem but could not. Neither of the following work. What happens is I see Item 3 in black, press it, and nothing happens. I could have done it by modifying the code that is called when Item 3 is pressed. Why would I bother with OnUpdate? What's the use of it? I got no idea!
I will be very happy if someone can help me.
Thanks...
void CMyDlg::OnUpdateSettingsItem3(CCmdUI* pCmdUI)
{
if (pCmdUI->m_nID==ID_SETTINGS_ITEM3)
{
UINT fGray = Item3Enable ? 0 : MF_GRAYED|MF_DISABLED;
if(pCmdUI->m_pMenu!=NULL)
pCmdUI->m_pMenu->EnableMenuItem(pCmdUI->m_nIndex , MF_BYPOSITION|fGray);
}
pCmdUI->Enable(Item3Enable);
}
void CMyDlg::OnUpdateSettingsItem3(CCmdUI* pCmdUI)
{
if (pCmdUI->m_nID==ID_SETTINGS_ITEM3)
{
UINT fGray = Item3Enable ? 0 : MF_GRAYED|MF_DISABLED;
CMenu *hMenu;
hMenu = AfxGetMainWnd()->GetMenu();
CMenu *sub;
sub = hMenu->GetSubMenu(1);
sub->EnableMenuItem(ID_SETTINGS_ITEM3, MF_BYPOSITION|fGray); }
}
pCmdUI->Enable(Item3Enable);
}
|
|
|
|
|
|
Yes, I set the bool variable Item3Enable to true somewhere else when I want to have ID_SETTINGS_ITEM3 enabled, and to false when I want to have ID_SETTINGS_ITEM3 disabled.
|
|
|
|
|
Just do:
pCmdUI->Enable(FALSE);
when pCmdUI->m_nID is ID_SETTINGS_ITEM3
that is, simply you can do:
pCmdUI->Enable(pCmdUI->m_nID != ID_SETTINGS_ITEM3);
Jaime
|
|
|
|
|
I have already set it to false, item 3 becomes disabled, but not gray!! besides I do not want to have it always disabled, therefore I have put the variable Item3Enable, which I set to true or false in another function outside.
I must be able to point to item 3 somehow and disable it but pCmdUI->m_pMenu is always NULL. I cannot manage to disable item 3 with GetMenu() and GetSubMenu() either, although I know it is possible to check and uncheck a menu item on a COMMAND message mapped to it using GetMenu() and GetsubMenu().
Does not anyone know why this doesn't work?
|
|
|
|
|
Have you tried to put pCmdUI->Enable(FALSE) as the only instruction in the update handler? If that way the menu option is grayed, the problem is the condition you have.
By the way, if that update handler is called only for item 3, you don't need that verification.
Finally, I tell you that I use my own application to place pCmdUI->Enable(FALSE) for a specific menu item and it worked (disabled and grayed) so the problem may be in your condition.
Jaime
|
|
|
|
|
Yes, it was only one line pCmdUI->Enable(true/false) before I encluntered the problem of non-grayed disabling. I put the other code to be able to gray it. actually I found it in some documents on internet, but none of the examples I saw directly match the situation I have.
You're right about the verification being unncessary, i did that to be sure.
|
|
|
|
|
I can guess that you have in other part of your program a code to "ungray" the item. Check that.
Other fact to check. Are other menu items grayed that you see grayed? maybe is only a display problem.
Jaime
|
|
|
|
|
I solved the problem and I'm very happy for that!!
ok.. forget the function mapped to UPDATE_COMMAND_UI - delete it! Somewhere outside do this to switch between enabled and disabled menu items - nothing else
Item3Enable = !Item3Enable;<br />
<br />
UINT fGray = Item3Enable ? 0 : MF_GRAYED|MF_DISABLED;<br />
CMenu *hMenu; <br />
hMenu = GetMenu(); <br />
CMenu *sub; <br />
sub = hMenu->GetSubMenu(1); <br />
sub->EnableMenuItem(ID_SETTINGS_ITEM3, MF_BYCOMMAND|fGray);
|
|
|
|
|
Hi all,
I would like to know that "how to hide dialog box" on pressing the command button.
rajesh
|
|
|
|
|
|
Actually this is not working in my program.
I would like to explain my question.
I insert three dialog box(d1,d2 and d3) and also make their
classes for each dialog box(CD1,CD2 and CD3), derived from CDialog.
d1 contains two botton "Back and Next".On Clicking on the "Next" button, it calls d2(second dialog box).d2 also contains two button "Continue and Cancel".Again I press the "Continue" button, it calls d3(third dialog box).
Now I want to do that when I click on "Continue" button,it calls d3 and dismiss(hide) the both dialog box(d1 and d2)simultaneously.
I wrote code something like that:
void CD1::OnNext()
{
CD2 dlg2;
dlg2.DoModal();
}
............
..............
void CD2::OnContinue()
{
CD3 dlg3;
dlg3.DoModal();
}
Please help me
How to write code on the "Coninue" button so that d1 and d2 will be hide together?.
rajesh
|
|
|
|
|
void CD1::OnNext()
{
CD2 dlg2(this);
ShowWindow(SW_HIDE);
dlg2.DoModal();
}
void CD2::OnContinue()
{
CD3 dlg3(this);
ShowWindow(SW_HIDE);
dlg3.DoModal();
}
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Can anyone suggest any resource that describes the contents of the dev studio workspace file?
|
|
|
|
|
Have you tried opening the file in Notepad? It's not a binary file so you should be able to go through it.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I got that far.
What I was wondering was...
Is there a way of setting variables with a workspace scope, so that all the individual projects can see them?
|
|
|
|
|
someone plz suggest how to write a custom GINA.dll for Windows XP for Voice Based Login System
thanks in advance
Anshuman
|
|
|
|
|
how to bind a edit control in a ADO to a combo box control ?
which class in MFC will help,
|
|
|
|
|
What do you mean by binding an edit control to a combobox control?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
it means a current Record set called as a ADO Data bound dialog , where i have all static and edit boxs as default ,i need to place a new combobox to call the data of a field from second record set of database
|
|
|
|
|
So are you wanting to populate a combobox with the results of a recordset query?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Yes,i want to place a combobox on a ADO data dialog with a result of a recordset query to get only a selected field from the table in this combobox as a dropdown, Please help me this
|
|
|
|
|
Asha Rams wrote:
...a ADO data dialog...
I've never heard of one of these. What is it?
In any case, perhaps this article will help.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|