|
|
He's asking about merging two apps, I'm asking about extending an app, which is very different.
Plus, I've no choice to make, we're on MFC and will be staying there. Just wondering if I can make use of the .net stuff that's out there within my MFC apps, or if I will need to stick to Windows API and MFC stuff only?
-Dy
Help me raise money for the RNIB
|
|
|
|
|
While you can use .NET controls in MFC apps in VC 2003, it's a lot more easier with VC 2005, because MFC has some new WinForms interaction classes.
|
|
|
|
|
Fantastic!
We're going to be evaluation '05 pretty soon... In the mean time, do you know of any web resources / articles here on CP about doing it in '03? I've had a look here and on MSDN, but didn't spot anything.
-Dy
|
|
|
|
|
-Dy wrote: In the mean time, do you know of any web resources / articles here on CP about doing it in '03?
Here's a link to a newsgroup post I made a while ago :
Click here [long url][^]
|
|
|
|
|
Yes it is possible to use Dundas' .Net controls in MFC. In fact there have been enough clients who do this Dundas' technical support has made MFC wrapper classes to make it even more straight forward.
Troy Marchand
Dundas Software
|
|
|
|
|
hi,
i had one MFC dlg based exe
and one .NET exe app.
how can we integrate both???
i want to call mfc app into .net !!
can you please guide me....
tirucapricorn
|
|
|
|
|
i don't know why you're doing this, but even if it is possible, you're completely loosing the point with using and intermediate language such as MSIL...
.NET is supposed to be plateform independant ; MFC isn't...
make your choice...!
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
-- modified at 8:36 Thursday 15th December, 2005
|
|
|
|
|
It's not possible to integrate 2 exes (unless you want to end up with 1 exe). Make one of them a DLL and call it from the other. You can use a .NET DLL from an MFC exe, and you can use an MFC extension DLL from .NET (provided the .NET app uses C++).
-- modified at 10:10 Thursday 15th December, 2005
|
|
|
|
|
yeah, its not possible to integrate one exe into another exe....
my GUI work done in VC.NET ,and another app is mfc dlg based, which is exe app.i want to get mfc app into dotnet app.
if one app is dll we can call dll easily into our client (exe)...
actually iam new to .NET techs...
how can we make exe to dll...any suggestion please...
tirucapricorn
|
|
|
|
|
Hi world...
I want to change the CMonthCalCtrl language. Is this possible?
I think not!
Is there another calendar control where I could do that?
Thanks for any advice!
Hello World!!!
from Raphaël
|
|
|
|
|
I am writing single doc/view application and i want to use activex controls
in view window. So how should i add activex controls to view window.
Sachin
|
|
|
|
|
hello all
In VC when u try to open Workspace u get a open file dialog with a button of "Source Control".
I want open "OpenFile" dialog with the same button if a Source Control provider is exist on the client computer.
I use the "GetOpenFileName" function and i didnt found the flags that i can play with
I hope u can help me
Mark Shteinberg
|
|
|
|
|
markshte wrote: I want open "OpenFile" dialog with the same button if a Source Control provider is exist on the client computer
I believe you looking for Save Button.. pass that structure in GetSaveFileName(..) api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
What did u mean by saying that?
|
|
|
|
|
u r assuming wrong i want to allow to open file from the client workstation and also allow to open file from source control
|
|
|
|
|
|
|
Is there any standart way to add subclass of source control? i mean can i find any standart way to add source control to open file dialog
|
|
|
|
|
And by the way what flag i need to use and where?
Thanks and Regards,
|
|
|
|
|
I am working on improving the memory consumption for one server application.
so for this I am looking the virtual memory consumption for a process.
Is there any API to get virtual memory for a process in VC++?
thanks
~Sachin
|
|
|
|
|
sachin.kumar wrote: Is there any API to get virtual memory for a process in VC++?
System Wide :- GlobalMemoryStatusEx()
Process Wise :- GetProcessMemoryInfo()
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
thankyou Alok
I just found VirtualQuery( )
for virtual mem usage.
~Sachin
|
|
|
|
|
i have an error on direct x using visual c++. when i try to use keyboard event.
*****************************************************
missing ';' before identifier 'DInput'
keyboard eve\main.cpp(13) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
keyboard eve\main.cpp(13) : fatal error C1004: unexpected end of file found
*******************************************************
i think it from including dinput.h although i include it on my program.
please help me!!
|
|
|
|
|
Hello!
I'm developping a MDI application in MS Visual C++ .NET (Managed C++ and GUI-Designer).
As my child windows are of dialog style (3D border and grey), I looked for a way to remove the inside 3D border of the MDI child area while the child windows are maximized and to put the border back on if they are normalized again.
All this because it doesn't look very nice when you maximize a 3D bordered window in another 3D bordered window (you get a "double border" then).
See these pictures illustrating what I mean:
Normal child window:
http://www.geocities.com/icklephilipp/ura_situation1.gif
Maximized child window with "double border":
http://www.geocities.com/icklephilipp/ura_situation2.gif
Maximized child window with merged border (this is what it should look like):
http://www.geocities.com/icklephilipp/ura_situation3.gif
I did manage to remove the 3D border with this code:
To remove the border:
System::Void MainForm::AddClientEdge(System::Windows::Forms::MdiClient* mdi)
{
if (mdi != NULL) {
int style = GetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_STYLE);
int exStyle = GetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_EXSTYLE);
style &= ~WS_BORDER;
exStyle |= WS_EX_CLIENTEDGE;
SetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_STYLE, style);
SetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_EXSTYLE, exStyle);
SetWindowPos((HWND)mdi->Handle.ToPointer(), (HWND)IntPtr::Zero.ToPointer(), 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
}
} To put the border back on:
System::Void MainForm::RemoveClientEdge(System::Windows::Forms::MdiClient* mdi)
{
if (mdi != NULL) {
int style = GetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_STYLE);
int exStyle = GetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_EXSTYLE);
style &= ~WS_BORDER;
exStyle &= ~WS_EX_CLIENTEDGE;
SetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_STYLE, style);
SetWindowLong((HWND)mdi->Handle.ToPointer(), GWL_EXSTYLE, exStyle);
SetWindowPos((HWND)mdi->Handle.ToPointer(), (HWND)IntPtr::Zero.ToPointer(), 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
}
} The big problem now occurring is shown in this picture:
http://www.geocities.com/icklephilipp/ura_strange.gif
The menubar of the main window changes like this if one switches between different child windows via the "Window" menu while the child windows are maximized.
Does anyone know, what relation these two functions have in particular?
I don't get it at all!
I'm grateful for any ideas or thoughts!
Greets, icklePhil
|
|
|
|