Aha...
Ok I will try tomorow,becose i get sleep.
Thanks again...
You dont often need getCommandline, this works fine
[code=thinbasic]
inst=GetModuleHandle 0
WinMain inst,0,0,SW_NORMAL
[/code]
Aha...
Ok I will try tomorow,becose i get sleep.
Thanks again...
Charles i try all posible combination but still refuse to work
Hi Zlatco
You can run a message box even before entering WinMain and see whether your system returns a plausible module handle. (Zero means it wont give you one.). Messageboxes are one of the best debugging tools when dealing with low level Windows stuff, (As long as they are not used inside a long loop )
In O2H:
[code=thinbasic]
cmdline=GetCommandLine
inst=GetModuleHandle 0
print str inst
[/code]
Hi Charles...
I know that MessageBox is great tool and i use them alot when i make
some stuff in my interpreter.
but this time I think that is useless I think that CBasic is limited in
current case (Paul told me that is not posibile?)
If you wish I can sand you Pm with source code.
You are expert in this area.
I do everithing but whitout succses,I'm little bit disapointed.
Have you looked at FreeBasic, Zlatco? I chose to use it for Oxygen because of its cross-platform capability and compiling down to x86 code, of course. Though I have not explored all of its features, I find it to be very stable,predictable and fast, which are all essential for building higher level software systems.
Charles.
Yes Free Basic is good and probably is capable for producing
Window from API becose is compiler.
I already have EBasic which is capable for that.
As i see thinBasic can't produce Window from API directly
without your oxigen module and without .dll included.
Or maby I'm wrong?
Thanks Zlatko
ThinBasic can certainly call any DLL directly by using a declaration with a LIB specification. The main issue is can it handle a low level callback for an interpreted Wndproc - Eros would be able to answer this one
Charles
Yes the main problem is in WinProc.
So how return function directly
To here:case else function=DefWindowProc hWnd,wMsg,wParam,lParam
This part don't work from CBasic.lpfnWndProc=&WndProc '#long#long#long#long
Maby thinBasic can do that.
If can ,that would be fantastic.
So Eros what you say it is posible directly from thinBasic open
window with API-s-?
Hi Zlatko,Originally Posted by zlatkoAB
don't believe everything you get told by this guy, especially when he sells a competing commercial product.
There is allways a possibility.
Cheers
Michael
Bookmarks