|
LPCTSTR szHtmContent = TEXT("你好");
.
|
|
|
|
|
Recently,I have being using modi(microsoft office document imaging library) to process my documents,for some reason, I have get the handle of the picture that hold by IImage object so that I can do more thing.How can do it with VC++6.0.
Help please, Thank you all!
smith
|
|
|
|
|
I have never used IImage myself but from reading MSDN I would think the easiest way would be to use IImage::GetImageInfo() to get the dimensions of the image, and then use IImage::Draw to draw the image onto an appropriately sized memory bitmap.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Hey folks
I'm writing .html files to disk, and when I run my application normally, I get several garbage characters.
When I step thru the debugger and look at the functions CreateFile and WriteFile and what I'm passing them, the program not passes appropriate values, but actuall produces files free of any garbage.
I'm really concerned that if stepping thru the debugger doesn't find these errors, I'll never be able to find them by hand.
Any ideas on making the debugger comply with the real world (turning off stuf.. etc)?
Thanks!
|
|
|
|
|
Your problem might be the result of the different new() functionality. In debug mode, the allocated buffer is filled with nulls.
In release mode, it isn't.
Else, try a Rebuild All in debug mode.
|
|
|
|
|
kakan wrote: In debug mode, the allocated buffer is filled with nulls.
(Actually, it seems that the new operator in debug mode fills the buffer with 0xCD value, at least in VS 2003).
|
|
|
|
|
Hey,
is it possible to change the HTML code in a CHTMLDialog at runtime. I need this because I want to create a dialog that changes his GUI by loaded different HTLM pages...
Thanx a lot...
|
|
|
|
|
What change?
i dont have my code that i worked on CDHtmlDialog now and i dont understand what do you need but see GetDHtmlDocument for get IHTMLDocument2 interface maybe it is some helpful to you
whitesky
|
|
|
|
|
In order to load different HTML page from disk, I think you can try the Navigate member, something like this:
Navigate("file://c:\\MyFile.html");
If your HTML page is in resources, you can try LoadFromResource function.
|
|
|
|
|
but i think he wants to change html code not load html
whitesky
|
|
|
|
|
It might help you:
GetHtmlDocument[^]
Marc.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi,
I am new to vc++. I have one source code which i have to analize.
But while executing in VS2005 i am getting the following errors.
error BK1506 : cannot open file '.\debug\Application.sbr': No such file or directory BSCMAKE [/color]
error PRJ0019: A tool returned an error code from "Performing Custom Build Step" Shareaza
If any one knows the reasons and solutions please help me.
It is very urgent for me. please help.
ThankU
angel
|
|
|
|
|
This issue can be caused by a problem with your Application.sbr file. This file is used to generate "browse information file", which is useful for easier navigation through your code.
In MSDN, there are several possible causes (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/BK1506.asp[^]) and you can investigate them.
However, the compilation, debugging and running of your application can be done without browse information file. Go to the properties of your project, General --> Build Browser Information and select No. Then rebuild using Rebuild Solution command.
On the other side, if you work with a solution consisting of several projects, be sure that such option is the same (Yes or No) for all of the projects.
-- modified at 5:00 Wednesday 7th June, 2006
|
|
|
|
|
Not very sure if this is the right discussion branch for this, but could not find anything else more matching.
Q:
I use DeviceIOControl to pass data to driver from a VC++ application. Everything works fine. Th eisuue is, if the usb device is hanging, not replying, my PC hangs. I need some timeout in deviceiocontrol, not sure of how to do that.
To make it more clear, pc sends data, if device does not repond till some time, it should return with fail code..
please help
-KK
- KK
|
|
|
|
|
You could start a separate thread, which calls DeviceIOControl and signals when the DeviceIOControl has returned.
In the main thread (or in another thread), wait for the signal from the DeviceIOControl-thread.
If the signal from the DeviceIOControl-thread doesn't happen in a given time frame, consider it to be a timeout and handle it in the main thread.
|
|
|
|
|
Did you open the USB device with the FILE_FLAG_OVERLAPPED flag?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
NO. I pass a NULL for overlapped. Is there a way to make a timeout using overlapped and not using additional threads?
- KK
|
|
|
|
|
I want to create a list control with tree control properties like bitmap buttons for each item, dark lines with parent child hierarchy.
The cursor should be full row select, ie., should cover both the ends of the list control.
This list control should be supported with an external scroll bar.
Kindly help me if any program is available for the above function in either Win32 / MFC based Visual C++ application
|
|
|
|
|
There are alot of article at codeprojects regarding listbox and list control.
Check Combo Box[^] Section at codeproject
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
Hi All,
What is the difference between .h and .hpp files ???
Thanks in Advance.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
hpp files
A header file written in the C++ programming language. It should be in simple ASCII and (depending upon how portably it was written) should be usable on any machine with a C++ compiler. Typically it would be used in conjunction with a C file. Note that the h extension is also sometimes used for C++ header files.
h
A header file written in either the C, C++, Objective-C, Objective-C++, or Inform programming language. It should be in simple ASCII and (depending upon how portably it was written) should be usable on any machine with a C (or C++, ObjC, or ObjC++ as appropriate) compiler. Typically it would be used in conjunction with a c or C file.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks buddy
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
_AnShUmAn_ wrote: Typically it would be used in conjunction with a C file.
HPP files are typically used with CPP files.
_AnShUmAn_ wrote: Typically it would be used in conjunction with a c or C file.
Huh? What is the difference between a c file and a C file?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
NiceNaidu wrote: What is the difference between .h and .hpp files ???
None really. It is just a matter of style. They both can contain the same code.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I made a program with VC++/MFC. The program is for communication with a opc-server (PLS) an is running all the time.
Now I found out in the taskmanager, that the number of page errors is very high. I know, that the page errors are not a really error. This are only the memory-pages which are saved in the virtuell RAM and not in the RAM.
But writting the memory-pages to the virtuell RAM needs much mor time as handling with the RAM.
So how can I find out which part of my program causes the page errors. How can I prevent the page-errors?
-- modified at 2:37 Wednesday 7th June, 2006
|
|
|
|