|
BiswaR wrote: I have sent a mail to your gmail account
please, stop this ASAP. if you come on a forum to ask for help, we assume that it is for sharing (which is the fundamentals of a technical forum). if you don't want this, don't ask your problem there, and find someone in your nears who can help you
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
close your workspace.
delete the .clw, .opt, .plg file.
then open the project workspace again.
the other reason that class view getting lost is that .ncb file gets read only attribute. Make sure that this file has read/write attrib.try deleting .ncb file too
Last method is
Make a Copy to another directory, but copy only the source (*.c, *.cpp, *.h, *.dsw, *.dsp and the resource directory)
When you open again the project you will have class info, if dont, then push class wizard button.
Regards
Anil
|
|
|
|
|
As we knew that the Microsoft WinSCard library (came from Visual Studio and from MS Platform SDK) supports the "contact-based" smart card (ISO 7816).
I have the questions below:
1) Does WinSCard library support also the "contactless"-based smart card (ISO 10536, 14443, and(or) 15693)?
2) If (1) is yes, is there any reference guide for implementing contactless smart card applications?
3) If (1) is no, is there any other SDK or library to do that, which is for Visual C++ and targeting WinXP?
Thank you.
Maxwell Chen
|
|
|
|
|
How can I (cleanly) close a modal dialog when I notice something goes wrong in OnInitDialog?
(It's an ATL dialog btw.)
Some of us walk the memory lane, others plummet into a rabbit hole
Tree<t> in C# || Fold With Us! || sighist
|
|
|
|
|
Please try if this method meets your need.
BOOL CMyDlg::OnInitDialog()
{
if(error) {
PostQuitMessage(0);
}
}
Maxwell Chen
|
|
|
|
|
|
toxcct wrote: don't this->EndDialog(nReturn);
Hai.. Tox,
Don't do that, it will result in crash probably, you can try!
"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
|
|
|
|
|
ThatsAlok wrote: Don't do that, it will result in crash probably, you can try!
ok, ity was just a guess, i didn't try (i do not have VC++ at work).
but tell me why it doen't work ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: but tell me why it doen't work ?
I am sorry, it does work:-
here is what MSDN says about EndDialog :-
A dialog box procedure can call EndDialog at any time, even during the processing of the WM_INITDIALOG message. If your application calls the function while WM_INITDIALOG is being processed, the dialog box is destroyed before it is shown and before the input focus is set.
EndDialog does not destroy the dialog box immediately. Instead, it sets a flag and allows the dialog box procedure to return control to the system. The system checks the flag before attempting to retrieve the next message from the application queue. If the flag is set, the system ends the message loop, destroys the dialog box, and uses the value in nResult as the return value from the function that created the dialog box.
"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
|
|
|
|
|
ThatsAlok wrote: A dialog box procedure can call EndDialog at any time, even during the processing of the WM_INITDIALOG message
no problem so...?!
typing mistake ?
yeah i know, i could check msdn...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: no problem so...?!
I already apologied to you on my mistake buddy!
"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
|
|
|
|
|
|
toxcct wrote: keep it cool man, week-end's coming soon
Week End is over now
"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
|
|
|
|
|
peterchen wrote: How can I (cleanly) close a modal dialog when I notice something goes wrong in OnInitDialog?(It's an ATL dialog btw.)
Post WM_CLOSE message to itself and return FALSE!
"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
|
|
|
|
|
I've got a listctrl and I've overwritten the NM_CLICK handler.
If I click on the listctrl, the first click does not call this handler, but the second, third, etc. clicks call it.
If I do a SetFocus(), the first click works, but this has other side effects which I do not like.
Any hints are welcome!
|
|
|
|
|
danara wrote: If I do a SetFocus(), the first click works, but this has other side effects which I do not like.
I believe you himself given the answer, because on First Click it set focus on the ListCtrl instead of throwing NM_CLICK message
"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
|
|
|
|
|
But I do not want this. I need that first click works!
And I can not do this by calling "SetFocus" before because I have two listctrl.
I can only think of catching the Focus message WM_SETFOCUS and doing the same there as on NM_CLICK - but does not sound very elegant to me.
|
|
|
|
|
I cannot explain why the first click does not go through. However, you can trap the mouse click in the control containing the CListCtrl, do a hit test and call the handler, if really needed.
~RaGE();
|
|
|
|
|
Is any standard format for the message content which is retrieved from POP3 Server. I need to parse subject, actual message , from address, to address and so on. I thing that the message contents are varied for each mail server.
|
|
|
|
|
The basic message format standard is RFC 822[^]. RFC 1521[^] defines extensions for handling message contents other than plain ASCII text.
|
|
|
|
|
The situation is that, I have created a worker thread that loads a COM dll and calls one of it function. The function is a blocking function.
Now I want to suspend/resume or termiante the worker thread while it is blocked in the function call.
I am using CreateThread and have tried TermiateThread, SuspendThread and ResumeThread but they seem to only execute after the thread has returned from the function call.
Is there a way to manage this blocked thread.
|
|
|
|
|
Hello,
When the function of the COM object blocks, your thread becomes blocked to. Suspending the thread has no effect in the sense that the object is already in a form of suspended. the effect that it has, is that the executing of the called function will be suspended until you resume again.
Your thread should terminate...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
omairaftab wrote: TermiateThread
I am surprised that this does not work. Sure of that ?
~RaGE();
|
|
|
|
|
In general you should not use SuspendThread or TerminateThread . They are meant for debuggers and can not be used safely (in almost most cases) in other contexts. The reason is that when you suspend a thread it could be holding a lock which can result in dead locks. But don't take my word for it, see here[^].
The moral of the story:
Don't use the SuspendThread or TerminateThread - You'll just make horrible, hard to reproduce and hard to debug multithreaded dead lock problems for yourself.
Steve
|
|
|
|
|
Hi Guys,
First of all i really thank to all as i got all the answers to my doubts.
This time i have some interesting problem. In my projects thre are more than 300 classes. But in the class view it's only showing 1 class. Another interesting the same code when it was in the original directory its showing all the classes but when i placed the same code in a different folder it's showing only one class. My team mates are also facing the same problem. Please help me if you know the reason.
|
|
|
|