|
|
Sorry, I found the answer shortly after posting the message and forgot to update my message here.
I wasn't calling PreTranslateMessage() for the two windows. Once I did this it started working perfectly.
|
|
|
|
|
I want to search word file(.doc) according the key word in the word file's content(not title^_^).who can tell me what i should do??thanks!!!
Jack
|
|
|
|
|
Please do not crosspost things like this. Start by opening the file and searching for keywords, ones with consistent formatting will be easy to spot.
Try opening the file in an editor and see what you can find. Have you even tried running strings on it?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I use CSingleLock and CMutex and a webservice in a multithread application, so I inlude <atlsoap.h> and <afxmt.h> in the "stdafx.h", then appear error information below:
error C2872 "CSemaphore" ambiguous symbol
error C2872 "CEvent" ambiguous symbol
error C2872 "CEvent" ambiguous symbol
how can i do to this,THX!
Big is Big.....
|
|
|
|
|
I don't know about ATLSoap but it presumably resides in a namespace. Try to do explicit namespace qualificaton. Something like:
ATLSoap::CSemaphore semaphore;
|
|
|
|
|
I just used the CSingleLock and CMutex contained in MFC, I needn't use the ATL::CSemaphore, but I need to use the atlsoap.h related to webservie..
maybe both MFC and ATL define the CSemaphore, so compiler can't differ from them... I can't know how to avoid it.
Big is big...
|
|
|
|
|
Yu_Matrix wrote:
I just used the CSingleLock and CMutex contained in MFC, I needn't use the ATL::CSemaphore, but I need to use the atlsoap.h related to webservie..
maybe both MFC and ATL define the CSemaphore, so compiler can't differ from them... I can't know how to avoid it.
In one of your header or source files you probably have a using namespace ATL; which may cause the problems. Try to remove it.
|
|
|
|
|
Thx, I find another way to avoid it, use ATL::CMutexLock instead of CSingleLock.....
Big is big...
|
|
|
|
|
Hi!
I've created a wizard using WTL but i can't get it to navigate to another page other then using the OnWizardNext overide. Is is possible to navigate to the next page by EG using a Timer function or something?
Thanks
|
|
|
|
|
|
It helps indeed ...
The folowing code is called in a thread in which the void pointer contains a pointer to the parent class.
int CwizLoginPage::runProcess (void* pThis)
{
CwizLoginPage * PPointer = (CwizLoginPage*)pThis;
CMainWizard tt = (CMainWizard)PPointer->GetParent();
tt.SetActivePageByID(IDD_WIZARD_CHOOSEMODE);
return 0;
}
|
|
|
|
|
hi
I am developing the addins for outlook.here i have created one atl component which have the atl class and the dialog box classes.On one dialog box i have textlable to which i have set the hyperlink.On that i am calling shellexecute and passed string as "mailto:abc@xyz.com".
Now here my outlook is open i get the dialog box containg the link when i press that it gives me error "Dialog box is open.Close it and try again".
I think it will open the new window for composing the mail and that time outlook is also open so i think it might be giving error.
waiting for reply
cheers
jhon
|
|
|
|
|
The lexical analyser achieves the
is by matching the input data to a set of regular expressions (rules). When it finds a match to a specific rule it executes some action code written by the programmer and then returns a token to the parser indicating which rule was matched. It may also return some data associated with the rule. For example, the regular expression. I browsed the URL {http://www.monmouth.com/~wstreett/lex-yacc/flex_1.html}
Lex201, Lex202, Lex203, Lex204 and lex205 are the lexical
analysers which i found from the above URL. Again This project was developed using Parser Generator from http://www.bumblebeesoftware.com which has versions of lex and yacc (actually called alex and ayacc) that can generate c++ classes. I don't expect that classical lex and yacc or flex and bison or flex++ or bison++ will be able to compile the source files. However, Bumble-bee Software provide a 30 day evaluation of Parser Generator program.
I browsed http://www.codeproject.com/cpp/introlexyacc.asp.
also, http://www.codeproject.com/cpp/lexyacc2.asp
I used the lexyacc.zip downloaded from the URL from
and did not find the "ylmtd.lib" for pre-compiling
CLexRC.l and CParse.y resouces.
PannetComp
|
|
|
|
|
Guys,
I'm a beginner with ATL and I have a few questions...
I wrote an ATL addin for MS word and found that its click event did not work with all open documents. I mean if i have multiple Word documents open, the click event only work with the first document.
I then checked the article provided by Microsoft and also Amit Dey's article on Outlook, all of them fail when multiple windows ofthe same application is open.
Any ideas on how to make an addin that will work under these conditions??????
|
|
|
|
|
[Message Deleted due to spam]
|
|
|
|
|
Are you building and registering the Proxy/Stub DLL correctly?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
[Message Deleted due to spam]
|
|
|
|
|
That all sounds right.
What are the errors you are getting?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi
I am trying to write a Context Menu extension and I'm having some problems with it. I need it to have MFC support as well. The extension works fine without the MFC support but everytime I include it, it just stops working. There are no errors, the registration works fine, all regkeys are set.
But the menu does not appear when I right-click on an item. However it did appear without the MFC support...
I have initialized MFC manually whenever I use an exported function. I don't know what the problem could be...
I would appreciate any kind of help.
Thx Zs.
|
|
|
|
|
Hi
how to access the public data members of ATL class in another class in same project
Best Regards
jhon
|
|
|
|
|
look for CComObject template class!!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Here is my problem :
I have a MainFrame (declared like any other WTL main frame). This
mainframe is creating child windows depending on user input (so at
runtime). There is nothing wrong then.
As far as I understand the child windows shares the same message loop
as the main frame (and I can verify this by printing the Thread ID in
any message handler).
It is becoming a little bit tricky now. Because I have too many child
window, the message processing takes ages to be done. So far so good,
I can create separate thread for the child windows.
So the mainframe's thread add its stack created the message loop to
the _module and run it.
The child windows' thread add their stack created message loop too and run it.
Great, it works, as long as I don't leave. When I quit the app, the
child are never destructed, and the main frame exists before the
childs (then, Winmain exits, etc)...
I don't want to add another thread just to handle the mainframe, so
how can I be sure that the child windows are stopped ?
I've thought about posting a message when a child windows exits the
loop, but this will not work as the main frame might already have
leaved its message loop.
Then I've thought about creating an event in the child window, and
setting it when the child window exits, but then again, this will not
work as the mainframe will not receive windows messages (if any
remaining) while waiting for events. Said differently, if the
mainframe miss a child window destruction, then the corresponding
event will be deleted, and the mainframe will wait indefinitively for
a never occuring event.
The only solution I could think of, would be to create a child window
event array in the main frame, and then spend some time to monitor the
events, and maintain the map.
I guess there is a easier way, but I can't figure it out.
|
|
|
|
|
Just don't do it....keep all your windows on the same thread....
X-Ryl669 wrote:
the message processing takes ages to be done
What are you doing in your message handlers???? How many windows have you got???? Make use of worker threads to do non-UI work, but please keep all windows on the same thread...
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Stuart Dootson wrote:
, but please keep all windows on the same thread...
now, where's the fun in that?
--
<gassho rei="">Oneigaishimasu!
I blog too now[^]
|
|
|
|