Thursday, 10 August 2006
|
| Sudden and Weird CR + LF issue Farseer 20:32:45 |
| | Hello,
I have some cod that calls out to a URL and reads parses the respond. I am usin the Inet control to do this and all was working fine for years. But recently, i have encountered the following issue.
The URL that i am opening returns a string such as:
Success\n Data row 1 Data row 2 etc..
The first row is either the word "Success" or "Failure" followed by a linefeed character (ASCII 10). My code would search for that character and take the left of it to determine if the URL call was success or failure. However, for some odd reason, what is being returned now is the word "Success" followed by a CR + LF. I have no idea where the CR is coming from, as i have checked the source of the java servlet that is responsible for sending the response and it is simply adding linefeed at the end of the first line.
Does anyone have an idea what might be causing this? Is te INET control suddenly converting LF to CRLF when reading the response?
Again, this was all working fine...but only recently started happening. I am wondering if it has to do with an update to Windows XP or some other microsoft updates..
thanks much
|
| | 1 answer | Add comment |
|
| Printer-Object again Helge Haensel 19:12:42 |
| | Hallo NG! WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E I am using the following code to print a document
Printer.EndDoc Printer.Orientation = vbPRORLandscape cdlStandard.ShowPrinter Form2.Frame2.Visible = False Form2.PrintForm Printer.EndDoc Form2.Frame2.Visible = True
Always the print comes in portrait orientation and also the dialog ist mostly not shown. I have an other big VB5-job, where landscaping works! Also with Excel or Word printing is allright. The printer is a hp970cxi with updated driver. Any hints please?
Vy 73! Helge -- Helge, DJ1WM No eMails please
|
| | 31 answer | Add comment |
|
| VB caused General Protection Fault in module VB.EXE AT 0014:00FE Suhas 16:13:22 |
| | I am trying to make a new exe by using some VBX files I have ,I am getting problem on using one vbx. Error I have received while creating exe "VB caused General Protection Fault in module VB.EXE AT 0014:00FE." Is there anyway to use this VBX with my environment (I am using VB 3.0 studio on win 2003 and Win XP)
|
| | Add comment |
|
| Sum a Query Michael Smith 15:37:30 |
| | Hi All
I am using VB6 with Access97. In a QUERY in Access I have a field where HOURS are entered. Through VB I can enter DATA based on a MEMBERS ID. I am trying to SUM those HOURS to show in a COLUMN in my DBGRID or even a TEXT BOX. My problem is I cannot find a formulae where I can SUM ALL the HOURS for a member based on there MEMBER ID. Any Help? And thanks in advance
Mick Smith Adeliade, SA
|
| | 2 answer | Add comment |
|
| Using images on multicolumn treeview subitems Chris L. 02:57:04 |
| | Hello, I'm using vbaccelerator's multicolumn treeview.
http://vbaccelerator.com/article.asp?id=14442
Apparently there's a way to use images on the subitems (there is a .Image property) but I haven't been able to get it to work, someone has?
Thanks a lot!
|
| | Add comment |
|
| VB OleDB Data Adapter fill while DataView active: Is this possible? Guest 02:04:08 |
| | I've got an application that has All data adapters in a main class (each one connected to a table in an MSSQL database) that feeds the data into a DataSet that his obtained by other classes using a function that returns the dataset. When I try calling the update function in my main class from another Form that is using the DataSet, I am unable to do it, and have learned it is related to the DataView being connected to the DS during the update. Is there any way around this without destroying the DataView, updating the database, and then creating another DataView?
Thanks.
|
| | 2 answer | Add comment |
|
| VB and Access 2003 Guest 02:02:04 |
| | I'm using VB and Access 2003. The db was originally created in Access 2000, but the computer had to have things reinstalled and now has Access 2003.
So I was wondering if there are any compatibility issues using the two programs. I know that when using data controls you can select Access 2000 for the connect property. This VB program also uses DAO and not ADO.
I've been having some weird things happen to the program since using Access 2003 and am debating uninstalling Access 2003 and reinstalling Access 2000.
Any ideas what I should do?
|
| | 1 answer | Add comment |
Wednesday, 9 August 2006
|
| Using VB to fill in Web based form Charles@Home.Com 19:55:51 |
| | I would like my VB application to open a web page (on the internet) by launching the users default browser, and fill-in a form (with text boxes) on the web page, with text generated by the VB app.
Can anyone tell me if this can be done and perhaps provide some suggestions.
Thanks
Charles W
|
| | 12 answers | Add comment |
|
| Changing default timeout Jfnjfn@Gmail.Com 18:33:20 |
| | Hi everyone,
Here's my problem. I have a big vb.net application with a lot of calls to stored procs. I don't want to add the line "Command.commandTimeout = 600" in front of each of these calls. So, the default timeout is set to 30 seconds. I'm pratically sure that I canc change this 30 seconds in a registry or in a file somewhere. I hope that Microsoft didn't hard coded it in the class! My question: How can I change the default command timeout in one shot for all my application.
Thanks a lot!
Bawa
|
| | 1 answer | Add comment |
|
| Sending Command to the printer on parallel port Sharique 16:53:22 |
| | Hi,
I want to send command to card printer through my application in VB. Printer is connect on the parallel port with port name "ELTNLPT".
Can anybody guide me that how could I send the following command from my application in VB?
&E1 639357000000001^SHARIQ ZIA^0909
This is the command to write Track 1 information on the magnetic stip of card.
Urgent reply will be highly appreciated.
Thanks,
Shariq Zia
|
| | Add comment |
|
| command line argument getting compile error after XP conversion Maria Markoff 11:34:01 |
| | I have been using command line arguments in VB6 successfully until we converted to windows XP. Now I get a Can't Find Project or Library compile error when I try to compile my programs. I didn't change anything, but can't recompile. Any idea what reference this is looking for or what may be causing this?
Thanks in advance for your help.
|
| | 1 answer | Add comment |
|
| Error : ActiveX component can't create object from AddToADODatabase Andz 05:55:19 |
| | I recieve this error. Error : ActiveX component can't create object from AddToADODatabase Any clue watz goin on?
Thanks in advance... Andz
|
| | 1 answer | Add comment |
Tuesday, 8 August 2006
|
| Clearing Read-Only Attributes on a Folder? (VB6) Leif Bloomquist 22:10:37 |
| | Hi all,
Working on an old VB6 app, need some help.
My application needs to delete an empty folder (contents previously Kill'ed). Super easy with RmDir, and that works...
...Unless, the folder has the Read-Only Attribute set. But I can't figure out how to clear the attribute. I have tried all of these with no success. Nothing happens.
ScanDirectory = "c:\MyFolder\"
SetAttr ScanDirectory, GetAttr(ScanDirectory) And (Not vbReadOnly)
SetAttr ScanDirectory, vbNormal
Dim oFSO, oFolder Set oFSO = CreateObject("Scripting.FileSystemObject") Set oFolder = oFSO.GetFolder(ScanDirectory) oFolder.attributes = 0 ' Normal, no attributes set
What am I doing wrong?
Thanks, Leif
-- Leif Bloomquist leif(at)schemafactor(dot)com http://home.ica.net/~leifb/
"Once secure, saturate the area with plasma mortars and spicy barbecue sauce."
|
| | 3 answer | Add comment |
|
| flipping frame-orientation Helge Haensel 21:27:14 |
| | Hallo NG! WindowsXP/HE SP2, OfficeXP/Pro SP3, VB5E
Because of problems with printing my doc in landscape orientation (see other thread) is there a trick that lets me change the orientation of a frame (inclusive all controls inside) by 90 degs? Thanks for hints.
Vy 73! Helge -- Helge, DJ1WM No eMails please
|
| | 1 answer | Add comment |
|
| Convery byte array from LookupAccountName to string Jerry West 20:31:47 |
| | I'm using LookupAccountName to return the SID of an account passed to the LookupAccountName function. What is returned is a byte array. I need this converted into a string that looks like a normal SID you would find within the registry. I tried looping through the array and converting each element using the Chr$ function but this technique does not work with the byte array returned by LookupAccountName.
Does anyone know of a technique that would convert this byte array into a string, e.g.S-1-5-21-682003330-1383384898-839522115-1003?
Any help would be greatly appreciated.
JW
|
| | 4 answer | Add comment |
|
| Getting Oracle Server Name in VB Rajan 12:18:18 |
| | Dear All
Please help me that how can i find oracle server name and default database name by visual basic coding.
Thanks
Rajesh
|
| | Add comment |
|
| operating system update? Jim Y 06:13:39 |
| | I have an old 400 MHz Pentium II Dell XPS computer that I seldom use. Is there an OS to which I may be able to upgrade? I have not found new antivirus software that will run on it and that is my main reason to upgrade.
I use it to test some of my VB6 programs. That is about all it is good for now. I may have scrap it.
Thank you, Jim Y
|
| | 4 answer | Add comment |
Monday, 7 August 2006
|
| Progress Bars? Michael 21:09:33 |
| | Hi.
What's the name of the control, that has a single short bar goes back and forth as opposed to one way only?
Thanks,
Michael
|
| | 1 answer | Add comment |
|
| Flash MX 2004 Splash Screen In VB6 App Michael 16:33:31 |
| | Hi,
I've created an intro screen in flash and wish to use it in my VB6 program. I've added the control, removed the caption and control box so there's no blue bar at the top etc and made the shockwave flash control as big as the form. However when I run it, everywhere that is covered by the control at design time becomes invisible so you can see the other programs running beneath the form. I can hear the sound so I know's running but just don't see anything. I'm currently writing another program that uses the same flash splash screen and have no problems with that. I even tried changing the file just to make sure it wasn't the flash movie at fault, but the same thing happens. Any ideas?
My code: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Load() Me.Show ShockwaveFlash1.Movie = "D:\Programs and Drivers\My Programs\Visual Basic Programs\ROV\Splash.swf" Sleep 2500 Unload Me Load Form1 End Sub
Regards,
Michael
|
| | 3 answer | Add comment |
|
| Text To Speech in VB6 David L. Jones 12:55:19 |
| | I'm developing an aplication in VB6 that needs basic Text-To-Speech capability, plus it must also have the ability to save the speech to a WAV or other such audio file.
I'm looking at the Microsoft Speech SDK 5.1 toolkit and it looks to do what I want, but is there anything better?, as the MS one is fairly old (speech technology wise). Also, it's gotta be easy to implement, i.e. drop in speech control, then simply call the command etc
I don't really want to move to .NET either.
Thanks Dave
|
| | Add comment |
Sunday, 6 August 2006
|
| OS Compatable Setup Rajan 18:03:42 |
| | Dear All
i wants to know how can i prepare setup of my vb project that can be run on every windows OS such as 98, 2000, xp and nt server.
Thanks
Rajesh
|
| | 4 answer | Add comment |
|
| Comparing VB binaries The Real Mr Hyde 05:51:48 |
| | Hi there,
A client of mine has been unfortunate enough to loose control of his VB 6 sources. He currently has a very large set of VB 6 binaries and an equally large and hopefully matching set of sources. The problem is he is not sure the sources he has indeed correspond to the latest versions of the binaries. The binaries are stable and running on a mission critical environment. Other than compiling the whole thing and testing the heck out of it, is there a way to make sure his sources match the production binaries?
Thanks in advance,
-h
|
| | 15 answers | Add comment |
Saturday, 5 August 2006
|
| Visual Basic objects ByRef or ByVal Guest 05:14:33 |
| | I am taking classes in VB.NET, ADO.NET and XML.NET. Somewhere I read that when you pass an object in the parameterlist of a function or sub, it is always by reference and not by value. Visual Basic (Visual Studio 2002) doesn't really care wether you mention ByRef or ByVal when you pass an object, I mean it doesn't raise an error. In the notes of the classes objects in the parameterlist of a function or sub are always (!) preceded by ByVal. Is this sloppy coding or am I overreacting ?
thanx,
Pugi!
|
| | 4 answer | Add comment |
|
| Exiting a loop Michael 03:43:00 |
| | Hi,
I'm trying to create a loop that loops until the escape key is pressed, this is what I have but for some reason it doesn't work. Can someone please explain what I'm doing wrong?
Public Sub IncreaseVolume() Dim SystemVolume As Long SystemVolume = frmVolume.SystemVolumeLevel 'get the existing volume level
Do Until blnEndLoop = True DoEvents SystemVolume = SystemVolume + 3000 'increase volume frmVolume.SetVolume (SystemVolume) 'change the systems volume Sleep 1000 Loop SystemVolumeLevel = SystemVolume End Sub
Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyEscape Then MsgBox "f" blnEndLoop = True End Sub
Also tried this loop as well: Do DoEvents SystemVolume = SystemVolume + 3000 frmVolume.SetVolume (SystemVolume) Sleep 1000 Loop Until blnEndLoop = True
Thanks
Michael
|
| | 6 answers | Add comment |
Friday, 4 August 2006
|
| Where's Program Files? NorthCoda 18:05:18 |
| | Is there a variable in Visual Basic that tells me where the program files folder is located? Google isn't much help.
|
| | 9 answers | Add comment |
|