|
im glad you asked this question,
here is a link to the function reference mentioned before
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp
|
|
|
|
|
Hello Friends,
I am here again with another question. I want to the different users present in my system. and which Header file or class does I have to see for the system programming(any).
Bye bye
Take care,
Neelesh K J Jain.
|
|
|
|
|
MFC6 has the CHtmlView class and like most classes in MFC using visual studio you can quickly add an handler for the events fired by the IWebBrowser2 actually according to MSDN (AFAIK)
it's the WebBrowser...cuz IWebBrowser2 doesn't seem to have events
BEGIN_EVENTSINK_MAP(CHtmlView, CFormView)
ON_EVENT(CHtmlView, AFX_IDW_PANE_FIRST, 104 , OnDownloadComplete, VTS_BSTR)
END_EVENTSINK_MAP()
Then in your derived CHtmlView class you override a virtual function OnDownloadComplete and voila you now have the ability to tell when a document has been fully loaded.
How does MFC accomplish this task of event sinking, etc all with a couple of macros? I looked at the macros and I couldn't make anything of them
Basically I want to use this same technique, but on a different interface...so I can avoid all the mumbo jumbo that goes along with capturing events sent from IHTMLDocument2, etc...
Thanx in advance
Cheers
How do I print my voice mail?
|
|
|
|
|
I'm wondering why I am not able to mouse over a variable in VS.NET while in debug mode and get the value of the variable. Instead I get the variable declaration information.
Also, when I make a change in debug mode, VS.NET doesn't recompile and run the application with the new code in place. Instead I have to stop the debugger and start it over again.
Is there something in VS.NET where I set preferences to make this work or is there something I should have installed? I guess I'm just wondering what I'm missing.
Thanks!
|
|
|
|
|
Other people can answer you better than me.
But I noticed that you "get the value of the variable. Instead I get the variable declaration information.
" when the variable is nto valid at that moment, like a NULL pointer.
For the second, look for the edit and continue compiler option and look also for the conditions when this is disabled.
|
|
|
|
|
I've been on the project that using CSocket to send file from client to server. When i test the program, only part of data send through CSocket(about one third of the original data). I use CSocket as a SOCK_STREAM. Can anyone figure out the problem on my code?
thnx
phongle
|
|
|
|
|
Hi,
Why dont u try using out an acknowledgement mechanism. That is whenever the client is sending data to the server, the server should send acknowledgement for the data. In case the client does not receive the acknowledgement for a certain period of time, then the client resends the same data.
Let me know if this helps you.
Regards,
Mahadevan.
|
|
|
|
|
i tried to send 34kb through one send() function and only 8kb go through.
Another way around it is to divide the file to several small chunks of 8kb.
But i got stuck there. Could anyone give me idea how to do it
phongle
|
|
|
|
|
A call to Send() might not send all the data you gave it.
|
|
|
|
|
I had a chart working with visual .net 2003, when I migrate to studio 2005, it no longer works any idea what happened to it? It was blong’s chart
mikefhis
|
|
|
|
|
I've written an ISO 9660 burner application, which works, but after I burn a disk I need to eject and reinsert the disk before windows sees the new files. How do I tell windows to reload the filesystem?
I've found SHChangeNotify which seems like what I should use, but no combonation of option does anything that I can see.
SHChagneNotify(SHCNE_ALLEVENTS,SHCNF_PATH,zdDrive,NULL);
seems like it should be overkill but it doens't work. Lesser options don't work. In particular sending media removed then media inserted didn't work. Nor did various updateItem combonations.
Am I on the wrong track? Are there other options I should give?
I also send a message to explorer, which seems like it might be working (the window closes when I send a media removed), but the contents don't change when I look. Nor does a dir at the command prompt get anything.
I
|
|
|
|
|
Henry miller wrote:
I've written an ISO 9660 burner application, which works,
Very cool! Any chance of turning the CD burning part into a CP article? Thanks in advance!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I don't think my boss would agree to sharing our source code, which makes an artical less interesting. Although we did agree that we should write a book on how to do this.
Writing a CD is easy enough, but keeping track of each different option for each different media can be a pain (CD-R, CD-RW which might be MRW formatted, DVD-R, DVD-RW either sequential recording or restricted overright, DVD-RAM, DVD+R, and DVD+RW) There is no model that is common between all of the above. I did not use all the possible modes, so I'm not sure how to use them all.
If you think there is a useful artical here I'll write it (but no source code will be included!)
|
|
|
|
|
Did you notice that some applications like yours they eject the CD when they are finished ?
And then they close the tray again ?
Like Nero.
Maybe because of the same problem you have.
And most of applications playing music ( even Windows Media Player and NeroMix ) have the same problem. They have problems to automatically update their music list once he CD is inserted. It doens';t always work.
M
|
|
|
|
|
Hi!
I want to display multiline text in the edit box. I use CString as a member variable. In edit box properties I checked Multiline. The text is from dialog based application and it consist of data. I would like to display each data in new line but when I use Format with “\n” I don’t get new line instead I get small black rectangle character. After the small rectangle there’s no new line. So what I should do to get new line displayed?
Thanks in advance.
|
|
|
|
|
Johnny Peszek wrote:
...when I use Format with “\n” I don’t get new line instead I get small black rectangle character.
Use \r\n instead.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thanks a lot it works great!!!
|
|
|
|
|
what's the format with "\r" process?
msn:Flashcutreg@hotmail.com
|
|
|
|
|
Format with "\r" stands for "carriage return" which is an escape sequence.
|
|
|
|
|
As a rule of thumb (there are some variations to this rule - like with message boxes in Windows), when it comes to text just remember this...
\n - Unix/Linux/MacOS X/etc.
\r\n - Windows/DOS
\r - MacOS 1-9
Jeremy Falcon
|
|
|
|
|
|
hello,
I am new to MFC programming. I have an urgent requirement of
creating an Address Book application with MSAccess database. I am using the
ODBC data source administrator.
I have created the GUI with two fields for name and address.
For this Edit box i have created the member variables also.
I am able to retrieve the data from the database through DoDataExchange part.
For Adding a record into the database i have written the
following code.
void CAddbookView::OnAddClick()
{
m_pSet->AddNew();
UpdateData(FALSE);
}
In this case the data i am entering is overwriting the current data. And
the next, previous, first and last control in the DR_MAINFRAME main form are
disabled.
So i want to know whether i should add any extra code for the
add operation or any steps needs to be done while creating the GUI.
I am stuck with this problem. I need to do update also. I am totally
lost in the code.
If anybody can help regarding this it will be of useful and timely help.
Thank you
|
|
|
|
|
You need something like:
void CAddbookView::OnAddClick()
{
CString strName,
strAddr;
m_name.GetWindowText(strName);
m_addr.GetWindowText(strAddr);
m_pSet->AddNew();
m_pSet->name = strName;
m_pSet->addr = strAddr;
m_pSet->Update();
} Make sense?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
Thanks for your message. Sorry that i could'nt reply immediately. I tried
the same code in my application. Then i found that there is a problem.
I am using ODBC to connect to access database. So the member function like GetWindowText() is not available. I am not able to use the above code
u had sent.
I think for ODBC the coding part will be different. I am not able
to find the related member function available in that. So still i am having
the same problem.
Thanks in advance.
|
|
|
|
|
skgk wrote:
Then i found that there is a problem.
And that problem would be what, exactly?
skgk wrote:
I am using ODBC to connect to access database. So the member function like GetWindowText() is not available.
ODBC (which is a way of connecting with a database) and the GetWindowText() method (which gets the text/caption of a control) are mutually exclusive things. One is in no way related to the other.
skgk wrote:
I am not able to use the above code
u had sent.
Why?
skgk wrote:
I think for ODBC the coding part will be different.
Naturally, but since I know nothing of your project (other than it has a class named CAddbookView , a method named OnAddClick() , and a member variable named m_pSet ), I obviously couldn't make it an exact fit. Yes, you might have to tweak it.
skgk wrote:
I am not able
to find the related member function available in that.
Which member function?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|