|
Can't you just override CFileDialog::OnFileNameOK? MFC does hooking for you - you don't need to play low-level.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Gawd, I feel like a dork !!! Arrggggg!
Sorry!
Max.
|
|
|
|
|
help with downloading from a login/pass web using php
hi, i would like to do something like that:
the website targeted use PHP to login with a username and a password.
and then, some menu is shown, (all using .php or .php3 extension for viewing pages.)
the fact is, if i do not log with my user/password within internet explorer, i can't even retrieve files i want using internet explorer.
but, even after logging in, and when i am able to download any file ending with .php3?someparam=somevalue&another=anothervalue etc...
when i use a offlinebrowser application to save all pages i want, the external application finally download a page which says i'm not logged on. although i can still download that page opening an internet explorer windows... (and setting the offline browser 'spider' to identify itself as IE doesn't solve the problem.)
so i have figured out that i need something, which will log in using a specified username/password, and then, will download all files linked from a single url. (and that need to work with either .php or .php3?x=1&pass=2 files...)
how can i do that?
|
|
|
|
|
User identity is usually maintained across a browsing session by means of cookies kept at the client side. I gues what's happening is simply that your offline browser does not keep cookies.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
My app is crashing with a First Chance exception in ExitInstance().
The bizarre part is that it crashes on a line similar to this:
CMyClass* m_pObject;
m_pObject = CMyClass::allocInstance();
if (m_pObject)
Yes, it crashes on the if statement. To add to the mystery, the assembly code looks like this:
0041B431 call dword ptr [__imp__CoUninitialize@0 (008f1db0)]
What the heck is *that* all about?
This didn't start happening until I added a DLL that uses COM to communicate wirth DirectShow. The DLL contains calls to CoInitialize and CoUninitialize.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is it a COM object ? Maybe you've called CoUninitialise and then you're trying to access a smart pointer ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Nope, the pointer in question is about as far from the COM stuff as it can get.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Can you put the breakpoint and check what's in m_pObject? Is it a valid pointer?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
It is a valid pointer (not NULL, and not 0Xcdcdcdcd).
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well, in such case it's best to 'Rebuild All', but I'm sure you've already done this
Is this a debug version without any optimizations?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Yeah...
Wierd problem, eh?
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote:
Wierd problem, eh?
It is. All you can do now is to step into disassembly at the beginning of the function and proceed instruction by instruction
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
I read somewhere you shouldn't use CoInitialize with either MFC or dll's, can't remember which. Try using AfxOleInit()
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Hi there does anybody now how i can make a text string in a label scroll from left to right and vice versa?????
Please someone lend a hand
ThankS!!!
The meek shall inherit the earth.....but they wont get the ball...
|
|
|
|
|
I'm sure there are controls on CP for that, but basically you need to set up a timer and move the text when the timer goes off.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
I want to add debug information to my release build. The obvious thing to do is enable debug info in my link. However, instead of getting just a few 100 bytes added to my DLL for the reference to the PDB, I am getting 20-30k. This is contrary to what the MS minidump article states.
So obviously I am doing something wrong. All I want to do is create a PDB file with the basic symbols contained in the DLL much like MS does with their symbol files.
Anybody have any clues?
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Can you have a look at your .dll with dumpbin? You'll be able to check which section actually grows.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
oooh, good idea. Will look at that.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Just FYI, "Hello World" console app on my VC6 SP5 gets from 40K to 44K after enabling debug info in release configuration.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Hi,
Here is my code:
In StdAfx.h:
struct LOCK_TABLE
{
CWinThread* CurrentThread;
int Lock;
std::vector<WAITQUEUE_STRUCT> WaitQueue;
};
extern std::vector<LOCK_TABLE> LockTable;
In StdAfx.cpp:
std::vector<LOCK_TABLE> LockTable;
In my ...Dlg.cpp
LockTable.resize(NumOfDBObject);
for (int i=0; i<NumOfDBObject; i++)
{
LockTable[i].CurrentThread = NULL;
LockTable[i].Lock = 0;
LockTable[i].WaitQueue.resize(1);
}
Why I get this error message??????
"error C2039: 'Lock' : is not a member of 'LOCK_TABLE'"
What happened???????????????????????????????????
|
|
|
|
|
Try Project -> Rebuild all. It's kind of magical sometimes.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Oh.........yes....
thanks.......hahahahaha
|
|
|
|
|
Hi,
I have a question about:
When using socket, threads (clients), each send a buffer to the server (another thread), the server accepts the socket and everything is fine. But, do those threads lineup to access the server??
In my case, it works absolutely fine when just a single client (one thread) deals with the server. But, problem occurs with more than one client. It seems like they do not lineup and execute in a strange sequence. For example, when there are 2 clients trying to send multiple buffers to the server, it executes like they are in strange sequence. As the result, the last few returns (supposes to be returns) from the server aren't really sent from server.
Can anyone help me??
Thank you!
|
|
|
|
|
You are right, they line up, because only one thread is there to process requests.
Usually, you use one thread to accept() incoming requests, but dispatches it to another thread to respond, giving it the socket handle returned by accept() . This allow the clients requests to be processed simultaneously (at least it looks like).
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|