unfortunately the program we are coding has a lot of legacy code and libraries in it which clash with a lot of new libraries. We have found that we can use the automation features in Office which don't cause these clashes.
I've already added the type library however I'm not sure the order in which I create the various objects and also what (if any) parameters I need to pass into their constructors. If you could give me any guidance on this it would be most helpfull.
Unless you are needing something specific from Access (e.g., form, query, report), I think it would be easier to use DAO. Look in the C:\Program Files\Common Files\Microsoft Shared\DAO folder for the type library. Unfortunately the only example I could put together is in VB.
It's helpful to use VB's Object Browser and the C:\Program Files\Common Files\Microsoft Office\Office\1033\Acmain9.chm help file for figuring out classes and objects from the type library.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
I'm trying to load a .db file as a custom resource and then write it out at runtime. I can load the .db and get a resource id and it builds fine, but can't figure out how to write the file out at runtime.
Is this even possbible?
What do I have to do to maintain the layout of a Form when I maximize the window?
Is it possible to desig the GUI working in a window that is 50% smaller than the final GUI and configure the window to maximize when executing such that all the containers in the form maintain its position in relation to the borders AND resizes. (i.e. if I maximize the window from 50% to 100& I want all the containers to double in size as well)
i need your help urgently.
i am facing problem with posting a DoModal FileOpenDialog from property sheet. i will explian my problem this way.
I hava a dialog D1 derived from CDialog. in its OnInitDialog(), i created a propertysheet PS1 at run time with D1 as parent, and PS1 having WS_CHILD | WS_VISIBLE as creation styles. PS1 has 2 propertypages - PP1, PP2 - added to it. PP1 has OPEN button. On Clicking OPEN, i need to post FileOpenDialog Box. My code is as below:
Note - I use window style WS_POPUP | WS_BORDER because I need maximum size client area. I can't waste space on title bar, thick border, etc.
If I do not maximise the window, the task bar pops up just fine, but the moment the application is maximised (which I need to do), the task bar does not pop up properly. The problem only occurs under Windows XP. When I run the EXE under Win98, the task bar pops up as expected.
Statically linking a project includes all code in dll into exe file, so the dll is no more needed on target machine, how can we do same fo activex controls, ie linking or using in such a way that they are included in exe and no more need for installing/registring on target machines?
Dll are never statically linked to an exe !! Lib files are statically linked but dll never (a lib file is the same that a dll file, except that here the linkage is static and with a dll the linkage is dynamic).
So, for activeX, you cannot statically link them to your project. You need to install and register them if you want to use them on a target machine.
i already know how to communicate through th serial port but i am not able to control the CTS, RTS and DTR pins of the Com port.. please tell me how to change the status of these pins in VC++ 6 through API.
Is there a way to configure the way VC generates the #include statements?
Keep/Generate header file names case sensitive. (When using the 'Add Variable' wizard to add a member variable to one of your dialogs, the wizard will add the name of the corresponding header file but using lowercase letters)
Do not use 'Absolute' Paths. (When creating classes, it adds an absolute path to the base class header file when the base class is one of your generic classes)
Is there a way to configure this?.
Is this OS deppendent? (If yes, where to configure it?)
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard