|
Yes.
|
|
|
|
|
I am testing a legacy app for use on Windows 7, both 32 and 64 bit. It presently runs on XP. For some unknown reason OLE database accesses take orders of magnitude time longer to run on Windows 7 than on XP. For this testing XP is running in a VM on the same Windows 7 64 bit machine used for Windows 7 testing, so the hardware is not the issue.
For example the following code takes 2276 ticks on Windows 7, 80 ticks on Windows XP.
startTime = GetTickCount();
CDBConnection DB;
if( DB.Open( m_DBConnectSettings ) )
{
DB.Close();
endTime = GetTickCount();
logStr.Format(_T("CDBEngine::InitializeDatabase DB.Open elapsedTime: %d ticks"), (endTime - startTime));
EventLog.LogEvent(0x04, logStr);
}
BOOL CDBConnection::Open( const CDBConnectSettings &Settings )
{
USES_CONVERSION;
return( SUCCEEDED( OpenFromInitializationString(
T2COLE((LPCTSTR)Settings) ) ) );
}
I am using:
Development Studio 2003, version 7.1.6030
Microsoft .NET 1.1 Version 1.1.4322 SP1
MSDE 2000 (SQLServer Express derives from this).
The following system dlls:
DLL
Unless otherwise noted, the DLL versions are:
Windows 7 is Product version: 6.1.7600.16385
Windows XP is Product version: 5.1.2600.5755
ADVAPI32.DLL
COMCTL32.DLL WinXP = Product version: 6.00.2900.5512
COMDLG32.DLL
GDI32.DLL WinXP = Product version: 5.1.2600.5698
MAPI32.DLL WinXP = Product version: 5.1.2600.0
MFC42.DLL Win 7 = Product version: 6.06.400, Win XP = Product version: 6.02.400
MSVCRT.DLL Win 7 = Product version: 7.0.7600.16385, WinXP = Product version: 7.0.2600.5512
OLE32.DLL WinXP = Product version: 5.1.2600.5512
OLEAUT32.DLL Win 7 = Product version: 6.1.7600.16567, WinXP = Product version: 5.1.2600.5512
RPCRT4.DLL WinXP = Product version: 5.1.2600.5795
SHELL32.DLL WinXP = Product version: 6.00.2900.6018
SHLWAPI.DLL WinXP = Product version: 6.00.2900.5912
USER32.DLL WinXP = Product version: 5.1.2600.5512
WINMM.DLL
Thanks for any thoughts, suggestions, ideas, answers, etc.
Clarence
|
|
|
|
|
Hello !
I want to develop this tool :
Customer can use the toolbar to draw his button , rectangle more and more.
the window can be move or draged ,like edit in the Visual C++ resource view.
(He can insert a new window, like Visual C++ "Insert a dialog".)
At last ,this will save as a script file.
Which knowledge is it to be need ?
|
|
|
|
|
Koma Wang wrote: Which knowledge is it to be need ?
Quite a lot. You need to be able to write a program with a GUI front end that can show menus, dialogs, bitmaps, icons, strings, version resources (and others I may have forgotten) in their natural state. The user will then want to add and remove pieces from them, move objects around, save and reload the resource, etc, etc. Assuming you are a highly skilled developer this should be less than a couple of years' work.
It's time for a new signature.
|
|
|
|
|
Richard MacCutchan wrote: Assuming you are a highly skilled developer this should be less than a couple of years' work.
|
|
|
|
|
Oh , my god !
I just less than half a year's work experience.....
Now I use the GDI to draw a static text shape, but I don't know how to handle the shape move message.
I want to clearn the old shape, then draw a new static text shape.but the dialog can't catch the window move message when mouse's position is in the client area.
(the dialog only can be dragged ,because the mouse postion is in the title bar.)
|
|
|
|
|
don't worry.. he was just telling how much effort it requires.
|
|
|
|
|
thanks all the same.
|
|
|
|
|
I use the visual studio 2005 to compile the mfc c++ program. But it shows that can not find mfc dll when run the program
I find that I have not installed the sp1 for the visual studio 2005.
But I install sp1 several times fails. It says the error 2349.
Is there any other package that must be installed before sp1?
Can anyone help me?
thanks.
modified on Wednesday, September 15, 2010 9:11 PM
|
|
|
|
|
try to reinstall vs2005, then install the sp1.
|
|
|
|
|
After install the Service Package 1, it's OK.
But it is difficult to install the service package 1 for vs 2005.
The errors often occur.
|
|
|
|
|
Each client will need the appropriate run-time packages for the version of Visual Studio you are using.
I have a bunch of the C++ ones in my forum for my Fibonacci project.
This way users can download them as needed.
http://www.contract-developer.tk
|
|
|
|
|
I am using Visual C (win32 Console Application) for feature extraction program. In my project I am extracting features from the trained images. Features aren in form of structures. Strcuture has 4 DOUBLE data items and 1 INT array of size 128. So this means one feature from the image. On average one image may generate from 500-1000 features.
I am using dynamic memory allocation to store the structures for every trained image. I am using 800 images for training. This means huge amount of memory will be consumed to keep these features iN RAM. Now problem is that after training of 740 images I am getting error of memory leak i.e. insufficient memory to allocate. I have tried every possible way to avoid it but can't. So please tell me how i can overcome this issue. I will be really grateful.
|
|
|
|
|
Maximum of 2GB memory can be given to a process at a time (in 32-bit OS), once it goes beyond that limit, the program will not work. Now first check if you want all these 800 immages to be in memory at a time, if no then see that you are freeing up the unnecesssary memory. If you are facing difficulty in tracing that you are freeing up the memory correctly or not then you can use any memory leak detection tool to verify that. One of popular freeware is LeakDiag.
Hope this will help you.
Thanks,
Anand.
|
|
|
|
|
I compile the program in vs2005 and succees.
But when run the exe file, it cannot run.
I use the depends to see the dll and find that it needs MFC80UD.DLL file. I can find this dll in the visual studio 2005 install path.
How can I do ? thanks
modified on Wednesday, September 15, 2010 9:07 PM
|
|
|
|
|
yu-jian wrote: I can find this dll in the visual studio 2005 install path.
Add that path to your system PATH variable, or copy the dll to the Windows\System32 directory.
It's time for a new signature.
|
|
|
|
|
I have copy this file to the system32 folder, but no useful
|
|
|
|
|
yu-jian wrote: I have copy this file to the system32 folder, but no useful
That seems very strange, I suggest you check your PATH variable to ensure that it contains a reference to Windows\System32 .
It's time for a new signature.
|
|
|
|
|
I have copyed all the mfc dll to the system32 but no use
Then I install the sp1 for the visual studio 2005 then all the OK.
thanks for your reply.
|
|
|
|
|
Am new to WTL, but why am I having so much problem adding a normal toobar to my simple dialog based app ? It seems to be easy with a Frame, but not a dialog as far as I can see. I can see quite a few people asking this question, but not any reasonable examples - but I may be missing them.
|
|
|
|
|
Dialogs only provide limited functionality, their job is really to just host a few controls. I can't say for certain but I'm guessing this may be the reason you are having problems. That is Dialogs and Toolbars just don't go go together. I do know that when starting with WTL Dialogs seem less daunting than say, CWindowImpl. I did a search of my WTL/ATL code and all toolbars I've implemented have been on CWindowImpl based windows. Maybe it's time to move on from a Dialog based app.
|
|
|
|
|
hi guys, i'm having problem passing the value of color picker to my COLORREF variable..
my code on KEYDown Event:
CGDICarSampleDlg.cpp file
/*
CColorDialog dlg;
if (dlg.DoModal() == IDOK)
{
color = dlg.GetColor();
}
Invalidate();
*/
when the color picker apears, i just choose a color,.
i created a brush on my Car.cpp file,
m_brCar.CreateSolidBrush(RGB(0, 0, 255));
now my problem is this, how do pass whatever the value of chosen color to a COLORREF variable, then pass it to m_brCar.CreateSolidBrush(COLORREF variable);?
so when i chose a color, my CAR DRAWING changes it's color, initialy the color is BLUE..
thanks ahead..
|
|
|
|
|
ok, i resolved it on my own...
using these three lines of code i was able to extract the RGB...
r = GetRValue(color);
g = GetGValue(color);
b = GetBValue(color);
haha... google is a friend, don't be shy to ask GOOGLE..
|
|
|
|
|
Hi ,
I developed a new OCX in VC++ 2008 , it is working .i want to rename the OCX. how to do that. Pls give u’r suggestion .
Now my OCX file name is “IPCalling.ocx”, rename to “IPCall.ocx”
Thanks
shakumar
|
|
|
|
|
you can simply rename the ocx file, but should register it again (either manually or using RegSvr32.exe) to work properly.
|
|
|
|