Sort your items before putting them in the COleSafeArray container, or use Excel's automation features to sort the items after they are stored in the xls file. COleSafeArray doesn't have any built-in sorting functionality.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Blew is my code:
CELinkConfiguratorView is the view of my SDI application,Online() is the handler message of a menu, CCBrowseOnline is the class of a model dialog.
when click the menu,the the DlgBrowse dialog should be poped up,but it didn't pop up sometimes .but it poped up after I press the Alt button on the keyboard. why?how to resolve this problem?
// TODO: Add your command handler code here
CELinkConfiguratorDoc* pDoc = GetDocument();
// Open the serial port
if(pDoc->ComportInfo.ubComInterface == 0)
msg.Format ("*** Error: Can't open com port");
I have a propertypage.I have two edit controls.For the first edit control it should have a range of 5 to 50 and for the second it should be 60 to 100.Whenever the entered data was not in this range I gave an error message and set the focus using SetFocus().I have done this in the OnApply() also.
The problem is I have entered the data in the first control and even after receiving the error message and the focus was set also,I have neglected that and entered the data in the second control.For that also I did the same.Finally in the OnApply() also after neglecting the error messages , the dialog has closed.
My requirement is the focus should not go and it has to rise indefinitely if it is not in the range unless I click cancel.Is my approach correct?Please give me a solution.
But does the exact same driver run on both platforms? Chances are that it doesn't, and if that's the case, there could be a slight difference between the two. I'm just grasping at straws here, so my suggestions are somewhat limited.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
I have search google and I have found nothing.... The thing is I want to create a System (or User) DSN that will work with MySQL, using VC++. But I'm struggling my butt off. Plz someone ..... that can guide me in the right direction ....