it would be helpful if you say how such a operation is restricted with arrays. but it can be used with single object. is it the difficulty for compiler in writing same code for more than one object? or any oothr purposeful use for that?
Honestly, I have no idea why the compiler doesn't support initializing arrays of classes during construction, but according to MSDN that's just the way it is. Perhaps there's some sort of breach of the standard or a problem with the syntax. I don't know.
I don't know what's your use of this is, but maybe it will be easier for you to use an array of pointers instead of a pointer to an array. Then you can allocate and initialize each element in a loop instead.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
I am trying to execute debug build of my project which is bieng ported from VC6 to VC8. The problem i am facing is, everytime I try to run .exe file it gives me error saying :
MSVCR80.Dll was not found!
I googled and found this is the problem with many others. But I am still not getting a solution for the same. I found it has something to do with manifest file. I found there were two manifest files as
In my case Tooltip will popup when mouse moves over the button, but i need to popup the tip text from my application (by hard coding)by sending some messages.
I tried SendMessage with POPUP flag, but i am not getting(SendMessage returning NULL).
I don't know what I hae done, but my app no longer supports input from the IME (Input Method Editor). When I try to change the input language using the hotkeys (CTRL + SHIFT) nothing happens, the input language does not change. When I try to select the language from the Task bar, my app loses focus and still the language does not change. The IME works for other programs, just not my own. I have no idea where to even start looking for the cause of the problem. Any help would be greatly appreciated.
Well thankyou so much for that useful unsight into the correct keys. But, you are slightly wrong. Users, such as myself, are able to change the key combination. Here in China, the preferred is to use the SHIFT + CTRL.
As a follow up to my problem, it is now fixed. I do not know what was the cause. I started commenting function calls hoping to narrow it down a little, after uncommenting the problem vanished. Please note, no code was changed.
I have an MDI application.I want to remove the default menu bars and toolbar provided and place a customized toolbar instead.So I removed
the added menu bar code and toolbar code from CMainframe::Oncreate().
When I executed the application the toolbar is removed but the menu bar of childframe still exists.
I tried placing setmenu(NULL ) in childframes OnCreate but no use.
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)