|
thank for your opinion...
but how to print out the value of ch..
after input from user...?
i try do this..
add after the loop
>>printf("output is: %c",ch);
nothing come out..
chal..
|
|
|
|
|
Assuming you are using 0xd as the terminating condition, printing the variable ch after the loop terminates is obviously not going to work as 0xd is a whitespace character.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi friends,
I have one problem regarding Service.I have created service using Service API(i.e Winsvc.h).When I create and install service as LocalSystem account(i.e when its user is system,i.e last 2 parameters in CreateService are NULL) every thing works fine.But my problem requires service to have access to domain resources.So I have to specify the user name and password in last 2 parameters of CreateService function.But doing this doesn't work when I try to start servce after installing it.Starting it gives "logon failure" message.But when I change username and password manually in service property applet then every thing works fine.Can any one guide me where I am making mistake???
Waiting for positive reply.
Regards,
k@lpe$h
|
|
|
|
|
Im having a UI with dialogs embedded within other parent dialogs
say sub dialogs as tabs of a main dlg
I need to do some validation when a current tab is active only
so I used
CWnd* pWnd = GetActiveWindow();<br />
if(pWnd == this)<br />
{<br />
}
however the GetActiveWindow returns the parent window handle and not the sub Windows handle as pointed by this
how do Isolve this??
|
|
|
|
|
Are you using a CTabCtrl or a CPropertySheet?
Use either CTabCtrl::GetCurSel() or CPropertySheet::GetActivePage()
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
CP and MFC Gurus:
I have a CPropertySheet that contains some CPropertyPages (5), a CTreeCtrl, and a CListCtrl.
When I build/test in Debug mode I get/see what I expect. When I build and test in Release mode, I have problems with my CListCtrl.
I create CListCtrl in my PropertySheet::OnInitDialog(). I do the same for the CTreeCtrl. I override CPropertyPage::OnSetActive() to initialize my CListCtrl with data - Header text, item text, a 2 column list, with about 30 items. A few places within processing, I call ::SetActivePage() to update my CListCtrl - like when switching from page to page in the PropertySheet.
What i see in Release is an empty CListCtrl, no text in the rows of the list, and nothing in the Header either. I have used some "print stmnts" to check the filling of the CListCtrl and it does execute the code, but nothing is visible in Release mode.
Any suggestions or where I can look to for help?
Much thanks!
Johnny
|
|
|
|
|
|
hi
is it necessary to have smtp server on that machine to send mail.
suppose i dont have the smtp server than how can i send mail through code(dont tell me the code just what process should be followed), and 2nd query is
is the smtp server is part of mail server or it is present in every ISP including those who dont have the mailing facility.
ddd
|
|
|
|
|
An SMTP server is just a server that receives e-mail messages and then routes them to the appropriate recipient. You don't need one on the machine that's sending the mail. (you can install one if you want, but most ISPs provide one for you)
So when you load your e-mail client up and blast off a message, it gets sent to an SMTP server (the one setup in your client), which then analyzes the message information and relays it to another SMTP server or stores it locally if it has reached its final destination.
I guess a real world analogy of an SMTP server would be a post office. You write the letter (create e-mail), then take it to the post office. (click Send in e-mail client). It doesn't matter which post office you take it to, just as it doesn't matter which SMTP server you send your e-mail to - they all follow the same protocol. Once there, the mailman (code in the server) analyzes the address, then determines the best route (hah) to deliver it. The letter is then transfered to another post office (SMTP server) or is placed in a mailbox. (Inbox)
All background info on SMTP can be found here:
http://www.faqs.org/rfcs/rfc821.html
For sending in code:
1) Nish's New Article
http://www.codeproject.com/tips/CSMTPConnection2.asp
2) MAPI is another common way for sending mail. If you search the MFC code in your Visual Studio install folder, the CDocument class has a function that implements MAPI. (OnFileSend or such)
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
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!
|
|
|
|