1
vote
1answer
67 views

what is windows programming from C++, C# and Java perspective? [on hold]

I am learning MFC right now. There is a term i have read in all the books :"windows programming". My point is what do they mean by this term "windows programming" ? The simple windows form application ...
-1
votes
0answers
23 views

Searching for good book or tutorials to use MFC library in C# [on hold]

I am new in UI coding. I have to do coding in UI for visual studio 2012.some suggestions of good book for doing this basically i have to use MFC library in C#. I Am searching for good book or ...
1
vote
1answer
37 views

How to hook for MFC CWnd Creation

I am very new to this website and new to hooking and C++. I want hook to MFC application window creation: Can this be done using C# code? We have followed this site to listen to window creation. We ...
0
votes
2answers
18 views

how to get 'MFC :: ON_CONTROL_RANGE' like behavior in Winforms using C#

In my Win forms app, I have around 25 buttons, I want to call a same function on 'click' event of those button. Is there anything Like MFC's, ON_CONTROL_RANGE macro in C#. ...
0
votes
2answers
77 views

C++ .NET Wrapper: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

I am having C++ .net wrapper for an unmanged MFC dll. This wrapper is used by a vb.net dll, called into my c# code. During runtime sometimes the wrapper throws an exception of Attempted to read or ...
2
votes
1answer
110 views

Conversion from Multi-Byte encoding to Unicode

I am working on a project, this contains a mix of C++, MFC and C# projects which are in need of conversion from MultiByte encoding to Unicode. The project is too huge to do it manually. Is there any ...
0
votes
1answer
36 views

Launch a C# Application from C++ and performing a task on that application

I have read this and achieved the opening of my C# application. My C# application opens a folder and draws a graph. Is it possible for me to tell my C# application which folder to open from C++ and ...
0
votes
0answers
39 views

COleStreamFile::OpenStream replacement in C#

I have a code written in MFC for file reading and writing. I am rewriting it for C#. My file consists of three parts, Header *Body* and Footer. Now in MFC code CArchive can write/read any of these ...
1
vote
0answers
36 views

Difference between MFCArchiveFileReader and C# BinaryReader

I have some code written in MFC which writes data to a file. Now I am rewriting that code in C#. In MFC code, data is being written in file using CArchive. Now I am thinking to use BinaryReader in C# ...
3
votes
0answers
103 views

Can not pass winform control size into unmanaged code

I use unmanaged libraries to obtain video stream from IP Camera. There is function: [DllImport("client.dll", EntryPoint = "Network_ClientStartLive", SetLastError = true)] protected static extern int ...
0
votes
1answer
44 views

Monitor/Determine when a com object is used

I wonder if any one can help me with this.. What I want to do is to put some type of trigger on a COM object, whenever this object is created/loaded and used, I want to create a log. I am fairly ...
0
votes
2answers
198 views

Extracting all .msg files from a .pst file

