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 strongm 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: *

  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

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

    Reference Types Question

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

    RunAs vs. Impersonation vs. WNetAddConnection2

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

    new TcpServerChannel throws "No such host is known"

    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...
  10. 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)...
  11. 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...
  12. 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...
  13. Milby7

    Problems with Web Browser &/or SHDocVw COM Control

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

    Setting Window (NOT Window Class) Icon...

    Thanks!! I'll give it a go!!
  16. 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...
  17. Milby7

    MFC & Custom Messages

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

    Problem Loading Icon

    Sorry about the above, this code's a bit easier to read. :o) hFileIcon = (HICON) LoadImage(NULL, _T("c:\\test.ico"), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE); hOldIcon = (HICON) SetClassLong(hWnd, GCL_HICON, (LONG) hFileIcon); // (SetClassLong returns 0 & GetLastError returns 6...

Part and Inventory Search

Back
Top