|
http://support.microsoft.com/?kbid=128731
I need to save registry key into file. How do i do that.
|
|
|
|
|
Anonymous wrote:
I need to save registry key into file. How do i do that.
Exactly how the article prescribes. Have you tried it?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hi,
I need help again
I have one dialog which I will call InvoiceDlg. On this dialog I have some controls. Lets say I have a static control called IDC_INVOICENUMBER. I have a button, IDC_TENDER, and when this button is pressed it will open another dlg called TenderDlg. I want to be able to get the data from InvoiceDlg into TenderDlg. I've tried alot of things such as:
void CInvoice::OnTender() <br />
{<br />
<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENUMBER,invoicenumber);<br />
CTender dlg;<br />
dlg.DoModal();<br />
dlg.m_invoiceme.SetWindowText(invoicenumber);<br />
}
and;
void CInvoice::OnTender() <br />
{<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENO,invoicenumber);<br />
CTender dlg;<br />
<br />
dlg.DoModal();<br />
dlg.SetDlgItemText(IDC_INVOICE, _T(invoicenumber));<br />
<br />
<br />
}
Both these compile with no dramas, however when I try them in the app; they dont do anything, its like they aren't even passing on the data through CTender dlg;
Can someone please help me?! Im tired, I want to goto bed
lol
Thanks
Ashman
|
|
|
|
|
Ashman wrote:
dlg.DoModal();
dlg.SetDlgItemText(IDC_INVOICE, _T(invoicenumber));
The call to dlg.DoModal will show the dialog and therefore any further code in your function won't be executed until the dialog is closed.
You'll need to pass the CString into your class before DoModal and then inside the WM_INITDIALOG handler, set the window text of the control.
e.g
<br />
void CInvoice::OnTender() <br />
{<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENO,invoicenumber);<br />
CTender dlg;<br />
<br />
dlg.m_strInvoiceNo = invoiceNumber;<br />
<br />
dlg.DoModal();<br />
<br />
<br />
}<br />
<br />
BOOL CTender::OnInitDialog()<br />
{<br />
CDialog::OnInitDialog();<br />
<br />
m_invoiceme.SetWindowText(m_strInvoiceNo);<br />
<br />
}<br />
<br />
<br />
<br />
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Hello everybody !!
i am newbie for mfc programming can any body of u explain me how to Create multiple view (i mean different type of view such as listview , scroll view for a single document )
thanks in advance..
|
|
|
|
|
|
Hi,
I´m having problems by getting the current selected (current deleted) Item in Outlook.
For example:
When I am deleting an Contact in Outlook my programm catch this event and should get the current selected item but instead
of giving me the index 6 (for exampl.) it gives me the index 5 because outlook sets the selection to highest index shortly after someone is deleting ...
Whats wrong ?
I need badly help, cause I´m working in time-critical project ...
Thanks a lot, JohnX
|
|
|
|
|
The Problem is, that I am building a dynamicly EventHandler who gives me the events from user defined Folders.
(for example a Subfolder under Contacts)
As long as I only programm Events to the TopLevelFolder - everything works;
but when I programm Events to an user defiend folder the GetSelection() returns not what I really have selected.
Can someone help me ?
|
|
|
|
|
I am trying for a long time and seeing the documentation of how can I put a scroll bar in a window create by the MCIWndCreate function that actually can scroll the video inside, can some one help me ?
|
|
|
|
|
|
|
U can check this link.
http://www.codersource.net/winsock_tutorial_server_event_model.html
May find this useful.
Thanks
|
|
|
|
|
Sorry,it must have a point that the codes must be written in SDK not in MFC in the side of Server!
Thanks very much to those poeple who replied my subject!
|
|
|
|
|
Im new to MFC so bear with me.
Im trying to reposition a CEdit Box in a Dialog application.
Im confused now as to whether this is possible or not.
The application, has a list box and when an option is selected
parameters appear / get shuffled around.
I though SetWindowPos would do it as CEdit is a CWnd derived class,
but Im assume I should be looking at the CDialog Client area
and how to move other CWnd derived controls, but nothing like this
exists I think.
Little help.
regards
Karl
|
|
|
|
|
You would be best taking the currect position of the edit box into a rect and then using MoveWindow
CRect rect;
GetDlgItem(IDC_EDIT1)->GetWindowRect(&rect);
ScreenToClient(&rect);
GetDlgItem(IDC_EDIT1)->MoveWindow(rect.left + 10, rect.top, rect.Width(), rect.Height(), TRUE);
|
|
|
|
|
Does any one of u know where i can
find a good threading tutorial in mfc.
both beginner and advanced level.
specially about user-interface thread
|
|
|
|
|
Just look at the AfxBeginThread function, it says a lot about the threads
|
|
|
|
|
|
Try this and this.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Does anybody know how, or if it is even possible to display tooltips on a dialogue based application. I have created a toolbar and would like tooltips to appear when the mouse is held over the buttons. I would appreciate it very much if someone could help me with this problem, cheers.
|
|
|
|
|
|
Hi ALL,
I have created an Ole Control with property pages, and it's a good bit more complicated than that... I derived my own property
page from COlePropertyPage.
Everything is allright untill i wanted to hide the propertysheet buttons (Apply, OK, Cancel) which contains my propertypage.
I write something like that in the COlePropertyPage derived class,
...
CPropertySheet * pps = ( CPropertySheet * ) GetParent ( ) ;
pps->GetDlgItem ( ID_APPLY_NOW )->ShowWindow( SW_HIDE );
pps->GetDlgItem( IDCANCEL )->ShowWindow( SW_HIDE );
pps->GetDlgItem( ID_APPLY_NOW )->ShowWindow( SW_HIDE );
...
but the application crashes.
i want to have a solution for this issue.
Need help.
Hajer.
Hajer.
|
|
|
|
|
Hi,
I'm developing a DLL project in VC++.I want to have 2 versions of the same DLL with different names in the same server.I tried changing the CLSID's also but somehow it conflicting.The DLL which was registered last only was working.I think probably it getting overwritten in the registry.Pls help..what could be the problem?
Question :
1)While renaming DLL,all the the CLSID's has to be changed?
Pls help
Thanks in advance
Ram
|
|
|
|
|
Hello,
No. You rename the DLL and change the CLSID in file ( using GUIDGen tools in Visual c++) and recompile it. Then your CLSID Changed.
With Regards,
R.Selvam
|
|
|
|
|
Hello Selvam,
Thnks for the reply.
Yes i used uuidgen tool to get the guiid and changed in the IDL file..
The renamed DLL gets registered but it doesn;t work...the program just exits..
Pls help...
Thnks
Ram
|
|
|
|