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...
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!
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...
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...
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...
I'm pretty new to win32 gui stuff & am having real problems loading an icon into a window. Can anyone see anything wrong with the code below?
hFileIcon = (HICON) LoadImage(NULL,
_T("c:\\test.ico"), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE);
hOldIcon...
Hi,
Can anyone tell me what the difference is between setting the runtime library by the compiler switch "/MTd" for example, & adding LIBCMTD.LIB, or LIBCPMTD.LIB to the additional dependencies of a project??
If you set the subsystem as Windows, Console, or don't set it at all, do you still...
I've got a BIG problem when trying to call a dll, from a test console app!! I've written a simple dll that delegates calls to a 3rd party library, but is necessary because it will eventually be used in a C# app, & some 3rd party functions are actually in import libraries (inc. a DllMain, so i...
I have a scenario where I need a client application to be able to locate instances of remoted objects running in a server application @ runtime (mainly IPC on single pc).
I'm trying to write a little test app which is just meant to get the idea to work. The server app would register a channel...
Hi,
I'm trying to mess around with already built import libraries e.g. remove symbols etc. i can't even figure out how to get a list of the symbols that a library contains in the first place!
MSDN isn't all that helpfull & I've been looking on the Web, but had no luck, so if you know of any...
Hi there!
I have a very quick question... Can you declare an event to be part of an interface?? e.g.
public interface IMyInterface
{
public event MyEventHandler MyEvent;
}
Thanks!!
hi there!!
does anyone know how you'd go about redirecting output from your printer driver to a file i.e. a pcl/postscript file? especially on a printer-by-printer basis, so that any print jobs on that printer will be outputted to a file rather than to your printer.
i'm trying to use the...
does anyone know how to set the context node when processing an xml document with xsl? i.e. how do you move the context node to another node further up/down the document?
i thought i could do it by using <apply-templates select="another node"/>, but i still get stuff outputted from nodes...
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.