|
If you have a function that it supports html document now what prolem?
|
|
|
|
|
::ShellExecute(NULL, "open", "http://the_url.htm", NULL, NULL, SW_SHOW);
|
|
|
|
|
1)In my application im calling this function
::FtpCommand(hConnect, // WinInet Connection handle
FALSE, // No, I don't expect a response
FTP_TRANSFER_TYPE_BINARY, // I'm receiving ASCII
strSeekOffsetCMD.c_str(), // This is the FTP command I am passing
0, // No context needed
&hResponse); // The handle to read the response
But im getting error like this......
C:\Documents and Settings\Administrator\Desktop\pr\PauseResumeDemoDlg.cpp(311) : error C2039: 'FtpCommand' : is not a member of '`global namespace''
C:\Documents and Settings\Administrator\Desktop\pr\PauseResumeDemoDlg.cpp(311) : error C2065: 'FtpCommand' : undeclared identifier
Error executing cl.exe.
this FtpCommand has to be declared in WinInet.h.................but in VC98
it is not defined how can i solve this issue .....................
|
|
|
|
|
codepanter wrote: is not a member of '`global namespace''
Remove :: and put is as FtpCommand(/*parameters*/)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Are you using the correct platform SDK? Have you looked in wininet.h to make sure the functon's signature is there?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have a CDialog class CRTLDialogDlg which derives from CDialog and CDialogTemplate. I need to change the Dialog template of my dialog to support Hebrew. I Override the DoModal of CRtlDialogDlg and write the following code :
INT_PTR CRTLDialogDlg::DoModal()
{
CRTLDialogDlg *pDlg = (CRTLDialogDlg*)this;
int nResult;
HINSTANCE hInst = AfxFindResourceHandle(MAKEINTRESOURCE(CRTLDialogDlg::IDD), RT_DIALOG);
if (hInst == NULL)
return FALSE;
HRSRC hRsrc = FindResource(hInst, MAKEINTRESOURCE(CRTLDialogDlg::IDD), RT_DIALOG);
if (hRsrc == NULL)
return FALSE;
HGLOBAL hTemplate = LoadResource(hInst, hRsrc);
DLGTEMPLATE* pTemplate = (DLGTEMPLATE*)LockResource(hTemplate);
pTemplate->dwExtendedStyle |= WS_EX_LAYOUTRTL;
SetTemplate(pTemplate, (UINT)SizeofResource(hInst, hRsrc));
UnlockResource(hTemplate);
FreeResource(hTemplate);
//// get pointer to the modified dialog template
LPSTR pdata = (LPSTR)GlobalLock(pDlg->m_hTemplate);
//// let MFC know that you are using your own template
m_lpszTemplateName = NULL;
InitModalIndirect(pdata);
//// display dialog box
nResult = CDialog::DoModal();
//// unlock memory object
GlobalUnlock(pDlg->m_hTemplate);
return nResult;
}
But this does not do anything at all. Where have I gone wrong? It works perfectly if I change the .rc file but I dont want to make any changes in the .rc File.
Reji Kumar,
Software Engineer,
India.
|
|
|
|
|
Hi,
Why dont you use the Create method for choosing a template at runtime?
Mohmmad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Could you tell me how to do it using Create? My basic requirement is to bring up a Modal dialog box with all controls rightaligned to support RTL languages.
Reji Kumar,
Software Engineer,
India.
|
|
|
|
|
Dear all
during an image show i would like to use other menus.but for now in my sytem, during show image, i can't use other menus.that means i can't click other menus. how to use mouse function to realize this? thank u
Li Zhiyuan
5/10/2006
|
|
|
|
|
How do you show your image and why you cant use from menus?
|
|
|
|
|
I have to set MIME type of IIS from VC++ application using COM interface.
Pls share code or information
Thanks
Anil
|
|
|
|
|
|
Hi,
I need a code to send mail thru VB with out opening
Outlook or Outlook xpress (The mail sending should
not transparent to users). post code snippet
ASAP.
You only have to do a very few things right in your life so long as you don't do too many things wrong.
Vivek.S
|
|
|
|
|
|
wrong forum send VB forum
|
|
|
|
|
vivek.s.vivek wrote: post code snippet
ASAP.
Yes master right away ....
I doubt therefore i might be
|
|
|
|
|
"ASAP" This is really funny
|
|
|
|
|
vivek.s.vivek wrote: I need a code to send mail thru VB
1. You work on VB
vivek.s.vivek wrote: (The mail sending should
not transparent to users)
2. You do not know what you want
vivek.s.vivek wrote: post code snippet
3. You are not keen to learn and you just want the code.
vivek.s.vivek wrote: ASAP
4. You crack silly jokes
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
vivek.s.vivek wrote: You only have to do a very few things right in your life so long as you don't do too many things wrong.
Consider now to be one of those times you did something wrong.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I am having two exes, say a.exe and b.exe. I am creating a dialog window in a.exe and making it as a child of another window in b.exe. Child window appears at the center of screen instead of the main window center of b.exe.
Thanks,
--Umesh
Umesh Goel
|
|
|
|
|
Excuse me you have two files(a/b) and create a window on a.exe and then?
|
|
|
|
|
You could always move it using MoveWindow as you have HWND of both windows.
My sins are bloody red, my coffee is a black hole.
|
|
|
|
|
ugoel wrote: I am creating a dialog window in a.exe and making it as a child of another window in b.exe.
Without more supporting details, this seems to be a very bad idea.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
This "// Generated message map functions " (VC 6.0) is misbehaving.
After adding right mouse button function I found out that last three functions in this "//{{AFX_MSG " block are missing. The function definitions are still in .cpp file.
Are there any limits to how many functions MFC will generate?
Thanks for reading
|
|
|
|
|
I dont know the limit but u may generate many functions in vc++ . there is not as such limit ....sometimes there might be problem that we dont see msg mapping code but definition is still there .....
u may restart ur computer and then debug ur code and than u see is there all msg map code is display on screen
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|