|
Do you want to open an external application eg Notepad to display the text file(Use ShellExecute in this case)
If you want to show the text somewhere else you need to pass a pointer to another class from where you want to access the functions.
eg:
in wartzDlg.h include MyNewDlg.h(Supposing you name your class this way)
in MyNewDlg.h include wartzDlg.h . Create a pointer for wartzDlg in the header file MyNewDlg.h like CwartzDlg *myDlg;
Now when you call this new dialog from wartzDlg
CMyNewDlg *newDlg=new CMyNewDlg();
newDlg->myDlg=this;
newDlg->DoModal();
Now with the help of myDlg pointer you would be able to access the variables/member functions of the wartzDlg in MyNewDlg
-- modified at 2:17 Monday 7th August, 2006
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hai
I want to display all the filenames in particular Folder in list control with particlar extension(ex:jpeg,bmp).is there any classes and methods to display filenames.it is very urgebt for me.
|
|
|
|
|
check
FindFirstFile & FindNextFile
nave
|
|
|
|
|
See
<br />
WIN32_FIND_DATA find;<br />
HANDLE handle=FindFirstFile("*.bmp",&find);<br />
while(FindNextFile(handle,&find)!=0)<br />
m_List2.AddString(find.cFileName);
FindClose(handle);<br />
<br />
|
|
|
|
|
Since it appears that you are using MFC, check out the CFileFind class. For each file found, use CListCtrl::InsertItem() to insert the item in the list control.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
if i want to do comparison between 2 files(images), i'll have to take the bytes of the files right? AND.... how should i go about doing it?
Thanks
Regards....
|
|
|
|
|
|
Erm...... i could not open the link above....
|
|
|
|
|
Copy the link and paste in addressbar.
Regards
Amar
|
|
|
|
|
|
Do you get this error with other articles, too?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have captured image buffer frames from webcam and I want to store these as mpeg video format (.mpg). Please help me with how way to convert a image buffer as byte that captured from webcam to a mpeg format frame and store this as mpeg video?
Thank in advance!
|
|
|
|
|
If you are prepared to change from MPEG format to AVI or WMV format, there is a lot more information on CodeProject. CodeProject does not have much on MPEGs, probably because the format is not supported directly by MS.
When I wanted to save an AVI file, this article http://www.codeproject.com/bitmap/createmovie.asp[^] was very useful.
|
|
|
|
|
hey all,
I am using VC++6.0. iam in need of plotting graph using MFC.
i have to plot the data values received from USB.
I have to plot data vs time as and when the USB receives the data.
What MFc class would best suit my need.
As this is my first attempt in MFC, can you please help me with some code that shows the implementation of the above.
Thanks in advance.
|
|
|
|
|
thathvamsi wrote: plotting graph
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
How do I do this as given in the article.
"Before the ActiveX control can be used in your application, it must be registered as a COM Component in the system registry. This is a self registering control. This means that to register the control in the system registry you only need to have an application load the control and call the control’s exported function DllRegisterServer. You can use the REGSVR32 utility or have your setup program do this."
Can you help me?
|
|
|
|
|
thathvamsi wrote: do this as given in the article.
To register the OCX Control go to start>Run . Type regsvr32 in the edit box and put the path of the ocx where you have stored after that (in the edit box).
Press OK . You will get a confirmation that registration succeeded.
In the Visual Studio go to tools> Active X Test container. Select this and in the list that is populated with various activex controls registered on your machine you can find and test this one in the container. I hope you will be able to do this .
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Type regsvr32 in the edit box and put the path of the ocx where you have stored after that (in the edit box).?
Am I suppose to store the ocx first? From where do I store it?
|
|
|
|
|
You need to download the ocx and save it on your machine somewhere. Then you will be able to register the ocx
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi there,
I tried doing the same.
ButWhen I click "OK" after slecting the path for the ocx, I get the error message as:
No DLL name specfied. Usage:...
I dont understand this. What dll name ?
|
|
|
|
|
At the top of the article click on download control binaries. This will pop up a dialog and ask for a path for where to save the .ocx file.
Now go to Start > Run type the path of the ocx and press ok. Now follow as my previous post
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thanks very much. I could add it.
Will try working on it.
But a quick question....
i need to plot large number of points say,250,000 points in one attempt.
Will this control handle it? Or will it be slow after say 50,000 point or so...?
|
|
|
|
|
thathvamsi wrote: plotting graph
I haven't worked with the control much. But I hope that you will be able to use this control upto quite an extent.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thanks for the prompt response.
I will try it and let you know how I go.
|
|
|
|
|
I'm working on adding the hot-switching of languages to my app, though I have ran into a few problems. I have created sattelite dlls for each of the translated resources. I create a language selection menu at run time with the help of this[^]article. I am able to update the menu and progress bar but unable to update the main dialog. The dialog is contained within the language dlls and contains many controls (with text). So, after calling LoadLibrary how do you update the main window? BTW this is a non-MFC app.
|
|
|
|