Hi,
Is this the right forum for C++/CLI-related questions?
I haven't done any C++/CLI for ages, so please bear with me.
I have an unmanaged/native executable & I need to somehow get a managed class loaded into its process, only I don't have access to the source code of the exe. The only thing...
I have an unmanaged/native executable & I need to somehow get a managed class loaded into its process, only I don't have access to the source code of the exe. The only thing I can do is specify in a config file that it should load the dll when the process starts (presumably using LoadLibrary...
Hi I'm trying to load another app's window into my own & have it behave as much like an mdi child as possible. Focusing still behaves like 2 separate processes... Is there some window style, process-related magic i can perform to fix this.
Try the following code in a c# form:
public...
You're right. I've just knocked up a simple proof of concept which works fine. The full fledged version which doesn't work is built upon the csla framework which makes the process that much more complicated. Apologies for taking your time.
Thanks!
Thanks for your posts.
It's not so much which types are value etc. Going to back to my original post where i mentioned the 'loaded objects table', I'm not sure why, but it seems like i've got a brand new copy of the objects in the table, so when i update the objects elsewhere their member...
Hi!
Does anyone know if objects are returned byval, or byref in c#?
i.e.
foo refToNewObj = FactoryClass.CreateAndAddToTable();
or
foo copyOfNewObj = FactoryClass.CreateAndAddToTable();
I'm trying to devise a way of keeping a collection of objects that are references to object instances...
Hi Bob!
Thanks for your reply, however the main problem with your approach would be that the users of that group would have access to the documents outside of the application & thus i wouldn't have control. Some of these documents will be invoices & the like, so the thought is to prevent anyone...
I've just tested the application, running it from vs2005 & it works fine!! Normally it's shelled (Process.Start'd) from another app. Here's what works & what doesn't:
1) vs2005 - run main app
2) main app shells another app (with identical remoting code to problem app) ok
3) main app shells...
Hi!
I've got a windows forms app (.net 2). In the constructor of the main form I'm trying to set up an object to be remoted over a server tcp channel. I'm only interested in sharing the object with other apps on the same machine.
i.e.
InitializeComponent();
try
{
_iview = new iView(this)...
Hi!
Does anyone know how to open a file, or directory with specific account credentials without using WNetAddConnection2? Maybe by creating some kind of connection to the directory (similar to WNetAddConnection2)?
Here's some background to the problem if it will help:
In a nutshell; i'm...
Hi!
Can anyone tell me how to write the contents of a Graphics object to an Image. I want to write custom painting logic to the clipboard for debugging.
So far i've got:
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(_image,
new...
Just in case anyone gets similar problems, I found the DsoFramer C++ sample on the msdn site which achieves pretty much the same thing as shdocvw.dll, but it only works for Office documents. It also builds menus to reflect those in Word & although it's not perfect, with a bit of playing around...
Hi,
I'm writing a c# app that uses the web browser control to display word documents. Although i had to build the menus myself by enumerating through the Word documents CommandBarControl's it looks pretty much perfect. However there seems to be a BIG problem with the web browser control (either...
hi!!
does anyone know how to set a window icon, rather than a window class icon? e.g. if MyApp is run twice, using SetClassLong I will set the icon of both windows whichever window handle i provide because both windows are registered as being the same class of window. i need to set the icon of...
I've found the answer...
// in class declaration
afx_msg LRESULT OnSocketNotify(WPARAM wParam, LPARAM lParam);
#define WM_SOCKET_NOTIFY (WM_USER + 1)
// in the message map
ON_MESSAGE(WM_SOCKET_NOTIFY, OnSocketNotify)
Hi,
Does anyone know the best way to add a handler for a custom WM_* message to a class?? For example if i wanted my window to receive WM_SOCKET_NOTIFY (= WM_USER + 1), how would i do that? I'm pretty new to MFC so any help would be really appreciated!
Thanks!!
Hello,
does anyone know if it's possible to get a directshow object to send a WM_PAINT message every time a new frame needs to be rendered? either that, or receive events from an object before or after a frame has been rendered!?
Thanks!!
p.s. i'm trying to draw on top of a video during...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.