Search found 11 matches

by lanslotfrog
Thu Nov 17, 2016 3:57 am
Forum: CoolBasic
Topic: Hey,I am a newbie
Replies: 3
Views: 23088

Re: Hey,I am a newbie

hello,long time no see
is there CoolBasic v3?
it's Long awaited. :D
by lanslotfrog
Sat Feb 28, 2015 5:18 am
Forum: Projects
Topic: My first game:Big Shape
Replies: 4
Views: 21012

Re: My first game:Big Shape

hey friend,
why don't you create a method to display menu?
when player hit any key to enter game,then jump onto Game Loop,
when player hit the wall / feed themselves,jump onto Menu Method
my english is not good,i hope you can understand
by lanslotfrog
Sun Sep 14, 2014 10:14 am
Forum: Problems
Topic: hello everybody,i got trouble again
Replies: 6
Views: 4011

Re: hello everybody,i got trouble again

I tried this example Include "sdk/include/cbAPI.cb" Const MID_NEWTEXT = 1 Const MID_NEWIMAGE = 2 Const MID_OPENFILE = 3 Const MID_SAVEFILE = 4 Const MID_EXIT = 5 subID = CreatePopupMenu() AddPopupMenuItem(subID, MID_NEWTEXT, "Uusi tekstitiedosto") AddPopupMenuItem(subID, MID_NEWIMAGE, "Uusi kuvatied...
by lanslotfrog
Sun Sep 14, 2014 8:36 am
Forum: Problems
Topic: hello everybody,i got trouble again
Replies: 6
Views: 4011

Re: hello everybody,i got trouble again

I just wanna know how to use CallDll command....... You usually have to make your own dll for that because CB expects all dll functions to be declared as: (C++ code) extern "C" __declspec( dllexport ) void myfunction(const int *memIn, int memInSize, int *memOut, int memOutSize) { // memIn contains ...
by lanslotfrog
Sat Sep 13, 2014 6:29 pm
Forum: Problems
Topic: hello everybody,i got trouble again
Replies: 6
Views: 4011

Re: hello everybody,i got trouble again

The CoolBasic DLL support is really limited and you cannot call WinAPI DLLs as is. There is a wrapper library called cbFUN that has some this functionality. To use it you need to download the SDK and then extract the files to the CoolBasic directory. List of supported functions: ShowWindow() FlashW...
by lanslotfrog
Sat Sep 13, 2014 5:04 pm
Forum: Problems
Topic: hello everybody,i got trouble again
Replies: 6
Views: 4011

hello everybody,i got trouble again

:oops:
i don't know how to use CallDll command
i wanna use winapi,just like messagebox
i don't know how to write argument
can someone tell me,and write a example?
please.
by lanslotfrog
Mon Apr 28, 2014 5:45 pm
Forum: Problems
Topic: About ASCII to ScanCode
Replies: 2
Views: 1969

Re: About ASCII to ScanCode

Unfortunately there is no built-in method to do this (which is actually pretty weird), if you need customizable keys just store the scan codes directly. If you want to query the keys from the player, you can do something like this: Repeat a = GetKey() For i = 0 To 255 If KeyDown(i) Then scan = i En...
by lanslotfrog
Mon Apr 28, 2014 10:21 am
Forum: Problems
Topic: About ASCII to ScanCode
Replies: 2
Views: 1969

About ASCII to ScanCode

as title,how to convert ascii code to scan code? :cry:
by lanslotfrog
Mon Apr 28, 2014 7:36 am
Forum: Problems
Topic: could you help me?
Replies: 2
Views: 1568

Re: could you help me?

and,the custom type can be nested?
such as:

Code: Select all

  type position
     field x
     field y
  end type
  type rect
     field position
     field width
     field height
  end type
by lanslotfrog
Mon Apr 28, 2014 7:31 am
Forum: Problems
Topic: could you help me?
Replies: 2
Views: 1568

could you help me?

why i can't assign a custom type to global variable? and,why i can't use custom type variable in function block? such as: type RECT field x field y field width field height end type theRect.RECT = new(RECT) function DoSomething() theRect\x = 10 end function as the code above,cannot complie,what shou...
by lanslotfrog
Sun Apr 27, 2014 4:45 pm
Forum: CoolBasic
Topic: Hey,I am a newbie
Replies: 3
Views: 23088

Hey,I am a newbie

i like basic,and i like coolbasic,as it's name,coolbasic is so cool i'm using coolbasic beta10,but it seems like too old i don't found the latest version seems like you are developing a new engine that named coolBasic v3(or cool ves? How are things going over there? can you give me a copy of coolbas...