|
Okay, I figured it out. Thanks for all the comments.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
The real question is, why will you ever need such a thing? I am assuming that there's some kind of a lengthy operation (in place of that message box) and that blocks your UI. You would be better off using a thread in that case. Do I need to mention that a process is way much more expensive than a thread from the view of the OS?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
i have an sdi type application,and split it in 2 columns,treeview used for one column and formview for another.
form view have an ListBox but its size is so small becoz of to much controls on form.
in List Box i m continously inserting some values with the use of workerthread.
becoz of its small size,hectic to scroll chk all inserted view,so i want to use full screen concept for this list box.
so i m creating a dialog box with a Listbox,now i want all values those are inserted in small list box,are same display in dialog box.
please tell me solution.
or if any other better solution than suggest me.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
A simple method, create a member variable in App class (an array or list) use this variable as if global to all views.
|
|
|
|
|
thanks.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
hi!
I want to call the dialog internet option in IE using programmming from an external application.
Can any one please help me?
thanx in advance.
|
|
|
|
|
I'm sure there are other better ways of doing this, but this works
system("control inetcpl.cpl");
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
To be specific, use ExecWB method of IE with IDM_OPTIONS in first parameter
Like pBrowser-> ExecWB(IDM_OPTIONS,NULL,pVarIn,pVarOut);
|
|
|
|
|
thanx.now i have done it.
|
|
|
|
|
|
Can i get any example to utilize strcmp() in MFC.
French is the language of love, for everything else there is c++ ...(anonymous)
|
|
|
|
|
Only if you can read the documentation here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Thanks Ansuman, Chandrasekharanp
French is the language of love, for everything else there is c++ ...(anonymous)
|
|
|
|
|
strcmp Example [^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
<br />
if(strcmp(strHello,_T("Hello")==0)<br />
{<br />
cout << _T("SAME");<br />
}<br />
is same as
<br />
CString strHello(_T("hello"));<br />
if(strHello.Compare(_T("Hello"))==0)<br />
{<br />
cout << _T("SAME");<br />
}<br />
in MFC
|
|
|
|
|
dubeypankaj wrote: Can i get any example to utilize strcmp() in MFC.
Heck, you're asking for example in MFC, so I'm giving you the MFC solution :
have a look at CString::Compare and CString::CompareNoCase
This signature was proudly tested on animals.
|
|
|
|
|
I have a VC++ application which supplies the values. I draw chart using a VB EXE which has to get dynamic values from the VC++ EXE.
So I want to share memory between the 2 EXE's VB6 and VC6.
If it is possible, Pl. provide me with some sample code and step by step approach to do this.
Thanks in Advance
|
|
|
|
|
You could use memory mapped files.
Refer to these APIs
CreateFile<br />
CreateFileMapping<br />
OpenFileMapping<br />
MapViewOfFile<br />
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
manohar_balu wrote: If it is possible, Pl. provide me with some sample code and step by step approach to do this.
The WM_COPYDATA Message[^] might be the easiest method for you. There is an MSDN article which can give you a step by step approach.
How To Pass String Data Between Applications Using SendMessage[^]
This technique can be used to pass data between a VB and C++ application provided that both applications have a window message pump.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
We have a pretty extensive application that is written and maintained in VC++ v6. I am trying to add a new dialog box & class and suddenly I am getting an error that I can't seem to correct.
Here is the steps that have always worked... and now... don't....
- I created a new DIALOG with the INSERT DIALOG option under RESOURCES
- I hit the CTRL-W to open the CLASS WIZARD.
- I entered the name TESTDIALOG and picked the CDialog base class
- When hit OK, I get this error
Unable to open files (C:\MYPROG\TESTDIALOG.H, C:\MYPROG\TESTDIALOG.CPP) for class "TestDialog"
It adds the files to the directory, adds the class to the CLASS VIEW tab of the workspace, but it does not add it to the CLASS WIZARD. I can try to add a class through the class wizard off of ANY baseclass and get the same results.
I also have tried to recreate the Workspace and Class Wizard DB by deleting the NCB and CLW files. That doesn't help either.
Any suggestions?
Thanks
|
|
|
|
|
PBrama wrote: - When hit OK, I get this error
Unable to open files (C:\MYPROG\TESTDIALOG.H, C:\MYPROG\TESTDIALOG.CPP) for class "TestDialog"
Sometimes the temporary files (e.g., .aps, .opt, .ncb, .clw) get messed up. Close VS and delete them. They get re-created as necessary.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Tried that... didn't help
|
|
|
|
|
well I have been working on an assigment and it states::
A program has to be developed, and coded in C language, to decipher a document written
in Italian that is encoded using a secret key. The secret key is obtained as random
permutation of all the uppercase letters, lowercase letters, numbers and blank space. As
an example, let us consider the following two strings:
Plain: “ABCDEFGHIJKLMNOPQRSTUVXWYZabcdefghijklmnopqrstuvwxyz0123456789 ”
Code: “BZJ9y0KePWopxYkQlRjhzsaNTFAtM7H6S24fC5mcIgXbnLOq8Uid 3EDv1ruVGw”
The secret key modifies only letters, numbers, and spaces of the original document, while
the remaining characters are left unchanged. The document is stored in a text file whose
length is unknown.
The program has to read the document, find the secret key (which by definition is
unknown; the above table is just an example and it is not the key used for preparing the
sample files available on the web course) using a suitable decoding algorithm, and write
the decoded document to a new text file.
And I know that I have to upload an English dictionary into the program but I don't why it has been asked.(may be not in that statement but I have to dO THAT). My question is , while I can do that program using simple encryption/decryption algorithm then what's the use of uploading the english dictionary in our program? So is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? or can somebody tell me what approach or algorithm should I use to solve that problem???
An early reply (and also authentic one) will be highly appreciated from you.
Thank you guys.
|
|
|
|