Search found 18 matches

by patrick88
Wed Mar 23, 2005 11:00 am
Forum: Coding Questions
Topic: DDE - C - sendmessage
Replies: 1
Views: 1118

DDE - C - sendmessage

hi

i would to convert a c code to purebasic
this code make a DDE link between a extern program and autocad


HWND hwnd_Acad;
WORD wm_acad;

char *ac = "\3\3ligne 0.0,0.0 3.4,4.5 6.6,7.7 \n";

wm_acad = registerwindowmessage("WM_ACAD");
hwnd_Acad = FindWindow("AUTOCAD.gfx",NULL);

If (hwnd_Acad ...
by patrick88
Mon Nov 15, 2004 6:54 pm
Forum: Coding Questions
Topic: problem with releasemouse + openwindowscreen
Replies: 1
Views: 869

another solution, with use of createimage... ending of problem with releasemouse()

modif of :

;
; ------------------------------------------------------------
;
; PureBasic - Image example file
;
; (c) 2001 - Fantaisie Software ...
by patrick88
Sat Nov 13, 2004 3:02 pm
Forum: Coding Questions
Topic: problem with releasemouse + openwindowscreen
Replies: 1
Views: 869

problem with releasemouse + openwindowscreen

hi,

This application opens a window with a graphic screen inside. I thus have a graphic cursor which is trotted with the mouse.

but the mouse hesitates much to return in the graphic screen.
would you have an idea to arrange that?
or a better solution...

thanks

patrick88


;- déclaration ...
by patrick88
Sat Nov 13, 2004 2:46 pm
Forum: Coding Questions
Topic: interpreter
Replies: 3
Views: 1910

this example code is getting from example code of smallbasic
it is writing with the langage smallbasic...

another basic is ddsbasic finding on web or in linux distrib ... it's writing in c an is it small (5kb) easy to traduc in pb

excuse my bad english, i'm french 8)

patrick

' TinyBASIC, by ...
by patrick88
Mon Feb 02, 2004 6:48 pm
Forum: Coding Questions
Topic: sdl constante and structure files
Replies: 2
Views: 1235

ahhhh, that's work :D

( file sdl.res is in the new linux version 3.81 of pb )

thanks for help.

patrick
by patrick88
Fri Jan 30, 2004 7:52 pm
Forum: Coding Questions
Topic: sdl constante and structure files
Replies: 2
Views: 1235

sdl constante and structure files

where can I find these file for pb ?

- a definition constante file for sdl
- a definition structure file for sdl
- all other needed stuff...

thanks

Patrick
by patrick88
Sun Jan 18, 2004 12:18 pm
Forum: Coding Questions
Topic: sound on exit stringGadget
Replies: 2
Views: 1218

hmmm...

i'm just modify the StringGadget and remove chr(13)+chr(10) on my return string... that's work ok , thanks...


If GetFocus_() = GadgetID(#EDIT)
buffer = GetGadgetText(#EDIT)
buffer = RemoveString(buffer,Chr(13)+Chr(10))

SetGadgetText(#EDIT,"")
;InterpreteBuffer()
ActivateGadget ...
by patrick88
Sat Jan 17, 2004 8:14 pm
Forum: Coding Questions
Topic: sound on exit stringGadget
Replies: 2
Views: 1218

sound on exit stringGadget

* run code
* clic in stringgadget
* enter text and press enter key
a sound this fact of hearing

my question is :

how to not hearing this sound ?


Enumeration
#WIN_MAIN

#LISTE
#EDIT
EndEnumeration

#VERSION = "DDS BASIC WIN 4.1"

If OpenWindow(#WIN_MAIN, 1, 1, 600, 300, #PB_Window ...
by patrick88
Sat Jan 03, 2004 2:55 pm
Forum: Coding Questions
Topic: PB and windows 95?
Replies: 9
Views: 2401

that's work, with sometimes of the odd errors which do not arrive under win2k... but my config for work under win95, is Cyrix 586-100 and 8mb of ram....
by patrick88
Fri Jan 02, 2004 5:57 pm
Forum: Coding Questions
Topic: convert pascal code to purebasic
Replies: 6
Views: 2200

by patrick88
Fri Jan 02, 2004 5:07 pm
Forum: Coding Questions
Topic: convert pascal code to purebasic
Replies: 6
Views: 2200

thanks for your answer,
GedB wrote: If you really need to use Pascal's typing then why not try FreePascal.
it's not my goal, i bought turbo pascal and delphi 2, a long time ago...
if I does that, it is that I desire to know how it goes an compiler/interpreter....
by patrick88
Fri Jan 02, 2004 12:31 pm
Forum: Coding Questions
Topic: convert pascal code to purebasic
Replies: 6
Views: 2200

convert pascal code to purebasic

how to convert this pascal code to purebasic ???

type opcode = (add, neg, mul, divd, remd, div2, rem2, eqli, neqi, lssi,
leqi, gtri, geqi, dupl, swap, andb, orb,
load, stor, hhalt, wri, wrc, wrl, rdi, rdc, rdl, eol,
ldc, ldla, ldl, ldg, stl, stg, move, copy, addc, mulc,
jump, jumpz, call ...
by patrick88
Sat May 17, 2003 7:36 pm
Forum: Coding Questions
Topic: Paint
Replies: 4
Views: 1594

the exact line is :

Code: Select all

ResizeGadget(#INFO,10,WindowHeight()-20,WindowWidth(),18)
:wink:
by patrick88
Sat May 17, 2003 10:34 am
Forum: Coding Questions
Topic: Paint
Replies: 4
Views: 1594

just the beginning... :oops:

patrick

#INFO = 1001
#BUT_LINE = 1100
#BUT_CIRCLE = 1101
#ENT_LINE = 20
#ENT_CIRCLE = 30
#DEFINITIF = 0
#ESQUISSE = 1

Structure stru_line
x1.w
y1.w
x2.w
y2.w
EndStructure

Structure stru_circle
x1.w
y1.w
r1.w
r2.w
EndStructure

; a revoir - ok pour les tests ...
by patrick88
Sun May 04, 2003 8:05 pm
Forum: General Discussion
Topic: PureTools 0.16b problem
Replies: 4
Views: 2237

arg ! i'm find problem ! i don't read the readme files !
i have the file "HighResTimer" in my UserLibraries directory...

:oops: