|
Define "not working."
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
We don't do people's homework for them.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
rose aashii wrote:
...i tried but fail.
Without seeing your code, it's hard to offer any suggestions.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I'll do your homework. Just mail me for my paypal address. I'll do it for $20. When you next get homework, and you can't do it, because you didn't learn how to do this ( basic, easy ) problem, I'll double my fee, to $40. My fee will continue to double. Then when you graduate ( assuming I am somehow able to sit your exam ), you'll quickly find you can't get a job, because you never learned how to program.
You can short circuit this and save yourself a lot of money by doing one of two things:
1. Apply for a job at Burger King now instead of in a few years time
2. Do your own homework and ask *specific* questions if you get stuck.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
well rose.....send the full code!!!!!.....not itz output!!!!!how could we find the error when u havent shown the code?????
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
VC++6.0
I have a CHTMLView derived class. I have a string that contains html code. How do I make the view display what's in the string?
Restriction - The string CANNOT be saved to a file on the disk.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
I found the code, but could you give me a little bit more of a hint?
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
From just looking over the code, it goes like this:
Start with an IUnknown interface on the browser control
QI for IPersistStreamInit
Call IPersistStreamInit::InitNew() to init an empty document
QI for IHTMLDocument2
Call IHTMLDocument2::get_body()
Call put_innerHTML() on the body interface, passing in your HTML string (what you would put in the <body> tag)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
|
That's EXACTLY what I wanted.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
What would be the best approach to read the following structured/formated text into arrays (C++)
(PA
(NM c:/test1.txt)
(INNO 2)
(IN
(X 107.00)
(Y 117.00)
(ID 3)
)
(IN
(X 171.00)
(Y 127.00)
(ID 3)
)
)
(PA
(NM c:/test2.txt)
(INNO 5)
(IN
(X 103.11)
(Y 360.48)
(ID 3)
)
(IN
(X 60.56126)
(Y 121.1)
(ID 4)
)
(IN
(X 9.72)
(Y 98.56)
(ID 5)
)
)
and so on
Thanks for looking into it
Mike
|
|
|
|
|
i think you could read at my VisualCalc source code for your parser's approach...
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I can not use the win2000 DDK with VC6.0 properly in winxp. Are there any advice about that . I am rather confused!
Thank you!
|
|
|
|
|
The build utility for device drivers is called, appropriately enough, BUILD . This is the only supported way of building device drivers.
You can get Visual Studio/Visual C++ to invoke an external build procedure (i.e. run BUILD for you) by creating a Makefile project.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
That is the usual way, but not the best one!
You can also use VS to build device drivers, but you have to set many linker settings and create some defines for it. Use google to find out the exact settings!
Don't try it, just do it!
|
|
|
|
|
I thought I'd linked to this article[^], but I hadn't.
From the comments:
"Using the procedure you outlined is BAD ENGINEERING PRACICE. It's precisely what we're trying to warn people about.
"If you use the process you describe, you've got the switches and settings right for ONE version of the DDK, and now you've got those switches and settings embedded in your VS project. What happens when a new DDK is released, and those switches CHANGE? Suppose the switches change (as they do) from build environment to build environment??
"No, dude, bad idea. THAT's why we describe this process."
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I have a dialog based application. I want to set an event when the user presses the minimize button, but when I try I get a message box that says cannot add new member. I'm writing this in VS6.0. Can anyone suggest something.
What I'm trying to do is minimize to the system tray. I'm using Chris Maunder's SystemTray class to do this. But it does not go to the system tray when minimized. The icon is in the system tray but I have to right click on it and choose hide to move it to the tray completly.
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Never mind. I found it. I've got to look for the SC_MINIMIZE call in the OnSysCommand.
Thanks Tom...;P
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
(either on VC6 and VC.net 2003 )
I have a ctreectrl on which I handle the NM_CLICK notification :
ON_NOTIFY( NM_CLICK,IDC_TREE, OnTreeClick )
and
void CMyClass::OnTreeClick( NMHDR* pNMHDR, LRESULT* pResult )
{
NMTREEVIEW* pNMTreeView = (NMTREEVIEW*)pNMHDR;
HTREEITEM hSelItem = pNMTreeView->itemNew.hItem;
}
the item returned by pNMTreeView->itemNew.hItem is invalid when I click next to a tree item; it's not NULL and it's not a valid HTREEITEM.
Is it valid to use that or do I need to do something else ( like CTreeCtrl::GetSelectedItem ) ?
Thanks.
Max.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
I want to know when does "Pure Virtual Function Call" occurs? I am getting this problem in my code and unable to find out.
Note: I am not calling a pure vitual function in my base class constructor. So this error is not due to calling a pure virtual function from a base class constructor.
+
My application is a multithreaded application.
I wanna know the conceptual reasons behind other cases in which pure virtual function call can occur.
Thanks
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
I have no idea what you are asking. Could you be more specific in describing your problem?
What do you mean, when does it occur? It occurs when someone types in the function call from another function and runs the program. Is there a compile error or weird runtime behavior that you are debugging?
|
|
|
|
|
The problem occurs on runtime.. a messagebox popups "Pure Virtual Function Call" and program terminates.
i have a base class which contain a pure virtual function. Another derived class provides its implementation. In my multithreaded application, when i try to call that function from base class pointer with address of derived class, this error occurs.. But it occurs in some rare scenario.. not consistant..
I just want to clarify the concept.. when does pure virtual function call occurs? in what possible scenarios can this runtime error occur
|
|
|
|
|
It's still kind of vague to me what you are doing. Normally, you call the virtual function using the base class pointer. I don't see any reason why having a derived class pointer would cause a problem. But as a design critique, the purpose of virtual functions is to be able to hide dependencies by using the base class pointer to interface to the object. That way, the users of the object are only bound to the base class at compile time. During runtime, the user is unaware that the derived class actually implements the function. There isn't much point in creating a pure virtual function if the users of your object are calling the function from a derived class pointer anyway. That defeats the purpose of run time binding.
You should have some kind of factory build the classes so that the dependency on the derived class is controlled and limited. The actual users of the class that call the functions should get pointers of the base class type from the factory. Then if the implementation needs changed in the future, not as many pieces of your program have to recompile when you make changes.
Maybe you could show us your class declarations and a few code snippets where the function calls are made to give us an example of what you are doing.
|
|
|
|