|
Several ways exist.
CDialogB::OnOK()
{
m_strData = "Some text that was keyed in by user";
CDialog::OnOK();
}
CDialogA::SomeFunction()
{
CDialogB dlgB;
if (dlgB.DoModal() == IDOK)
m_strData = dlgB.m_strData;
}
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello,
I try to open the certificat store on a eToken but i failed.
I not very aware about CAPI and I think i missed something.
My code:
m_hMyCertStore =CertOpenStore( CERT_STORE_PROV_PHYSICAL, PKCS_7_ASN_ENCODING | X509_ASN_ENCODING,NULL, CERT_SYSTEM_STORE_CURRENT_USER, L"MY\\eToken");
I get hMyCertStore =0 and The GetLastError() return 2.
I don't know how to do.
I didn't manage to find a complete small example.
Thank you
|
|
|
|
|
Hi,
We have one program that is taking current cursor position in timer with GetCursorPos().
In normal exe its working fine.We have changed the program in to service.
Now In service mode the GetCursurPos return true but values are given by the function are garbage values.
we changed function with GetMessagePos but the result is same.
Any body know how to make it work.
We had also tried to get desktop rights to our service with OpenDesktop and SetThreadDesktop but
SetThreadDesktop function failed with error code 170.
If anybody knows about this problem please let me know the solution.
Thank you,
Regards,
Jay.
|
|
|
|
|
For getting the cursor position in a desktop, you will need to run an application on the same desktop.
If that is an option you can have the service communicate with the application using named events and the application can pass the cursor position to the service using shared memory or the file system or the registry.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hi i have a basic doubt in cstring..
i have like this:
CString test = hello;
#define abc L"hello"
if (test.find(CString(abc)) == 0)
------
-----
But this if condition is failing...May i know the reason? how to make it to pass???
Can anyone enlighten me about this issue?
Thanks,
rakesh.
|
|
|
|
|
Rakesh5 wrote: CString test = hello;
What is hello? Is it a string literal or an undeclared variable?
Rakesh5 wrote: if (test.find(CString(abc)) == 0)
find() is not a member of CString . Perhaps you meant Find() . Why the extraneous CString construct?
All that aside, your code snippet works for me.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi David,
hello is just a string literal (for example purpose..) and I meant Find only...
my doubt is :
CString str(test);
CString str1 = L"test";
Are str and str1 same?? if not, how to make it same??
thanks,
rakesh.
|
|
|
|
|
Rakesh5 wrote: Are str and str1 same??
No, they are two separate objects. How would that differ from:
int x = 5;
int y = 5; Are x and y the same?
Rakesh5 wrote: if not, how to make it same??
You can't, but you can make them contain the same value.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi David,
i think am not communicating properly..
see, my code has like this:
CString str = "hello";
#define test L"hello";
if(str.Find(CString(test)) == 0)
{
--------
------
}
but its not passing this "if" statement.. my doubt is both are having hello only.. but y "if" condition is failing??
Thanks,
rakesh
|
|
|
|
|
Rakesh5 wrote: but its not passing this "if" statement..
Have you stepped into it using the debugger, or are you just looking at the ----- statements to know if the code is correct?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
i hope it's help you
[code]
CString test = "hello";
CString test=CString(abc);
if (test.Find(test) == 0)
{
}
[/code]
|
|
|
|
|
Try the String.CompareTo method.
|
|
|
|
|
Hi,
I'm Developing a live video streaming application in vc++ using DirectX VideoMixingRenderer filter. I can able to draw rubber band rectangle on live video using DirectX SetAlphaBitmap() through my mouse move. if my video frame size(4CIF) is greater than my picture box control size, it's working fine. Suppose, my video frame size(CIF) is less than my picture box control size,
1) only 3 sides of the rectangle can be visible.
2) sometimes 2 sides only can be visible.
3) Above two context has been happen randomly.
Please, somebody help me out from this issue.
Thanx in advance,
Regards
Surez
|
|
|
|
|
hi,
how would it be to draw the ruuber band rectangle in the video frame or change the size of the picture box that is fits with the video frame size.
bless..
|
|
|
|
|
I have created a bitmap for picture box's DC and draw the rectangle on it. Whenever mouse move, new coordinates has been generated and redraw the rectangle. Finally, attached my custom bitmap into directx frame using SetAlphaBitmap(). The Custom bitmap not originally attached to the video frame, it has been attached when a video frame has ready to visible.
I would like to render different frame size of streams from IP-camera, mean while I would like to maintain my picture box size as static.
|
|
|
|
|
Hi to All,
After trying a lot, too I am not able to find a proper solution for my data-grid. Please anyone help me out.
Can anyone please give a small example of using microssoft datagrid 6 in vc++6 mfc. without any database...may be entering data/record from within a loop
i was looking for a kind of datagrid, where by double clicking i can enter a new record.
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
for your kind of requirement, MSFlexGrid activeX control seems to be the best one.
just try it out.
but for double click, adding a new record, you need to implement your own logic.
if you are stuck up anywhere,
then i can help you.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
There is the Context-Menu key on the keyboard. It works as user right-clicking the mouse.
If I have to emulate this key down / up, what message should I send?
Thanks.
Maxwell Chen
|
|
|
|
|
Well, I don't know the answer to your question.
But I know who does...
Your own PC, and Spy++.
Run (eg), notepad. Run spy++ and monitor messages.
Press the context-menu key. Let go of it. Go look at spy++!
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Thanks! They are:
WM_KEYDOWN, VK_APPS
WM_KEYUP, VK_APPS
But not working in my code...
Maxwell Chen
|
|
|
|
|
An alternative for you is to send the WM_CNTEXTMENU[^] message instead...?
Good luck,
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Hi to All,
I need to use the data grid control in vc++6 MFC.
But I cannot see it in my control Box.
Can anyone please tell me how to add it? (may be reference or some settings)
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
AFAIK, there's no grid control in the default VC6 controls. You will need to use the MSFlexGrid ActiveX control (import it from the activeX components list).
You can also use Chris Maunders's Grid control[^]
|
|
|
|
|
thanks for your reply..
Could you please tell me, if the user can add rows to the data-grid manually on the grid itself, (same like VB.NET)....That is my requirement actually. So please guide me which data grid control to use for the same purpose
thanks
-----------------------------
I am a beginner
modified on Friday, September 25, 2009 5:39 AM
|
|
|
|
|
HI all,
i m using calc.exe to open calculater from shell execute please thell me how can i open calendar or clock.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|