Search found 27 matches: crestostr

Return to advanced search

Re: JPGs en recursos

... en los dialogos que lo necesito pongo esto: Redefine Image oImg1 ID 81 OF oDlgMain adjust on click fNavegar(_JpgWebPublicidad) if Len( cJpg1 := cResToStr( "JPG_1", RT_RCDATA ) ) != 0 oImg1:LoadFromMemory( cJpg1 ) else msginfo('Error, no se pudo cargar la imagen '+cJpg1) endif funciona ...
by JoseAlvarez
Tue Jun 02, 2015 2:41 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: JPGs en recursos
Replies: 8
Views: 2486

FILoadFromMemory( cResToStr( cResName1, 10 ), 10 )

Usando FWH64 la función FILoadFromMemory( cResToStr( cResName1, 10 ), 10 ) no devuelve ningun valor, aunque el bitmap exista en el recurso.

Estoy usando la clase TBtmBmp() desde Recursos.

Saludos
by Vikthor.Thomas
Thu May 22, 2014 6:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FILoadFromMemory( cResToStr( cResName1, 10 ), 10 )
Replies: 1
Views: 277

New FTDN October/Octubre 2011 (FWH 11.10)

... returns .f.. Fixed now. Thanks to Mr. Esar E.Lozada. * Enhancement: Class TClipboard now properly retrieves Unicode text. * Enhancement: function cResToStr( cnResName, nType ) --> cResourceBytes now uses a number as the second parameter to specify the type of the resource. For a list of the ...
by Antonio Linares
Wed Nov 02, 2011 1:24 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octubre 2011 (FWH 11.10)
Replies: 3
Views: 4660

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Hi Antonio Here is the stripped down list, for clarity purpose the irrelevant entries are removed. ---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------...
by Pritpal Bedi
Mon Jun 07, 2010 11:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Pritpal, HBIDE developer, assists us to use it with FWH
Replies: 293
Views: 110116

Re: cRestoStr ( don´t work )

Lailton, Change it this way:   if( hRes )   {      hglb = LoadResource( ( HINSTANCE ) GetResources(), hRes );      if( hglb ) // && ! ( GlobalFlags( hglb ) && GMEM_DISCARDED ) )    &nb...
by Antonio Linares
Fri Apr 02, 2010 11:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cRestoStr ( don´t work )
Replies: 4
Views: 882

Re: cRestoStr ( don´t work )

i tryed more no work.
by lailton.webmaster
Fri Apr 02, 2010 9:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cRestoStr ( don´t work )
Replies: 4
Views: 882

Re: cRestoStr ( don´t work )

Lailton, FWH's cResToStr() source code is very simple so I suggest you to trace it :-) HB_FUNC( CRESTOSTR )   // ( cnResName, cType ) --> cResourceBytes{   #ifndef UNICODE      HRSRC ...
by Antonio Linares
Fri Apr 02, 2010 10:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cRestoStr ( don´t work )
Replies: 4
Views: 882

Re: cRestoStr ( don´t work )

up :roll:
by lailton.webmaster
Fri Apr 02, 2010 2:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cRestoStr ( don´t work )
Replies: 4
Views: 882

cRestoStr ( don´t work )

#include "Fivewin.ch"
#define RT_HTML MAKEINTRESOURCE(23)
function main()
msginfo( cResToStr("PAGE", RT_HTML ) )
return
by lailton.webmaster
Thu Apr 01, 2010 5:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cRestoStr ( don´t work )
Replies: 4
Views: 882

Re: Se necesita ayuda en el wiki !

... CreateHatchBrush() CreateMenu() CreateOLEObject() CreatePatternBrush() CreatePen() CreatePopUpMenu() CreateSolidBrush() CreateWindow() cResToStr() cStrWord() cTempFile() Ctl3dlook() CtrlDrawFocus() CurDrive() Cursor() CursorArrow() CursorCatch() CursorHand() CursorIbeam() CursorNS() ...
by Cgallegoa
Sat Feb 20, 2010 8:13 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5863

Drawing Alphablend From Stream !!!

... to draw a bitmap with alphablend directly from a stream. Sample code, 7777 is my alphabitmap resource. This code can be optimized by calling cResToStr() directly from StreamAlphaBlend():   local hDC := oDlg:GetDC()   StreamAlphaBlend( hDC, 7777, 0, 0, 255, cResToStr( 7777, ...
by toninhofwi
Fri Apr 24, 2009 5:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing Alphablend From Stream !!!
Replies: 3
Views: 679

Re: cResToStr working function

very good :-)
by Antonio Linares
Sat Apr 18, 2009 11:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cResToStr working function
Replies: 8
Views: 1214

Re: cResToStr help needed

Hi Antonio, This is the right code: HB_FUNC( CRESTOSTR ){   HMODULE hMod = GetResources();   HRSRC hRes = FindResource( hMod, MAKEINTRESOURCE( hb_parni( 1 ) ), "PNG" );  // need change to get ...
by toninhofwi
Sat Apr 18, 2009 4:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cResToStr working function
Replies: 8
Views: 1214

Re: cResToStr help needed

Toninho,

Please try this:

In your RC file:
test PNG "file.png"

then from your PRG:
MsgInfo( Len( cResToStr( "test", "PNG" ) ) )
by Antonio Linares
Fri Apr 17, 2009 10:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cResToStr working function
Replies: 8
Views: 1214
Next

Return to advanced search