|
Iain Clarke wrote: Where szName matches the server name, and szMachine is (oddly enough) the machine address. For initial debugging, maybe try a raw IP address
Worth a try if the security bit does not do the trick.
Iain Clarke wrote: My bet is that you'll need the blank security descriptor bit from above.
Well what you say seems to make sense. I used NULL for the Security Attribute Pointer. I put your bit in, and will try it tomorrow on the Network. I'll let you know how I get on. BTW Does this mean that the pipe this way is also potentially accessible from the Internet?
Thanks a Lot
Bram van Kampen
|
|
|
|
|
Bram van Kampen wrote: Does this mean that the pipe this way is also potentially accessible from the Internet?
Well, in the case I was working on the pipe was on a secondary PC, accessible only from a network between it and the primary PC. But as far as the pipe is concerned, it won't care how far a packet has to come. Your issues are more to do with firewalls and routing.
That said, I wouldn't dream of using a named pipe for working over the internet - just simply because of how flaky the big bad world is. Dropped connections, lags, etc. And windows only, I'd think (for all I know, someone has done a bang up job of writing a unix clone).
Iain.
|
|
|
|
|
Iain Clarke wrote: That said, I wouldn't dream of using a named pipe for working over the internet - just simply because of how flaky the big bad world is. Dropped connections, lags, etc. And windows only, I'd think (for all I know, someone has done a bang up job of writing a unix clone).
Exactly my concern. But, as you said, this is a Firewall Issue.
Tried your suggestion, and the error moved from 'cannot open pipe' to 'cannot read pipe'. so it appears to be the right path to a solution. The confusing thing is that all works propperly if ran on a single machine.
Thanks for your help.
Bram van Kampen
|
|
|
|
|
Having said the above,tried a lot of things.I am testing on a test site with 3 computers and no internet connection, No security risks, and No security impediments on the computer of any kind I'm aware off.Everybody is now signed on as administrator, Still, Pipes do not Work! Any Ideas, or should I re-design and implement on connection level.
Kind Regards,
Bram van Kampen
|
|
|
|
|
Is there any sample project or any easy way to move data
to Outlook? Im looking for a sample project that would
transfer anything to Outlook and I could expand and customize
on that.
Please any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
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.
|
|
|
|