|
If I understand your question, the resources on the machine in question would need to be shared.
In the Local Area Connections Properties dialog, make sure File and Printer Sharing for Microsoft Networks is listed in the Components box. On the machine that wants to use the resource, when asked for the name and/or location of the device, use something like \\a.b.c.d\resource_name.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Dear Mr Bhavani;
Thank you for the help that you have given me in accessing a public variable from anywhere within my application. The problem is that the code did not work at all. The compiler strongly complained when i added these code:
((CDatastructorView *) AfxGetMainWnd())->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
CDatastructorView is my view class and m_main is a web-control which i want to use.
The compiler responded as :
:\datastructor\lefttooldlg.cpp(1296) : error C2065: 'CDatastructorView' : undeclared identifier
C:\datastructor\lefttooldlg.cpp(1296) : error C2059: syntax error : ')'
C:\datastructor\lefttooldlg.cpp(1296) : error C2059: syntax error : ')'
Ps. I have tried whatever Mr Davy and Mr Chen told me but when i include the "datastructorView.h" file within lefttooldlg, i have a few errors telling me that some "doc" stuff are not recognised....
Could you please help me out because i am still pretty at lost.
Krugger
Krugger
|
|
|
|
|
Redo what Mr Davy and Mr Chen and report the errors here
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
datastruct wrote:
Ps. I have tried whatever Mr Davy and Mr Chen told me but when i include the "datastructorView.h" file within lefttooldlg, i have a few errors telling me that some "doc" stuff are not recognised....
Due to the way the MFC AppWizard builds files, you will also have to include datastructorDoc.h before you include datastructorView.h
datastruct wrote:
((CDatastructorView *) AfxGetMainWnd())->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
This looks wrong to me. AfxGetMainWnd returns a pointer to the m_pMainWnd which in a DocView architecture is usually the CMainFrame class.
I suspect your code needs to be more like this
CMainFrame* pFrame = (CMainFrame*) AfxGetMainWnd();
if(pFrame != NULL)
{
CDatastructorView* pView = (CDatastructorView*) pFrame->GetActiveView();
if(pView != NULL)
{
pView->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
}
}
Michael
CP Blog [^]
|
|
|
|
|
The compiler responsed that erros because you did not include header file of CDatastructorView class in lefttooldlg.cpp.
In spite of you have done as few guides but errors stilled occurring. It can be that you did not included header correctly.
I guess that you have included header file in dialog implementation file, so compiler complained about GetDocument member function which declared in such header file.
In this case, you should include document header file (I guess it may be DatastructorDoc.h ) before view header file.
<br />
#include "DocHeader.h"<br />
#include "ViewHeader.h"<br />
There are few others way can help you resolve that problem.
If you need to include view header file in dialog header file:
In header file of dialog, at before dialog declaration, declare:
<br />
class CDatastructorView;<br />
In dialog implementation file (cpp), include CDatastructorView header file at before DatastructorView.h such below:
<br />
#include "DatastructorView.h"<br />
#include "dialog.h"
Good luck
|
|
|
|
|
Errrr, stupid question:
((CDatastructorView *) AfxGetMainWnd())->m_main.Navigate("file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
Isn't there missing this bracket right after "Navigate"?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
I am trying to open a file on windows 2000 using CreateFile as follows, and I am getting error 32 (The process cannot access the file because it is being used by another process.).
hFile = CreateFile( lpszName,
GENERIC_READ ,//| GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
Surprisingly, I can open the same file using gvim.exe but not wordpad, notepad or even Visual studio?
Thanks for any ideas.
~f
|
|
|
|
|
What happens if you use FILE_SHARE_READ for the dwShareMode parameter?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
the file already has an open (read share) handle from another app, so you have to open it with read share also or it won't work.
Don't try it, just do it!
|
|
|
|
|
Hi
I am doing an application that requires data entry. Verification of data entry is done using EN_ENTER window message. but in the event the user uses tab, the en-enter was not called and i have problem verifying the entry.
i am developing in a window cE device.
any help will be appreciated.
|
|
|
|
|
|
Try the WM_KILLFOCUS Message will help to your problem
All the best
|
|
|
|
|
Hi all,
I am using SHBrowseForFolder function in my application to select an output folder. I use BIF_NEWDIALOGSTYLE as one of the values for the ulFlags in the BROWSEINFO structure that is passed to SHBrowseForFolder function. I noticed that when this flag is used, the browse for folder dialog box does not validate when I select the floppy drive or CD Rom drive. These validations are done when BIF_NEWDIALOGSTYLE is not used. My requirement is that validations are done when the floppy or CD ROM drive is selected and also to have the new dialog style with the "New Folder" button and the "Edit Text" box. Can any of the experts out there help me?
Thanks and Regards,
Nihal
|
|
|
|
|
How can i clear socket's incoming buffer??
|
|
|
|
|
by reading in it...
TOXCCT >>> GEII power
|
|
|
|
|
tcp or udp?
you can read from it or you can close and reopen it (tcp).
Don't try it, just do it!
|
|
|
|
|
I'm trying to know if a WMV3 (Window Media Video 3 from the Media Player 9 serie) encoded file can be read on a computer.
I use ICInfo function to retreive installed codecs. On some machine it seems that there is no WMV3 codec but a WMV3 could be played. How is that ?? How could I check that a WMV3 file can be played without using DirectShow ??
|
|
|
|
|
Windows Media is only supplied as DirectShow filters. There is no Video for Windows-compatible WMV codec. The two systems are entirely independent of each other. Some formats do have both a VfW codec and a DirectShow filter, but this is not required.
Windows Media Player supports using both the DirectShow and Video for Windows subsystems.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Ok, thank,
so which filter is reponsible for playing wmv3 encoded file ??
I'm using VCSwap and in the DirectShow Filters listing I can see two Windows Media Video Decoders (wmvds32.ax and wmv8ds32.ax) but it seems they come from Media Player 8 (wmv2).
|
|
|
|
|
I have a dialog, on that i have buttons, with each button i declare a veriable of type CShadeButtonST and call method SetShade(). The problem come when i close the dialog, that is i receive an error message, it is
"the instruction at "0x77f53d14" reference memory at "0x0000000010". The memory could not be "read" "
I try many method and found that the problem come form me thod SetShade(), if i don't call that method everything is ok.
Please tell me how to fix this problem.
Tran Thanh Binh
|
|
|
|
|
When I was compiling several .cpp files ,the error occurs :\vcsetup\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory.what's the meaning?I think I have never made any change to that directory and such error didn't occur when compiling other MFC project.thanks!
|
|
|
|
|
Well, it should certainly be there. At a guess, at least one of the source files uses the <iostream> header, which depends on <ios> .
I'm afraid the solution is to reinstall Visual C++ 6.0.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Step 1: Softphone rings with callerid 01517077777 displayed.
Step 2: Myprog somehows gets the telephone number from the screen of the softphone and opens up IE http://domain.com/whoscalling.asp?callerid=01517077777
Any ideas on how I would start this?
|
|
|
|
|
The softphone i am using is X-Lite from X-ten. I have found that there is a log file window which displays the all the data I want as plain text. I can cut and paste within this window it's a bit like notepad
eg
So my prog needs to be able to read characters from another app's window. Could I write a VB or VC prog to pull data from another app like notepad?
|
|
|
|
|
Check FindWindow and GetWindowText
Use Spy ++ to find the arguments to FindWindow
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|