Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #5  
Antiguo 01-02-2015
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Poder: 14
aguml Va por buen camino
Por favor, que algun administrador elimine la respuesta anterior ya que el formato no está bien. Aqui lo pongo bien:

Amigos, si hago esto:
Código PHP:
IPictureDisp *pIPD AddFlow1->ExportPicture(afAllItemstruetrue); 
Me da este error al compilar:
Código:
[C++ Error] Main.cpp(731): E2034 Cannot convert 'IPictureDisp * *' to 'IPictureDisp *'
La ayuda del componente no da mucha ayuda ya que casi todo el soporte lo da para VB y en algun que otro caso pone algun ejemplo en C++. Aqui los tres ejemplos que pone para ese metodo en VB:

Example 1 (VB)
Código:
' Export the diagram to a picture box:
' here, we copy only the selected items.
Picture1.Picture = AddFlow1.ExportPicture(afSelectedItems, False, False)
Example 2 (VB)
Código:
' Copy the diagram to the clipboard:
' here we wish to copy all items and the back picture.
Clipboard.Clear
Clipboard.SetData AddFlow1.ExportPicture(afAllItems, False, True)
Example 3 (VB)
Código:
' Save the diagram in a file: 
' here we don›t want to save the grid. 
Dim pic As IpictureDisp
AddFlow1.ShowGrid = False
Set pic = AddFlow1.ExportPicture(afAllItems, True, True)
AddFlow1.ShowGrid = True
SavePicture pic, "myfile.emf"
Traceando puedo ver que ExportPicture se declara asi:
Código PHP:
IPictureDisp** __fastcall TAddFlow::ExportPicture(Addflow5lib_tlb::ItemSetConstants ItemSet,
                                                                      
VARIANT_BOOL IncludeBackColor,
                                                                      
VARIANT_BOOL IncludeBackPic)
{
  return 
GetDefaultInterface()->ExportPicture(ItemSetIncludeBackColorIncludeBackPic)

Si entro con F7 llego aqui:
Código PHP:
IPictureDisp** __fastcall ExportPicture(Addflow5lib_tlb::ItemSetConstants ItemSet,
                                                 
VARIANT_BOOL IncludeBackColor,
                                                     
VARIANT_BOOL IncludeBackPic)
{
    
_TDispID _dispid(/* ExportPicture */ DISPID(134));
    
TAutoArgs<3_args;
    
_args[1] = (int)ItemSet /*[VT_USERDEFINED:0]*/;
    
_args[2] = IncludeBackColor /*[VT_BOOL:0]*/;
    
_args[3] = IncludeBackPic /*[VT_BOOL:0]*/;
    
OleFunction(_dispid_args);
    return (
IPictureDisp** /*[C1]*/)(LPDISPATCH/*[VT_DISPATCH:1]*/_args.GetRetVariant();

He traceado por dentro y no veo que en ningun sitio llame a Release() y ya no se que mas puedo probar.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Portapapeles TImage cmm07 Varios 5 06-02-2009 17:01:06
Copiar al portapapeles johurgi Varios 4 22-11-2006 19:47:48
Monitorizar el portapapeles de windows rsantosr API de Windows 3 26-09-2005 07:29:38
Portapapeles... Perio Varios 3 29-07-2005 16:27:41
StringGrid -> Portapapeles acertij022 OOP 3 17-10-2003 17:14:16


La franja horaria es GMT +2. Ahora son las 16:03:42.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi