Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MikeCox

    Experts advice ADO Connection

    Here's the description for each that my book gives to help you decide - CursorTypes: adOpenKeyset. You can't see records that have been added to the recordset by other users, but updates and deletes performed by other users do affect your recordset. Most efficient if recordset is large...
  2. MikeCox

    if

    There are 2 ways to use the If statement: If x > y Then y = 0 'or If x > y Then y = 0 End If Only the second way requires an End If, because the Then keyword is followed by the end of the line. In ur code it looks like you've merged the two. You should either get rid of the End If...
  3. MikeCox

    Pset Issue?

    MouseMove is wierd like that, you can never be sure how many times Windows will call it for you. If the mouse is moved 100 pixels, it could be called anywhere between 1 and 100 times depending on the environment. What I would do is keep track of the last X and Y coordinates and draw a line to...
  4. MikeCox

    Delete and Replace Access Table in VB6?

    When you say 'linked to another table' do you mean a relationship? If so, I don't think it's possible to add/remove a relationship through code, but then again I haven't seen everything yet. You can use SQL queries to create a table, and if I hadn't left my book at home today I'd be able to...
  5. MikeCox

    msgBox

    To expand on what sunaj recommended, you shouldn't use the End statement if you have forms in memory because they won't be unloaded. What I do instead is Unload the form, and in that form's Unload event I use this code to unload any other forms that may be in memory: Form_Unload(Cancel As...
  6. MikeCox

    Pass Arguments to a Form

    Form_Load didn't run on my machine while setting CustomerID. I think it fires if you reference an intrinsic property of the form, like BackColor or Width. I've used this same technique successfully in my own projects, setting my custom properties and letting the Show method call Load when...
  7. MikeCox

    Pass Arguments to a Form

    Like any other object, you can add your own properties and methods to forms that easily solve problems like that: 'in CustForm: Private m_CustID As String Property Let CustomerID(ByVal NewCustID As String) m_CustID = NewCustID End Property Property Get CustomerID() As String CustomerID =...
  8. MikeCox

    Hello World Wont Work (((figure it out)))

    // Include files #include "stdio.h" // Aplication Initialization int main () { printf ("hello, World!\n"); return 0; } // Added this! ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  9. MikeCox

    Hello World Wont Work (((figure it out)))

    What happens if you change ur #include statement to this? #include &quot;stdio.h&quot; If it's in quotes the compiler looks in the application path directory, then the windows system directory. #include <stdio.h> tells the compiler to look in the system directory only, and maybe it's not...
  10. MikeCox

    Hello World Wont Work (((figure it out)))

    Did you make this a Win32 Console application? Can u copy/paste the exact error string you're getting? ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  11. MikeCox

    VB control t ouse windows explorer in an VB app.

    Are you looking for the Tree View control? ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  12. MikeCox

    Help Me Get Started

    There's some info in thread116-189071 that may be helpful to you also. ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  13. MikeCox

    Small Easy GUI

    Yes, nID is IDC_EDIT1 in the GetDlgItem() argument list, and you can call CDialog::OnOK() if u don't have an OK button, which will DoDataExchange() and close the dialog. You shouldn't need OnOK() unless you have member variables that need updated via DoDataExchange(), but you can use it anyway...
  14. MikeCox

    Small Easy GUI

    ...creating a YourDialog object and using its GetDlgItem member function like this: (Your app is called Enigma) ------------------------ CEnigmaDlg* Dlg; // Your dialog box instance CWnd* EditBox = Dlg->GetDlgItem(IDC_EDIT1); CString tmp(&quot;Route &quot;); int work = 66; char *t = new...
  15. MikeCox

    Small Easy GUI

    ...so don't get bit by that :) The code you use to show the dialog and get the info from the edit boxes could look something like this: CMyDialog* Dlg; if (Dlg->DoModal() == IDOK) { // get new values from the dialog here MyStrVar1 = Dlg->m_sVar1; MyStrVar2 = Dlg->m_sVar2; } You can set...
  16. MikeCox

    Small Easy GUI

    ...here too). GetDlgItem() returns a pointer to a CWnd cuz MFC controls are windows. Here's some code that gets the string from an edit box: CWnd* pMyEditBox = GetDlgItem(IDC_EDIT1); CString theText; pMyEditBox->GetWindowText(theText); GetDlgItem() only works on controls that are contained...
  17. MikeCox

    Compact and Repair Access from VB

    Here ya go: ------------ Dim XS As Access.Application XS.OpenCurrentDatabase &quot;c:\test.mdb&quot; XS.DoCmd.RunCommand (acCmdCompactDatabase) Set XS = Nothing ------------ Good luck! ~Mike Any man willing to sacrifice liberty for security deserves neither liberty nor security. -Ben Franklin
  18. MikeCox

    Compact and Repair Access from VB

    Take a look at the VB object browser (F2) for Access, that should get you going with the VB syntax. I think it'll be something like objAccess.DoCmd(acCmdCompactDatabase). Another thing you should be aware of is that all users must be logged out of the db including your VB app before it'll run...
  19. MikeCox

    Small Easy GUI

    ...to your new dialog class that will add items to the list box from the console code. In that function you can use this to add items: CListBox* theList = (CListBox*)GetDlgItem(IDC_LIST1); theList->AddString(&quot;String one&quot;); theList->AddString(&quot;String two&quot;); HTH! ~Mike...
  20. MikeCox

    RPC stub error on NT4 installation

    I think this error has to do with the version of Oleaut32.dll on the client. I was getting the same error trying to install a game I'd bought (Exile), and it was fixed when I replaced Oleaut32.dll version 3.5 with an older one (2.5 I think). You can probably test this theory by replacing it...

Part and Inventory Search

Back
Top