Search:
Type: Posts; User: Bonnie West
Search:
Search took 0.37 seconds.
-
-
Don't worry, I'm doing OK.
I know, that's why I was hoping the remaining VB6 experts around the world (like firehacker) will join us here so that we can finally get the proper VB6 successor...
-
I still have them180044180045 :bigyello:
https://www.vbforums.com/attachment.php?attachmentid=180044&d=1611937523
https://www.vbforums.com/attachment.php?attachmentid=180045&d=1611937535
-
You might want to try adapting the code here to suit your needs:
-
Try this condensed version of the code you've posted:
With CreateObject("VBScript.RegExp")
.IgnoreCase = True
.Pattern = "Dept[123]"
Permission.Exit -Not...
-
The documentations of the CreateProcess function and the PROCESS_INFORMATION structure states clearly what you need to do:
-
Here's my CodeBank thread: [VB6] Dereferencing Pointers sans CopyMemory
-
Here's an alternative solution from the very similar thread that Elroy mentioned:
-
-
I'm not completely sure about this, but I suspect that deleting the original, default object rather than selecting it back into the DC is probably one of the reasons for the memory leak. According to...
-
You probably should get permission first from firehacker. ;)
-
It is VB6 code, so yes. ;)
The Shell object's ShellExecute method is simply a wrapper for the ShellExecute API function. That code passes just 2 parameters to the ShellExecute method: (1) the...
-
There's really no need for the .BAT file; just launch XCOPY.EXE directly:
Public Sub BackUp(ByRef DestDir As String)
Const ssfDESKTOP = 0&, ssfPERSONAL = 5&, ssfSYSTEM = 37&
With...
-
I believe a registry key similar to the following holds the path to the type library file/resource:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\1.0\0\win32...
-
You're right. I had tested the code in Post #8 with VB6's Open statement and it appears it doesn't have an option to enforce exclusive access on the opened file. If the OP wants to make sure copying...
-
The standalone TLB file that gets generated when the "Remote Server Files" checkbox is ticked is actually exactly the same as the TLB resource that's embedded in the ActiveX DLL. Therefore, the...
-
On Error Try Again
You might want to consider using fafalone's "implementation" of the SHOpenWithDialog (Vista+) API function: [VB6] API Open With Dialog with enhanced functionality
...
-
It's my understanding that when an ActiveX DLL/OCX is used in conjunction with a SxS manifest, no CLSIDs/IIDs/TypeLibs/etc. are written to the Registry.
ActiveX DLLs/OCXs typically contain a...
-
I believe you can get String variables to work if you wrap them with CVar(), like in this example.
-
The pure VB6 approach to creating TLBs is actually a pretty good option in many cases. Its biggest drawback though IMO, is that it pollutes the Registry. While the ActiveX DLL's registry entries can...
-
Yeah, we would really need to see your INI file writing code, especially if you're not using the initialization-file API functions.
-
What you just saw was an IDL/ODL script. Compiling that script via either MIDL.EXE or MKTYPLIB.EXE (they're both in the VS6 CDs) will give you a TLB file. I've already shown you before how a TLB file...
-
So, Ben, have you looked at my link in Post #2 yet? You really wouldn't want to ignore that. ;)
-
freesix
If the system that you don't want to be shut down is running Windows Vista or later, there is an easier, non-hackish and highly recommended way of preventing system shut down:
-
See [RESOLVED] Is a type library not a public module?
-
The similar code here shows one possible way of removing those temporary files and folders.
-
Actually, the intrinsic FileCopy statement can fail (raises RTE 70 "Permission denied") if the file being copied is "in use" (opened for exclusive access). Here's an asynchronous, non-API/non-COM,...
-
It might be better if the Change event was raised in a WM_SETTEXT handler in the WindowProcControl procedure rather than doing it only in the Property Let Text procedure. This way, that event will...
-
Which startup method are you using? You might want to check out my updated reply to your question here to learn about the best method.
@ freesix
You might be interested to read this thread...
-
MSDN's note in the If...Then...Else Statement's documentation is actually correct, albeit incomplete. The TypeOf ... Is ... operator (that's right, it's a binary comparison operator that results in a...
-
You might want to check out this thread where UDT padding was also discussed.
It's here.
-
Visual Basic Reference
Visual Studio 6.0
QueryUnload Event
See Also Example Applies To
Occurs before a form or application closes. When an MDIForm object closes, the QueryUnload...
-
The Classic VB FAQ Why can't I use WithEvents on arrays of objects? already dealt with this issue.
BTW, here's another variation of the control array detecting function:
-
As discussed in these two threads, relying on Windows API definitions from 3rd party websites and/or API viewers is not really a good idea. Personally, I prefer to consult the official Windows SDK...
-
If for some reason you don't want to convert your TextBoxes to a control array, you might want to consider subclassing them instead. Watch for the EN_CHANGE notification code and then call your...
-
You can create an ActiveX control like the ProgressBar control by "wrapping" the manually created control in a UserControl object. See Creating an ActiveX Control and Building ActiveX Controls for...
-
See this post for a VB6 example.
-
This example combines Elroy's and HanneSThEGreaT's suggestions.
139955
-
The W versions of the INI file APIs can read & write Unicode (UTF16-LE) INI files. I'm using the W versions of the INI file APIs in my example above, so that code is Unicode-aware. Unicode text won't...
-
It is my understanding that VB6 already internally calls GetProcAddress the 1st time that a Declare'd API function is called (VB6 caches the return value and uses it the next time the function is...
|
Click Here to Expand Forum to Full Width
|