|
With closed I mean closed-source. I don't have the source.
The window itselve is open, of course.
Sorry, it was not clear.
|
|
|
|
|
Like I said before, get a handle to the (edit) control (using FindWindow() ), then use GetWindowText() to get its contents.
"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 seem no different between them, dialogbar is just no-title dialog.
am I right? why do I need the dialogbar other than dialog?
|
|
|
|
|
here is[^] what a dialog bar is made for...
|
|
|
|
|
in MFC, I know doc and view is created in ProcessShellCommand with CSingleDocTemplate.
but I wanna get current view pointer so that I can hide it by ShowWindow(getView(), SW_HIDE);
|
|
|
|
|
First,
pos = AfxGetApp()->GetFirstDocTemplatePosition();
ASSERT(pos);
pTemplate=AfxGetApp()->GetNextDocTemplate(pos);
POSITION docpos=pTemplate->GetFirstDocPosition( );
get the first DocTemplate. Then you can enumerate your views.
CDocument *pDocument=NULL;
while (docpos)
{
pDocument = pTemplate->GetNextDoc(docpos);
ASSERT(pDocument);
POSITION viewpos = pDocument->GetFirstViewPosition();
while (viewpos != NULL)
{
...
}
}
Hope this helps,
Hardy.
|
|
|
|
|
POSITION pos = GetFirstViewPosition();
while (pos != NULL)
{
CView* pView = GetNextView(pos);
pView->UpdateWindow();
}
if GetFirstViewPosition return a first pos.then GetNextView will return second pos view pointer. Am I right?
|
|
|
|
|
What's the best way to pass the large char array (could be up to 3000 characters long) to dll. I've tried to declare the char variable in main program,like this (char longArray[3000]) but it seems to cause eAccessViolation error during runtime.
I need to pass the large char array to my customized dll for data processing. I have already created about 12 different data processing algorthms but will have the same parameters.
Question me if you don't understand what I'm trying to explain. thanks!
|
|
|
|
|
Did you try to use the debugger to see where it crashes ?
|
|
|
|
|
|
Project Line Counter[^]...
if you want to advertise, post here[^], otherwise, write an article and provide the source.
ps: there not even some doc about it
|
|
|
|
|
.. and I am still search wth was that program installed...
|
|
|
|
|
sorry ?
i don't understood you sir...
may you please rephrase ?
|
|
|
|
|
I could understand myself either ... Sorry getting late here.
What I meant was, after installing that program, I couldn't find out in which folder was the program was being installed. No short cut in the Start->Program, nothing in the program files folder, nada.
|
|
|
|
|
you did download the zip ? lol
when i see such applications on the net with no description, no screenshots, no security that the program is secure, i don't even take the risk at installing it.
moreover, Project LineCounter is much more accurate at line counting as it counts the number of actual statements !!!!
|
|
|
|
|
*shrugs* I was bored.
Maybe it finally makes me reinstall the whole OS, it's way overdue already.
|
|
|
|
|
|
If you want to advertise, pay for it.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi
Im losing my mind with this driver I'm developing, is a driver to hook ntCreateFile, I need to compare a file that is being opened with a string, and decide if the operation can continue or not.
The driver is based in Anton Bassov article, Native API Hooking.
But, when I compare all I get is a blue screen.
When I remove the comparation, everything is working fine.
I tought that my problem is that RtlEqualUnicodeString just can be used at IRQL PASSIVE LEVEL, but Anton in is article about Native API hooking says that it runs at Passive Level.
So... the other problem could be the UNICODE_STRING struct, but I think that the initialization is ok.
Here is the code, do you see something wrong?
Any suggestion is welcome, thanks
POBJECT_ATTRIBUTES pOA = NULL;
pOA = arg[3];
PUNICODE_STRING pUStr = NULL;
WCHAR buf[256] = L"\\??\\C:\\prot\\testFiles\\test.txt\0";
RtlInitUnicodeString(pUStr, buf);
DbgPrint("Checking\r\n");
if(RtlEqualUnicodeString(pUStr,(pOA->ObjectName), 0)) {
DbgPrint("blocking\r\n");
return 0;
}
DbgPrint("Continue\r\n");
|
|
|
|
|
|
Hi,
I m facing a strange problem.
I have the following code
myclass
{
set<unsigned> m_uniqueCalUIDs;
public:
int AddPoint(unsigned);
...
};
int AddPoint(unsigned uid)
{
try
{
if (m_uniqueCalUIDs.size() &&
m_uniqueCalUIDs.find(pCal->GetUID()) == m_uniqueCalUIDs.end() &&
m_nMode != MM_LINE)
return -1;
m_uniqueCalUIDs.insert(uid);
...
return 0;
}
catch(...)
{
AfxMessageBox("Unknown Exception");
return -1;
}
}
This class is defined in a DLL (and exported ofcourse) and I am instantiating it in my exe. I call this function from exe too. This code is working fine in the debug mode but it is throwing exception in release mode.
I tried to figure out why is it doing that
I have another class too in the dll that is using set and that is working fine
so can anybody help
|
|
|
|
|
Farhat Aisha wrote: _uniqueCalUIDs.find(pCal->GetUID())
what is pCal?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
This is another class pointer and i have already check it before entering the function. It is not null. And i have also replaced with with a constant too like
uniqueCalUIDs.insert((unsigned)11);
but it is still throwing the exception
|
|
|
|
|
and the exception is... ?
where does it happen also ?
|
|
|
|
|
Actually it is throwing the exception on that line. I ccouldn;t get the exception type
I caught it with catch(...)
But i have finally get around with this problem when i changed my variable
from set <unsigned> to set<int>
and type-cast the argument i am passing to it
if (m_uniqueCalUIDs.size() &&
m_uniqueCalUIDs.find((int)pCal->GetUID()) == m_uniqueCalUIDs.end() &&
m_nMode != MM_LINE)
return -1;
m_uniqueCalUIDs.insert((int)pCal->GetUID());
But this is really wierd to me. Any idea why is it behaving like that?
-- modified at 9:01 Monday 13th March, 2006
|
|
|
|