|
I found the error
I send the Message from the Pane, but that's wrong
I must send the Message from the Parent of the Pane.
GetParent()->SendMessage(WM_COMMAND, wParam, (LPARAM)NULL);
Thanks nevertheless
|
|
|
|
|
Hi all,
i am doing project in MFC. up to this moment i used visual studio 6.0
IDE for my developement purpose. but because of some reasons i shifted
Visual studio 2003 Version 7.1.3088.
i migrated all my project to this version and now when i create a final
release.
and run it on other machine that does not have .NET or .NET framework
installed on it
gives an error by saying mfc71.dll not found.
so is it necessary to install .NET framework on the client's computer
to run my application??
Thanks and regads
Harshal
|
|
|
|
|
Try this:
In project settings search for "Use MFC in a Static Library" in Project>Properties>General > Use of MFC and select and apply it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
harsha_1234 wrote: and run it on other machine that does not have .NET or .NET framework
installed on it
gives an error by saying mfc71.dll not found.
If you write a program using .NET, it will require the pertaining framework to be installed in the target machine where you run the program. Linking the files statically may result in an increased size of the application.
harsha_1234 wrote: so is it necessary to install .NET framework on the client's computer to run my application??
Yes!
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
brahmma wrote: harsha_1234 wrote:
so is it necessary to install .NET framework on the client's computer to run my application??
Yes!
NO !!!!
he's programming MFC !
so only the MFC71.dll, MSVCR71.dll and MSCVP71.dll may be necessary
|
|
|
|
|
toxcct wrote: he's programming MFC
Sorry, I missed that. Sincerely.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
don't confuse, installing Visual Studio .NET doesn't mean you actually use the .NET framework.
if your program is pure MFC project, then provide the MFC71.dll, MSVCR71.dll and MSCVP71.dll libraries with your exe (or statically link your project to MFC, but that'll increase the .exe file size significantly)...
|
|
|
|
|
Thanks for replying.
as you said i think it does not use the framework it's running in pure MFC.
so by putting these dll's on client's machine will be suffice..
Thanks
Harshal
|
|
|
|
|
complete answer
|
|
|
|
|
Ship all required dll's on client m/c. No need to install .net framework.
Use depends.exe for detecting dependencies.(It will show files mentioned by you).
|
|
|
|
|
.NET 2003 include VC7.0 , Convert VC6.0 project to VC7.0 , then rebuild all .
No need other dll , no need .NET framework.
|
|
|
|
|
I need to know when a copy event occurs in the explorer. I think I must set a global hook using SetWindowsHookEx API. But which type of hook it has to be?
|
|
|
|
|
You can write an ICopyHook shell extension to get those notifications.
|
|
|
|
|
That seems to work only for folders. I want my application to know immediately when user is copying one or more files. Will a clipboard hook help? Is there any other way to do this?
|
|
|
|
|
No, it gets called for any file operations done in Explorer. A copy hook gets registered under a "folder" key but that doesn't mean it works only for folders.
|
|
|
|
|
Oh thats cool. Can you point me to some sample article or code? When I searched CP I found one article but there only folder copy operation is handled. My app requirement is like I need to log whenever the user is performing a file copy in the explorer. Thanks.
|
|
|
|
|
|
How to run a VC console app from a batch file but with variable number of params?
file.bat
vcConsole.exe %????
> file.bat param1 params2 param3 ... paramN
and pass them all at once without %1 %2 %3 ... in batch file?
9ine
|
|
|
|
|
use %1- instead...
sorry, this was the unix way.
use %* to expand all the parameters excluding the %0 (which is the batch file name).b
|
|
|
|
|
good morning
is it possible to fill a table with CString ?
CString tab [20];
|
|
|
|
|
|
yup, why wouldn't it be ?
BTW, think of using STL if it becomes complex (with something like std::vector<CString> )...
|
|
|
|
|
|
I'm writing a DMO (DirectX Media Object) transform filter for video. Now I want to implement internal resizing functionality. Thus previously I have always returned DMO_E_INVALIDTYPE from InternalCheckOutputType() if input and output dimensions doesn't correlate for RGBxx. However this approach isn't possible for YUY2 color space since the renderer (VRM9) for some dimensions introduce memory alignment for every row of the frame (for example if the input video has dim 176x144 the renderer requests a output dimension of 192x144 probable due to some render acceleration of the YUY2 rendering in graphics card and if denied it will use RGB instead and performance will of course decrease).
The above is annoying because I can't see the difference when to perform internal resizing and when to align the rows of the frame (or when to do both).
So my question is, is there a way to get information on the amount of (image row) memory alignment of the output from inside a DMO filter.
(In some cases I also will need to hook up the output of the filter with non-rendering filters.)
|
|
|
|
|
By the way, the sort of memory alignment i am talking about is called pitch or stride.
|
|
|
|