Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

NotProfessional

@NotProfessional
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using customized control in doc/view
    N NotProfessional

    It is excited to see so many powerful windows control here. However, I am really quite new to MFC, so I am quite confused when entering the area of Doc/View structure. Say, how can I use the enhanced control in doc/view program, e.x How can I use the extended Tree control as base class for the TreeView instead using the one along with the MFC framework. Thanks in advance.

    C / C++ / MFC c++ data-structures question

  • Handling events with COM object as param
    N NotProfessional

    Thanks so much, Abhishek! I got it done, the trick is I need to declare the LPDISPATCH and convert to my desired COM refrence type explicitly. However, I declare the handler function the same as what is described in .tlh! I want to correct is that you don t have to get the COM header, what you need is simply import the dll and use the smart pointer.

    COM com help tutorial

  • Handling events with COM object as param
    N NotProfessional

    The key is I do not have the source code for the COM nor the header though. So I cannot include the header. Thanks for your suggestions anyway.:wtf:

    COM com help tutorial

  • Handling events with COM object as param
    N NotProfessional

    Hi, I am well done by responding COM events with simple data types( say VTS_I4). However, on topic that is not covered anywhere (and I spent days looking) is when the event has a COM object as a parameter. Say for instance in your sample that the addition is not on 2 integers but on 2 matrixes. The OnAdditionDone event would therefore pass a IMatrix * obj (VT_DISPATCH) pointer instead of an integer (VT_I4). How would you implement the event handler on the client side, and how would you actually start using the IMatrix pointer to access its members (tried everything I could think of, wither it doesn't compile or compiles but crashes, always get the 'first chance exception (OLEAUT32.DLL): 0xC0000005: Access Violation.). In other words, how to complete this: void CCoCaller::OnAdditionDone(IMatrix *result) { // How to implement this so that it works: BSTR str; result->get_Name(str); } MSDN gives 2 samples on how to implement IDispEventSimpleImpl and IDispEventImpl using Word and Excel veents, none of them show events that pass COM objects as parameters. Any help would be very useful. Thanks a lot :zzz::zzz::zzz:

    COM com help tutorial

  • COM event cannot emit through Wrapper Class
    N NotProfessional

    I like the way to use COM wrapper class which the ClassWizard produce for me, but I cannot figure out how to implement the connection point through it. The COM events are all been commented out saying // method 'ExecutionOver' not emitted because of invalid return type or parameter type ,... kind of boring, anyone has some idea? thanks in advance

    COM com tutorial question

  • Query data in unknown binary file
    N NotProfessional

    yeah, that's just what I want to express, by the way, brute entire search? isthere any better solution

    C / C++ / MFC database question

  • Query data in unknown binary file
    N NotProfessional

    My application wants to make a query of if there is a 'name' in the data file which is owned by another system and also a binary file(DSS format, any idea of what it is?) The query string is a ascii string, so my idea is change it to ascii value and reads the binary data file in and looks for the value. Is it make sense, or could you guys give me a new idea? Thanks in advance. :confused::confused::confused::confused::confused:

    C / C++ / MFC database question

  • help wanted, pdf file split operation
    N NotProfessional

    My project needs to split a 20 page pdf file to 20 single page pdf files, I don't have any clue in doing it, could anyone help me in accomplish it, thanks in advance.:((

    C / C++ / MFC help

  • how to know a file is accessed by another process
    N NotProfessional

    My program is watching for a directory on any incoming file and then move it to other places. Another application produce the data file to that directory. The problem is: my program always get the error message: access violation So, how can I know from program point of view that the file is accessed by another process? Is there any related API? Thanks in advance.

    C# help question json tutorial

  • Converting a 20-page pdf to 20 single page pdf?
    N NotProfessional

    Is it possible and how to realize it?

    C# tutorial question

  • Can C# project complied to win32 dll?
    N NotProfessional

    Got a project on hand, but they need to implement to the Win32 DLL in order for the call from the framework. Is it possible or means that I have to switch to VC++. Nightmire if have to do that.

    C# csharp c++ question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups