Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Milby7
  • Content: Threads
  • Order by date
  1. Milby7

    C++/CLI DllMain Question

    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...
  2. Milby7

    How to Initialize Assembly without DllMain?

    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...
  3. Milby7

    Notepad.exe As Child Window

    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...
  4. Milby7

    DirectShow - Render Video Playback To File.

    Hi! Is it possible to capture a video being played by another application & render it to a file? Thanks!
  5. Milby7

    Reference Types Question

    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...
  6. Milby7

    new TcpServerChannel throws "No such host is known"

    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)...
  7. Milby7

    RunAs vs. Impersonation vs. WNetAddConnection2

    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...
  8. Milby7

    Writing Graphics To Image

    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...
  9. Milby7

    Problems with Web Browser &/or SHDocVw COM Control

    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...
  10. Milby7

    Setting Window (NOT Window Class) Icon...

    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...
  11. Milby7

    MFC & Custom Messages

    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!!
  12. Milby7

    DirectShow Rendering Frames on WM_PAINT

    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...
  13. Milby7

    Problem Loading Icon

    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...
  14. Milby7

    Compiler & Linker Switches Question...

    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...
  15. Milby7

    ESP Register not set properly / Calling Conventions...

    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...
  16. Milby7

    Finding Remoted Objects Dynamically

    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...
  17. Milby7

    LIB.EXE / EDITBIN.EXE etc...

    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...
  18. Milby7

    Events IN Interfaces...

    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!!
  19. Milby7

    Print to PCL...

    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...
  20. Milby7

    Setting the context node

    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...

Part and Inventory Search

Back
Top