|
HI,
are you able tyo create CIPAddressCtrl
and use ??
please help me if you can
thanks
sarfu
|
|
|
|
|
Sorry, but if you look at the date, this is over 6 years ago, and for the life of me I can't remember how I got it to work... I've moved onto "Greener Pastures" now
Cheers
Phil
Who the f*** is General Failure, and why is he reading my harddisk?
|
|
|
|
|
Hi,
I need some help please.
I tried to figure it out, but with no success so far.
Why do I get E_INVALIDARG when I try to use the appendChild Function.
This is my source code:
IHTMLElement* pHTMLElement;
IHTMLElement* pNewHTMLElement;
IHTMLDOMNode* pHTMLDOMNode;
IHTMLDOMNode* pNewHTMLDOMNode;
IHTMLDOMNode* pNew2HTMLDOMNode;
IDispatch* pDisp;
v.vt = VT_BSTR;
v.bstrVal = SysAllocString(L"HEAD");
hResult = pIHTMLElementCollection->tags(v,&pDisp );
if (hResult == S_OK)
{
hResult = pDisp->QueryInterface(IID_IHTMLElementCollection,(void**)&pIHTMLElementCollection);
if (hResult == S_OK)
{
pIHTMLElementCollection->get_length(&lCollectionSize);
v.vt = VT_I4;
v.lVal = 0;
hResult = pIHTMLElementCollection->item(v,v,&pDisp);
if (hResult == S_OK && pDisp != NULL)
{
hResult = pDisp->QueryInterface(IID_IHTMLElement,(void**)&pHTMLElement);
if (hResult == S_OK)
{
hResult = pHTMLElement->QueryInterfa(IID_IHTMLDOMNode,(void**)&pHTMLDOMNode);
if (hResult == S_OK)
{
bstrTemp = SysAllocString(L"BASE");
hResult = pIHTMLDocument2->createElement(bstrTemp, &pNewHTMLElement);
SysFreeString(bstrTemp);
if (hResult == S_OK)
{
bstrTemp = SysAllocString(L"href");
v.vt = VT_BSTR;
v.bstrVal = strWebPageDomain.GetBuffer();
hResult = pNewHTMLElement->setAttribute(bstrTemp, v, 0);
SysFreeString(bstrTemp);
if (hResult == S_OK)
{
hResult = pNewHTMLElement->QueryInterface(IID_IHTMLDOMNode,(void**)&pNewHTMLDOMNode);
if (hResult == S_OK)
{
****************************************************************************
hResult = pHTMLDOMNode->appendChild(pNewHTMLDOMNode, &pNew2HTMLDOMNode);
****************************************************************************
}
}
}
}
}
}
}
}
}
}
|
|
|
|
|
Good morning,
I have a problem with adding an file to a mail.
This process should use OLE Automation. I already figured out all the other things, but I'm not able to do that...
I also found no help in the msdn library, so you out there are my last chance...
Thanks in advance.
|
|
|
|
|
Hi there,
I have created a MDI Application which has two view(one derived from CEditView and other with CView) and get the data from one Document. No my problem is that i have used the method for Open/Save Filters using the article in this site and when i open the txt it is opening CEditView but the problem is that it is not opening the contents in the file. How to solve this problem if anybody knows plz reply me fast.
Sreeramachandra G
|
|
|
|
|
Hi
Any one can help me in finding the IOCTRL for a Driver for a special Hardware. because I need to communicate with the driver in Kernel Mode not in user mode , and this Hardware have an interface via dll and the dll connect to the driver
Thanks for any help
Fadi
|
|
|
|
|
oh, hi fadi
there are some types of IOCTLs, the standard ones and the custom ones.
to find out the standard ones, read the DDK and/or the DDK header files.
the custom ones are a problem...
good luck,
alex
Don't try it, just do it!
|
|
|
|
|
<br />
szBuffer[0] = '\0';<br />
<br />
strncpy(szBuffer, cMediaFileInfo.szFrameRate, strlen(cMediaFileInfo.szFrameRate) - 4);<br />
<br />
<br />
szBuffer[strlen(cMediaFileInfo.szFrameRate) - 4] = '\0';<br />
double dFramerate = atof(szBuffer);<br />
dFramerate is always 0.
|
|
|
|
|
|
Your code snippet does not show the allocation for szBuffer. Are you show it is at least as large as say 6 or more bytes?
Chris Meech
It's much easier to get rich telling people what they want to hear. Chistopher Duncan
But for a man, barbecuing eggplant and portobello mushrooms is a sure way to have people question your sexual orientation. Kuro5hin
|
|
|
|
|
I used CHtmlView to display html page.
And I create a new thread as my work thread.
In my work thread , I call m_pMyHtmlView->Navigate2(...) to navigate to a html page.
The problem is when my program runs,the downloadComplete isn't be done sometime. And the URL I open is the file in the local computer with my program. So I don't know why the download is fail?
I try to debug it,and find the function run like under:
OnBeforeNavigate2()
DownloadBegin()
DownloadComplete()
DownloadBegin()
-------------------if error happens,the under don't be done
OnTitleChange
NavigateComplete()
DownloadComplete()
OnTitleChange
DocumentComplete()
Why after execute DownloadBegin() not execute DownloadComplete()?
Does anybody meet the status like this?
The error doesn't happen every time.Sometimes it happens after program runs 5 minutes. Some time the program work well whole day.
When the error happens,the thread of CHtmlView doesn't work.Even if the work thread call's m_pmyHtmlView->Navigate2(...),the thread of CHtmlView does't respond.It seems that thread was blocked.
|
|
|
|
|
Design the necessary classes for a program that would allow a state government office to track vehicle registrations/license plates. The program should at least allow tracking of the Registrant, the Vehicle, and the Registration Details including fees paid.
What are 4-7 classes I could use to write this program?
|
|
|
|
|
|
We aren't here to do your homework for you. From the FAQ:It is generally OK to ask questions about a homework assignment, but you must at least try on your own first. Don't just post the assignment description; that looks like you want the forum readers to do the assignment for you. Start the program yourself, and when you get stuck, ask a specific question and, again, include the code that isn't working.
--Mike--
Ericahist [updated Oct 26] | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
#include "witty-quote.h"
|
|
|
|
|
GEE THANKS..... too bad i did start it myself and i was asking for some help to see what response I would get. I was stuck and confused about what classes to use and thats why I asked the question. How else would anyone know what to write back if I didnt include the problem. Thanks there smart guy.
|
|
|
|
|
bwestend wrote:
GEE THANKS..... too bad i did start it myself and i was asking for some help to see what response I would get. I was stuck and confused about what classes to use and thats why I asked the question. How else would anyone know what to write back if I didnt include the problem.
The way you formed your question (no source code provided, no explanation of what routines you needed help with, no examples of compilation errors, etc, etc, etc) told us, basically, "I have an assignment that I can't do and I want you guys to do it for me!".
Instead of coming off like a cocky bee-yotch, why don't you just explain (preferably at the code level) what you are having difficulty with?
bwestend wrote:
Thanks there smart guy.
You just blew off one of the best resources on this site. Why don't you try reading your documentation instead of insulting people on this site (if you want to insult, go to the soapbox!!!!!)?
|
|
|
|
|
In this context, "i did start it myself" is not a phrase one should apply if the only work seemingly carried out is to have read the question.
The whole point of the assignment is for you to use that squishy stuff between your ears -- there aren't classes out there for everything, that's why you need to think about defining the problem further (analysis), and then modelling a solution (design). By encapsulating behaviour, you define the classes appropriately.
It might have come across a little better if you hadn't joined CP solely to ask the question...
Steve S
It's nothing personal, but when you've read one homework assignment too many...
|
|
|
|
|
Nicely done.
Michael Dunn is one of the best sources for help on CP. and you decided to be a whiny punk and lip-off at him.
OOPS!
Maybe if you had said:
"These are the classes I think I should use, what you do guys think?" Or SOMETHING that shows that you've actually *TRIED* to solve the homework question problem.
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
this has to be written when someone is first using the forum after registering!
Don't try it, just do it!
|
|
|
|
|
bwestend wrote:
What are 4-7 classes I could use to write this program?
Class cRegistrant
Class cVehicle
Class cDetails
Class cRecord
|
|
|
|
|
Is there any way to set default view as thumbnail when Cfiledialog is
open?
//detail view as default
parent->PostMessage(WM_COMMAND, 40964, NULL);
I know there is a tip about how to set to detail at codeguru.com
I still have to get the code for thumbnail.
Thanks,
shin
|
|
|
|
|
How can a CAB get parameter from html ?
Hi, guys:
I have a CAB which contains a ATL based DLL. My question is How can I get some info from the html page?
I know the OBJECT and PARAM tag of html language is helpful to my question.
But I don't know how to implement it.
Any help or URL is much appreciating.
TIA
|
|
|
|
|
class racelist
{
public:
racelist();
}
racelist::racelist()
{
}
bwestend wrote:
the name of the classes constructor function:
racelist
bwestend wrote:
is this constructor part of the interface for this object?
Yes
bwestend wrote:
is this constructor part of the implementation for this object?
It depends on what you consider implementation, the body of the constructor is implementation, but the declaration isn't.
bwestend wrote:
how would this constructor be used in an object instantiated from this class?
racelist r;
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
I use the listbox for two purposes, for one, I need the sort on. For the other, the sort off so contents wont be sorted alphabetically.
How can I change that setting at with code at runtime?
Thanks!
|
|
|
|
|
Use ModifyStyle()
This is what I did to change from ascending to descending.
myListBoxCtrl.ModifyStyle(LVS_SORTASCENDING, LVS_SORTDESCENDING);
|
|
|
|