Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve images from EXE
Message
De
30/08/2007 15:05:52
 
 
À
29/08/2007 17:11:32
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01250756
Message ID:
01251475
Vues:
35
It seems that Herman Tan is also facing the same problems to post messages on UT that I have. I've just received this message from him, regarding the subjects from this thread.

Herman, thanks very much for all the suggestions, I hope to deal carefully with them later, and will let you know how it goes.

Regards

Cesar


ON BEHALF OF HERMAN TAN

Hi Cesar,

First, I'm sorry that I'm in real hurry last night :(

I don't know what's wrong with UT, but it seems I'm having a real bad
connection to UT and I cannot reply to you since this afternoon. I cannot
see the other thread too, it's verryyyy slowww!! So, I just send you this
mail. My apoligies to you.

I think you can use the palette handle from m.loImg.hPal rather than use 0.

Also, have you try GdipCreateBitmapFromResource()? I guess you cannot embed
the resource file in VFP EXE though. I planned to make an empty LIB/DLL file
for Resource only. So i can put all image into it. I can load the resource
using normal API (FindResource(), LoadResource, etc.). However I can't use
GdipCreateBitmapFromResource() (using Integer Resources as parameter, not by
name). Always failed with return status = 2.
I'll play more with it tonight.

About Global, Local & Heap memory. They were different in Win16 (Windows 95
and earlier). In Win32 (98 and later), they are now actually the same. So,
you can use Global & Local interchangably. I mean you can allocate using
Global, then lock using Local, can you believe that ?! Global & Local also
allocated in the process heap. Now, Heap memory function is faster IF you
use HEAP_NO_SERIALIZE, because heap memory are serialized by default. Heap
is also faster because they are unmovable by default. Global/Local will also
fast if you allocate using LPTR (unmovable).
To be more clearer on memory issue, please read "Managing Heap Memory in
Win32" in MSDN

Having said that, I don't think you will notice the performance on small
amount or one time access. If you access many object in memory and read that
memory object many times (over and over) then you will notice the perfomance
slightly.

BTW, thanks for your feedback for my class. I really appreciate it!
Currently I'm working to mix GDI & GDI+ API to support more image format for
my class

I also read several GDI+ articles from your blogs too. Thank you, they are
great articles. Keep on the good work!

Best regards,
Herman Tan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform