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
M

Mil10

@Mil10
About
Posts
12
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can i set the height of the item in CListViewCtrl and add a image for every item?
    M Mil10

    If ur ok 2 handle Ownerdraw then just override MeasurItem and set the item hight as u like by using the struct parameter in MesureItem.

    ATL / WTL / STL tutorial question

  • How to write text to desktop
    M Mil10

    An alternative is use GetDc(GetDsktopWindow())->DrawText("skjjkajsa",x,y,whatever the params....)

    C / C++ / MFC tutorial

  • Detecting workstation access
    M Mil10

    Hi What about c:\>NET Session at the command prompt. best wishes ...mil10

    C / C++ / MFC question com sysadmin

  • Display name of components
    M Mil10

    Hi, What Victor mentioned is correct. Modifying the helpstring in IDL/ODL, will reflect in the tlb listing dlg. If you are not getting it, might be somthiing else is wrong. best wishes..mil10

    COM help tutorial announcement

  • HOW TO IMPORT A TAB DELIMITED TEXT FILE INTO AN ACCESS DATABSE PROGRAMMATICALLY?
    M Mil10

    Hi, BUlk insertion is not possible in MS Access, but u can do it in Sql Server, just chk out the documentation of BULK INSERT in MSDN, and use _ConnectionPtr to connect to datasource using ADO. best wishes..mil10

    COM database com algorithms help tutorial

  • trap a-z keys!!!
    M Mil10

    Not clear from where u want to trap the keys. if it is from ur app dialog just use ON_WM_KEYDOWN - OnKeyDown msg handler. Otherwise, if u want system wide key trap , see documentaion of the API SetWindowsHookEx. Best wishes..mil10

    C / C++ / MFC help

  • default properties on COM interfaces
    M Mil10

    Seems very strange..if u mind to send me the source code I am ok to debug. otherwise try unregister/reregister or more safely try on another mechine. Because I had faced almost simialr prblm early. Initialy the DISP_ID was 1. After registration with 1, I changed it to 0 to set it as default. Again registred the component but, showed err in my mechine but worked fine in another mechine( with fresh registry entries). best wishes..mil10

    COM com help tutorial question

  • default properties on COM interfaces
    M Mil10

    Try to debug into CField::put_Value from vb exe and see what is happening inside CField::put_Value . Since u r not a vb prgmr , i donno whether u familier with debugging into an atl dll from vb. anyway FYI - Just create the vb app with the code msg.Segment.Field = "blahh" into an EXE. Then change ATL project build setting to Win32Debug Goto "Project->Settings->Debug->Executable for debug session:" and browse the VB exe path into the text field. Put break point in CField::put_Value , then run the ATL project by F5. best wishes..mil10

    COM com help tutorial question

  • Property sheet in MDI project
    M Mil10

    hi Just declare a member variable of your propertysheet class in the view class, override OnInitialUpdate, create the member propertysheet as a child. void CMdiView::OnInitialUpdate() { CView::OnInitialUpdate(); CMySheet *m_pMySheet = new CMySheet("foooo"); m_pMySheet->Create(this,WS_CHILD|WS_VISIBLE,0); } best wishes..mil10

    C / C++ / MFC tutorial question

  • Shockwave Flash in dialog
    M Mil10

    Hi Give the full path of swf file ( m_FlashCtrl.put_Movie(_T("c:\sample.swf")); ) and try. Best wishes..mil10

    C / C++ / MFC c++ com adobe tutorial question

  • default properties on COM interfaces
    M Mil10

    Hi Dave, Dim fld As Test.Field fld = msg.Segment.Field fld = "blah" This always works I couldn't understand how the code above works without error. Because 'fld' is just a variable of type IField, not an instance of IField. So the statement 'fld = msg.Segment.Field' shouldn't work. Even if u r calling CComObject<CField>* pFld; hRes = CComObject<CField>::CreateInstance(&pFld); in Segment, that line should be **set** fld = msg.Segment.Field. Then fld = "blah" is ok. Because now field is refering to an active instance of IField in 'msg.Segment' Sameway if msg.Segment.Field = "blahh" gives a type mismatch error, then msg.Segment.Field might not be an active instance, make sure u had called hRes = CComObject<CField>::CreateInstance(&pFld); does this make sense...? best wishes ... mil10.

    COM com help tutorial question

  • COM/ASP
    M Mil10

    Hi, Yes u r right. IScriptingContext interface - as per MSDN, it's an obsolete interface. But , still u can use it. Because it is working even in IIS6.0 U can also use IObjectContext if your component need com+ transaction support. Otherwise IScriptingContext is enough. (But use at ur risk ;). Because future versions of IIS may stop supporting IScriptingContext). U can use microsoft provided wrapper class Context.cpp and Context.h to get the ASP objects from IObjectContext. best wishes...take care ..bi..mil10

    COM com tools 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