|
We are also trying to do the same and want to reuse the document view architure in one of the complex component. How do we do that? Can we make .NET form as Mainframe/ChildFrame for the views and document? Any pointers will be appreciated.
Thanks.
|
|
|
|
|
;PHi,
I can solve your problem, if you have any questions about use .Net Control in your MFC Project, please contact me, my e-mail is sunhui@mail.apptemplate.com, please visit my site: http://www.apptemplate.com
sunhui
|
|
|
|
|
Hi,
I can solve your problem, if you have any questions about use .Net Control in your MFC Project, please contact me, my e-mail is sunhui@mail.apptemplate.com, please visit my site: http://www.apptemplate.com
sunhui
|
|
|
|
|
Have been trying without success to call an managed function from
within an unmanaged class. This would seem to be a basic requirement,
of the dotnet so I am obviously doing something wrong.
Given the class CMyManaged header as:
#pragma once
public __gc class CMyManaged
{
public:
CMyManaged(void);
~CMyManaged(void);
void MyFun(void);
};
and a standard MFC dialog class, I wish to call MyFun() from
within MyMFCDlg().
Now I went about this by declaring a CMyManaged variable m_MyManaged;
in the unmanaged MyMFCDlg() header file. Then in MyMFCDlg.OnInitDialog()
I try to call m_MyManaged.MyFun();
Have tried declaring the managed variable as
gcroot<cmymanaged*> m_MyManaged;
But various means to call MyFun() have all resulted in
compilation errors.
Any help would be appreciated, as the C# dialog box is to limited I
need to continue developing partially in Unmanaged C++.
Many thanks
|
|
|
|
|
3green wrote:
have all resulted in
compilation errors.
Post the compiler error messages, otherwise we have to guess.
Obvious things to check:
Do you have properly configured "mixed mode" project settings?
Do you have required #include and import statements?
If you don't know what one or both of those are you need to use MSDN to read about "mixed mode" development.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Hi,
My current Project has the following Requirements:
1. Backup the entire contents of the hard disk including Operating System as a bootable Image.
2. In case of System Failure, user should be able to perform a full system-recovery operation using the Backed up Image of the Hard Disk.
I am new to this concept and request any sort of help on how to proceed with this.
Any help will be greatly appreciated..
Regards
-Ram
|
|
|
|
|
That is generally considered too broad a subject or too vague of a question to receive a meaningful reply in a forum. You could probably write a book chapter or several on a subject of that scope. You might have to do some reading until you have broken down your problem into it's constituent parts. The post small specific questions to obtain help in a forum format.
But, that's just my opinion... I could be wrong.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
|
Okay, I'm a little confused. So, the ANSI / ISO Standard C++ is
a stardard C++ lanugage that targets non .Net platform and
managed C++ is designed by Microsoft that targets .Net platform.
Code that generated by using the ANSI C++ is also called native code or unmanaged code
and code that generated by using Manage C++ is called managed code.
Is that right?
|
|
|
|
|
Mostly. However Non ANSI / ISO Win32 C++ code is also considered "native" in discussions of "managed" C++.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
|
Hi all,
I got a problem with Return key in my C++/C# application.
On CView dilalog I put my C# control using managed extension. This C# control has couple
other controls nested. I have problem with RichTextBox control which
is at the bottom of my control hierarchy. It does not process
VK_RETURN key down. So I can not create new line. All other keys work
in RichTextBox. Of course I made it Multiline. I used Spy++ tool to
figure out what is going on. I managed to see that RichTextBox window
receives ON_KEYDOWN message with VK_RETURN. But there is no WM_CHAR message which normally should follow WM_KEYDOWN. As a result no new line is created in RichTextBox.
Tried to catch WM_KEYDOWN in WndProc and onkeydown. But they are hit for all keys except of RETURN
I would greatly appreciate any hints.
Thanks in advance,
Roman
|
|
|
|
|
So your C# control is not receiving the VK_RETURN event notification? Try asking in the C# forum.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Just found solution.
In overriden WndProc I listened for WM_KEYDOWN message and never got it. But in reality I should have listened for WM_GETDLGCODE.
After I caught the message I could insert new line in textbox manually
Roman
|
|
|
|
|
Hi everybody
If can anybody help me with checking the "Change" in the Status register of the Parallel Port, i want to use it to check a clock from an external device periodically, also i want to know if i can stop the interrupt to the Microprocessor while i'm using the parallel Port
Thank you everybody and have a nice day
|
|
|
|
|
Parallel port is usualy on 0x378 adress and it's registers are: controll 0x379, status 0x37A, so you just ned to read from adress 0x37A something like clock_status = inportb(0x37A) or something elese. Note that you can not use inportb function on NT based systems before you use some driver (there is a lot of that stuff) that will allow you direct accsess.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
I'm looking for some help in coding an application where I need to share some data between two threads. The first thread is managed code and it launches another thread that is unmanaged code. Can someone point me to an article, example, etc. on how to do this?
Thanks.
|
|
|
|
|
Hello!
i want to use from your codes about widows programming in c++ (mfc classes)
but your codes have not "application class" ,please refer me to application classes and main method ...
thank you very much.
dsdsd
|
|
|
|
|
arabghalizy wrote:
please refer me to application classes and main method
CWinApp::InitInstance()
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Hi,
I have imported several unmanaged C++ LIBs into a mixed C++ .NET DLL.
Two LIBs have the SAME class name (CLog) without namespace.
Is there a way to assign a namespace to each imported LIB in the mixed DLL project?
Also, when I use this mixed DLL in my C# app, I can see that these unmanaged classes (from LIBs) are shown :
how can I set the visibility of the classes to something like "internal" (as in C#) in the Mixed DLL ??
Thanks a lot!
Bertrand
|
|
|
|
|
Any hint ?
Pleaaaase....
|
|
|
|
|
Hello,
As a newbie to MC++, i've been working on a C# API that accesses a class written in C++. I've converted my C++ class into a wrapper as was suggested to me, but now i have an incredibly frustrating problem: when i try to "set" parameters into the attributes in the C++ class, i get datatype conversion problems. namely, here are my errors:
Argument '1': cannot convert from 'decimal' to 'int'
Argument '2': cannot convert from 'string' to 'std.basic_string<char,std::char_traits<char>,std::allocator<char> >*'
Argument '3': cannot convert from 'char' to 'sbyte'
I don't know how to get arnd these issues -- are there any "common" datatypes between the two languages? Any help would be REALLY appreciated
thanks in advance
|
|
|
|
|
Actually i just found something that could be "common":
The C++ "char" == the C# "sbyte"
not pretty, but it does the trick
|
|
|
|
|
If you are going to mess with C++ let alone "mixed mode" development you need a very clear understanding of "types" in C/C++ and "type conversion" principles.
But, that's just my opinion... I could be wrong.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I want to make own ls command in UNIX.
Example:ls | more
give the list of fine in the directory.
same as
myls | more
give the same output as given by above(list of fine in the directory).
Can u suggest me where i have to search.
|
|
|
|