Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Java/VB/VFP thing
Message
From
02/05/2008 12:00:32
 
 
To
02/05/2008 11:36:00
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01314640
Message ID:
01314816
Views:
7
>>>Oh. i didn't understand you the first time either.
>>>
>>>The first thing i would do, would be to look at both text files with a hex editor. My guess is your missing some CRs, LFs. So the VB program is not able to properly parse the Java version of the file.
>>>
>>>>>>>>Any ideas?
>>>>>>>
>>>>>>>What do you mean by "pass it the text file" ?
>>>>>>
>>>>>>The text file name is passed to the VB executable as a parameter. That part works.
>>>>>
>>>>>So, to clarify, when you run the VB executable from Java you get login prompts whereas when running it from VFP you don't?
>>>>>
>>>>>Next question: What do you mean by 'logs in to a site'? Is it an FTP site? Does it use Windows authentication? Is the Java app using different credentials to the VFP app?
>>>>>
>>>>>Regards,
>>>>>Viv
>>>>Nope
>>>>
>>>>The text file works as a 'script', for want of a better description, for the MODEM interface application. It should do the logging in, uploading/downloading, etc, logging off autmajically.
>>>>
>>>>When I pass the VB MODEM interface application the 'script' text file that was created in VFP via the JAVA class, it does what it is supposed to do.
>>>>
>>>>When I pass the VB MODEM interface capplication the 'script' text file that was created in JAVA, it gets so far as dialing up the MODEM site, I get the 'welcome' blah-blah, then the other site asks for Login ID and it sits there and doesn't pass in the login ID. It sits there until the other side times out and disconnects
>>
>>Then it sounds as if there *is* a difference between the two files. Did you just compare 'visually' or actually run a file compare utility such as WinDiff? For testing: have you tried launching the VB executable directly rather than from within the Java/VFP apps?
>>
>>Regards,
>>Viv
>
>I have run the file compare with TextPad and it says they are the same.
>I get the same results running the VB executable as a standalone.

I'm not familiar with TextPad so don't know whether its compare function is sufficiently rigorous but if, in otherwise identical environments, one file works and the other does not then logic dictates they are *not* the same.
Does VFP see both strings as identical if you FILETOSTR() both files?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform