IDispatch is not working inside a Type
Type tList
pList As IDispatch '\\ It works if i put this outside the type block.
Function _Create()
Me.pList =...
Type: Posts; User: kcvinu
IDispatch is not working inside a Type
Type tList
pList As IDispatch '\\ It works if i put this outside the type block.
Function _Create()
Me.pList =...
@Eros
I suspect CodePtr is the problem.
Documentation says this.
There are some IMPORTANT limitations:
1. script function can have from zero to 4 BYVAL LONG or DWORD parameters
2. script...
Hi all,
I am trying to subclass a button, But SetWindowSubclass is not working. The window starts and suddenly thinBasic.exe is stop working.
Here is my function declarartions.
Declare...
@ReneMiner,
Thanks for the example code. It's really helpful since the code is well commented. Let me study it. :)
@ErosOlmi,
Thanks for the detaild reply. It seems that pointers in thinbasic is pretty easy and straight forward. Before you posting the reply, I've managed to find a way with "At" keyword. Petr...
Hi all,
I store my UDT variable to a pointer with Varptr function. I then retrieve it with GetWindowLong function. So far so good. I got the same number here. But how do i convert this pointer (or...
@Eros Olmi
Hi,
How do i use the Window type in Wndproc function ? This is how i store my current Window type. This is working perfectly. No error.
Dim PtrMe As Long = VarPtr(Me...
@ErosOlmi,
Thanks for your help. I am glad that you are following this thread and improving thinBasic. I tried your suggestions and this the scenario which worked for me.
In the function...
@ReneMiner,
Thanks for the detailed reply.
I don't know life is full of obstacles in thinBasic. Here is my declaration of my CreateWindowEx.
Declare Function CreateWindowEx Lib "User32.dll"...
@ReneMiner
Suddenly it worked !!!.
After losing hope, I've decided to do some experiments with data types. So I started changing lpWindowName parameter. But my problem area was lpClassName's type....
@ReneMiner
Thanks for the reply. But there is some include files are missing.
1. "APPUTILS.INC"
2. "APPPROPS.INC"
If i get these files, i can try. This is the path of that script....
Hi all,
I am trying to create a window with win32 functions. But CreateWindowEx is returning 0 . This is my code. Please check this and guide me.
Uses "Console"
Type tWNDCLASSEX
cbSize...
@ReneMiner,
Thanks. MSDN changes links frequently. MSDN links are often found in many different forums like C Board. Clicking on them will get you nowhere.
Currently, I am struck with "IDC_ARROW...
@Petr,
Thanks for the reply. I am planning to create my own gui library in thinBasic.
All i need is a complete list of data types for each win api data type. So far, i 've learned that i can use...
Hi all,
I am practicing some ui scripts. I can easily display unicode strings with MsgBoxW function. But I am not able to display unicode text in a Button created by this code.
Control Add...
Hi, Thanks for the good words. Let me check the link. May i can learn a lot from that project. Thanks for the link :)
@Petr,
You're welcome.
@John Spikowski,
Is it ? I never tried it. In fact, i am making one with win api nim. There is guy named ward(forum name) made a huge library of win api wrapper. It's...
Since, Nim compiles to C, we can make sure that our program will work as fast as C. Author of Nim says that Nim can create better C code than any human made C code. Some guys in Nim forum are...
Hi all,
I would like to share some interesting stuff about the Nim programming language.
Nim compiles code to first C/C++/Obj-C/JS code and then use a C/C++/Obj-C/JS compiler to make executable. ...
@Petr
Sure. :)
Hi all,
What's your opinion about Nim ? Its also a system programming language. Python like syntax with C like power and speed. And it is coming with GC also. I just tried it. Looks very nice to me.
@Eros,
Thanks. That will be very handy. Now, thinBasic's AsciiZ is not displaying my native language correctly. I am ready to wait for a better thinBasic with complete unicode support. In the...
@Eros,
Thanks for the reply. I was planning to do some gui programming on thinBasic with CreateWindowEx and other related functions. But soon i realized that i need to study about the equivalent...
Hi all,
I am playing with some win32 api functions. I would like to know how to do it in thinBasic. Is there any tutorials or dedicated posts related to it ? I want to know how to handle data types...
@Eros,
Thank you :)
Let me try.