I have a lab assignment in my C++ class that asks me to do the following:
-Create an application that prompts the user for two 3-digit numbers, then display the result in the following format:
The problem I am having is the method I'm trying to use. I am using the carry over technique, and I need a way to split up the 3-digit numbers into single numbers, then multiply/carry/add accordingly
I'm writing an MFC application that uses a splitter window - a "windows explorer" application. It is a typical windows explorer style application - it has a Treeview in the left pane for navigation, and a Frame that displays various views at different times in the right hand frame. I have a small usability problem - whenever the user opens a new dialog by interacting with the view displayed in the right hand frame, focus returns to the left hand pane (the treeview), rather than the right Frame which holds the current View, typically a Form View.
This is bad - surely focus should return to where it was lost from when the dialog was given focus - the right pane/ Form View.
I call this code from BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext) :
m_wndSplitter.SetActivePane(0, 1) ;
However, this doesn't help, or have any discernible effect. Perhaps I've misunderstood what this method does - according to MSDN documentation- http://msdn.microsoft.com/en-us/library/52afb8hs(VS.80).aspx[^] -, it "sets the pane as active", and "is called by the framework" - I guess that means it is intended that the programmer should provide their own implementation of this virtual function, so they can do house keeping when the right hand pane gets focused by the user, rather than being intended for the programmer to call directly. What should I do to achieve the desired effect of having focus return to the right hand pane?
but i always get a 1024 char file, i mean if the file has more than 1024 chars then it will just show up the first 1024 of them. What should I do for getting always the exact number of chars the file will have. I mean I want a way to get the number of chars instead of just typing 50000 instead of 1024 because if i do that it ll show up iiiiiiiiiiiiiii or something like that for completing the 50000 chars if the value is lower than that.
thanks, it worked but I used GetFileSize(... for getting the DWORD value, but there seems to be something unusual though at the end of the char* it always says ýýýý««««««««îþîþîþ. Should I remove that manually i mean by replacing that by "" or substringing it or is there a better way to get rid of it?
I have one question regarding neural networks and it's functionality. I'm newbie in this field.
Actually i want to use a supervised neural network to estimate a function values at different locations.
Suppose we want to estimate y = x^2 and we have some training data to learn the network
Now suppose we want to estimate function value at x = 10
At first it seems that Back propagation is the best network for this purpose but after i tried some source code from CodeProject i found out that Back Propagation can only estimate function values that are around the training set!(Tell me if I'm wrong!) so for example it can estimate function at x=4.5 but it cannot estimate function at x=10 (i think it will return 25)
So which type of Neural Network should i use for this purpose? Any ideas?
Was using WM_MENUSELECT instead of WM_INITMENUPOPUP as the trigger for the updating. Must occur at a different time, and greying must be different to check marks, because what was happening was the greying didn't work, but if while the menu was down you quickly moved the mouse off the menu (ie off the menu window) - it rapidly updated to the greyed state. Use WM_INITMENUPOPUP and it works all the time.
Was using WM_MENUSELECT instead of WM_INITMENUPOPUP as the trigger for the updating. Must occur at a different time
"The WM_INITMENUPOPUP message is sent when a drop-down menu
or submenu is about to become active. This allows an application
to modify the menu before it is displayed, without changing
the entire menu."
"The WM_MENUSELECT message is sent to a menu's owner window when
the user selects a menu item."
I am looking for an advise, explanation of using CAVI.
My BITMAPINFO bmiColors at index 0 appears to have RGB color quad (red , green, blue and reserved) OK but it looks like the "reserved" is actually the next red value.
I have been looking thru the documentation and cannot find explanation for usage of "reserved" "color" and how it gets “filled”.
Any help is appreciated.
my bitmap has all required values. The code works "almost perfect", I actually display the captured video, however, I need the color histogram and this is where I see strange values.
And the "reserved" value is NOT zero after the single frame capture!
I think I am overlooking some AVI macro to control the "reserved" value.
It looks like the AVI "bitmap" is plain RGB, not a RGBQUAD.
PS. CAVI - multimedia macros - example "capGetVideoFormat".
Last Visit: 31-Dec-99 19:00 Last Update: 4-Feb-23 1:40