Paste String via contrl+V anyone has done that?

Archives Forums/Win32 Discussion/Paste String via contrl+V anyone has done that?

Takuan(Posted 2005) [#1]
Is it possible via BMax?

BMax String->do something->show string value if you press control+v in a programm like Notepad or Word.

Anyone like to show me the coden path and get the good carma poeple get for enlighting poor other?
Any thoughts welcome too...dont even have a clue how to begin interaction BMax<->WinXP.


Perturbatio(Posted 2005) [#2]
for win32, take a look at Using the Clipboard on MSDN.


Takuan(Posted 2005) [#3]
Ah, clipboard.
Thank you, showed me the direction.
Uff, a crashcours in WinUI.

To open a simple win32 window i would need functions from BMax Pup.mod-> User32.bmx

What i couldnt find out is the difference between
createwindowexA() and createwindowexW().
In the msdn library i only could find createwindowex()?


Perturbatio(Posted 2005) [#4]
if it ends in A it's the ASCII version, if it ends in W, it's the UNICODE version


Russell(Posted 2005) [#5]
"for win32, take a look at Using the Clipboard on MSDN."

I still haven't seen any examples of using the Win32 API from within Bmax, although I assume it's not too difficult. (I've done API window creation and event loops, etc.)

A nice tutorial would be very welcome, or even a "skeleton event-loop" Win32 program would be handy.

Russell


Takuan(Posted 2005) [#6]
Cool, thank you.

Yes, a tutorial would be handy.
I would prefer a tut of how to get a MSDN Library function into BMax, like Mr.Birdie did.
Or how to use a C++ function in BMax tutorial..


EOF(Posted 2005) [#7]
Here are two functions for clipboard text read and write:
(Thanks to Birdie for his help)