|
From the documentation for GetTickCount :
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA . The value returned is an 8-byte value. For more information, see Performance Monitoring[^].
|
|
|
|
|
HKEY_PERFORMANCE_DATA does only exist under windows Nt/2k/xp and this way is much more complicated!
Don't try it, just do it!
|
|
|
|
|
Yes, but it doesn't wrap around after 49 days.
|
|
|
|
|
Thanks, I've seen some of the documentation for Performance Monitoring, but true to Microsoft form, there isn't a simple way to do what I want that is OBVIOUS to find (hello, MS documentors, you reading this? Probably not....)
Between the two suggestions, I've got enough to work on.
Thanks.
J
|
|
|
|
|
I have been trying to create the world's simplest ODBC database application accessing to an Oracle database. I am using VC++.Net. The problem occurred when I clicked at the Finish button. Options selected: SDI, Database view without file support, no compound document support. And at Database Support, I leave bind all columns checked.
Here is the error message:
Microsoft Development Environment
Error occurred while converting the wizard's text to the code page of the existing text in the file: C:\Excercise\db4\db4Set.h
Please help. I can not go any further until this is resolved.
Eilzabeth
|
|
|
|
|
1 point for repeating a post!
Don't try it, just do it!
|
|
|
|
|
I have been waiting for someone to respond. It seems to be a common problem that I can not even create a simple application from the wizard.
Eilzabeth
|
|
|
|
|
"code page of the existing text "
Not sure of this. But is it the language setting problem? I see this code page setting in *.rc. When having the VC 6.0 project to be run on different language version OS. This problem oftenly occurs. The VC IDE will automatically convert your project setting to different language pack based on your OS.
Hope this helps.
|
|
|
|
|
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
|
|
|
|