Are you using an accelerator table to catch the Ctrl+Shift+R key? If no then that's where I would start.
AliR. Visual C++ MVP
Are you using an accelerator table to catch the Ctrl+Shift+R key? If no then that's where I would start.
AliR. Visual C++ MVP
As far as I know, and I am not a database expert, ADO is build in such a way that the underlying database type is irrelavent to the programmer. Which means that when you are accessing a SQL database with ADO, it is probably going to make calls through ODBC to access the data, which is adding a middle man. In other words using ODCB will be faster than using ADO.
AliR. Visual C++ MVP
I don't understand why you are not increasing the size of the buffer to 3 so that you can have 2 chars and a null, and use strncpy instead of strcpy. Why are you insisting on overwriting past your buffer?
AliR. Visual C++ MVP
Maybe because you are running the application in debug mode, and the dll in release mode!? Either way you are corrupting memory.
AliR. Visual C++ MVP
Have you tried to set a break point in DoDataExchange to see if it reaches that method, and if it break in there?
AliR. Visual C++ MVP
You have two options with MFC. You can create a dialog based application or a SDI/MDI application using CFormView. A dialog based application generally does not have a menu or toolbar. What you get is a dialog box (WinForm in the .Net world), that you can drag and drop your controls into and then write the code behind it to do what you want. If you want menus and toolbar, then I would go with either an MDI or SDI application. This is more like windows notepad and Visual Studio. Visual Studio is an MDI (multi-document application) and SDI is like notepade (single document interface). When creating a SDI/MDI applicaiton, the last page of the application wizard lets you choose what type of view you want. If you want to be able to display some control, like buttons, lables, edit control...., you would want to change the view class from CView to CFormView. Let me also add that jumping into something like this without doing some homework could turnout to be somewhat overwhelming. Good luck,
AliR. Visual C++ MVP
Have you tried reinstalling Embedded VC++. I have been using it for years without any problems. You might want to download a fresh copy and install that, just incase your download was corrupted or something.
AliR. Visual C++ MVP
Doesn't the CWinApp::OnIdle get called? AliR.
AliR. Visual C++ MVP
I am looking for a RTF to HTML converter. Specifically XHTML to embed inside XML files. I have bought and tried Easybyte.com RTF2HTML converter. But it is extremly buggy, I have been reporting bugs to the guy, he fixes one can causes 4 new ones! So I am desperatly looking to find a new RTF2HTML converter. My search has only let me to 2 or 3 companies in Russia. Anyone here use an RTF2HTML converter? Thanks
AliR. Visual C++ MVP
In a Dialog box the enter key causes the OnOK method to get called. There are a couple of ways you can do this, you can do your processing in OnOK but not call CDialog::OnOK, and to make the OK button work again, you will need to add an event handler for the ok button and in there call CDialog::OnOK. Or you can catch the WM_KEYDOWN message for the VK_ENTER key in PreTranslateMessage and do your processing there, but don't call CDialog::PreTranslateMessage when the enter key is pressed.
AliR. Visual C++ MVP
Hi, I have been trying to change the active tab of a Asp.Net AJAX toolkit tab container all day and I haven't been able to do it. I am new to both asp.net and javascript. I have done a couple of searches but nothing. Here is the javascript that I am calling from my asp.net button OnClientClick handler. OnClientClick="return SwitchTab('TabContainer1');" function SwitchTab(TabID) { var MyTab = document.getElementById(TabID); // MyTab.style.display = "none"; //this line worked MyTab.setAttribute('ActiveTabIndex','0'); return false; } How can I access the active tab attribute? Thanks Ali
AliR. Visual C++ MVP
In that case try this nodeSelected = (HTREEITEM)SendMessage(treeViewHwnd, TVM_SELECTITEM, TVGN_CARET, (LPARAM)nodeSelected); AliR. Visual C++ MVP
This sound familiar! First, how are you opening the microphone device? Assuming that you are using waveInOpen(...) it will return MMSYSERR_ALLOCATED if someone else already has a handle to the microphone. If waveInOpen is not the way you are using the Mic then let us know in what context you are using it so that we can give an intelegent answer. AliR. Visual C++ MVP -- modified at 16:59 Wednesday 19th July, 2006
Where did you get IDC_TREE1 from?? If you are using a CTreeView view, why aren't you using GetTreeCtrl()->SelectItem(...);? AliR. Visual C++ MVP
The easiest way to do this is to change your main function to WinMain. And change the SubSystem in the Linker/System panel from Console to Windows. Recompile and you are done. AliR. Visual C++ MVP
Not really sure what you are trying to do there. But maybe the tree doesn't have the focus and that's why you are not seeing the selection. Add this TVS_SHOWSELALWAYS to the flags when you are creating the tree to see if that helps. AliR. Visual C++ MVP
You created a managed application and PlaySound is an unmanaged function. See this for help CodeProject search[^] AliR. Visual C++ MVP
are you sure you are looking at the correct out.txt file? because this code looks fine: (isolated that is) fout = fopen("out.txt", "a+"); fwrite(host, 1,strlen(host), fout); fclose(fout); Is this a Unicode project? AliR. Visual C++ MVP
To do this you either have to right click on the project in the Solution Explorer window and select Project Only/Build Only... from the menu Or you can select the project you want to build as the startup project, and under the build menu select the second set of build commands, the ones that have the project name in the menu item. Selecting Build Solution (Ctrl+B) will build the entire solution which is all the project. Also check the dependency of the projects to make sure they are correct. (Menu Project/Project Dependencies. AliR. Visual C++ MVP
Does EnumWindows give you what you want? AliR. Visual C++ MVP