|
I know you already have answers...
But I'd look at this article, as I had a similar problem:
Enumerate your leaf classes[^]
This lets each class (inheriting froma common ancestor) register themselves, so it's all self contained. No adding a class in Pl;ace A, and not adding it to a list in place B.
Used it a few times myself.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
2 questions of rich edit control:
1. how to get last visible line - ref to function GetFirstVisibleLine(), or count of visible lines.
2. how to get line height of last line?
|
|
|
|
|
1. You could try using CharFromPos[^] specifying the bottom-left corner of the edit and LineFromChar[^] to get the line index of the character it returned, if any. Maybe it would work, maybeit would not...
2. No idea just yet, sorry...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
i need C code of Vernam Cipher Algorithm for my project work.plz help me .
|
|
|
|
|
In your reposts, you're loosing words...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
From what I can understand from a quick google, it looks like it's not a hard(*) thing to do.
-input XOR (randomly generated)mask = result.
-send result to receiver.
-result XOR mask = input.
-trash the mask.
(*) the difficulty would be to generate the random mask since generating truly random values is a very hard process.
What have you done already? did you do your homework and look at what this is ?
Did you try a few things ? do you have any workable code ?
This signature was proudly tested on animals.
|
|
|
|
|
I think he only wantz da codez.
|
|
|
|
|
I need C or C++ code of Vernam Cipher Algorithm for my project work.plz help me soon.
|
|
|
|
|
I need C or C++ code of Vernam Cipher Algorithm for my project work.plz help me soon.
|
|
|
|
|
My project compromises of a set of different process talking to each other. They communicate via file mapped shared memory. I ran into a problem when I was doing a symantec antivirus liveupdate when the different processes of our application starts behaving erratically.
I had to reboot to recover and then excluded the directory of my application and the shared page file from antivirus scanning.
Now all the processes of my application for some strange reason began crashing everyday midnight while accessing the shared memory. I managed to find that when some of these processes were configured to not use the shared memory, those processes didnt terminate.
Can anyone shed light on why this could be happening - esp why application went for a toss during the liveupdate. Is there any way/tools to debug crashes in the file mapped shared memory files??
Appreciate your help.
|
|
|
|
|
Hi avijaya,
Is this behavior only occuring on Windows XP? Also... did you supply a SECURITY_ATTRIBUTES Structure[^] when creating the mapping?
Best Wishes,
-David Delaune
|
|
|
|
|
Hi David,
I did provide SECURITY ATTRIBUTES when I did CreateFile and CreateFileMapping. I gave a security descriptor that allowed anyone to access the object.
This problem is seen on Windows 2k3 Server.
-avijaya.
|
|
|
|
|
Friends,
void CAfxDumpStackDlg::Test()
{
AfxDumpStack( AFX_STACK_DUMP_TARGET_ODS );
}
AfxDumpStack API call in the above code block dumps only the following information.
"=== begin AfxDumpStack output ===
Loaded 'C:\WINDOWS\system32\dbghelp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
7C90EB94: WINDOWS\system32\ntdll.dll! KiFastSystemCallRet
59A830F0: WINDOWS\system32\DBGHELP.dll! DbgHelpCreateUserDump + 331 bytes
=== end AfxDumpStack() output ==="
What should I do more to get the detailed dump?
Thanks in advance,
Krishnakumar
|
|
|
|
|
|
|
Hi,
In the strCommand I am having 2MB of Data and when i am trying to split with the new line it was throwing error.(to loop through all the data)
But it was working for minminum (ie 50 KB of datas like 0's and 1's).
How to over come this error? Very urgent.. Below is the code...
CString strCommand; // Holds 2MB of datas like 0's and 1's...
System::String* strDataReceived = "";
strDataReceived = strCommand;
__wchar_t split __gc[] = new __wchar_t __gc[1];
split [0] = '\n';
String *strSplitCommand[] = strDataReceived->Trim()->Split (split);
Please help..
Reg,
Subbu
|
|
|
|
|
spalanivel wrote: Very urgent..
It is so urgent to justify the cross-post [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
spalanivel wrote: ...when i am trying to split with the new line it was throwing error.
My Magic 8-Ball is broken. What is the error that is being "thrown?"
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Try giving a little more detail about the error message - I just tried your code (reading > 2MB of data from a file) and it worked fine?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for your reply..
Actually while executing the Split statement we are storing the values String Array and it doesn't hold that much size to handle.
It will automatically goes to catch and print the error message.
After some processing the Size will be increased and it holds now 40 MB of datas and store it in string array. Thus it makes problem.
Thanks,
Subbu
|
|
|
|
|
As you're using C++.NET classes, the array is dynamically sized, so there should be no issues...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi everybody !
Can you help me on finding the equivalant of these functions in MFC? Many thanks in advance.
bi.bmiHeader.biSize = sizeof(bi.bmiHeader);<br />
bi.bmiHeader.biWidth = dstX;<br />
bi.bmiHeader.biHeight = dstY;<br />
bi.bmiHeader.biPlanes = 1;<br />
bi.bmiHeader.biBitCount = 32;<br />
bi.bmiHeader.biCompression = BI_RGB;<br />
bi.bmiHeader.biSizeImage = dstX * 4 * dstY;<br />
bi.bmiHeader.biClrUsed = 0;<br />
bi.bmiHeader.biClrImportant = 0;<br />
SetDIBits(hdcDst, hBmpDst, 0, dstY, dst, &bi, DIB_RGB_COLORS);
bi.bmiHeader.biSize = sizeof(bi.bmiHeader);<br />
bi.bmiHeader.biWidth = nx;<br />
bi.bmiHeader.biHeight = - ny;<br />
bi.bmiHeader.biPlanes = 1;<br />
bi.bmiHeader.biBitCount = 32;<br />
bi.bmiHeader.biCompression = BI_RGB;<br />
bi.bmiHeader.biSizeImage = nx * 4 * ny;<br />
bi.bmiHeader.biClrUsed = 0;<br />
bi.bmiHeader.biClrImportant = 0;<br />
<br />
buf = (pBGR) malloc(nx * 4 * ny);<br />
bRes = GetDIBits(cdcSrc, cBmpSrc, 0, ny, buf, &bi, DIB_RGB_COLORS);
|
|
|
|
|
You know, Win32 API functions are available to MFC code...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
knowing that you know makes me happy
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|