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
  1. Home
  2. General Programming
  3. COM
  4. Problem: GetRecordInfoFromGuids

Problem: GetRecordInfoFromGuids

Scheduled Pinned Locked Moved COM
helpcomsysadminjson
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viral_umang hotmail com
    wrote on last edited by
    #1

    Hi all! I'am creating COM Server for structure Student i am having problem in the following code. IRecordInfo *pUdtRecordInfo = NULL; HRESULT hr = ::GetRecordInfoFromGuids( LIBID_STUDENTLib, 1, 0, 0, Student_IID,/*defined as const IID having same value as LIBID_STUDENTLib*/ &pUdtRecordInfo ); if( FAILED( hr ) ) { HRESULT hr2 = Error( _T("Can not create RecordInfo interface for UDTVariable") ); //return( hr2 ); return( hr ); } the problem is that GetRecordInfoFromGuids return Error what could be the source of problem for the failure of this API. thanks in advance. Viral Joshi.

    V 1 Reply Last reply
    0
    • V viral_umang hotmail com

      Hi all! I'am creating COM Server for structure Student i am having problem in the following code. IRecordInfo *pUdtRecordInfo = NULL; HRESULT hr = ::GetRecordInfoFromGuids( LIBID_STUDENTLib, 1, 0, 0, Student_IID,/*defined as const IID having same value as LIBID_STUDENTLib*/ &pUdtRecordInfo ); if( FAILED( hr ) ) { HRESULT hr2 = Error( _T("Can not create RecordInfo interface for UDTVariable") ); //return( hr2 ); return( hr ); } the problem is that GetRecordInfoFromGuids return Error what could be the source of problem for the failure of this API. thanks in advance. Viral Joshi.

      V Offline
      V Offline
      viral_umang hotmail com
      wrote on last edited by
      #2

      done. It was my fault in the API GetRecordInfoFromGuids parameter Student_IID should assign the value of uuid of student structure instread of that i was assigning it the value of uuid of StudentLib. Viral Joshi.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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