Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: code to walk down all a program's windows Pin
Lowell Boggs14-Nov-07 5:07
Lowell Boggs14-Nov-07 5:07 
GeneralRe: code to walk down all a program's windows Pin
Peter Weyzen14-Nov-07 18:21
Peter Weyzen14-Nov-07 18:21 
QuestionFOPEN Redirection Pin
User 42081113-Nov-07 10:20
User 42081113-Nov-07 10:20 
AnswerRe: FOPEN Redirection Pin
Chris Meech13-Nov-07 11:15
Chris Meech13-Nov-07 11:15 
GeneralRe: FOPEN Redirection Pin
User 42081113-Nov-07 12:00
User 42081113-Nov-07 12:00 
AnswerRe: FOPEN Redirection Pin
Bram van Kampen13-Nov-07 13:22
Bram van Kampen13-Nov-07 13:22 
AnswerRe: FOPEN Redirection [modified] Pin
Jude Deng13-Nov-07 15:25
Jude Deng13-Nov-07 15:25 
GeneralRe: FOPEN Redirection Pin
User 42081114-Nov-07 3:53
User 42081114-Nov-07 3:53 
@Bram: Smile | :) Believe me the idea of rewriting this pile of garbage has been bandied about for almost a year now. The major hold up, as always, is cost and time. I can spare a month or 2 to test some theories to see if I can shore up some of the minor glitches. Barring that we'd have to hire a contractor to finish the product, our own programming staff is swamped.

@deng0jun:
[1] The multiple consoles concept comes directly from: http://www.codeproject.com/cpp/MultipleConsoles.asp

[2] Getting a handle to the file uses the InjLib for .dll injection and a method similar to this gentleman's article:
http://www.codeproject.com/system/Paladin.asp

1. Program Foo runs
2. I use InjDemo.exe to insert HookApi.dll in to Foo.
3. HookApi loads MyDll.dll to overload CreateFile
4. When CreateFile is called I check the incoming name for "log.txt", when found I return a pointer to my pipe for multiple consoles.

Even if I simplify the problem and remove multiple consoles I have a problem dumping whatever data is stored by Foo to a console window. The dump happens if Foo calls flush which apparently it does for some errors (this is only an assumption based on the log sometimes containing data). After taking a second look at my problem it now seems to me that I somehow need access whatever buffer is created by WriteFile... perhaps a custom StreamBuf? Maybe what I'm trying to do is impossible... I have no idea.

modified 28-Aug-18 21:01pm.

GeneralRe: FOPEN Redirection Pin
Jude Deng2-Feb-08 14:43
Jude Deng2-Feb-08 14:43 
Questiona little help with an idea ?[modified] Pin
steve2028613-Nov-07 9:10
steve2028613-Nov-07 9:10 
AnswerRe: a little help? with an idea Pin
Maximilien13-Nov-07 9:36
Maximilien13-Nov-07 9:36 
GeneralRe: a little help? with an idea [modified] Pin
steve2028614-Nov-07 8:14
steve2028614-Nov-07 8:14 
QuestionPseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 7:32
bigdenny20013-Nov-07 7:32 
AnswerRe: PseudoRandom functions in C++ Pin
jhwurmbach13-Nov-07 7:54
jhwurmbach13-Nov-07 7:54 
AnswerRe: PseudoRandom functions in C++ Pin
Nathan Addy13-Nov-07 8:39
Nathan Addy13-Nov-07 8:39 
GeneralRe: PseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 8:59
bigdenny20013-Nov-07 8:59 
GeneralRe: PseudoRandom functions in C++ Pin
Nelek13-Nov-07 22:28
protectorNelek13-Nov-07 22:28 
AnswerRe: PseudoRandom functions in C++ Pin
cp987613-Nov-07 10:05
cp987613-Nov-07 10:05 
QuestionProblem during running multiple instance of an MFC application Pin
Chirag_kalra13-Nov-07 7:30
Chirag_kalra13-Nov-07 7:30 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Bram van Kampen13-Nov-07 13:41
Bram van Kampen13-Nov-07 13:41 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Nelek13-Nov-07 22:21
protectorNelek13-Nov-07 22:21 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Priyank Bolia25-May-08 21:39
Priyank Bolia25-May-08 21:39 
Questionidispatch concepts not understood Pin
prithaa13-Nov-07 7:05
prithaa13-Nov-07 7:05 
AnswerRe: idispatch concepts not understood Pin
led mike13-Nov-07 7:12
led mike13-Nov-07 7:12 
GeneralRe: idispatch concepts not understood Pin
Jim Crafton13-Nov-07 7:16
Jim Crafton13-Nov-07 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.