Click here to Skip to main content
15,905,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to disable lockup screen key(VK_LWIN+L or VK_RWIN+L)? Pin
zhouhh19-Feb-08 21:31
zhouhh19-Feb-08 21:31 
GeneralRe: How to disable lockup screen key(VK_LWIN+L or VK_RWIN+L)? Pin
James R. Twine20-Feb-08 7:28
James R. Twine20-Feb-08 7:28 
Generaloutput status - update window Pin
Paulraj G19-Feb-08 21:03
Paulraj G19-Feb-08 21:03 
GeneralRe: output status - update window Pin
Mark Salsbery20-Feb-08 6:00
Mark Salsbery20-Feb-08 6:00 
QuestionHow to run vbscript from C++ code? Pin
sandeepkavade19-Feb-08 20:22
sandeepkavade19-Feb-08 20:22 
Generalexception error occurs in Navigate2 function Pin
nitin_pro19-Feb-08 19:10
nitin_pro19-Feb-08 19:10 
GeneralRe: exception error occurs in Navigate2 function Pin
_AnsHUMAN_ 19-Feb-08 19:48
_AnsHUMAN_ 19-Feb-08 19:48 
GeneralRe: exception error occurs in Navigate2 function Pin
nitin_pro19-Feb-08 22:33
nitin_pro19-Feb-08 22:33 
there are two programs one is exe ane another one is Dll in EXE there is no error and in Dll we face a exception error
i 'll pass the path of the file in Navigate2 like this

memset(szFolderPath, 0x00, MAX_PATH);
SHGetSpecialFolderLocation(NULL,CSIDL_RECENT, &pidl);
BOOL f = SHGetPathFromIDList(pidl,szFolderPath);

csTempPath.Format(_T("%s"),szFolderPath);

INT nTempIndex =csTempPath.Find(_T("Recent"));
csTempPath =csTempPath.Mid(0,nTempIndex);
csTempPath =csTempPath + _T("Local Settings\\Temp\\Sample") + csExt;

hDevice = CreateFile(csTempPath, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
NULL, CREATE_ALWAYS,0,NULL);

if(hDevice)
{
pView->Navigate2(csTempPath);
pView->EnableWindow(FALSE);
pView->ShowWindow(SW_NORMAL);
}

the same code successfully runs in an exe but when i make a dll ithe navigate function gives the error . when i debug the code error shows in this Class C:\....MFC\SRC\VIEWHTML.CPP
just have a look the code where excatly the error promts i'll mark the arrow


void CHtmlView::Navigate2(LPCTSTR lpszURL, DWORD dwFlags /* = 0 */,
LPCTSTR lpszTargetFrameName /* = NULL */,
LPCTSTR lpszHeaders /* = NULL */,
LPVOID lpvPostData /* = NULL */, DWORD dwPostDataLen /* = 0 */)
{
ASSERT(m_pBrowserApp != NULL);

COleSafeArray vPostData;
if (lpvPostData != NULL)
{
if (dwPostDataLen == 0)
dwPostDataLen = lstrlen((LPCTSTR) lpvPostData);

vPostData.CreateOneDim(VT_UI1, dwPostDataLen, lpvPostData);
}

COleVariant vURL(lpszURL, VT_BSTR);
COleVariant vHeaders(lpszHeaders, VT_BSTR);
COleVariant vTargetFrameName(lpszTargetFrameName, VT_BSTR);
COleVariant vFlags((long) dwFlags, VT_I4);

===>>> m_pBrowserApp->Navigate(vURL,
vFlags, vTargetFrameName, vPostData, vHeaders);
}

kindly solve the issue
thanks
GeneralC++ code migration to Linux Pin
Member 386968219-Feb-08 19:02
Member 386968219-Feb-08 19:02 
GeneralRe: C++ code migration to Linux Pin
Nemanja Trifunovic20-Feb-08 5:59
Nemanja Trifunovic20-Feb-08 5:59 
GeneralDirectShow Pin
Chandrasekharan P19-Feb-08 18:18
Chandrasekharan P19-Feb-08 18:18 
AnswerRe: DirectShow Pin
Rajkumar R19-Feb-08 18:20
Rajkumar R19-Feb-08 18:20 
GeneralRe: DirectShow Pin
Chandrasekharan P19-Feb-08 18:27
Chandrasekharan P19-Feb-08 18:27 
AnswerRe: DirectShow Pin
Rajkumar R19-Feb-08 18:38
Rajkumar R19-Feb-08 18:38 
Generalgaussion function in c++ [modified] Pin
gentleguy19-Feb-08 16:15
gentleguy19-Feb-08 16:15 
GeneralRe: gaussion function in c++ Pin
CPallini19-Feb-08 22:54
mveCPallini19-Feb-08 22:54 
GeneralRe: gaussion function in c++ [modified] Pin
gentleguy20-Feb-08 0:31
gentleguy20-Feb-08 0:31 
QuestionRe: gaussion function in c++ Pin
CPallini20-Feb-08 4:26
mveCPallini20-Feb-08 4:26 
GeneralUI Thread question (noob) Pin
Maximilien19-Feb-08 13:47
Maximilien19-Feb-08 13:47 
GeneralRe: UI Thread question (noob) Pin
Mark Salsbery19-Feb-08 14:45
Mark Salsbery19-Feb-08 14:45 
GeneralRe: UI Thread question (noob) Pin
Maximilien19-Feb-08 15:11
Maximilien19-Feb-08 15:11 
QuestionHow to start ? built app to communication through USB port Pin
quangpk19-Feb-08 13:12
quangpk19-Feb-08 13:12 
AnswerRe: How to start ? built app to communication through USB port Pin
Maxwell Chen19-Feb-08 15:57
Maxwell Chen19-Feb-08 15:57 
QuestionAny buttons styles to get a CButton to look like a toolbar button? Pin
jeffb4219-Feb-08 11:19
jeffb4219-Feb-08 11:19 
GeneralRe: Any buttons styles to get a CButton to look like a toolbar button? Pin
Maxwell Chen19-Feb-08 16:50
Maxwell Chen19-Feb-08 16:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.