|
You need to set the lpstrInitialDir member of the OPENFILENAME member struct (m_ofn) in the CFileDialog class. See the doc for more info.
onwards and upwards...
|
|
|
|
|
Thanks, that works great. I must have missed that m_ofn data item.
Jeff Rothenberg
Project Engineer
Vector CANtech, Inc.
|
|
|
|
|
I am trying to get the text out of an AOL Messenger Chat session. AIM has an Internet Explorer Server, but after I get a handle for it and try to read the text, I come up with an empty string.
Here are the steps that I am doing
I get a reference to a IHTMLDocument2 interface
from that I get a pointer to IHTMLElement interface by calling the get_body function from the IHTMLDocument2 interface.
Then I call the following functions out of desperation on the IHTMLElement Inface
get_innerHTML returns blank
get_innerText return blank
get_outerText return blank
get_outerHTML returns "<BODY><XMP></XMP></BODY>"
I tried the same thing with Yahoo Messenger and it worked perfectly.
Any suggestions
Thanks
Saquib
|
|
|
|
|
Try the GetDocumentHTML method which returns the entire HTML code.
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
I just realized that the text window in AIM is Ate32Class.Any ideas on how can I get the text from this window?
Thanks
Saquib
|
|
|
|
|
GetWindowText()?
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
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"
|
|
|
|
|
Hi
Thanks for your help
GetWindowText() only works if the window is owned by the process calling this function. So that wont work for me but I tried sending the WM_GETTEXT message and that worked.
Thanks Again.
Saquib
|
|
|
|
|
Hi,
I am working on a project in which has two parts, one is a Windows NT/2K service and other is an Administrative GUI part. I need to communicate between two application, so that the application can access the data of service. I think IPC is used for completion of this task. But I have no idea how to implement this, some beginer or introductory level material will be helpful...
thanks in advance
|
|
|
|
|
I maybe way off on this one but have you looked at using mail slots.
Checkout the following article, they might be of some help
http://www.codeproject.com/useritems/fakesend.asp?target=mailslots
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/mailslot_functions.asp
Saquib
|
|
|
|
|
Hello,
I always lose the connection to a client, when I send data and want to receive data again. I don't know why.
1. AcceptEx()
2. ReadFile() <- at this point I received the last data
3. WriteFile() <- I think I lose the connection at this point!
4. ReadFile()
5. WriteFile()
6. ReadFile()
.
.
.
----
What am I doing wrong? I hope you can help me,
bond006
|
|
|
|
|
Do you develop both the server and client?
Kuphryn
|
|
|
|
|
I only develop the server. The client is working well with other servers and it is open source.
|
|
|
|
|
Okay. It is up to the developers who are working on the client to get it to synchronize with your server.
Kuphryn
|
|
|
|
|
double-post, because I got an error message first
|
|
|
|
|
I need to get some memory information in my program
Amount of memory in computer.
Available memory.
How much memory my program currently occupies.
Anyone know how to do it or where I should look.
|
|
|
|
|
GlobalMemoryStatus is what you are searching for.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks. It solved 2 out of 3 problems..
Still have one problem. How do I find out how much memory my program already has allocated? Like in TaskManager, where I can go and see how much memory a program takes. But I need to do it in code in runtime.
|
|
|
|
|
I'm sorry I can't help you with the third problem
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Problem Solved..
To get CurrentProcess memory usage
<br />
#include "Psapi.h"<br />
<br />
...<br />
...<br />
...<br />
HANDLE hProcess = GetCurrentProcess();<br />
PROCESS_MEMORY_COUNTERS pmc;<br />
GetProcessMemoryInfo( hProcess, &pmc, sizeof(pmc) );<br />
<br />
....<br />
....<br />
and Add 'Psapi.lib' to link settings.
|
|
|
|
|
Read this before you put too much stock in those numbers:
http://flounder.com/howbig.htm
|
|
|
|
|
Hi,
I have a couple of DLL's which have an "unexplained" 8MB overhead in the .data segment (virtual size 0x00800000). The data does NOT appear in the binary (so I suppose it's zero-initialized data)
Any idea how to find out where this comes from?
More Info: I have a dozen COM DLL's, 7 of them implement modules with more or less the same interface, in roughly two groups, one group has the overhead the other has not. Virtual size of .data segments in the "ok" group is around <0x5000, in the "problem" group 0x800000 + sth. <0x5000.
I cannot find anything that looks like the culprit
Map file: the relevant entries are
...
0003:00003d58 008008dcH .bss DATA
...
0003:008043fc ?_Nilrefs@?$_Tree@VCString@WTL@@U?$pair@$$CBVCString@WTL@@M@std@@U_Kfn@?$map@VCString@WTL@@MU?$less@VCString@WTL@@@std@@V?$allocator@M@4@@4@U?$less@VCString@WTL@@@4@V?$allocator@M@4@@std@@1IA 00cd73fc FWorkLib:DlgConflict.obj
0003:00804400 ?_Nil@?$_Tree@VCString@WTL@@U?$pair@$$CBVCString@WTL@@M@std@@U_Kfn@?$map@VCString@WTL@@MU?$less@VCString@WTL@@@std@@V?$allocator@M@4@@4@U?$less@VCString@WTL@@@4@V?$allocator@M@4@@std@@1PAU_Node@12@A 00cd7400 FWorkLib:DlgConflict.obj
i.e. it looks like the _Nilrefs thing claims that much size.
Funnily, even DLL#s that are not affected use FWorkLib:DlgConflict.obj
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
I am using vc++ connect mysql. I connect to mysql and display the date field data in the text box. how i going to get the date value display in the text box so that i can increase the year.??? Or convert string to date type and increase the year
|
|
|
|
|
If the "text box" is a datetime control, you can use the DTM_GETSYSTEMTIME message. With MFC, this is CDateTimeCtrl::GetTime(), and the result can be stored in a CTime or COleDateTime object.
If you just have a plain edit box, use GetWindowText() to get the value, and then parse it accordingly. It'll depend on where the year is within the date.
|
|
|
|
|
My class relationship is:
class CViewBase::CFormView
{......}
class CViewLogon::CViewBase
{......}
CViewLogon::OnInitialUpdate()
{......}
i want do something in func CViewLogon::OnInitialUpdate(),but the program did not execute the func at all.in other word,i can't trace into the func CViewLogon::OnInitialUpdate(). what's up to my program?
gucy
|
|
|
|
|
Where are you trying to invoke OnInitialUpdate? Or are you letting MFC do it. Also, check and make sure your routine declaration matches EXACTLY. If you change and argument or a return type, it won't get executed.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|