|
If you are using MFC, then you could use the CHttpConnection and CHttpFile classes to retrieve the results of the ASP page. In terms of parsing it, you are then just parsing a text stream, so i can't really help without knowing what it looks like, but it would probably be easier if the ASP page generated an XML document - you could then use an existing parser rather than having to write your own, making the whole process fairly trivial.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Great, thanks. That's exactly what I was looking for. I should have dug around in MFC a little more before posting.
|
|
|
|
|
Is it possible to adjust the height of an edit box so that it is only as tall as the text?
It's taking up valuable real-estate!
|
|
|
|
|
One solution is SetWindowPos(). Use GetTextExtent() to get the text height and width.
Kuphryn
|
|
|
|
|
I'm not really sure how to tackle this problem with this functions.
Can someone walk me through this?
Thanks,
Jim
Background: Dialog app using Edit box controls to display dynamic text.
|
|
|
|
|
Here is one possible solution. Do try it out first to see if it works because I have not tried it.
CFont x = GetDlgItem(IDC_EDIT)->GetFont();
LOGFONT z = x.GetLogFont();
CSize height = x.lfHeight,
weight = x.lfWeight;
Kuphryn
|
|
|
|
|
Does anyone know the command for executing a file through c++(MFC) (Opening the file with the assoicated program) I tried looking up execute or searching in the help but I'm not finding it.... Can anyone point me in the right direction?
|
|
|
|
|
|
|
you can call FindExecutable() which returns you the executable file's path associaated with the given file.
then call shell execute on that
rehards.
Vikram
|
|
|
|
|
Try this one - for starting the executable associated with file and wait until the exec. is finished.
SHELLEXECUTEINFO si;<br />
memset( &si, 0, sizeof(si) );<br />
<br />
si.cbSize = sizeof( SHELLEXECUTEINFO );<br />
si.fMask = SEE_MASK_NOCLOSEPROCESS;<br />
si.lpFile = szFileName;<br />
<br />
BOOL bRet = ShellExecuteEx( &si );<br />
<br />
if( bRet && si.hProcess )<br />
{<br />
si.hProcess<br />
}<br />
hope this helps
|
|
|
|
|
Hi,
I'm looking for a good tutorial or book about using ODBC.
thanks.
Everything's beautiful if you look at it long enough...
|
|
|
|
|
Hi,
I need to add some user controls to the GUI of my form, but I don't knpw how to do that in Visual C++ .NET. I can do it in C# or Java (and I can write C++ programs in DOS). But I can't build GUI for my windows applications.
Can someone help me???
Thank you in advance,
Boudewijn Ector
The Netherlands
|
|
|
|
|
Are you talking about the .net Framework or MFC ? I Assume it's for .net
There's no visual GUI builder for VC++.net yet, you need to do it by hand in the code.
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
I'm trying to convert some static libraries we have to DLLs. I'm trying to keep the code as portable as possible so I really would not like to use any windows headers.
1) Can I just leave out the Dllmain function and just use
delspec(dllimport/export) etc... for the class declarations.
2) Is it possible to just change some project settings to covert a project from a static library to a dll? (I remember in my makefile/*nix days all i had to do was change a flag).
Cheers
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
|
I have a client that needs an app that would generate a JPEG file from a web page. Anyone knows how to do this?
Thanks!
---------------
Tired of Spam? Introducing InboxShield® for Microsoft® Outlook®
http://www.edovia.com
|
|
|
|
|
I'm trying to programmatically determine the current and maximum speeds of the NIC(s) installed in a local PC from VC6. The Net*() APIs don't reveal anything too obvious so far...
Hopefully I won't have to look at registry entries, as the layout of these have changed time and time again from 95 to 2K3...
Any suggestion?
|
|
|
|
|
Hi all,
Is there any "Pause" commands out there? Besides using a for loop. Thanks
Matt
Matt Millican
http://www.internetmill.com
|
|
|
|
|
Yes, you can use Sleep(DWORD dwMiliseconds)
|
|
|
|
|
if you want to you can use system("pause") which is just like the DOS command, it will ask the user to press any key to continue, include stdlib.h
|
|
|
|
|
Try Sleep(time_in_milliseconds)
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
Thanks much guys,
I will try that out.
Matt
Matt Millican
http://www.internetmill.com
|
|
|
|
|
I'm using HtmlHelp to display help text as text popup (when pressing F1). Does anyone know if I can have different fonts in a message? Or is just plain text allowed?
The help pop-ups in CFileDialog can contain different fonts and images.
This is my code for displaying text pop-ups:
BOOL CMyView::OnHelpInfo(HELPINFO* pHelpInfo) <br />
{ <br />
static CString theMessageString = "Help message Using different fonts";<br />
<br />
HH_POPUP hPop;
<br />
memset(&hPop, 0, sizeof(hPop)); <br />
<br />
hPop.cbStruct= sizeof(hPop); <br />
<br />
hPop.clrBackground = RGB(255, 255, 208); <br />
hPop.clrForeground = -1;<br />
hPop.rcMargins = CRect(-1,-1,-1,-1);<br />
hPop.pt = pHelpInfo->MousePos; <br />
hPop.pszText = theMessageString;<br />
<br />
HtmlHelp(this->GetSafeHwnd(), 0, <br />
HH_DISPLAY_TEXT_POPUP, (DWORD)&hPop);<br />
return TRUE;<br />
}
|
|
|
|
|
Dear friends,
I want to create and destroy ActiveX control at run-time. Can anyone tell me how ????
Thanks in advance.
|
|
|
|