1,372 Posted Topics

Member Avatar for MrConfused

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 …

Member Avatar for MrConfused
0
144
Member Avatar for Toulinwoek

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 …

Member Avatar for Monster17
0
242
Member Avatar for tom_h_500

Post the relevant section of code also, say form_load if that's the portion of the EXE that's generating the error.

Member Avatar for Comatose
0
253
Member Avatar for Vishal Aggarwal

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.

Member Avatar for Comatose
0
99
Member Avatar for user777

A Link you should check out is a great tutorial right here: [url]http://www.daniweb.com/techtalkforums/thread26892.html[/url]

Member Avatar for Comatose
0
177
Member Avatar for cancer10
Member Avatar for cancer10
0
175
Member Avatar for luisator

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 …

Member Avatar for Comatose
0
174
Member Avatar for user777

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.

Member Avatar for Comatose
0
182
Member Avatar for mickyboy

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]

Member Avatar for Comatose
0
245
Member Avatar for techz_boy

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.

Member Avatar for mnemtsas
0
335
Member Avatar for vidya

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 …

Member Avatar for Rashakil Fol
0
436
Member Avatar for shanecf

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.

Member Avatar for shanecf
0
484
Member Avatar for cookware_ok

You could use getactivewindow or getforegroundwindow. That should return the hwnd of the currently active or the currently foreground window.

Member Avatar for Comatose
0
76
Member Avatar for jer

What language are we talking about!? It sounds an awful lot like a C function in USBCDCEthernet.h, but I'm not sure.

Member Avatar for Comatose
0
78
Member Avatar for Lalo1985

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.

Member Avatar for Comatose
0
123
Member Avatar for lcannon

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 …

Member Avatar for Comatose
0
164
Member Avatar for artybrum

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

Member Avatar for techniner
0
1K
Member Avatar for mickyboy

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 …

Member Avatar for jwshepherd
0
435
Member Avatar for williamrojas78

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, …

Member Avatar for cookware_ok
0
151
Member Avatar for David Hunt

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 …

Member Avatar for Comatose
0
102
Member Avatar for Lalo1985

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 …

Member Avatar for Lalo1985
0
140
Member Avatar for vignesh_N

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 …

Member Avatar for Comatose
0
189
Member Avatar for cancer10

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 = …

Member Avatar for Comatose
0
196
Member Avatar for cancer10

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.

Member Avatar for Comatose
0
256
Member Avatar for Gunapriya

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.

Member Avatar for techniner
0
366
Member Avatar for marion sterling

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 …

Member Avatar for marion sterling
0
205
Member Avatar for Lalo1985

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 …

Member Avatar for Lalo1985
0
148
Member Avatar for Phat !

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, …

Member Avatar for Comatose
0
144
Member Avatar for JEt3L

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 …

Member Avatar for JEt3L
0
253
Member Avatar for 001

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 …

Member Avatar for 001
0
192
Member Avatar for williamrojas78

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 = …

Member Avatar for williamrojas78
0
231
Member Avatar for MightyAC

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 …

Member Avatar for MightyAC
0
86
Member Avatar for Gunapriya

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.

Member Avatar for Comatose
0
120
Member Avatar for Gunapriya

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. …

Member Avatar for Comatose
0
159
Member Avatar for amir_ct2001

[url]http://www.daniweb.com/techtalkforums/thread26892.html[/url] is a great tutorial over using access with VB.

Member Avatar for Comatose
0
120
Member Avatar for coolgal_neha
Member Avatar for Comatose
0
101
Member Avatar for craigmckeeman

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...

Member Avatar for mrmike
0
948
Member Avatar for Ghost1330

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.

Member Avatar for Ghost1330
0
133
Member Avatar for p1no

[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.

Member Avatar for p1no
0
132
Member Avatar for Gunapriya

[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.

Member Avatar for Gunapriya
0
123
Member Avatar for nileshdalvi

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).

Member Avatar for kordaff
0
216
Member Avatar for dfederman

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 …

Member Avatar for ArtChess
0
1K
Member Avatar for StephenHancox

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?

Member Avatar for Comatose
0
81
Member Avatar for chan
Member Avatar for nileshdalvi

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.

Member Avatar for Comatose
0
191
Member Avatar for ewomack

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, …

Member Avatar for yni420
0
388
Member Avatar for williamrojas78

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] …

Member Avatar for williamrojas78
0
255
Member Avatar for Tovabi

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.

Member Avatar for Tovabi
0
260
Member Avatar for Nomiree
Member Avatar for Comatose
0
792
Member Avatar for bouzahme

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 :)

Member Avatar for Comatose
0
126

The End.