Sign in to follow this  

Calling a DLL to create a window and running the msg loop in VB

Recommended Posts

OK, I create a DLL that creates a simple window, and now I am calling it in VB. It works, but I would like to do the msg loop runs in VB instead of in DLL... that is, how could I use the DLL just to create the window and put the following code in VB?
while( msg.message!=WM_QUIT )
   if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
      TranslateMessage( &msg );
      DispatchMessage( &msg );

In other words, what I want is: 1) Use VB 2) Create an window by calling a DLL 3) Run the msg/window loop in VB Thanks in advance [/source]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this