Yeah i can use that function, but there must be an explanation why this is happening, and my current working directory isnt my desktop so it wont be that.. there must be some thing else i did wrong just dont know wht it is...
I am trying to change an ISAPI Extension so it uses Thread Pooling.
I've downloaded the sample from Microsoft and able to get it running.
The problem I am encountering has to do with the AfxBeginThread
function and a Runtime Class. I don't know how to let the class know
how to pass any parameters through the UI thread.
The AfxBeginThread function has a parameter called dwCreateFlags. Set the value of that parameter to CREATE_SUSPENDED, set any of the threads member variables to whatever you want then call CWinThread::ResumeThread to run the thread.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
can anyone tell me if it is possible to automate MS Access so that I can perform the following tasks from my C++ application:
Create a new database
Add a table
Add columns to table
Add data to table
I've done similar things for Excel and PowerPoint but can't find any examples on how to do this for Access (I've got as far as getting Access to open, but that is it).
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?
Last Visit: 31-Dec-99 19:00 Last Update: 7-Mar-21 17:46