|
I can create one in VC and convert it to VC.NET, but I will not able to add CRecordSet classes from VC.NET. I can get the same error message.
I think you need to write the CRecordset codes yourself. It is not that difficult actually.
I have learned that ADO.NET is a better solution, but I do not get it still. I have been enjoying using MFC ODBC. It is simple and easy in doing data mapping.
I guess this is your own choice for you to decide. To be frank. VC++.Net do not have that much of facilities in writing codes if were to compare to C# or VB.Net in Visual Studio .NET.
By the way, you said VC.NET will no longer supporting MFC in the future? Why not? It has been a great tool for me. I have not tried anything else
Part of Ms strategy. They are pushing .NET. Of course not immediate having to know there are still many MFC developers out there but will be soon (don't ask me when. Ask Ms).
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Thank you very much for sharing your experience with me. For my own benefits as a programmer, I should start writing my own code instead of depending on a an application wizard.
Eilzabeth
|
|
|
|
|
I need to extract multiple items from a CComboBox and stick them in an array. How do I do the extraction? I believe that by pressing down the ctrl key will select the items, but how to I implement the extraction? Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
GetLBText method retrieves the string chosen by the combobox!
Don't try it, just do it!
|
|
|
|
|
Right, one at a time! But how to retrieve multiple strings?
Ralf.
|
|
|
|
|
You can't do a multiple selection in a combo box. You need to use a list box to support multiple selections. If you really need the edit control as well, you'll have to add one of your own.
In a list box (CListBox ), you need to iterate over the list of items using GetSel to find out if the item is selected.
For a ListView control (CListCtrl in MFC), you can use GetFirstSelectedItemPosition and GetNextSelectedItem to find out the set of selected items.
Technically, the combo control is made up of an edit control and a list box, so you probably could find the handle of the list box and send messages to it directly. This isn't nice, though.
|
|
|
|
|
Hi ,
Can anyone help me please
I have troubles with this API
cant compile it , get unresoveld problem
Tyied the loadlibrary() etc. , and get corrupted file
downloaded the latest dbghelp.dll , but still without any success
anyone ????
Please
Thanks
|
|
|
|
|
hmmm... what api are u talking about?
Don't try it, just do it!
|
|
|
|
|
I am talking about minidumpwritedump api
This is the only function which I found that runs over the stack
in case of crash
got any ideas ??
|
|
|
|
|
Hey all you keyboard shortcut wizards out there.
I have a program that uses Chris Maunder's CSystemTray class and was wondering if there was a way to access the icon's menu via the keyboard (as in no mouse)?
TIA
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Yes, but only on 2K+. And it's slower than using the mouse
Hit Logo or Ctrl+Esc to get the Start menu, ESC to close it. Hit tab enough times to tab thru any app bars and the Taskbar, until you reach the tray. You'll know you're there when the first icon shows a focus rect. Use left/right to pick an icon. Then hit Enter to simulate a double-click; Shift+F10 or the Application key to simulate a right-click. AFAIK there is no key to simulate a left-click.
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--=
NO CARRIER
|
|
|
|
|
The spacebar will simulate the left click .
Chris Richardson
|
|
|
|
|
|
Or Enable Mousekeys in any windows version (after 95).
That way you'll be using the keyboard to control your mouse pointer. So you'll be using the keyboard to access the systray, or whatever else
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
In my CRichEditView derived class, CEditorView, when I select text and scroll vertically, the view lags for a second before scrolling. When you usually do this in other programs, there is no lag time.
Does anyone have any suggestions for me?
Thanks kindly.
|
|
|
|
|
I'm writing up descriptions of all my source code files, and i'd like to have a html page that describes where the program starts and where it goes from there.
Instead of manually writing
porgram starts with this function, which is located on this cpp file. this function returns this, which is used to calculate this value in this cpp file...
I'm using vc++.net 2k3, does anyone know of a way to get this without typing it up manually?
*.*
cin >> knowledge;
|
|
|
|
|
you want to generate ALL static analysis info ???
anyway, a good start would be doxygen, but it doesn't go that far.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
I have a whole bunch of dialogs that show a MessageBox when the user edits data, then goes to close the dialog. They say something like "Data X changed...Do you want to save?". Anyhow, I am localizing the software, and I was able to change the message asking about saving data, but the way I am handling language support, it doesn't use the built-in text from Windows for the buttons (Yes/No/Cancel). So, is there a way to override the MessageBox button text without having to write custom dialogs for each one?
If the only way to do this is to make a custom dialog, how do I display the built-in MessageBox icon types (ICON_QUESTION is what I'm using for these)?
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
the buttons' captions will change with the user's windows language!
if you want to have a custom dialog, use LoadIcon( NULL, IDI_QUESTION ) to load that icon.
Don't try it, just do it!
|
|
|
|
|
I realize that the Yes/No/Cancel buttons will come up in the language that the user has selected. However, here is where my predicament is. Our software supports 5 languages (English, French, German, Spanish, and Italian). If a user has, say, Arabic Windows, then their buttons will be shown in Arabic. However, since we don't support that language, and the user chose to install, say, the French version of our software, then the message text and caption will be in French. It just doesn't look very clean in my opinion. Since I already have the translated phrases used in other parts of the software, I was hoping that I could force the text to the installed language as opposed to using the Windows selected langauge.
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
The button text will be displayed in the current language, so you usually don't have to change it. If you do need to change the button text, try this CP article: XMessageBox.
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
Hello Friend,
I am using SQLDriverConnect() to connect to the MySql thru VC++ i am in position to connect to DSN correctly now i want to invoke the Store Procedure i am not knowing how should i procedure further.
Can someone help me? Urgent.
Thanks,
Prasad
|
|
|
|
|
SQLPrepare and SQLExecute!
Don't try it, just do it!
|
|
|
|
|
Will a program created for Windows 3.1 work with Windows 98?
|
|
|
|
|