www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - CreateImageLabel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CreateImageLabel

 Post Reply Post Reply
Author
Message
AlexFeng View Drop Down
Visitor
Visitor


Joined: September 19 2006
Location: Taiwan
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexFeng Quote  Post ReplyReply Direct Link To This Post Topic: CreateImageLabel
    Posted: March 30 2009 at 10:47am
Hello everyone, I have a program for IObjectManager51Ptr.

My Develop Tool if C++Builder 6.0.


In .h
IObjectManager51Ptr IObjMan;

In .cpp

BSTR str = L"test";
BSTR fn = L"e:\\test.gif";
ITerrainImageLabel5Ptr img;    
IObjMan->CreateImageLabel(122, 22, 0, fn, 0, 0, str1, &img);


Compiling is ok and I can caeate a ImageText, but the ImageText is not show Image.

I see the object properties, the "Image file" Properties is empty.

Oh god ~~ please help me. what can I do? "_"

Alex

Back to Top
txthunder View Drop Down
Visitor
Visitor


Joined: March 09 2009
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote txthunder Quote  Post ReplyReply Direct Link To This Post Posted: April 07 2009 at 3:29am

Hi,Alex

I tried your code in my computer.
You can write it like this:
     img = m_ObjectManagerptr->CreateImageLabel(122, 22, 0, fn, HSC_TERRAIN_RELATIVE, 0,str );
It may work.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.168 seconds.