Windows Guck and Windows API.

Just starting out? Need help? Post your questions and find answers here.
Yourself
User
User
Posts: 17
Joined: Fri Jan 18, 2008 2:47 pm

Windows Guck and Windows API.

Post by Yourself »

I needed to use a console interface for my application which is being made in Delphi.
So I just decided to use PB to create a console DLL.
It runs fine but...
Every time I move the CONSOLE window, it leaves behind an image of itself and that too on the calling application and one nothing else :(
Any remedies?
And How do I use WinAPI in PB.
I know that the commands have to have an underscore in them but lets say ..

Code: Select all

CreateWindow(

    LPCTSTR lpClassName,	// pointer to registered class name
    LPCTSTR lpWindowName,	// pointer to window name
    DWORD dwStyle,	// window style
    int x,	// horizontal position of window
    int y,	// vertical position of window
    int nWidth,	// window width
    int nHeight,	// window height
    HWND hWndParent,	// handle to parent or owner window
    HMENU hMenu,	// handle to menu or child-window identifier
    HANDLE hInstance,	// handle to application instance
    LPVOID lpParam 	// pointer to window-creation data
   );
Thats from the WinAPI manual.
How do I implement it in PB.
An example would help me out.
Thanks
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

when you say "console" do you not mean the features of:

OpenConsole()
CloseConsole()

?
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Yourself
User
User
Posts: 17
Joined: Fri Jan 18, 2008 2:47 pm

Post by Yourself »

>pdwyer >
Yeah I do mean them.
Its created all right, text IS being displayed. but the display gets messed up :(
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

You should download the PB code archive, it's a good learning tool.
Post Reply