|
Hi,
I am facing problem of calling NetMeeting conf.exe from windows service.
I have developed an application for service in vc++. Which internally calls conf.exe at the starting of service. When i am calling notepad.exe etc its running, but when i am calling conf.exe i can see conf.exe in taskmanager but it is not able to receive calls from another netmeeting application.
when i am running conf.exe individually its working.
plz help me to solve problem.
waiting 4 ur reply
bye
trinadh
|
|
|
|
|
Do you call conf exe from the "LocalService" or a user-account?
It might be that conf.exe changes its behaviour when called from a service.
Additionally, services are (generally) not allowed to directly interact with the user.
This limitation can be overcome. Im not sure why notepad works when called from a service, though.
Did you consider auto-starting a background process for the user instead?
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thanks for giving reply, and sorry for delay
I am calling conf.exe in LocalService. I put access,launch and configuration permission default in dcomcnfg.
When i am calling simple exe's like notepad,simple vb application i can see that applications in taskmanager. I am writing log with vb application that its opening and closing properly or not and its writing log perfectly. But when i am calling conf.exe its also opening and i am able to see in taskmanager but its not able to accept call. I think conf.exe is not opened properly
trinadh
|
|
|
|
|
I believe that you need to make at least 1 click when launching netmeeting (accepting a connection or something), so that would mean, user interaction.
But, since the user cannot actually SEE that request, nothing would happen, since the user did not click "accept connection".
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I found many libraries that parsing XML files but all of this use a standard approacing. Read the entire file in memory and parsing the tree. This is very expensive if the file is very big or if you lock far a minimal set of informations (for intance, suppose to check if in a 50Mb XML file exist a reference to a user "Donal Duck" ecc). Any people know a "parsing on the fly" library or class that parse a XML file but don't load the entire file in memory?
Thanks in advance and sorry for the poor english
|
|
|
|
|
Use the SAX API.
The samples/libraries you have been looking at appearantly uses DOM.
Kakan
|
|
|
|
|
To be more specific, you want to find a parser that *supports* the SAX API.
It isn't SAX exactly, but James Clark's expat supports a similar interface and is one of the earliest and IMO still one of the best XML parsers around. It's certainly very easy to use. You can get this on sourceforge.
Kev
|
|
|
|
|
lemur2 wrote: To be more specific, you want to find a parser that *supports* the SAX API.
Well...
It's pretty hard to to use the SAX API (as I suggested), if the parser in question doesn't support it
|
|
|
|
|
kakan wrote: Well...
It's pretty hard to to use the SAX API (as I suggested), if the parser in question doesn't support it
Oops, sorry - slipped into work document-reviewing-mode. Comment still stands though
K
|
|
|
|
|
I looking for a library working like:
ParseXMLFile(file...,callback )
{
while( scanning file...){
.....
callback.OnEnterNode( nodeName, attributes...)
....
.. processing XML formatting...
....
callback.OnExitNode( nodeName )
}
}
|
|
|
|
|
That's what (a parser with a) SAX-api does!
You register callbacks for the events you are interested of.
Then you call the parse() function in the parser, and it calls your callback functions when appropriate.
And it does this "on the fly", that is: while it's reading the XML file.
So it's exacly what you want!
You might be interested in checking MSXML out. It has got a SAX API.
There are heaps of samples how to use SAX on MSXML.
Kakan
|
|
|
|
|
I think MSXML supports both SAX and DOM way of parseing the xml file. It would be good thing to use unless you dont want to use COM in your application.
-Prakash
|
|
|
|
|
|
kakan wrote: Yes, it does.
thanx :->:->
-Prakash
|
|
|
|
|
For standard C++ programming and also WTL programming, is VC++ 2005 a lot better than 2003 ?
Is the IDE a lot better in 2005 ?
Is it worth upgrading from 2003 to 2005 ?
|
|
|
|
|
I dont know about you but I find the new Visual C++ to be a lot cleaner than the previous VC++. The simple reason being the concept of partial classes where the code wizard writes code in a separate file but for the same class. So there is 1 file with your implementation and one with the code gen. There is no need to find you way through the code and make changes or insert code as in 2003 at times. It does not support .net 1.1 framework but does it for .net 2.0. The GUI that u can build is very Office 2003 like...so it looks updated
cheers
Rahul
|
|
|
|
|
Yes, it is worth upgrading.
Someone blamed for my nickname to be destructive, I wonder what he would have said about yours
~RaGE();
|
|
|
|
|
I ave tryed 2003 and 2005 but after some disaventure (serialization of CObject defined in extension DLL see IMPLEMENT_SERIAL_EXTDLL ecc.. distributing executables ecc..) I use VC++ 6!
|
|
|
|
|
The upgrade is worth doing.
topus wrote: I use VC++ 6!
But yes, VC++ 6 still ROCKS!
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.
|
|
|
|
|
;P
not so bad, but quite old nowaday
i still use it, but only when i maintain a project a create under VC++6 that i don't want to port to VC++7.1.
now, when i create new projects, i use VC++2003 (i don't have VS2005 except a beta2), and i find it pretty cool compared to VC6 (which keep me nostalgic )
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
topus wrote: I use VC++ 6!
Yep, still a good IDE but there are some minor bugs with the compiler. If I remember correctly (not sure anymore), you will have compile errors when you have a class with a private destructor and a public function that auto-deletes the object (something like):
void MyClass::Destroy()<br />
{<br />
delete this;<br />
}
The compiler will tell you that the class cannot access the destructor as it is private.
There were also some minor bugs with the STL I think but I cannot remember anymore which ones.
|
|
|
|
|
|
Morning, got a quick question here
<br />
for(std::vector<std::string>::iterator iterString = myVec.begin(); iterString != myVec.end(); ++iterString)<br />
{<br />
if (*iterString == "someText") *iterString = "someOtherText";<br />
else if (*iterString == "someText2") *iterString = "someOtherText2";<br />
else return(-1);<br />
return(0);<br />
}<br />
Will changing a vector item using this kind of operation invalidate the iterator?
I cannot red it up: No docs, no books here, just the compiler, libs and web access.
Thanks in advance.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I would be very astonished if it does. Think of an iterator as a kind of pointer: when you access and change the content of the pointed data (with the * operator), it doesn't change the pointer itself so it is still pointing at the same 'address'.
Altought I never tested it before so I cannot say that will work. But still, this would be very illogical if you can't do it.
|
|
|
|
|
i think that such a question sebastian asked is justified when you know Java iterators... they actually invalidate when you try to modify the element they point on (or something very close).
but even if it is not the case in C++ (because modify the element will not reallocate automatically a new instance - which makes the iterator loose its address), i can understand his doubt...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|