|
Don't you just sent the menu to NULL to make it go away?
Will be a little bit fiddly, but early in CMainFrame::OnCreate, just call SetMenu(NULL)...
MSDN wrote: BOOL CWnd::SetMenu( CMenu* pMenu );
Identifies the new menu. If this parameter is NULL, the current menu is removed.
So:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (baseCMainFrame::OnCreate(lpCreateStruct) == -1)
return -1;
SetMenu (NULL);
...
return 0;
}
Just had another thought... Could you just remove the menu resource from your resources?
None of this is tested, and I assume MFC hasn't changed fundamentally from VC6 (which is a fairly safe assumption)
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Thank you sir,
It's working fine.
If i do SetMenu (NULL); it works. But if you delete Menubar resource from resources, it give's an error.
|
|
|
|
|
I did have that suspicion, which is why it wasn't the first thought.
Glad to hear you got the answer you wanted!
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
In my VC++ project floating point division by zero operations (and overflow/underflow etc.) used to generate 1.#INF000000000000, NaN etc.
Recently for some reason the same operations create an error message:
Unhandled exception at 0x0341f550 in xevi34_2.exe: 0xC000008E: Floating-point division by zero.
Does someone have an idea why this could happen? I am using VCC Studio v8 (2005).
Interesting: If I create a new project and try the division by zero there it still gives back the 1.#INF000000000000 value.
Thanks!
sor73naf
|
|
|
|
|
Maybe you've enabled the floating point exceptions option (in Project -> Project Properties -> Configuration settings -> C/C++ -> Code generation, option "Enable floating point exceptions")?
|
|
|
|
|
Hi Dominik. Thanks for your quick suggestion. Unfortunately, no, this option is not enabled. Any other ideas?
Thanks, sor73naf
|
|
|
|
|
First question:
The INTERNET_CACHE_ENTRY_INFO has a member LPBYTE lpHeaderInfo pointing to a buffer holding the header info. Does anybody know the structure (format) of that header info ?
To me it seems that the title of the web page starts at offset 0x38 (that's what I'm interrested to know) but I'm not sure it's happening all the time under al versions of Windows and IE. That's why I would like to see some documentation about that.
Second question:
The header info holds the title using a strange coding for the characters, each character on 32 bits (4 bytes). I don't know any character/string format on 32 bits. What's the name of that kind of character/string ? How can I convert it to standard unicode (on 16 bits) ?
I understand I could simply copy it to another buffer and skip bits 16-31, but I'm not sure it will work with any kind of unicode characters.
I use a 64 bit Centrino processor, 64 bit Vista Ultimate, 32 bit IE7, VS2008.
modified on Monday, March 23, 2009 4:53 AM
|
|
|
|
|
I've got some C code that using single FILE* fp does those:
FILE* fp;
fp = fopen(binfile, "rb");
fclose(fp);
fp = fopen(txtfile, "rt");
fclose(fp);
I found the SEH location by puting printf() enclosing fclose(fp)
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: fp = fopen(txtfile, "rt");
//read it with fscanf
fclose(fp);
Are you sure "txtfile" exist? And the opening is successful?
Just try this protectionalism:
fp = fopen(txtfile, "rt");
if(fp){
fclose(fp);}
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
It is already there, and the file also. How can it read it in debug mode exe and SEH the same code in Release? That is the point.
Чесноков
|
|
|
|
|
In release mode no variable is initialized by default, that could change the context between release & debug modes. Anyway can you post the full function code here?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Is it possible to access DMA from the user-mode (driver or application)? If yes, what are the APIs provided by Windows? Thanks.
Maxwell Chen
|
|
|
|
|
I can give you a 99% confident answer of NO.
You can't access IRQs, or even "real" memory, both of which you'd need for DMA.
This is the job of kernel mode drivers, and they're a whole nasty territory. I have written a couple, and debugging was a PAIN! Never did get the hang of debugging them, and it (used to be) serial only for a remote computers.
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Thanks!
Maxwell Chen
|
|
|
|
|
Holy sh*t! Just noticing the name. When are you back? I thought you were dead. May be you have the right to think the same on me. I'm back after 2 years. . So how's life?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Uhm... Pardon the intrusion... But I see a THHB's action in progress here...
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]
|
|
|
|
|
Oh come in Pallini no probs. Yeah I just figured it out he's been farting around for a while.. but see it looks like he's back to his cave again.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
The cave[^] is fun! But my cell phone was not capable enough to handle that nearly complete dark though.
Maxwell Chen
|
|
|
|
|
I come back only when I have questions ... Actually I got laid off last October, and then started my new job by the end of last year. Programming the audio stuffs is completely new to me. I've been quite busy getting myself familiar with everything of this job these days.
Maxwell Chen
|
|
|
|
|
Can you mail me your personal id? I'm sure you aren't using the old one. the h*tmail id
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I've never had any hotmail id...
Maxwell Chen
|
|
|
|
|
Sorry the yahoo. S*****r@yahoo.com
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
That's for hot girls.
Maxwell Chen
|
|
|
|
|
Sh*t! Okay anyway it looks like you are not using the id anymore and hence no girls are near you anymore. looser
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Maxwell Chen
|
|
|
|