dcsimg

Search:

Type: Posts; User: The trick

Page 1 of 13 1 2 3 4

Search: Search took 0.34 seconds.

  1. Re: Your first BASIC computer? Has your software survived?

    I am under 30 years old :bigyello:.
  2. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    Why do you want to export from the EXE rather than the DLL? Just change the project type to ActiveX Dll and all'll work.
  3. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    http://www.vbforums.com/showthread.php?875635-VB6-VBA-Timer-class
  4. Replies
    2
    Views
    294

    [VB6/VBA] Timer class.

    Hello everyone!

    This class allows to use the timers in VB6/VBA. It contains the Interval propertiy which sets the interval between the Tick events. It also contains the Tag property which allows...
  5. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    I don't understand you. You load a library and call GetProcAddress("DllGetClassObject"). What's the problem? Okay, if you don't want to call DllGetClassObject just export other function which you...
  6. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    Why don't you want to call LoadLibrary and then call DllGetClassObject? All will work without any troubles? Why do you need these difficulties?
  7. Replies
    52
    Views
    1,043

    Re: Create and load Cursor from byte array.

    https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-createiconfromresourceex
  8. Replies
    3
    Views
    317

    Re: VB6 Decompiled Code Analysis

    give the exe
  9. Replies
    7
    Views
    327

    Re: [RESOLVED] ASLR & Heap Address

    VB6 applications by default have no ASLR/DEP.
  10. Replies
    7
    Views
    327

    Re: [RESOLVED] ASLR & Heap Address

    There is the special flag in the PE header IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE which means ASLR for the module is enabled, i.e. the module is loaded by the random base address. You can have the...
  11. Replies
    7
    Views
    327

    Re: ASLR & Heap Address

    Yes. All the VB6 apps, by default, has no ASLR protection but this affects only for module. Heaps and some other strucutres are randomized always.
  12. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    This is the way to get EbMode in the 64 bit VBA:

    Private Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

    Public...
  13. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    Yes.
    For VBA you should also change CreateIDEStub in x86 mode too because VBA doesn't export EbMode function. You should get this function using the next method (for 32-bit office):

    Private...
  14. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    You should use V.2.2.
  15. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    The classes don't use that. Also for vba you should remove IDE checking.
  16. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    I made x64 calling from VB6 to go to 64 bit mode using "heavens gate":

    Option Explicit

    Private Const ProcessBasicInformation As Long = 0
    Private Const MEM_RESERVE As Long = &H2000&...
  17. Replies
    29
    Views
    766

    Re: AddressOf Function in a Class Module

    In 64 bit you should use x64 calling convention instead stdcall one. You can pay attention to that class which implements all the login in the single class (and this).
    If you select such approach i...
  18. Replies
    32
    Views
    705

    Re: Licensing a DLL ActiveX

    How many bytes you need to store?
  19. Replies
    7
    Views
    487

    Re: QR Code generator

    Check that.
  20. Replies
    32
    Views
    705

    Re: Licensing a DLL ActiveX

    What is the demo mode?
    I suggested to encrypt the part of the code and stay unencrypted the other part. When the user purchase the license the DLL tries to decrypt the code which opens the full...
  21. Replies
    32
    Views
    705

    Re: Licensing a DLL ActiveX

    You just asked for storing the data to an EXE itself. Do you need restrict the EXE functionality? I made the example of licensing, please look at this method (description).
  22. Replies
    32
    Views
    705

    Re: Licensing a DLL ActiveX

    http://www.vbforums.com/showthread.php?816881-VB6-Store-data-to-EXE
  23. Re: Your first BASIC computer? Has your software survived?

    It's quite interesting i'll study it in more detail. As far as i know in USSR was the Agat computer which was inspired by Apple II (i don't know exactly). At all there was the many different machines...
  24. Re: Your first BASIC computer? Has your software survived?

    The first one was ZX-Spectrum-128K and i made the games and programs using Sinclair BASIC.
    Written in 2018 (you can get it from first/last track of 07d7 album :))

    1 CLEAR 29999
    5 LET c=0
    15...
  25. Re: Cannot create vbRichClient object in 64bit-Excel

    You can use 32 bit COM components from 64 bit applications. Just use a surrogate process.
  26. Re: Cannot create vbRichClient object in 64bit-Excel

    Use DllSurrogate.
  27. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    You can initialize the runtime in the DLLMain as well but that isn't good approach. Just make an exported function which initializes the runtime and just call it after LoadLibrary.
  28. Re: How to create an instance of a class with a class name?

    http://www.vbforums.com/showthread.php?834231-Instantiate-internal-class-object-with-name-in-string
  29. Replies
    60
    Views
    1,652

    Re: [ADVANCED] Multi-threaded VB6

    Subclassing is a technique that allows an application to intercept and process messages sent or posted to a particular window before the window has a chance to process them. You can create your own...
  30. Replies
    60
    Views
    1,652

    Re: [ADVANCED] Multi-threaded VB6

    The timer message has the lowest priority than other messages.


    Not necessary.


    It isn't required for your own private windows.
  31. Replies
    60
    Views
    1,652

    Re: [ADVANCED] Multi-threaded VB6

    It's your own message like WM_USER + ...
    You can see how AsynchDispMethodCall works. Also there is InternetStatusCallback example where you can find the following methods:


    Private Sub...
  32. Replies
    60
    Views
    1,652

    Re: [ADVANCED] Multi-threaded VB6

    Just create a window (HWND_MESSAGE) and process the messages in its window proc.
    Brief review of concept:

    ' // Class CYourClass

    Dim tClass As WNDCLASSEX

    ' // Register class...
  33. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    jsvenu, you can initialize the runtime for a STD-EXE-Dll as well but you need to ensure the proper uninitialization (DllCanUnloadNow/Tracking objects lifetime/etc). There is no difference between...
  34. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    You don't initialize the project context therefore you can't use the arbitrary code and forms. Just see my example with AX-dll and use it with exported functions.
  35. Re: [VB6] - Module for working with multithreading.

    Update.

    Fixed some bugs, removed unused code, added 2 demos:

    InitProjectContextDll - Initialization of the runtime in an ActiveX DLL and call the exported function from the different threads....
  36. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    I gave the worked example. Why don't you use it? This is more simple to use AX-dll instead Std-XE-dll. Why do you need the complexity?
  37. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    Thank you for testing!
    The bug in IDE was because the MT module has the error (it clears the code heap before the message window was destroyed). The bug in EXE was my mistake (i forgot to call...
  38. Replies
    25
    Views
    1,032

    Re: initializing runtime in standard dll

    I made the example. (see InitProjectContextDll demo)
    This example shows the ability to use the exported functions from the VB6-ActiveX-DLL. It creates the 5 threads which call the exported function...
  39. Replies
    18
    Views
    1,507

    Re: ReadProcessMemory Tutorial

    Yes, it's possible. To avoid it you shouldn't decrypt all the password.
  40. Replies
    18
    Views
    1,507

    Re: ReadProcessMemory Tutorial

    You can store the password in the encrypted form but anyway anyone can use a debugger to find out the password.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width