Search found 16 matches

by RValois
Fri Jun 18, 2004 6:50 pm
Forum: Tricks 'n' Tips
Topic: Show Jpeg,Gif,Png or BMP Images
Replies: 0
Views: 1555

Show Jpeg,Gif,Png or BMP Images

Code updated for 5.20+

Structure LVBKIMAGE Align #PB_Structure_AlignC
ulFlags.l
hbm.i
pszImage.i
cchImageMax.l
xOffsetPercent.l
yOffsetPercent.l
EndStructure

CoInitialize_(0)

If OpenWindow(0, 100, 100, 640, 480, "Show GIF,JPEG,PNG or BMP Images", #PB_Window_MinimizeGadget | #PB_Window ...
by RValois
Mon Apr 19, 2004 9:57 am
Forum: Coding Questions
Topic: MSVCRT lib in PureLibraries\Windows
Replies: 3
Views: 1519


Btw, why not just using the winapi functions ? (SetFilePointer, CreateFile, ReadFile ...) or the pb internal files functions

Because there is no such thing as one to one relation between crt and winapi nor crt and pb functions. :roll:
fopen was just an example.

Any way, thanks for the info ...
by RValois
Fri Apr 16, 2004 12:29 am
Forum: Coding Questions
Topic: MSVCRT lib in PureLibraries\Windows
Replies: 3
Views: 1519

Lets try again. :)
RValois.
by RValois
Tue Apr 13, 2004 10:43 am
Forum: Coding Questions
Topic: MSVCRT lib in PureLibraries\Windows
Replies: 3
Views: 1519

MSVCRT lib in PureLibraries\Windows

Hi,
What I should do to be able to use the msvcrt lib available on PureLibraries\Windows ?
I tryed some function with and without undescore but the compiler always complain: "fopen_() is not a function, an array or a linked list".

Thank you,
RValois.
by RValois
Tue Feb 24, 2004 4:20 pm
Forum: Announcement
Topic: Code PBLibs in PB
Replies: 213
Views: 54774

Hi El_Choni,
Thanks for the fix, the recursive procedure is now generated correctly.

Put "src.pack" in the TailBite folder and click on the "Extract TailBite sources" button

I already tried that, for some reason only the src dir is created but no sources. I'm using WinMe.

Thanks again,
RValois.
by RValois
Mon Feb 23, 2004 4:13 pm
Forum: Announcement
Topic: Code PBLibs in PB
Replies: 213
Views: 54774

Hi El_Choni,
Thank you for the TailBite.
I found a problem trying to generate a lib with a recursive procedure.

Procedure Teste1(i.l)

If i>=100
ProcedureReturn
EndIf

Teste1(i+1)

EndProcedure

ProcedureDLL Teste()

Teste1(0)

EndProcedure


The error msg:


FAsm: Shared\Teste1.asm
flat ...
by RValois
Tue Nov 11, 2003 3:51 pm
Forum: Feature Requests and Wishlists
Topic: SetEOF() ?
Replies: 6
Views: 1872

Based on your information, UseFile() returns the Windows file handle.
What about OpenFile/OpenPack ? Could you confirm/deny if these functions also do return the Windows file handle?

Thank you,
RValois.
by RValois
Tue Nov 11, 2003 2:57 pm
Forum: Feature Requests and Wishlists
Topic: SetEOF() ?
Replies: 6
Views: 1872

Thanks for answering but that is not what I am looking for.
SetEOF function is used to truncate/extend the file size.
http://msdn.microsoft.com/library/defau ... offile.asp

Regards,
RValois.
by RValois
Mon Nov 10, 2003 11:33 pm
Forum: Feature Requests and Wishlists
Topic: SetEOF() ?
Replies: 6
Views: 1872

SetEOF() ?

It seems that this function is missing.
BTW Is the return value from OpenFile/OpenPack the File handle on Windows OS ?

Thank you,
RValois.
by RValois
Wed Nov 05, 2003 4:46 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] SkipPackFile ?
Replies: 2
Views: 1153

Thank you!

RValois.
by RValois
Wed Nov 05, 2003 3:51 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] SkipPackFile ?
Replies: 2
Views: 1153

[Implemented] SkipPackFile ?

I started to work with PB and am very impressed with the library, Thanks!
I have a suggestion:
What about adding SkipPackFile to PACKER lib?

Regards,
RValois.
by RValois
Tue Aug 19, 2003 5:38 am
Forum: General Discussion
Topic: Thread limit?
Replies: 1
Views: 1085

I searched for this information few days ago. This is what I found on plataform SDK CreateThread description:

The number of threads a process can create is limited by the available virtual memory. By default, every thread has one megabyte of stack space. Therefore, you can create at most 2028 ...
by RValois
Tue Aug 19, 2003 5:07 am
Forum: Coding Questions
Topic: Hello and an invitation.
Replies: 7
Views: 2346

Thank you midebor.
Our main business is roads. We developed equipament and programs for roads surveys, economic analysis, maintenance, construction etc.

Regards,
RValois.
by RValois
Mon Aug 18, 2003 6:34 pm
Forum: Coding Questions
Topic: Hello and an invitation.
Replies: 7
Views: 2346

Thanks Kale :)
RValois.
by RValois
Sun Aug 17, 2003 7:23 pm
Forum: Coding Questions
Topic: Hello and an invitation.
Replies: 7
Views: 2346

Olá Num3,

Thank you.
Btw: Maybe you can share some code on how to use Zlib (i've seen it in your site, and someone has already posted a question about Zips in the forums)
Certainly I will, let me do a couple of "Hello Word"s with PureBasic first. :)

Regards,
RValois.