Search found 19 matches

by unhappy
Fri Jan 20, 2012 11:54 am
Forum: Coding Questions
Topic: convert some code from Delphi
Replies: 2
Views: 925

Re: convert some code from Delphi

I have no way of testing it but does something like this work ?
thank you!
but this code doesnt work too :(

i want write plugin for this program: http://uopilot.ultimasoft.ru/ (version 2.27.1 support it)

plugins must be located in Plugins\ folder. then its loading be shown in menu: ? -> Log ...
by unhappy
Fri Jan 20, 2012 10:55 am
Forum: Coding Questions
Topic: convert some code from Delphi
Replies: 2
Views: 925

convert some code from Delphi

Hi, All!

i need to write small plugin for old delphi program.
in the docs i found an example:

library Plugin;

uses windows;

type
tInitStruct = packed record
FunctionCount : Cardinal;
FunctionNames : Array of Pchar;
End;

var
InitStruct : tInitStruct; // init by plugin, free on unload ...
by unhappy
Thu Nov 29, 2007 6:51 am
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 681359

gnozal wrote:And like this : '\Purebasic\' (assuming your purebasic directory is in %FlashDrive%\Purebasic\)
great!
thank you very much!
by unhappy
Wed Nov 28, 2007 4:30 pm
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 681359

2 gnozal :
hi.
i save PB on my flash drive, and try to learn it sometime when have some free time.
in preferences i set "Purebasic path" not absolute, but relative (e.g. "..\purebasic\").
and so i have that "Compile/Debug (F6)" doesnt work. :-\
now i manually change this field before run japbe.exe ...
by unhappy
Tue Aug 28, 2007 11:31 am
Forum: Announcement
Topic: Purebasic .hgl file for SynPlus 2.0 final
Replies: 3
Views: 1831

o no.
i edit your old file (remove some strings) and its work fine.
with new file DevProject dont work too.
thanks. )
by unhappy
Tue Aug 28, 2007 9:21 am
Forum: Coding Questions
Topic: need: change "Screen buffer size" for console
Replies: 2
Views: 926

correct:

Code: Select all

If OpenConsole()    
  stdout.l=GetStdHandle_(#STD_OUTPUT_HANDLE)  
  mySize.l = (51 << 16) + 51
  SetConsoleScreenBufferSize_(stdout, mySize) 
  Debug(Str(GetLastError_()) ) 
  Input() 
EndIf
(from http://forum.oszone.net/thread-75006.html)
by unhappy
Tue Aug 28, 2007 9:15 am
Forum: Announcement
Topic: Purebasic .hgl file for SynPlus 2.0 final
Replies: 3
Views: 1831

sorry.
do you have a new version of purebasic.hgl?
i try to use this with DevProject tool, but i get an error
Image
by unhappy
Tue Aug 28, 2007 9:08 am
Forum: Coding Questions
Topic: Get handle of console buffer?
Replies: 4
Views: 1228

PB wrote:WTF? I can't read any of that. Please repost in English.
Sorry. I was wrong. I will try to improve myself. :oops:
by unhappy
Tue Aug 28, 2007 6:54 am
Forum: Coding Questions
Topic: Get handle of console buffer?
Replies: 4
Views: 1228

ýòî ñêîðåå âñåãî âîïðîñ íå ïî PB, à â öåëîì ïî WinAPI. MSDN â ýòîì ïëàíå áåñöåíåí .)
íàâåðíîå ÿ íåñêîëüêî ïàðàíîèê è ïîýòîìó ìíå êàæåòñÿ, ÷ò îïîëüçîâàòåëåé ó êîòîðûõ â ïðîôèëå ñòîèò "ðîññèÿ" èíîãäà íåäîëþáëèâàþò. ìîæåò è íå çà ÷òî. íî òåì íå ìåíåå )
ìîãó ïîñîâåòîâàòüñõoäèòü ía ôoðyì caéòa pbasic.spb ...
by unhappy
Tue Nov 14, 2006 6:21 am
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 668
Views: 677984

My second favorite tools is a FAR Manager.
But its truly free only for the xUSSR residents like me. :roll:
by unhappy
Mon Nov 13, 2006 2:36 pm
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 668
Views: 677984

WindowsPowerPro ( http://www.ppro.org ) - its a really hard soft for all Windows power users : D

it is a powerfull tiny thing, that can make your life more easy : )
various commands to work with desktop, files, system preferences, creating floating or fixed toolbars, setting timers, shedules ...
by unhappy
Fri Nov 10, 2006 3:11 pm
Forum: Coding Questions
Topic: text?
Replies: 83
Views: 13120

Re: Result$ = GetPathPart(OpenFileRequester("Select Fil

Result$ = GetPathPart(OpenFileRequester("Select File", "", "Text Files|*.txt", 0))
This persons seek... I want Computer itself seek.
what you think about this: http://www.purebasic.fr/english/viewtopic.php?p=170025#170025 ?
i think you may parse file received by this way.
by unhappy
Fri Nov 10, 2006 3:09 pm
Forum: Coding Questions
Topic: text?
Replies: 83
Views: 13120

lexvictory wrote:with firefox, when u type in Cyrillic, it converts it to special html codes.....
i dont like firefox. its so complex for me. i like Maxthon - its very handy.
i rewrote my previous message in english (sorry for its roughness).
by unhappy
Fri Nov 10, 2006 3:00 pm
Forum: Coding Questions
Topic: text?
Replies: 83
Views: 13120

lexvictory wrote:(if people have trouble reading unhappy's post, change the page encoding to Cyrillic (windows))

EDIT: or unicode (utf-8 )..... it changed after the edit for some reason.....

i bet u use internet explorer dont u unhappy?
yes. i use IE.
what codepage you recommend for me?
by unhappy
Fri Nov 10, 2006 2:21 pm
Forum: Coding Questions
Topic: text?
Replies: 83
Views: 13120

spioner
Well.
Task : get short file names (MS-DOS) from long names (windows);
Right?
But : are u sure what for compleating this task you need PureBasic? May be you do it with cmd.exe or WSH?
And also i dont understand - what target of this operation?

may be you press WIN+R, type CMD.EXE and ...