|
I think yes see TreeCtrl section on codeproject
|
|
|
|
|
|
Could any one can provide an example for Windows service in Native VC++ code ?
|
|
|
|
|
Come on ! should wait atleast for few minutes.
I've posted reply to your last post already.
|
|
|
|
|
dvsr wrote: Could any one can provide an example for Windows service in Native VC++ code ?
search codeproject.com for service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
This is pretty good sample code: Using Services[^]
Straight from the horse's mouth
|
|
|
|
|
i have a sessional due on vc creating a data base but i know squat about programing
all we have to do is to have three edit boxes for first second names and current date and there respective butons
we have to enter patient id and store it in a text file than vew by exporting the functions in a dll file.
can offer you nothing but thanks in advance
|
|
|
|
|
Dont get worried.
Try to learn MFC. Its not that difficult.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Wow, didn't you even think of going to class?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
This makes no sense whatsoever. Not the assignment, that's easy, but rather asking for such elementary help outside of class. I realize it's been a few decades since I was in school, but surely things haven't changed that much for a teacher to make an assignment without having first gone over the subject matter. If your "squat level" is so low as you put it, why are you even in the class? Are your classmates having equal difficulty?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I am creating a windows service in VC++.Net. Is it possible to give comman line parametes when we are installing the windows service ?
Ex : WinServ.exe -Install -D "Display_name" -P "Path"
Once we created the service can we install this in any machine(older OS) or .net is a must ?
Thanks and Regards,
Venkat
|
|
|
|
|
If you are actually using .NET (i.e. managed code), then the .NET runtime must be installed. (Though I think writing services in managed code is a bad idea.) If written in native code, assuming you use only APIs from the older OS, they will run there as well.
Services can accept command line arguments.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thanks for the Information.
Could you please give any example of Windows service written in native code ?
Thanks and Regards,
Venkat.
|
|
|
|
|
|
I have checked the articles with the author name "Vagif Abilov" . I could not get any.
|
|
|
|
|
I've given link in previous reply.
|
|
|
|
|
Joe Woodbury wrote: I think writing services in managed code is a bad idea.
May I ask Why?
|
|
|
|
|
Two reasons:
Performance and resource bloat.
While some .NET code can, in fact, run faster than native code, my extensive testing has found that this is mostly in UI code; in non-UI code, this is rarely the case and I've found .NET code typically runs about 30-50% slower (after JIT.) While some services do nothing the vast majority of the time, many are required to periodically do small things as fast as possible. In this, well crafted native code is best. (Yes, I said well crafted; well crafted .NET code is very probably better than crappy native code, but that goes without saying for just about any software.)
Resource bloat is another problem; even "small" .NET applications take up lots of memory and resources. Among other things, this causes slow boots and long shutdowns. If an application or service is truly idle for a long time, and other things are happening on the system, odds are it's memory will eventually get paged out. With .NET, the amound of demand paging when the appliation or service becomes active again is quite significant. (This is one thing that really irritates me with the ATI Catalyst Control Center.)
Do recognize that many serverices have two component; the memory resident component, which should be lean and mean, and a management console or something comparable which is launched on demand. Using .NET for the latter may make perfect sense (though I've honestly yet to see someone actually do it efficiently on the client for a commercial product.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Thank you for the excellent reply!
With so many choices in frameworks, languages, SDKs, etc., I'm constantly having to make decisions
on which way to go based on performance, ease of use, extensibility, longevity, etc. and it's
nice to add others' real-life experience and opinion to the "equation".
Had you answered "Because I heard it's slow" I would have screamed.
Thanks again,
Mark
|
|
|
|
|
my code:
CComQIPtr<IHTMLDOMNode> pRootNode(lpParentDisp);
CComPtr<IDispatch> spChildren;
if(FAILED(pRootNode->get_childNodes(&spChildren)))return;
CComQIPtr<IHTMLDOMChildrenCollection> pChildColl(spChildren);
long lCount = 0;
pChildColl->get_length(&lCount);
for (long l = 0;l<lCount;l++)
{
CComPtr<IDispatch> spChild;
pChildColl->item(l,&spChild);
CComQIPtr<IHTMLDOMNode> pChild(spChild);
CComQIPtr<IHTMLElement> pElement(pChild); // I don't obtain the point
}
please somebody help me ! thanks........
-- modified at 22:17 Thursday 7th December, 2006
I'm a good man!
-- modified at 22:17 Thursday 7th December, 2006
|
|
|
|
|
guti_milan wrote: CComQIPtr<ihtmldomnode> pChild(spChild);
CComQIPtr<ihtmlelement> pElement(pChild); // I don't obtain the point
SEE IHTMLDOMNode::childNodes
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
thank you!
I'm a good man!
|
|
|
|
|
guti_milan wrote:
I'm a good man!
I am BAD.... [ ]
<div class='ForumSig'>"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you </div>
|
|
|
|
|
in MS Paint (or Paint-Brush), when we draw a line, a sample line is drawn befor actual drawing hapends, which tells user where the line is and its size.
the sample line moves peaceful with mouse's moving.
Q: how to draw the sample line? is it drawn on bitmap directly or on another interface? any special tech used?
thx
|
|
|
|
|
includeh10 wrote: how to draw the sample line? is it drawn on bitmap directly or on another interface? any special tech used?
RubberBand Lines[^].
|
|
|
|