|
I have Windows XP. The application I was trying to create was a brand new simple MFC ODBC application using VC++.NET to display some fields in an Oracle database. I accepted all the default from the wizard.
You mentioned about Languge setting. Before a project is even built, how can I get to the Language setting page?
Eilzabeth
|
|
|
|
|
Okay, below are some of my suggest inspections.
1. Check your Window XP language setting.Go to your control panel - Regional Options. Check your present OS locale (in the combo box) I do not have Win XP installed in my office. I am using Win 2k but I think should be more or less the same.
2. Check your MFC resource setting.
-Start your new MFC ODBC project using VC.NET. Check your Resource language in your Application Type.
Actually, you do not need to start up an entirely new project for this. When you have your project started, you can check your resource language in configuration pages - Resources - General - Culture.
3. Check your Oracle Server Language Setting. You can check it in your Oracle DBA Studio.
Hope this helps.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I have English (United States) on both my Windows XP desktop and the MFC resource setting Resources - General Culture. I did not check the Oracle server. However, I created an exact application in Visual Studio VC++ and did not receive any problem. In fact, there has not been any database application problem with the Visual Studio version.
Eilzabeth
|
|
|
|
|
There is one more thing I want to share with you. db4Set.h file is empty.
Eilzabeth
|
|
|
|
|
Okay. I had not tried it out myself but I suspect it could be VC.NET wizard's bug. You could try to post your problem to Ms and wait for their reply but probably take some time. Do you know that Visual C++.Net will no longer supporting MFC in the future?
my suggestion to your problem.
1. The Visual C++ 6.0 project is compatible to Visual C++.Net with it IJW.
So, I suggest you to create your project in Visual C++ 6.0 and use Visual C++.Net to convert it into VC.Net project (Don't worry, everything is automatic here). This should work. There are some dedicated articles for IJW by Nishant if you like to check it out.
2. Why not to use ADO.Net in Managed C++?
http://www.codeproject.com/managedcpp/adonet_mcpp.asp[^]
Afterall, Visual C++.Net is meant for Managed World.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I will post one up in the Microsoft website (will have to find out how).
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 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.
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.
Eilzabeth
|
|
|
|
|
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!
|
|
|
|