Hi. I'm considering going after an MCSD cert, but I don't know how experienced you're expected to be before you can enroll. I've had no formal training in (V)C++, but I've learned enough to be familiar with most of the language concepts and I can make a simple app using MFC and any of the...
Hi!
I know BOOL can be either TRUE or FALSE, just like the built-in bool data type, but what is the difference between the two? MFC AppWizard doesn't seem to use bool at all, favoring BOOL instead. I assume it's some sort of class or struct, but what functionality does it provide besides the...
Hi! I'm trying to write an MFC exercise program where a circle is drawn wherever the user clicks in the main frame. I've learned that the document/view way to do this is to store the circle's location in the document, and update it from the view. The problem is when I add private member...
Hi!
I'm just about to go crazy over this one. I have a DataGrid bound to an Adodc1. I need to be able to let the user change values on the grid, but since the DataGrid won't work in unbound mode, I've determined that the best way to validate the new changes is to collect the information on a...
Hi!
I need to set the list portion of a combobox to wider than the control itsself. My book tells me the API SendMessage can widen the list portion of a combo box with a call like this:
------------------------------------
SendMessage Combo1.hWnd, CB_SETDROPPEDWIDTH, 300, 0...
Hi!
I need to set the list portion of a combobox to wider than the control itsself. My book tells me the API SendMessage can widen the list portion of a combo box with a call like this:
------------------------------------
SendMessage Combo1.hWnd, CB_SETDROPPEDWIDTH, 300, 0...
Hi!
I would like to start working on some sort of simple game in VC++, but every graphics tutorial I found on the net talks about #include "graphics.h", which only works with Borland. What is the equivelant in VC++, and how do I use it? Do I have to use MFC to draw on an object, or...
Hi!
I'm having trouble making StretchBlt work as advertised. Consider the following code:
--------------------------
With frmPics.picLogo
StretchBlt picMain.hdc, 50, 50, .width, .height, .hdc, 0, 0, .width, .height, vbMergePaint
End With
--------------------------
This passes...
Hi!
I'm having trouble making StretchBlt work as advertised. Consider the following code:
--------------------------
With frmPics.picLogo
StretchBlt picMain.hdc, 50, 50, .width, .height, .hdc, 0, 0, .width, .height, vbMergePaint
End With
--------------------------
This passes...
Hi!
I'm having trouble making StretchBlt work as advertised. Consider the following code:
--------------------------
With frmPics.picLogo
StretchBlt picMain.hdc, 50, 50, .width, .height, .hdc, 0, 0, .width, .height, vbMergePaint
End With
--------------------------
This passes...
Hi!
I'm using an Ado data control to connect to a multi-relational database. I am not enforcing cascade update/delete. If the user tries to delete a record that contains children, the Ado (or DB engine?) generates an error. I've trapped this error and given the user a descriptive message...
Hi,
Is it possible in VB to pass a control array reference as an argument to a procedure? For example, to pass a standard array you would do this:
Sub Command1_Click()
Dim MyArr(9) as Integer
MyArr(7) = 10
ShowElement MyArr
End Sub
Sub ShowElement(Arr() as Integer)
MsgBox Arr(7)...
Hello!
I have an Access97 database and a VB 6.0 front end, connected via ADO. I have about 20 read/write users (only about 6 are actually updating at any given time), and about 30 read-only users. Read/write access is handled in code, not in the connection, so essentially I have 50 read/write...
Hello.
I have a ListBox that displays information from my database, and I'm simulating columns using tabs between values. All the values are retrieved directly from fields in the database save one, which is a calculation of two other values (a percentage ratio). I can easily sort the other...
Hi.
My main form has 50 or so textboxes (txtFields()), each bound to an Adodc. One of the fields is LastUpdatedBy which is to show the NT user name of the last person to make a change to any of the information. Naturally, I thought that txtFields(index).DataChanged = True if the user made a...
Hello!
I'm a self-taught VB database programmer, and I'm looking to improve my skills and qualifications by creating an internet database, similar to Monster.com or Amazon.com. I want users to have full search capabilities, and depending on each user's access level, I'd like them to have...
Hello!
I'm working on developing a Space Defender game in VB, where the player's main ship is represented by a class module. This is mostly to learn more about classes and creating an object that is as stand-alone as possible. I realize that the object should "encapsulate" all the...
Hi. I have a situation where users typically add a new parent record, and then associated child records immediately afterward. I've found that if I don't refresh the main (parent) recordset, I get the above error when they try to add a child record. So I created a public sub in the main form...
Hi. I have a situation where users typically add a new parent record, and then associated child records immediately afterward. I've found that if I don't refresh the main (parent) recordset, I get the above error when they try to add a child record. So I created a public sub in the main form...
Hi. I have a situation where users typically add a new parent record, and then associated child records immediately afterward. I've found that if I don't refresh the main (parent) recordset, I get the above error when they try to add a child record. So I created a public sub in the main form...
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.