|
I think the WebBrowser should do it too. Insert the WebBrowser control in the project, and there you go. Then you must start with a real local address like "c:\\" etc. to start it with.
this is this.
|
|
|
|
|
thank you for the idea
Is there some way how to control view type (thumbnail/icons) ?
rrrado
|
|
|
|
|
Sorry, I have never tried it, but I hope someone else knows a way.
But the context menu is still there.
this is this.
|
|
|
|
|
Yes but after changing the folder original view mode is restored.
But thank you for help anyway, now I found IShellView for
direct usage of shell folder view, I'll examine it.
rrrado
|
|
|
|
|
I hav written simple vc++ application for winsows service. It can call exe's. I am getting problem when i am calling conf.exe.
when i am calling conf.exe of NetMeeting within service i am unable to receive calls from client. can u tell me what are the dependencies when i am calling conf.exe.
plz help me.
|
|
|
|
|
Hi,
I am writing an application which support English,Chinese and Japanese languages.My viusal studio IDE unbale to open the file in workspace.It unable to support it, what could be the problem.
The text in dialog boxes are not dispalyed properly in chinese and japanese lang , i am manuly chaning the property of text (the height and width)..etc, I am opening the "RC file" in "note pad".For chinese and Japanese lang`s.This there any way ,to solve this problem , rather than trile and error method.
|
|
|
|
|
When i select from the menu the the file -> open
then were is the handle to the file
I want to access the data of the file , say i open
a text file and then want to store the data back
to the file .
IS there any clean article for it
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
You don't need a file handle. use the document class's Serialize method instead
the CArchive parameter points to the file being opened (File -> Open) or saved (File -> Save)
void CTestAppDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
}
else
{
}
}
look up Serialize[^] and CArchive[^] in MSDN for further details
|
|
|
|
|
Subject : An object(file or folder) which can mask only from copy and Paste..
is it possible to mask the properties "Copy" and "Paste"( both by mouse and key board)for a paticular file or folder.ie while right clicking on the file the "copy" and "paste" in the context menu should be inactive.
If any reply on this plz send it to harias25@sify.com
Hareesh A S
Software Developer,
Singapore.
|
|
|
|
|
I have an OCX Control, created with Visual C++ 6.0
I created another new OCX control, modifying the first one with very little changes. I renamed and registered the new one but it replaced the old one.
My problem is that I want both. Renaming the OCX and registering did not help me. How do i do this? Any help is greatly appreciated.
I am sorry if this is a wrong place to have posted this question.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
It's not enough to rename it, you have to change it's CLSID too. Use uuidgen.exe tool to generate a new one and then register it again.
|
|
|
|
|
Heartfelt thanks for your reply.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Hello everone
I have a file in which the data is stored in hex format,
i need to convert some bytes to DWORD ,exactly 4 bytes
to a DWORD .
i created such a complex statement for that
DWORD biWidth=(unsigned char)m_FileData[18] +((unsigned char)m_FileData[19]*256) +((unsignedchar)m_FileData[20]*65536) +((unsignedchar)m_FileData[21]*16777216);
But i think this is not an effecient way because a heavy arithmatic is used.
is there any other method that is fast an effecient .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hello,
This is a heavy statement indeed and it can be done much simpler indeed:
DWORD biWidth = *reinterpret_cast<DWORD*>(&m_FileData[18]);
This is the way to go and requires minimal CPU time.
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
-- modified at 2:45 Wednesday 21st December, 2005
|
|
|
|
|
That great i was looking such
a thing which would be fast &
more effecient.
tank you again
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
You're welcome.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
BoB i am sorry but ur method
creates error
m_BITMAPFILEHEADER.bfSize = *reinterpret_cast<DWORD*>(&m_FileData[18]);
It worked fine for some file but not with other
, we need to find some other solution
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hello,
What kind of error are you getting? Is m_FileData a BITMAPFILEHEADER ? If you, you can use a href="http://msdn2.microsoft.com/en-us/library/wes2t00f.aspx" rel="nofollow">memcpy_s()</a>[<a target=_blank title='New Window' rel='nofollow' href="http://msdn2.microsoft.com/en-us/library/wes2t00f.aspx">^</a>] to copy all contents!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
The question is how your statement is handeled by the optimizer.
It's not unlikely that it will use shifts instead of your numbers. Using shifts would probably make the code more effecient.
It's not always true that a simple statement (to write) gives the smallest and most effecient code in the exe file...
Kakan
|
|
|
|
|
Kakan -->
The question is how your statement is handeled by the optimizer.
It's not unlikely that it will use shifts instead of your numbers. Using shifts would probably make the code more effecient.
It's not always true that a simple statement (to write) gives the smallest and most effecient code in the exe file...
Kakan
vikas -->
Yeh probaly it is true that a simple statement might be not always effecient
but
Its always simple to read & understand , which infact saves lots of time for understanging.
(Code read more times then it is written )
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Yes. But the program is executed a lot more times than the code is read...
|
|
|
|
|
any way (no one is wright or wrong it the time who governs his statement)
the method supported by Bob
dont work fine for ever file i think
we need to think back how to solve the
problem .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
You can try this, if m_FileData is an unsigned char[]:
DWORD biWidth = m_FileData[18] | (m_FileData[19] << 8) | (m_FileData[20] << 16) | (m_FileData[21] << 24);
Kakan
|
|
|
|
|
Hi everybody
I am developing an internet explorer toolband, with many functions, one of them a popup blocker button. I was searching in the examples, but all the examples have ATL or MFC functions, and i need do all that things without using any ATL or MFC functions.
If anybody can helpme i will be gratefull
|
|
|
|
|
Without using MFC and ATL
u will need to lots of stuff by ur self.
Must rewrite all the MFC function used in
ur program .
And if u mean to create a pop-up blocker
might be u need to use window messages
so win32 can come to ur resuce.
DLL's can help u but i cant say it for sure
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|