1,372 Posted Topics
Re: You'll have to create a huge string. As far as I can tell, updating the clipboard with VB6 overwrites what was there previously. Just like if you keep opening a file for output instead of append. The easy solution is to have 1 variable that keeps getting concantenated during a … | |
Re: you have to draw them onto the control. if you just double click it, it will stick it on the form (you could also, if you have the controls on the form, and want to stick them on a tab, highlight the control, and cut it... then make sure the … | |
Re: Post the relevant section of code also, say form_load if that's the portion of the EXE that's generating the error. | |
Re: Visal brings up a good point. If there is a loop (or a method that is blocking), then your app may not do much more than freeze (or appear to). Post the code as a .zip, or put it in code tags so we can check out what's going on. | |
Re: A Link you should check out is a great tutorial right here: [url]http://www.daniweb.com/techtalkforums/thread26892.html[/url] | |
Re: Depends on what type. There are activex componant for just about anything.... | |
Re: Alvein has a real good point about opening and closing connections too frequently. It's been my experience with Access and VB, that doing a large number of opens/query's eats up value processor time, when only one connection is needed. mnemtsas has a great tutorial on using Access with VB, and … | |
Re: Right. Ocx's need to be registered just like a .dll or some other componant (you can use regsvr32 to register .dll's and ocx's.), but as pointed out above, the liscence might be limited. | |
Re: Nice Response there mnemtsas, and should you need any further information regarding Tan (or other commands): [url]http://www.int.gu.edu.au/courses/3008int/m03/FYI/Command_Syntax.htm#Heading197[/url] | |
Re: Have you looked at this tutorial [url]http://www.timesheetsmts.com/adotutorial.htm?[/url] I realize it's for access, but I'm pretty sure that the OO of it allows for interfacing of any database system, but I could be wrong. | |
Re: Not only backticks, but also the command "system" works to execute external files.... you could also use an open command, and open the process with a pipe, but I'm not sure exactly what you mean about having 1 script run the same file on a bunch of machines... if you … | |
Re: Sure is, plus this aids in clarity of code. I understood your code, but In my opinion it's a lot easier to read without a ton of API calls. GetTemp's are great also, for getting the temporary path on any machine. Let us know how it turns out. | |
Re: You could use getactivewindow or getforegroundwindow. That should return the hwnd of the currently active or the currently foreground window. | |
Re: What language are we talking about!? It sounds an awful lot like a C function in USBCDCEthernet.h, but I'm not sure. | |
Re: Sure.... OR you can use the catalyst control from [url]http://www.catalyst.com[/url] that comes with socketwrench. I prefer mscomm, but the control from catalyst is real easy to use. | |
Re: One solution that I'm fond of, in order to make VB search an entire drive is to shell a dos command of dir and redirect it into a file. Then open the file (which will contain a list of all paths to the files of a specific criteria), read in … | |
Re: The above is a pretty good post. I've used similar code in my universal player (mp3's, Wav's, and Midi's) and it seems to work great for me.... nice post techniner | |
Re: You can not create a dialog box or toolbar in the same way. Let there be no mistake about it, the forms, messagebox's, dialogue boxes and all buttons are created by windows, even when you use VB. You have to have a program to actually make windows create one, and … | |
Re: The easiest way to do this, is to have a settings file (you could use the registry also, but I find files are easier to clean up, and fit logical structure a lot better). In your settings file, you have 1 line per text box (or default value). This way, … | |
Re: sure, you can get the filesize, through unconventional means, OR you can get the file size in long value, and check if it's larger than 2GB, (just check the long value size), if it IS bigger than 2GB's, then generate 2 temp files, with 1/2 of the file in each … | |
Re: I'm not sure exactly your infrastructure, as in, are you trying to read the CGI output (HTML)? Are you trying to find out if the launch was successful? I'm pretty sure you can write or get the HTML from the page in the InternetExplorer.Application class, and once you do, you … | |
Re: You should read this thread, so you get an idea of what's happening, and then use a similar fashion with your VBA: [url]http://www.daniweb.com/techtalkforums/post85128-2-15.html[/url] Basically, figure out the path to adobe's acrobat, then load it with a shell command, and pass it the switches needed to print. Let me know if … | |
Re: Here is a function you can use, just stick it in a module: [CODE] Public Function GetShortcutPath(ByVal FileName As String) ' /* Declare Variable To Hold Shell Object */ Dim WSH As Object ' /* Actually Set The Variable To A New Instance Of WScript Shell */ Set WSH = … | |
Re: I would suggest setting your timer to 60 seconds (1 minute) OR every second. Then keep a variable that gets incremented as the timer fires. Then you can check it for the time in question, and fire it accordingly. | |
Re: It would seem to me that you are looking for a property that doesn't exist in LDAP. Have you checked the name of the property? Post the code, and I can look through it. | |
Re: Well, I'm not 100% sure how you would go about "looking" at the picture in code, and determining if the patterns are the same or not. That's going to be an extremely low level and complicated task, using the type of byte, undoubtedly. You would have to open the image … | |
Re: This is a question that is rather open ended, and doesn't apply strictly to VB. It would be better suited in a geeks lounge, or some other area that refers to non-direct technical VB questions (such as, how would I change the screen saver with VB). However, To answer your … | |
Re: Indeed. If you need help with understanding POP3, and how to work with it in VB, I have written a tutorial: [url]http://www.daniweb.com/tutorials/tutorial20424.html[/url], which is really helpful. It doesn't go as far as I'd like (it only allows you to click "check mail" and it tells you the number of messages, … | |
Re: It's always hard when trying to do socket programming that's meant to be event driven, in a procedural fashion. I would personally suggest looking into modules that allow a Perl Application to Act more like it's event driven. Something along the lines of [URL=http://poe.perl.org/?POE_Cookbook]POE[/URL] or [URL=http://www.perlfect.com/articles/select.shtml]Select[/URL]. I realize that having … | |
Re: I'm pretty sure that the parallel port is a device in /dev, I'm not sure which one it will be (depends on which one you are trying to access), but you may have to do a sysread or syswrite on that device (there is probably a way to open it … | |
Re: Well for one thing, on your very last line, your "and" is being referenced as a visual basic keyword, and NOT a filter query. rstRecordset.Filter = "Date='" & datefilter [B]& "'" And [/B]"Name='" & namefilter & "'" you never put and back in a string, something like: [CODE] rstRecordset.Filter = … | |
Re: I'm wondering if, maybe, the ITC version that is used on 2k is not compatible with XP.... I know that sounds a little far fetched, but if that is the case (which is sounds like to me) you could create a sub folder for XP, and 2k, and have the … | |
Re: I'm guessing this is basically the same project and problem you had with the Null error, please, try to keep each error problem that is similar in the same thread. | |
Re: I like to debug with msgbox's, it stops the program at the point, and displays information too (such as the values contained within a variable). So, Whenever it is you are trying to read from the LDAP connection, stick a msgbox on it to very the contents being read in. … | |
Re: [url]http://www.daniweb.com/techtalkforums/thread26892.html[/url] is a great tutorial over using access with VB. | |
Re: Yes, Please Post your code so that we can take a look at it. | |
Re: Quite Possibly by using VBScript, Embeded into a VB6 application, you can simply map the drive.... this page gives you a pretty good idea as to use VBScript to map the drive: [url]http://visualbasic.ittoolbox.com/documents/document.asp?i=2938[/url] Let me know what you come up with... | |
Re: I don't know if this answer, but I'm not seeing an [B]if statement[/B] in there. Just an else, and an end if. | |
Re: [url]http://www1.cs.columbia.edu/~lennox/perlre.html[/url] is a great site to learn about regex's.... look up the "multi-line" regular expression test with the match operator. You'll be amazed at the power and versatility of it. | |
Re: [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;Q328024[/url] and [url]http://searchwinsystems.techtarget.com/tip/1,289483,sid68_gci1089792,00.html[/url] are pretty good places to start.... I'll see what else I can find. | |
Re: My MSI on 98 installed it without hardly any interaction at all, at c:\perl\bin\ (for the perl.exe and some other fun exe's that came with it). | |
Re: If you are using IE, I believe there is a content manager. It won't keep out of all porn sites, but it will certainly cut off a good portion of them.... the point being, it will require a lot more work to get to them.... you could consider using something … | |
Re: Hmn, I don't know if it matters a whole lot, but in your first selection string, you have single quotes ' ' around the { }=AV137, but in the sSelect variable, you don't have those.... I'm not sure it matters, but maybe sticking them around txtProgrammeNumber.text would work? | |
Re: Do you have any code written already.... if so post it. | |
Re: Yes, Using the installer is the best way to go. I've found that the later versions don't seem to require a lot of command line working (in 98) for the install, but that's been my experience. | |
Re: Just because microsoft abandon any and all help for it, does NOT mean that it's dead. Let's face it, there are still tons of corporations and businesses that use VB6 in order to build applications for themselves and for contract companies. Don't be fooled, VB6, while abandoned by it's creators, … | |
Re: in the form_resize event, you should be able to simple adjust the properties of the controls you want to mess with. For example, when the form gets resized (maximized) you can figure out the percentage and ratio, and use the .top, .left, .width and .height properties of any control: [CODE] … | |
Re: Mouse Events are not macro's. Mouse events are actual events that occur within VB when spawned by a specific action. If you are looking on how to fire those events programatically, you can look into sendkeys, or the sendmessage API. | |
Re: *Nods* jwshepherd is hitting real close to home with that. You should take his advice. | |
Re: You need to use the sendmessage API, and send an LB_ADDITEM to the hwnd of the listbox with the text to add to it. I'll cruft you up an example when I get my PC back and in good working condition :) |
The End.