|
There are 3 parameters:
URL,
name,
data.
As I understand, for cookie "uid" name is "uid", data is "somename", and what should I do for path and domain?
If path is "/", and domain is ".somedomain.com",
should I specify URL as "somedomain.com" or "www.somedomain.com" or somehow else?
Kosta.
|
|
|
|
|
I don't know, I'm no cookie expert. Maybe this article is of some help.
Please tell us back when you find out.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
Is it possible to move process from one window station to another?
Here is the problem. I have service, which launches GUI application before any user logs into system. So, this GUI App works within its own window station. After user logs in I want to display the window of application on his desktop. How it can be done? I cannot change the GUI application, but I can change the service, which starts this application.
Thanks,
Olley Pospyelov
|
|
|
|
|
|
This article tels how to get access to desctop of interactive user. In my case, when I start GUI application as child process there is no interactive user yet. May I somehow transfer the existing process to "winsta0"?
Olley Pospyelov
|
|
|
|
|
The article mentions the API function called SetProcessWindowStation. Did you dig deeper into docs?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Yes I did;)
May be I get it wrong. SetProcessWindowStation and SetThreadDesktop do all changes for calling process/thread, which is my service. What I need is to change window station for the process, which had been launched by my service earlier.
The sequence I want to have:
0. OS loaded
1. My service started.
2. Service launched gui_app.exe
3. User logged in.
4. User interface of gui_app.exe appears on user's desktop.
Olley Pospyelov
|
|
|
|
|
Is gui_app.exe your product? If yes, you'll have to establish a connection between service and app, and notify application about logon. Application should call SetProcessWindowStation/SetThreadDesktop to appear on users's desktop.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
No, that's the main problem. I cannot change the gui_app.exe, I own only service, which starts this application. It looks like there is no way to get what I need without reprogramming GUI application. Right?
Thank you,
Olley Pospyelov
|
|
|
|
|
Looking at the prototype of SetProcessWindowStation it seems that you have to execute it in the context of process to change. As last resort, you may try to search the MSDN for examples of injecting DLLs into all memory spaces of all processes.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Ok, Thanks for the hint.
Olley Pospyelov
|
|
|
|
|
|
Hi all,
Is it possible to create a checkbox list with icons preceding the text using WIn32 APIs only(no MFC) ?If yes can the images be updated dynamically ie is a columwise implementation of image and text be formed?
Your thoughts are highly appreciated.
TIA,
Vivek
|
|
|
|
|
Yes, it's possible. You have two choices here:
a) use listbox control and owner-draw.
b) use listview control and use state images. Much easier, because you don't actually have to draw anything. The only difficulty is that listview has to be subclassed to handle clicks on checkboxes.
You can also use LVS_EX_CHECKBOXES extended listview style to get listview with checkboxes for free. The only problem with that approach is that it doesn't work on Win95 without IE 3.0. This limitation is becoming purely theoretical these days, however.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Starting with IE3, list controls support check boxes natively. Eran Yariv's article Adding Checkboxes to a list control provides more info on the subect. If you already managed to have list controls without MFC support, adding the check boxes thing shouldn't be difficult.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi all,
Thanks for ur prompt replies.
I experimented with checkboxes by using button class for window creation and SendMessage() calls.Since I am planning to write a generic code for both WinNT and WinCE,I wanted to know whether such a thing can be done without having to write my own class implementaion for checkboxes.
What restrictions does use of MFC place when I am trying to write a generic platform idependent code?
TIA,
Vivek
|
|
|
|
|
I'm afraid I don't quite understand the first part of your post. With respect to using a unified MFC code for NT and CE platforms, it is certainly possible and the burdens imposed by MFC here are usually just reflections of the intrinsic differences between the APIs of both systems. If you plan to write code targeted for CE and NT, remember that CE is Unicode-only, which means you're forced to use that pesky _T and TCHAR macros and the versions of the C run-time library string functions as declared in <tchar.h> .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I know this is a bit of a dumb question; but does C++ have an XOR operator
If not, can anyone remember enough boolean algebra to create an XOR out of AND, OR and NOT?
I should know, I only studied this stuff about 2 years ago, but heh, why not Harness The Power Of The Web (tm)
TIA,
Pete
|
|
|
|
|
Bitwise-exlcusive OR ^
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Thanks, but I need a non-bitwise operator, i.e. && || etc.
BTW, that was an impressive response time (3 minutes)
|
|
|
|
|
^ is the bitwise XOR operator, whereas ^^ is the logical XOR operator. If you don't know the difference, feel free to ask
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
there is no logical XOR. at least not in VC6
-c
Smaller Animals Software, Inc.
You're the icing - on the cake - on the table - at my wake. Modest Mouse
|
|
|
|
|
Oh yes, there ain't such an operator! I guess I just extended the obvious analogy from & and && without thinking it too much. What strikes me is that all these years have passed without noticing before Thanks for pointing out. My apologies to all.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
i wouldn't have known, if i wasn't looking for the exact thing last night. didn't find it, of course.
-c
Smaller Animals Software, Inc.
You're the icing - on the cake - on the table - at my wake. Modest Mouse
|
|
|
|
|
I found out that while answering a question to a VB programmer. He asked about XOR in C++, and I thought: "What a stupid question!", but I found out it was not that stupid after all.
I vote pro drink
|
|
|
|