|
sataoa wrote: what should i do?
Provide more information. Which dll ? What is the exact error message ? Did you check if the required dll is present in the directory ?
|
|
|
|
|
Hi.
1.If hook a thread all windows, use SetWindowsHookEx(WH_CALLWNDPROC,...) or SetWindowsHookEx(WH_CBT,...) is better?
2.How to fix unsubclass windows(1.if hook already hooked window, like I hook CWnd windows, or when i hooked window, other hook them, like i hook a window, the CWnd hook it.)
Thanks.
|
|
|
|
|
I need to upload a file to a http server. In fact...i don't know if i need to upload it..Let me explain: I need to login to a http server, provide an username and a password to a html form (that is handled by a php script i guess) which will redirect me to a page containing a html form with a tag.
From the web users point of view..he logs in and the just hits the Upload button on the next page.
I managed to create the session and login to the website but i do not know what to do next. If anyone could point me into towards solving this i'd be forever in your debt
|
|
|
|
|
u may meet HOST professionals on this site
http://www.webhostingtalk.com/
here is VC forum, it is hard to say if people know ur question here.
A special image tool for C++ programmers, don't miss it!
The world unique Software Label Maker is here for you and me ...
A nice hyper tool for optimizing your MS html-help contents.
|
|
|
|
|
Hi,
How do i add a progress control in status bar (something we see in MS IE), on win32 platform (using win32 apis) and c++. No MFC please.
Thanks in advance,
Angel
|
|
|
|
|
See here, here, and here. Although they do not meet your "no MFC" requirement, it should be easy enough to create a "msctls_progress32" window.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks a bunch David.
But would like some help with out MFC.
|
|
|
|
|
LordsAngel wrote: But would like some help with out MFC.
Understood, but the last time I did a progress control on the status bar sans MFC was back in 1993. That code has since faded away.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
It was so simple. it was in front of me all the time. I just had to make the the progress control a child of the status bar. Simple. and specify the dimension when i create the window.
|
|
|
|
|
Hello All,
I want to send cmds to previously opened console application
for instance ,sending dir cmd to already opened cmd prompt.
I got console window handle like below ,
HWND hwnd = ::FindWindow("ConsoleWindowClass","cmd.exe");
then how to write dir cmd to console?
how to retrieve console handle for input and output ?
|
|
|
|
|
is it important that is stays visible or do you only want to get the dir command's result ?
|
|
|
|
|
not only to get cmd result , i also want to keep it visible.
|
|
|
|
|
not only to get cmd result , i also want to keep it visible.
|
|
|
|
|
I found some samples in the net,where they create their own process and create pipe.
my problem is i want to write cmd to previously created console window and i dont know how to create pipe to this console
|
|
|
|
|
Bilge Kaan,
ur post is very interesting.
may I ask:
(1)what OS do u use for the App?
(2)is the console executed (run) by your App?
acturally I want to find already opened console window also, but as I tested, the function FindWindow() doesn't work.
A special image tool for C++ programmers, don't miss it!
The world unique Software Label Maker is here for you and me ...
A nice hyper tool for optimizing your MS html-help contents.
|
|
|
|
|
1 ) I am using Win2000.
2 ) Console is not executed by my application.I want to write cmds to console created by another appli or manually started
it is working proper for me , it is want you need
HWND hwnd = ::FindWindow("ConsoleWindowClass","console_title");
|
|
|
|
|
My OS is win98 (develop PCs are using win98 for us).
I loaded a dos window, whose title is "MS-DOS Prompt"
I tested
HWND hwnd = ::FindWindow("ConsoleWindowClass","MS-DOS Prompt");
but return value (hwnd) is zero.
what is wrong?
did u test your code on win98 or other OS (your users may use different OSs)?
A special image tool for C++ programmers, don't miss it!
The world unique Software Label Maker is here for you and me ...
A nice hyper tool for optimizing your MS html-help contents.
|
|
|
|
|
Not sure if it will work, but you might try AttachConsole() , followed by one of the Writexxx() functions.
You could easily do this if your program also created the console window.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
but i can only retrieve consolewindow handle ,how I can utilize handle to attachconsole
|
|
|
|
|
Use GetWindowThreadProcessId() .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
attachconsole is only available for XP and Vista.
|
|
|
|
|
Bilge Kaan wrote: attachconsole is only available for XP and Vista.
It helps to specify those requirements up front.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I have over 2000 shortcuts distributed among tens of subdirectories. Their paths are correct but the drive they point to is off. I assumed they would resolve themselves when moving from the USB to the HD, but they haven't.
Is there a batch program that I can run that would modify the drive they point to? If not, anyone has any idea how to start to write a small utility that would accomplish such a thing?
Would really really appreciate any pointers. Thank you all.
|
|
|
|
|
For each one, use the IShellLink::GetPath() /IShellLink::SetPath() pair. Here is a very loosely-related sample.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I thought I had no choice left but to modify the binaries directly.
Thank you very much.
|
|
|
|