Sign in to follow this  

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

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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