Note: I was asked to create an app that extracts .msg files from a .pst file preferably in MFC. I was informed that they have tried to use other 3rd party apps but they all failed (don't ask me how) ...
0
votes
0answers
45 views

Hosting a MFC component on a Windows Form

I'm working on a MFC-based application written in C++. Recently some of the user interface has been replaced with Windows Forms based components and it works fine hosting Windows Forms components. ...
0
votes
2answers
230 views

Host Windows Forms (C#) Inside MFC Application (VC++,VS6.0)

After a bunch of reading this afternoon, and not getting any tangible results. Is it possible to host a windows forms dialog inside of a MFC application that is still being developed using VC6. ...
3
votes
1answer
203 views

Extend a C++/MFC application with plugins in C++/MFC and C#

I wonder how to best develop a plugin framework where you can develop plugins with both C++/MFC and C#. The Host Program is an existing program developed in native C++/MFC. To extend the ...
1
vote
0answers
151 views

What is good WPF application framework for MFC document style project? [closed]

I want to create simple File Editing based application, a typical advanced version of NotePad or WordPad, which should have menus and undo/redo buttons on toolbar etc. In MFC, there was a wizard to ...
0
votes
1answer
187 views

DLLImport a variable MFC dll

So I created the following test project: [DllImportAttribute("TestMFCDLL.dll", CallingConvention = CallingConvention.Cdecl)] internal static extern int test(int number); private void ...
3
votes
1answer
1k views

Convert HWND to IntPtr (CLI)

I have a HWND in my C++ MFC code, and I want to pass this HWND to a C# control and get it as IntPtr. What Is wrong in my code, and how can I do it correctly? (I think it's something with wrong using ...
0
votes
3answers
340 views

How to send a windows message from C# to C++ (MFC)?

I'm trying to send a windowsmessage from an app in C# (Compact Frame) to another one in C++ (MFC), both of them in a PDA. In the receiver app (MFC) I realize that I receive the message but I can't ...
-1
votes
1answer
86 views

Where does .NET framework code calls to draw a window (native C++)? [closed]

If I use the System.Windows.Forms.MessageBox class' show function to draw a message box, a window pops up. I would like to know where the actual code to draw this window is? Is it in some Win32 API or ...
0
votes
2answers
271 views

Is there any DataGridView Like control in MFC

I want to create a Database application in MFC by using VS 2010 and i want to know is there any [.NET Winforms] DataGridView Like control in MFC.
-3
votes
2answers
129 views

Looking for SpanIncluding equivalent in C# [closed]

I'm porting a c++ class to C# and i have a difficulty. I would like to find an equivalent of SpanIncluding. Here is my cpp code : while ...
0
votes
1answer
125 views

CMap in c# with 4 parameters

I'm porting a c++ MFC class in c# and i have a problem. The c++ class have a CMap<int,int,CString,CString>MapIndexNote; How can i create the equivalent in c# ? I have read about ...
0
votes
2answers
122 views

Porting code from MFC to C#

I change some code from c++ MFC to c# and have a few questions: 1) In MFC I have a CByteArray variable. What type should I give to this variable in c#? 2) I have a c# interface I have to use. In MFC ...
0
votes
0answers
158 views

ActiveX access violation exception

I am stucking in a issue. I write a ActiveX using C# then i add it to a MFC project. I run the MFC app with the debuger in visual studio 2008, everything work fine until i close the MFC app. The ...
0
votes
0answers
79 views

Host a .net User Control in an MFC CView

I created a C# user control. I have an MFC project and I have an MFC view. The MFC view is of class CFormView and it can not be changed to be some other class. I have to host the C# user control in ...
0
votes
1answer
86 views

windows application with web search [duplicate]

Possible Duplicate: Programmatically get screenshot of page I am working on a small desktop program in winapi What I want is that the application will have textbox with some buttons. User ...
1
vote
1answer
464 views

Using a Winform as a View in C++

im trying to use a Winform as a view in my MFC application, but i cant seem to get it to work. It compiles and runs but when starting the view it crashes indicating the control cant be created: ...
2
votes
0answers
206 views

How to import WPF GUI forms into MFC application

I have simple MFC legacy application. I need to create some 5 new screens with very nice GUI - so i decide to do it with WPF. I'm using VS 2010 My questions are I don't see any possible to create ...
1
vote
1answer
596 views

.NET Activex control access violation in MFC application

Background: I developed an Activex control in .NET, but found it was causing stability issues in various applications that used it. I managed to find a series of steps, from sample applications, ...
-4
votes
2answers
637 views

Which Platform Best Suite Software Development C#.net,WPF,MFC [closed]

I am new to Software Development, could you please give me some input into which platform is mostly used by other Software Developers. I am looking to develop software which has DB Connectivity with ...
0
votes
1answer
180 views

Save OLE object from Clipboard

I have unmanaged OLE object in clipboard. I put it in clipboard via next code: [DllImport("mfc80u.dll", CallingConvention = CallingConvention.ThisCall, EntryPoint = "#1532")] public static extern ...
1
vote
1answer
576 views

sending String from C# to MFC through SendMessage

I know how to PInvoke a method that wants a CString by using LPCTSTR instead and setting up the DllImport to call with the LPstr conversion. However, how would I do it with SendMessage where LPARAM ...
-3
votes
1answer
215 views

Transfer c# code into c++ (Microsoft c++) version [closed]

I need to translate this code into c++ (microsoft c++ ATL/MFC)project. var ticks = System.DateTime.Now.Ticks; byte[] c = BitConverter.GetBytes(ticks); byte[] ...
1
vote
1answer
299 views

How to call an unmanged C++ DLL With CString Refrence

Using VS2010 I am building a C++/CLI wrapper DLL around an unmanaged C++ DLL that uses MFC CStrings in its public interface. The unmanaged C++ DLL contains a class that I need to access. My problem is ...
0
votes
1answer
192 views

C++/CLI wrapper trying to use MFC CObject inheritance

Using VS2010, I am working on wrapping a large number of .h files and one .lib from native C++ (using MFC) to C++/CLI for eventual use as a referenced .dll in C#. While creating the wrapper I'm ...
0
votes
1answer
160 views

MFC Visual C++ code to check for valid number entries

I have this MFC app with the following piece of code to check for the validity of numbers entered using a edit control in the app. Its validated as a string of chars. bool invalid = FALSE; int ...
0
votes
1answer
658 views

MFC class to C#

I have implemented a library known as GDAL in C++/MFC, this project also implement gdiplus for drawing bit map. So in short: i incapsulated everything in a class that takes some int, string and other ...
0
votes
1answer
194 views

Event handler access modifier MFC vs C# WinForms

I've recently been developing both MFC and C# Windows Forms applications and I've noticed a difference between the access modifiers on auto-generated event handlers. In MFC public: afx_msg void ...
0
votes
6answers
530 views

Unit Test existing UI code

I was browsing for a while the internet and this site and instead of finding some ways to unit test my existing code the only finding was to separate logic and interaction with the user (MVC ...
0
votes
3answers
813 views

MFC-hosted WPF usercontrol how to close parent window on button press

I'm trying to get a legacy MFC application and a new WPF usercontrol to shut down a dialog window based on a button press in the WPF usercontrol. In essence, I would like some tips on how I can get ...
1
vote
1answer
462 views

Reading Serialized MFC CArray in C#

MFC CArray was Serialized and saved to a database. I need to read this data into a C# project. I am able to retrieve the data as byte[] from the database. I then write the byte[] to a MemoryStream. ...
1
vote
1answer
157 views

Determine allocated 'Handle' types

I'm debugging an application I suspect is leaking win32 handles. Task manager reports the application has some 5000 handles allocated. Using task manager, I counted the GDI and user objects, and ...
1
vote
1answer
385 views

Write ActiveX control in C# but use it in MFC

The current projects are all written in VC6 and VB6. It has been proved that .Net can write Active X controls for MFC use. So we'd like to write some active x controls using .Net with minimum changes ...
2
votes
0answers
349 views

PreTranslateMessage in C# for hosted MFC window

We developped an MFC application where the main window was implemented in a DLL. In an attempt to revamp it, we are thinking of changing this to a WPF-application where the "old" native window gets ...
1
vote
1answer
607 views

System.Drawing.Image to Visual C++/MFC Picture Control

I'm trying to get a System.Drawing.Image (generated in a .NET dll) into a picture control in a Visual C++/MFC application. I'm new to COM/Interop, but I have interop'ing working. However I'm not sure ...
6
votes
4answers
520 views

C# .NET Document Based Application manipulating Diagrams

I would like to develop a new application in which the user might have the ability to create diagrams that depict processes. I think in this case a document based application is the only option that I ...
2
votes
6answers
1k views

Shell Namespace Extension. C#. C++, MFC, ATL ¿what to use?

We need to create a Shell Namespace Extension. I left windows programming in 2005, that time I had to create simple shell extensions, but built very complex COM servers (in-process and out-of-process) ...
0
votes
1answer
242 views

Rewrite MFC DLL with C#?

I have a plugin DLL that I've written in C++ MFC loaded by a 3rd party application presumably written in C++ with MFC. My DLL has a GUI interface and is based on CWinApp; I guess somehow the message ...
1
vote
2answers
1k views

Looking for code sample on creating C++ DLL then P/Invoke in C# (For Windows CE 5/6)

I am experienced in C# but not in C++. Recently my Windows CE 5 C# program is hitting performance issue and I am considering moving calculation to C++ DLL then P/Invoke it from C# since C++ supports ...

1 2 3
15 30 50 per page