|
You may try checking that the window still exists or is visible (IsWindow or IsWindowVisible). If not, break out of the loop and/or exit the program.
Regards,
Alvaro
|
|
|
|
|
|
Tomasz, the yours is the best idea that I listen in all day!!!
Is true, Write your demo in Visual Basic!!!!
Cheers Tomasz!!!!
Happy Friday.
Carlos Antollini.
|
|
|
|
|
I'll need to write some documentation about aircraft autopilot controller. I need some idea about its requirment/specification.
Any idea is appreciated.
Thank you.
|
|
|
|
|
I can send you something of docuementation, with a lot of tips and templates.
If you want it , please Let me Know.
I can send you a Zip file with that information. The only problem is that the zip have 50Mb aproximidiatly.
Cheers!!!!
Carlos Antollini.
|
|
|
|
|
Can you setup a ftp or something similar? I am very interested. I can't host a ftp because I am using school's computer.
Thank you!
|
|
|
|
|
I'm, sorry I can't do that.
But I will try to send some links.I will ask to some of the Analyst of my Company if somebody Knows any site.
Regards!!!
Carlos Antollini.
|
|
|
|
|
Hello,
Does anyone know if there are command line switches for mailto: ?
For example.. If you go to start>run> and type mailto:blah@blah.com it will open your default email program and start a email message to blah@blah.com.. I’m trying to figure out if you can auto-fill the subject and contents of this email with switches. I’m not sure if this is even possible. I know it can be done through cgi etc.. but I wanted to know if it's possible to do from the start>run..
Thanks,
Rob
|
|
|
|
|
|
|
|
I have a Property Sheet that contains four instances of a Property Page - which has a RichEdit Control, PushButton (Save) and a checkbox.
Problem is, whenever any Property Page Tab is displayed, all of the text in the Richedit Control is always selected.
In the RichEdit control, I did not set NoHide. Nor do I call SetOptions() or HideSelection() within the code.
(Actually, I tried calling HideSelection() but it had no effect).
I also reset the selection by calling SetSel(0,1) at every possible place e.g. OnInitDialog(), OnSetActive().
So, is there a way to prevent the text in the control from always being Selected when the Page becomes Active?
Thanks,
Bryan.
|
|
|
|
|
For anyone who has this problem.
For some reason, when the Paint handler is entered, the RichEditControl is always set to select all of the text.
By re-setting the selection on OnPaint it will cause the text to be de-selected when displayed.
Bryan.
|
|
|
|
|
I've a C program that returns a long.
Its parameters are an string and a long.
I want to create a dll and use it in a Visual Basic Program.
|
|
|
|
|
1. Run AppWizard in VC 6.0
2. Choose New Project
3. Pick Win32 Dynamic Library.
4. Replace the sample function with your code.
5. Compile it
It's that simple
I vote pro drink
|
|
|
|
|
If you use the automatic VC tool to build wizards, how do you gain control over the next, back and finish button. I need to enable or disable them based on the data entered into my dialog boxes, but it seems like I can't find the IDs associated with every item. And an additional problem is that you don't even see these buttons in the resources on the dialogs.
|
|
|
|
|
You may consider using this.. http://www.codeproject.com/dialog/wizard2000.asp
I know it doesn't answer your question but its a good work around.
Rob
|
|
|
|
|
I'm trying to write a debugger for another program
I've written, but I'm having trouble getting OutputDebugString
messages from it. While it seems to me I'm doing everything ok,
I get garbage as the string, even though the event correctly
reports the size of the string.
DEBUG_EVENT oDebugEvent;
if (WaitForDebugEvent(&oDebugEvent, INFINITE))
{
if (oDebugEvent.dwDebugEventCode == OUTPUT_DEBUG_STRING_EVENT)
{
char strTempString[1000] = "";
if (!ReadProcessMemory((HANDLE)dwProcessHandle,
oDebugEvent.u.DebugString.lpDebugStringData,
strTempString,
oDebugEvent.u.DebugString.nDebugStringLength,
NULL))
{
printf("ReadProcessMemory() FAILED\n");
printf("ERROR NUMER: %d", GetLastError());
}
else
{
printf("%s\n", strTempString);
}
}
ContinueDebugEvent(oDebugEvent.dwProcessId,
oDebugEvent.dwThreadId,
DBG_CONTINUE);
}
The only thing I wonder about is the oDebugEvent.u.DebugString.lpDebugStringData I'm passing to
ReadProcessMemory(). In MSDN, ReadProcessMemory() needs a
"Pointer to the base address in the specified process from
which to read." Does this mean I'm not passing the right value
to it? If not, then what?
Steve The Plant
ps: as a side note, I've tried to indent the code, but it just
shows up as a chunk. Anyway to fix that?
|
|
|
|
|
Hi,
Just some stupid ideas:
- could it be a Unicode/Ansi mismatch? (DebugString.fUnicode)
- a dynamic buffer to store the result would be better, since you know the exact length of the string (otherwise you could have a buffer overrun)
As for the indent problem, use <PRE> </PRE> tags to enclose the source code.
Cheers,
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hi everyone,
As my attempt to get CSplitterWnd to work the way I want has become a long process, I finally give up... There are bugs and stuff in CSplitterWnd which I can't get around and which I no longer have the strenght to deal with.
Does anyone know of a standalone splitter class or is there anyone who can point me in the right direction for starting out on my own?
Sincerely,
/Tommy
|
|
|
|
|
have you look in the splitter section of this page ?
http://codeproject.com/splitter/
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
don't forget: the hell have also his miracle
|
|
|
|
|
Of course, but are you telling me you have found something there?!
|
|
|
|
|
I would like to create setup.exe file which would install and register my shell extension (.dll) on computer - I guess there must be specific options of install shield app to do it, but I thought of an option to do it another
way - installing - would register activeX, uninstalling would uninstall it.
|
|
|
|
|
What do you need to Know? because I saw a lot of question in a simple message.
If you need to Know how you can register a dll, is easy.
First you need to load the dll with loadlibrary
then you need to get the address of DllRegisterServer function that is into the dll that you want to register and after this you must to execute this function.
If you want to unregister the dll you need to execute the DllUnRegisterServer function that is into the dll, with the same process.
I hope to help you...
Best Regards and Happy Friday
Carlos Antollini.
|
|
|
|
|
Is it possible to change the colour of the text, and background color of a toolbar and it's buttons?
Thanks in advance,
James Bird - birdjames@bigfoot.com
|
|
|
|