|
Outlook has a COM interface that you can get to through its type library.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
What exactly does that mean? Any chance you have an
example of transferring some data to it?
Please, any response you can give me will be greatly
appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
_Application app;
if (app.CreateDispatch("Outlook.Application") == TRUE)
{
_NameSpace ns = app.GetNamespace("MAPI");
ns.Logon(...);
...
ns.Logoff();
} You can consult VBAOL11.chm and here for more.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
( lang: C/C++. platform: windows )
Hi, I want to do the following from my win32 app (could be mfc or whatever):
1) Call php.exe, send as command line parameter the name of a .php script to execute.
2) The console window must not show up.
3) (optional) Grab php's output.
An alternative to 3) would be executing something like "php.exe script.php > temp_output.html" and then reading temp_output.html
I've tried ShellExecute(), CreateProcess() and System(), all of which show the console window, and with none of them I've been able to capture the process' output.
Any [ hints | tutorials | code | help ] would be appreciated!
Thanks!
|
|
|
|
|
SECURITY_ATTRIBUTES sa = {sizeof(sa),NULL,TRUE};
HANDLE hProcOut = CreateFile("proc.out",GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ,&sa,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
.
.
.
STARTUPINFO si;
ZeroMemory((PVOID)&si,sizeof(si));
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
si.wShowWindow = SW_HIDE;
si.hStdOutput = hProcOut;
si.hStdError = hProcOut;
PROCESS_INFORMATION pi;
if (CreateProcess(0,cmd,0,0,TRUE,
CREATE_DEFAULT_ERROR_MODE,0,default_dir,&si,&pi)) {
DWORD ExitCode;
float elpsed_crnt=0;
while (1) {
Sleep(250);
GetExitCodeProcess(pi.hProcess,&ExitCode);
if (bCancel || (ExitCode != STILL_ACTIVE)) {
if (bCancel) TerminateProcess(pi.hProcess,0);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
break;
}
}
}
|
|
|
|
|
Probably should add that whole thing is running in a seperate thread from the UI. (CreateThread, etc.)
|
|
|
|
|
I think CFrameWndEx is cool, and try to use it in one project that
doesn't need to be SDI.
I have tried to derive a class from it, but that doesn't work.
CreateEx() always fails.
Any suggestions ?
|
|
|
|
|
lingol wrote: that
doesn't need to be SDI.
You need to explain that. It doesn't need to have data that the view renders in any way? Then what does the view render?
led mike
|
|
|
|
|
I'm writing a simple IM software as a network homework.
All it needs are a box to send, a box to receive and a list of friends.
It will be better if user can resize the two boxs by moving the "bar" between them,
and hide/show the friend list easily.
It seems that only CFrameWndEx can do the job, and there's no reason why I should
make it SDI.
Maybe I take the SDI framework wrong?
<div class="ForumMod">modified on Tuesday, November 18, 2008 8:08 PM</div>
|
|
|
|
|
lingol wrote: Maybe I take the SDI framework wrong?
Seems so. The Document/View framework is sort of a kluged MVC implementation, but can be viewed as such none the less. If you don't need the user to operate with files then don't implement those features. That does not mean that you can't use the design of the Document-View where the Document is like the Model in Model-View-Controller.
led mike
|
|
|
|
|
So that's why MS doesn't provide "CDialogEx"?
|
|
|
|
|
|
I was trying to determine the most used developer library for skinning an application - not skinning the entire desktop, just one specific application you're developing to give it a distinctive look.
The one thing I found is from a company called CodeJock. The demo DLL you download from them is over 10 mgs, which seems to be overkill to me. Also its purely an MFC object framework thing, and you have to be using MFC (and also they're charging like they have a monopoly which isn't a good sign.)
There is an article on CodeProject regarding something called Uskin, which is not bad. ITs a flat api and skins your entire application with one call - USkinInit. Like I said, its pretty good, its just not quite there from a production standpoint.
So I was wondering what everyone else is using to do this sort of thing.
I've discovered there are two approaches to all this - One uses the XP native msstyles file and the other use WindowBlinds prorprietary approach. As far as I know WindowBlinds just skins your entire desktop, though.
|
|
|
|
|
Maybe you could use placement new. Wait that was a C++ question yes?
led mike
|
|
|
|
|
I thought this was ostensibly a forum for C++ developers - not just for people attempting to learn C++ from abusive instructors.
|
|
|
|
|
Force Code wrote: I thought this was ostensibly a forum for C++ developers
No, it's for C/C++, MFC, Visual C++, questions. You don't post a SQL question here just because you are embedding it in C++ code, right?
led mike
|
|
|
|
|
Now now, be nice. Was perfectly legit question.
I assume [*] there was background to your response I don't want to know about lest I get peeved too?
Iain.
[*] See CPallini's sig.
|
|
|
|
|
Iain Clarke wrote: Now now, be nice.
I thought I was being nice.
Iain Clarke wrote: Was perfectly legit question.
I suppose, sort of it is. Could easily been asked in the General Discussions forum though, nothing pertaining to C/C++ really.
led mike
|
|
|
|
|
Just searched the message archives (which I hadn't discovered previously - only the article archives)
Found the following (in the Visual C++/MFC section):
http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2187526[^]
Hello,
Anybody knows some skin tool to became my APP skinable?
I found SkinCrafter and AppFace? Anybody knows these?
Thanks,
Cris.
|
|
|
|
|
Me think all skin libraries are never good enough for what you intend to do. (not that I have a large experience with that)
anyway, I have skins, skins are the bane of UI development.
Keep it simple.
|
|
|
|
|
Maximilien wrote: Me think all skin libraries are never good enough for what you intend to do. (not that I have a large experience with that)
anyway, I have skins, skins are the bane of UI development.
Point taken.
However, the browser I'm using now, SlimBrowser, is skinned. In fact so is Avant Browser now that I think of it. If you downloaded a browser that wasn't, you would think "Amateur."
|
|
|
|
|
Maximilien wrote: Keep it simple.
A real gem that one eh?
led mike
|
|
|
|
|
Maximilien wrote: Me think all skin libraries are never good enough for what you intend to do. (not that I have a large experience with that)
anyway, I have skins, skins are the bane of UI development.
Keep it simple.
You may be right.
USkin has fewer glitches than AppFace has.
|
|
|
|
|
I just tried AppFace and it works thus far. Only its using some skin file type called .urf I'm not familiar with. Hopefully it understands .msstyles as well
|
|
|
|
|
Hi all,
I'm trying to use the ccheckbox class provided with the newcontrols example (of mfc feature pack) in order to add a check box control to my dockable pane.
So I'm able to insert the check box control in my menu but I'm not able to retrieve the check event. I retrieve the other event of the menu (such as CMFCPropertyGridColorProperty control or CMFCPropertyGridProperty control) with the CMFCPropertyGridCtrl::OnPropertyChanged method. Please coulde anyone help me It's since 4 day that I'm trying to resolve that simple task?
|
|
|
|