Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: slaphap

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    41,253

    Re: Run-time Error 52 Bad filename or number

    Thanks for the help rxbagain. The problem is that this will be used with other source code other than VB and have been edicted to not use activeXdlls. I think I am getting a better grasp on things...
  2. Replies
    16
    Views
    41,253

    Re: Run-time Error 52 Bad filename or number

    In the main calling code I changed the line from

    ParseBDF FName

    to

    ParseBDF StrConv(FName, vbUniCode)

    checking FName in the dll gives the correct filename for FName.
  3. Replies
    16
    Views
    41,253

    Re: Run-time Error 52 Bad filename or number

    Actually, the close FNum statement is not the culprit. I added a message box after that line to see what FName is, and it comes up ?????????. However, just before calling the dll I have teh same...
  4. Replies
    16
    Views
    41,253

    Re: Run-time Error 52 Bad filename or number

    The actuall dll code is rather long, but the calling routine is as follows

    Private Declare Sub ParseBDF Lib _
    "C:\MyDllLibrary\BDF Parser\BDFParserDLL.dll" _
    (ByVal FName As String) ',...
  5. Replies
    16
    Views
    41,253

    Run-time Error 52 Bad filename or number

    I am trying to pass a filename from and executable to a dll and I get the error listed in the title. Any thoughts on how to correct this?
  6. Re: extra spaces in string when returned from a dll

    rxbagain,

    Must have had something wrong when I tried your last suggestion of converting the string to unicode before passing to the dll. I tried it again and it seems to be working fine now. ...
  7. Re: extra spaces in string when returned from a dll

    rxbagain,

    Sorry for the long delay in replying, I have been out of the office for the last week. converiting to unicode before passing to the dll didn't work. I added a line in the code to see...
  8. Re: extra spaces in string when returned from a dll

    yes to the first question

    tFSR and tFSL are the same functions in the dll. Just making a check for this example. Here they are.

    'this function right justifies FSString into a field StrinLen...
  9. Re: extra spaces in string when returned from a dll

    ok, this works when for truncating the length, but now I no longer get the string returned. Instead, I get ?? in place of the string.
  10. Re: extra spaces in string when returned from a dll

    mind you, this is a rather simple test code

    Private Declare Function FSR Lib _
    "C:\MyDllLibrary\BDF Formatting\BDFFormatting.dll" _
    (ByRef FSString As Any, ByRef StrinLen As Integer) As...
  11. Re: extra spaces in string when returned from a dll

    no luck rxbagain
  12. Re: extra spaces in string when returned from a dll

    Thanks Pinky98.

    Is there any work around for this tha I can implement?
  13. extra spaces in string when returned from a dll

    I have a dll that takes a string and character length. It is supposed to returned the string justified based on the character length (fixed field sizes). However, when the string returns from the...
Results 1 to 13 of 13


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center