|
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
|
|
|
|
|
Hello friend,
I need to show one small "Please Wait.." image screen whenewer some back end processing is in progress.
For e.g. whenever user changing his ip adress and port, before going checking and establishing the connection, I want to show a "Please wait ..." image.But while going for connection browser gets hangs because of connection and after connection checking is completed. It goes for next page.
I am using IWebBrowser2 interface through which, I am getting pointer of browser.Then I am using IHTMLELement through which I am getting pointer of current html content.After that I am using IHTMLImageElement to add one img tag inside current html page for please wait screen.
Please give me some suggestions.
Waiting for the positive reply
Thank you.
abhi
|
|
|
|
|
Hi,
When im using the below code
SHFILEOPSTRUCTW sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = L"C:\\Documents and Settings\\Myid\\Local Settings\\Temp\\Tester";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperationW (&sh);
im getting the error...
cannot delete file:Cannot read from the source file or disk...
and when im using the SHFILEOPSTRUCTA it is deleting.... can u plesase tell me what"s the difference in these two ....(SHFILEOPSTRUCTW and SHFILEOPSTRUCTW)...and i have to use unicode only.....
modified on Monday, March 23, 2009 4:23 AM
|
|
|
|
|
p_1960 wrote: and when im using the SHFILEOPSTRUCTA it is deleting.... can u plesase tell me what"s the difference in these two ....(SHFILEOPSTRUCTW and SHFILEOPSTRUCTW)...and i have to use unicode only.....
both are same.
Well, Why do you choose unicode or Ansi version by yourself? just use SHFILEOPSTRUCT + SHFileOperation() and enclose strings in _T() macro. So that the unicode or ansi version will be selected automatically. For instance,
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = _T( "C:\\Documents and Settings\\ICS400758\\Local Settings\\Temp\\Tester");
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thanks for ur reply.....
Even i used the code which u gave im getting the same error
cannot delete file:Cannot read from the source file or disk...
Please help me out...
|
|
|
|