dcsimg

Search:

Type: Posts; User: PsuFan

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    190

    Cast To UDT? CType Equivalent

    Is there a way to cast a variable as a UDT without creating a variable?

    This is pretty stupid:

    Do While M.GUIQueue.Count > 0
    Request = M.GUIQueue.Item(1)
    Select Case TypeName(Request)...
  2. Replies
    8
    Views
    364

    Re: [RESOLVED] Visual Component Manager

    Must load by default, because I have it loading as well. That and the MouseWheelFix...
  3. Replies
    8
    Views
    364

    Re: [RESOLVED] Visual Component Manager

    I started getting this error when using VB6 on Windows 10. I'd like a fix if anyone knows one. It runs fine after that message, so its just an annoyance.

    Windows 10 v1809, VB6 SP6, NO MSDN
  4. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    I ended up using shared memory class / PostMessage(Form.hWnd, WM_CHAR, Asc("A"), 0&) / Private Sub Form_KeyPress(KeyAscii As Integer) for Async notifications. Seems to be pretty clean and doesn't...
  5. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Also for others trying, you cant use Schmidt's Form_Activate example with multiple forms, it executes multiple times. I couldn't get threading at startup, you will have to use one time timer to start...
  6. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    I appreciate everyone chiming in here, thanks guys.

    @ Schmidt, I did realize I forgot to change the alias. Nice catch, I didn't think it was going to fix anything. But it did, finally async...
  7. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    ***, EVEN POSTMESSAGE IS BLOCKING MY WORKER THREAD.... :mad:

    What the heck am I doing wrong, all the documentation says these things run async, I can never get anything to run async between...
  8. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Elroy,

    That's exactly what I WAS doing. I had a GUI ActiveX application and a Service application that did backend work. It relays information via Referenced COM. But it became a pain to debug...
  9. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Looks like you have to sub-class form in order to receive Send/PostMessage events. Should work well in combination with shared memory thread / recordset / shared memory address.


    Private Sub...
  10. Re: Changing and loading a new ocx file into an existing project

    Take VLC for example. I wasn't able to add it as a component, but I could add it as a reference, so I generated it at runtime.



    Dim vlcControl As Object
    Dim WithEvents vlcPlayer As...
  11. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    What do we think about passing the main thread form hWnd to the worker thread and using SetTimer for async notification? LOL

    It appears to be entering on the main ThreadID

    PostMessage looks...
  12. Re: Changing and loading a new ocx file into an existing project

    You can try and load via CreateObject. If you were able to add to components, you can also try adding to form at runtime.
  13. Replies
    16
    Views
    463

    Re: Secure Web Site problem on XP

    You can try via inet directly or look into updating root security certificates...

    http://www.vbforums.com/showthread.php?874449-Reading-data-from-WebAPI&p=5385615&viewfull=1#post5385615

    Edit:...
  14. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Looks promising, do you have the dim for WM_ID_ASYNCH_METHOD, cant find it anywhere...
  15. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Cool, can I send custom messages? How do you receive them on main thread? That would eliminate timers checking for updates but would likely need to use your recordset solution or the extra thread...
  16. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    I don't think that will work non-blocking either though. If I purposely block the main thread, and try and call a function from a worker thread to the main thread that does nothing, it blocks the...
  17. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Anyone know why when I RaiseEvents to other threads, it still happens synchronous?

    https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/aa261370(v%3dvs.60)
  18. Replies
    16
    Views
    24,279

    Re: [RESOLVED] SP6 - Windows 10 - Fails to Install

    Mine installed fine without MSDN, Windows 10 1809.
  19. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    I was wondering why it didn't start on my target computer... Thanks
  20. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Interesting, I didn't think to use sub main to activate form instead of class... How many threads does this use, 4?


    Private Sub Form_Activate() 'use this instead of Form_Load, in case you want...
  21. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Thanks for all the help. Sorry for all the questions, some of this stuff is barely English to me lol. So you're recommending the threaded data class? How (well) does a three threaded app run on a...
  22. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    I was running Ax-EXE threading. How do I know if I am multi-process-mode?

    Why does the data module need its own thread? If the two threads have access to the same memory locations, cant they just...
  23. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    How do you use safe array in VB6? I do already want to pass mainly UDTs. Otherwise I will look into the recordset solution.

    Edit: I was considering a data only class but it seemed overkill and...
  24. Replies
    6
    Views
    349

    Re: Reading data from WebAPI

    @ Peekay, where's the post data? Is this just a GET request?

    data = PostInfo("budgetmessaging.com", "/smsreply.ashx?user=*****&password=*****&ref=" & Ref, "WHERE_IS_POST=DATA?")

    @ wqweto, no...
  25. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    @ Zvoni, I have referenced the objects. Problem is as soon as one accesses the other, it deadlocks until the thread accessed is finished. Yes, the main thread has its own apartment, and the...
  26. Replies
    60
    Views
    1,908

    Re: [ADVANCED] Multi-threaded VB6

    Well I guess it could be a little more native. I wish you could use global variables, however global variables are NOT common between threads. VB calls Sub Main again so that you can reload global...
  27. Replies
    6
    Views
    349

    Re: Reading data from WebAPI

    There are more simple one line methods that download a file that you have to read. But I prefer loading direct to string:

    data = PostInfo("server.com", "/?action=page", "user=hello")


    ...
  28. Replies
    60
    Views
    1,908

    [ADVANCED] Multi-threaded VB6

    Yes, it does exist. VB6 supports native multi-threading (proof)

    I am trying to communicate between threads, but if thread A is busy and thread B tries to update thread A, thread B gets locked up...
  29. Replies
    16
    Views
    24,279

    Re: [RESOLVED] SP6 - Windows 10 - Fails to Install

    I installed SP6 without MSDN simply by running (and clicking repair):

    C:\Program Files (x86)\Microsoft Visual Studio\Common\Setup\1033\SETUP.EXE
  30. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    Yes it does, did you use the file:// if local? The m3u8 was a skipping a little for me however.
  31. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    Nanni, hmm yes you are right, that does work. I definitely tried that before and it didn't work.. don't know what was wrong. Both file:// and file:/// work.

    Thanks!
  32. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    @si_the_geek, yeah I figured that out when I came back to post again and had access to edit. Not the standard to have limited permissions but I can certainly understand the spam problems. I probably...
  33. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    Is it free? In reference to the website being stupid, it was not meant to reflect the people that use this site. I was referring to the functionality of this website. It didn't let me edit my posts,...
  34. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    Cant edit my post, this website is stupid. Now it lets me edit posts.
  35. Replies
    22
    Views
    23,149

    Re: [RESOLVED] VLC ActiveX Control

    I finally solved this the real way, with real code. Sorry I'm late to the party, but since VLC isn't going to fix this problem... This works with the latest VLC as of writing: 2.2.1.

    This code...
Results 1 to 35 of 35



Featured


Click Here to Expand Forum to Full Width