Search Results - VBForums

Search:

Type: Posts; User: JA12

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: How to access Module items in a DLL.

    OK, thanks for the help. All the errors I was getting suggested otherwise!

    I've got it (sort of) working now, at least it's compiling...
  2. Re: How to access Module items in a DLL.

    I've done as you suggested, but I'm still getting the error:

    Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of...
  3. [RESOLVED] How to access Module items in a DLL.

    I'm having to convert an OLD VB6 application to VB.NET.

    There are bits of the VB6 stuff that will not convert and what I'm trying to do is create a DLL that can do those bits and return a Type...
  4. Re: Returning an Object from a UDT in a DLL, getting "Only user-defined types..." err

    That's VB.NET code. Very nice, but won't work in VB6...
  5. Re: Returning an Object from a UDT in a DLL, getting "Only user-defined types..." err

    I tried BinaryReader and a couple of other things.

    The 2 main problems I had with BinaryReader refused to cooperate, although it appears a little more flexible than FileOpen which eventually...
  6. Re: Returning an Object from a UDT in a DLL, getting "Only user-defined types..." err

    Yes, I know that would work, but I'm trying to get the ReturnObject to be any one of over 50 UDT's.

    I do not want to define a ReturnObject for each of the UDTs (If I don't absolutely HAVE to) that...
  7. Returning an Object from a UDT in a DLL, getting "Only user-defined types..." error

    I'm trying to create a DLL in VB6 to do the bits that are proving next to impossible to replicate in VB.NET

    I have a whole raft of UDTs that, in VB6 were PUT into a Binary File. Very simple to do...
  8. Replies
    9
    Views
    3,660

    Re: .Textmatrix equivalent for .Net

    There was no resolution, and I came across it searching for something else, so I added the info...
  9. Replies
    9
    Views
    3,660

    Re: .Textmatrix equivalent for .Net

    In AxMSFlexGrid pretty much all the Properties from MSFlexGrid are now Methods.

    set_TextMatrix(row,col,value)
    get_TextMatrix(row,col)
    set_ColWidth(row,value)
    get_ColWidth(row)...
  10. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    I have the "Microsoft DAO 3.6 Object Library" loaded. This project works on all other machines in the office, just not on mine. I'm trying to figure out why. I don't have MS Office installed (not...
  11. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    Yes I know, but unfortunately I can't completely re-engineer this massive legacy system which uses DAO:mad:

    I've solved my problem with SP6 by adding the two registry entries that are missing...
  12. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    The sysWOW64 pretty much gives it away that I'm installing 32bit on a 64bit OS.

    The Data Access option is an "essential" part of the install, you can't disable it. Do you have to modify an ini...
  13. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    What registry entry does SP6 look for to let it know that VS6 is installed on the machine. If I knew that, I could manually create that entry, and cure the problem.
  14. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    That link is to the VS-SP6, and has exactly the same error as before...

    I tried downloading the VB6 runtime SP6, but that doesn't fix the problem and doesn't contain the DAO/JET dll's I need.
  15. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    I can install VS6.0, but I can't install VS-SP6, that's where the problem is. I need the SP6 updates to correct a problem with DAO accessing MDB databases with VBA functions embedded in the SQL.
    ...
  16. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    That combination has already been installed on 5 Windows 8 machines and mine, but it's just mine that has the problem...

    I think the main thing is that I installed Visual Studio 12.0 Express...
  17. Re: Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0....

    OK, so how did you do it?
  18. Windows 8, VS 6.0, SP6.0 Install fails with "did not detect Visual Studio 6.0...."

    "Because Setup did not detect any Visual Studio 6.0 products on your system, the service pack will not be installed."

    I'm trying to install VS6.0 and VSSP6 on a new machine.

    I had installed...
  19. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    The collection editor gives the error "" when you click on the Add button. So you obviously have to tell it which editor to use.

    112737

    And no, this definitely has to be done at Run time, and...
  20. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    I've given up trying to add "New" settings to the config file, I'm now going down the route of having a single Setting "Folders" and this is a StringCollection.

    This works pretty well as I just...
  21. Replies
    9
    Views
    688

    Re: Error creating window handle

    That new form business just make things worse. Nothing was loaded, all the forms load then vanish leaving an empty MDI container. The way I had it was better, even with the dirty workaround.
  22. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    OK, thanks for that. I'm a VB6 programmer, converting to VB.NET and I'm used to INI files but I'm trying to do this properly.

    If I don't get this working soon, I'm going back to using an INI...
  23. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    OK, the config file it seems to be using is the


    {app name}.exe.config

    in the debug folder


    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
  24. Thread: Mdi

    by JA12
    Replies
    4
    Views
    330

    VS 2012 Re: Mdi

    Private Sub ExportToolStripButton_Click(sender As Object, e As EventArgs) Handles ExportToolStripButton.Click
    LoadFormAndRefresh(frmMain)
    End Sub

    Public Sub...
  25. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    There is no such file as {app name}.user.config anywhere in the C:\ drive. There are several .config files, but they are all under the

    C:\Users\usr\Documents\Visual Studio...
  26. Thread: Mdi

    by JA12
    Replies
    4
    Views
    330

    VS 2012 Re: Mdi

    Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Try
    If Not modGlobals.gblLogin.LoginSucceeded Then Me.Close()
    modGlobals.gCurrentForm...
  27. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    Because these are dynamic settings, the user can edit and add to them as required.

    Where can I find the user config file, because none of the config files in the project structure are being...
  28. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    OK, I've tested it, but although the code doesn't error, it also doesn't appear to do anything at all.

    The new Setting is not in any of the .config files change, the Project Settings or in...
  29. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    It's not really the existing settings I'm having a problem with, it's the Adding of new ones...

    I'm currently testing adapted code from your example


    Dim config As...
  30. Thread: Mdi

    by JA12
    Replies
    4
    Views
    330

    VS 2012 Mdi

    I have another "MDI" problem.

    This is the sequence of instructions.

    1) Load MDI form
    2) Load Login form
    3) Log in, enable the MDI functionality only available after login
    4) Load initial...
  31. Replies
    9
    Views
    688

    Re: Error creating window handle

    I couldn't find an InnerException, but the following (very dirty) bit of code works...


    Try
    frmAdmin.Show()
    Catch ex As Exception
    frmAdmin.Show()
    ...
  32. Replies
    16
    Views
    795

    Re: App.Config and adding new values

    They are all User-scoped settings as they are pretty much all modifiable at runtime.

    I'm beginning to think that I'm going to have to XML edit the User App.config file, and let the User know that...
  33. Replies
    16
    Views
    795

    App.Config and adding new values

    I've got to the stage where I can manipulate most of the User Settings in my Appl.Config.

    Right now I'm having a problem with adding New settings.

    I tried


    My.Settings("Setting ") = "New...
  34. Re: [RESOLVED] Managing ListView Columns (with Checkboxes)

    GetItemChecked: Yes I found that, once you told me about the SetItemChecked...
  35. Re: Managing ListView Columns (with Checkboxes)

    Thanks for that, that worked.

    Not obvious, but I'm glad it's there!
  36. Re: Managing ListView Columns (with Checkboxes)

    I couldn't check if the item (string) is checked or not, nor could I change the Checked value when the control was a CheckedListBox


    For Each itm in CheckedListBox1.Items

    itm is a String so it...
  37. [RESOLVED] Managing ListView Columns (with Checkboxes)

    I started off using a CheckedListBox, but that didn't allow me to control the check boxes as I wished to. I read that a ListView with the CheckBox property set to True would give me more control, so...
  38. Replies
    9
    Views
    688

    Re: Error creating window handle

    These are the Exception details for the error

    Exception Details:
    HResult: -2147467259
    Message: Error creating window handle.
    String: System.ComponentModel.Win32Exception (0x80004005): Error...
  39. Replies
    9
    Views
    688

    Error creating window handle

    I'm having a problem with "Showing" one particular form.

    I have a dozen forms all are children of an MDI form.

    One particular form always fails on the first "Show" with the error "Error...
  40. Re: Trouble with As New VBArray(Of String)(1, 100)

    OK, not exactly what I wanted, but this works:


    Dim aFolders As Array
    aFolders = Array.CreateInstance(GetType(String), 100)

    ...
Results 1 to 40 of 48
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.