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...
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...
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...
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...
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...
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...
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 =...
// 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
What happens if you change ur #include statement to this?
#include "stdio.h"
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...
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
Are you looking for the Tree View control?
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin
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
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...
...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("Route ");
int work = 66;
char *t = new...
...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...
...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...
Here ya go:
------------
Dim XS As Access.Application
XS.OpenCurrentDatabase "c:\test.mdb"
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
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...
...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("String one");
theList->AddString("String two");
HTH!
~Mike...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.