URLDownloadToFile IBindStatusCallback And Visual Basic :-(
-
Hi, I wanted to develop a generic component to download files using URLDownloadToFile, just to make it even easier for VC++ and VBasic clients. The problem that I found is that... using IBindStatusCallback it's more or less easy to handle in C++, but I think handle this in Visual Basic it's a bit complicated ( for Vb Programmers :P). I thought about pass the handle of the window and one Message ID to my component and make a post message to that window... but it's a bit crappy and again Visual Basic guys won't know how to do it... use connection points for this case it's a good idea ? or again Visual Basic guys... thanks in advance Braulio
-
Hi, I wanted to develop a generic component to download files using URLDownloadToFile, just to make it even easier for VC++ and VBasic clients. The problem that I found is that... using IBindStatusCallback it's more or less easy to handle in C++, but I think handle this in Visual Basic it's a bit complicated ( for Vb Programmers :P). I thought about pass the handle of the window and one Message ID to my component and make a post message to that window... but it's a bit crappy and again Visual Basic guys won't know how to do it... use connection points for this case it's a good idea ? or again Visual Basic guys... thanks in advance Braulio
Well, VB programmers always have trouble with even adding two numbers. But VB maps connection points as events, so VBers can declare the variable WithEvents and handle the event, just like a button click. Any average VBer will be able to accomplish this. Trying to make bits uncopyable is like trying to make water not wet. -- Bruce Schneier By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
-
Well, VB programmers always have trouble with even adding two numbers. But VB maps connection points as events, so VBers can declare the variable WithEvents and handle the event, just like a button click. Any average VBer will be able to accomplish this. Trying to make bits uncopyable is like trying to make water not wet. -- Bruce Schneier By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
Hi Daniel, I have seen that if you develop an ActiveX control and place it with the designer you get for free the connection point in your "Event" combo, ... but how to do that if the COM component has no inteface at all ? Thanks for your info Braulio