|
Can't you see what a mess is it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You can always use "Preview" to check if format is ok or not before posting.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
hi all, i am also looking for same error's solution.
first iteration it worked for me. second iteration not worked at all.
any help appriciated.
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
We have a native Visual C++/MFC app, and have a dialog which contains a web browser control.
The web browser control is a CWnd-derived class which uses InvokeHelper to communicate with the browser control. We call Navigate2() to send it to a URL and display the HTML in a child window within our dialog. This works great.
The question is how do we go about handling HTML events in the containing C++ dialog? For example, suppose we have a button in the displayed HTML which has an onclick event handler. We'd like the user to be able to click on the button in the HTML and have the containing MFC dialog get the event.
How do we communicate events out to the containing dialog?
The specifics of the control we're using are below. This is whats in the registry under the CLSID referenced in the wrapper class.
<br />
Windows Registry Editor Version 5.00<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}]<br />
@="Microsoft Web Browser"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Control]<br />
@=""<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\InProcServer32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll"<br />
"ThreadingModel"="Apartment"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus]<br />
@="0"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus\1]<br />
@="131473"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ProgID]<br />
@="Shell.Explorer.2"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ToolboxBitmap32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll, 257"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\TypeLib]<br />
@="{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Version]<br />
@="1.1"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\VersionIndependentProgID]<br />
@="Shell.Explorer"<br />
|
|
|
|
|
Dave Calkins wrote: We have a native Visual C++/MFC app, and have a dialog which contains a web browser control.
So you did not use the CDHtmlDialog MFC class[^]? Why not?
|
|
|
|
|
I'm adding this to an existing dialog. I don't want the entire dialog to be HTML. I want to have regular controls on the dialog and then have one area of the dialog display HTML content.
|
|
|
|
|
|
|
I have several vecors, loaded with data. I need to insert this data into a presentable display in a large RichEdit Editbox.
Since the data will vary in how many records will be displayed, I need a portion fixed to display the top portion of the "Form" and then just add the data afterward.
I'm afraid I'm at a loss as to how to begin. Could anyone supply some code as to how to load from file a "Form"(letter actually) and then be able to insert data after that "Form is displayed; thenn I would save the entire document to file.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: I have several vecors, loaded with data. I need to insert this data into a presentable display in a large RichEdit Editbox.
Why don't you use a ListView instead?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
The data is alin a ListView. But I need to present a "Document" (I'm NOT using MFC's Document interface)for viewing and printout.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: Could anyone supply some code as to how to load from file a "Form"(letter actually)...
I would start by looking at EM_STREAMIN . In the callback function, extract the data from your vectors.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Since I know next to nothing about EM_STREAMIN I have to ask? How do you use it in MFC. Somewhere I saw an example uing SendMessage which require a HWND as the first item in the SendMessage(HWND,...,....,);. How do you use SendMessage in MFC, in a dialog's Editbox?
A C++ programming language novice, but striving to learn
|
|
|
|
|
Since you are using MFC, just call the CRichEditCtrl::StreamIn() method.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Do any one know how to capture the audio from Internet so that only that audio is captured not the whole music which is available on the sound card.
For Example: If we are in a call with the recipient through a SoftPhone and that SoftPhone has a facility to playback the music from Internet and if we capture the sound from the sound card then the recipient's voice will also get mixed with the music that we captured from Internet.
If any one knows how to resolve this issue. Please tell me.
from-
Saurabh Srivastava
|
|
|
|
|
If the music and voice streams are already mixed into one stream
at the point you capture, then yu can't separate them (unless you're
able to come up with an algorithm to clean music from a voice stream).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I need to create an user who can create his own files in program files directory.
I did it using .NET by creating an user using ADSI Directory Services.
Now as I need to eliminate .NET compatibiliy I am doing the same in C++.
I have created an new user account using NetUserAdd .
Initially I created the user by flling USER_INFO_1.It worked fine
for me.But with this user I don't have permission to create files program files dir.
So,I created an user by filling USER_INFO_2 info structure .
But upon calling LogonUser raises an exception
"error :1793 The user's account has expired."
What could be the resolution for this?
Do I need to set Password for the account programmatically for the
account as windows asks for a change in the pwd the first time you login.
If so, how to set password for an user acccount in c++?
Thanks In Advance
Satya
Today is a gift, that's why it is called the present.
|
|
|
|
|
narayanagvs wrote: If so, how to set password for an user acccount in c++?
By using USER_INFO_1 with NetUserAdd() , specifically the usri1_password member.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
We're currently implementing a game application using directX with MFC. We have came across the option to use windows forms (in C++) which will simplify the GUI dev. Since one of the requirements is to support Win2000 clients (estimated around 5% of the global PC market!) the trade off is the CLR redist package that we'll have to bring along.
My questions are: did anybody wrote windows forms in c++ with DirectX? If so, what are the cons and pros? And in general is it a good idea to use managed c++ with directX.
I'll appriciate judicious and experienced answers.
Thanks in advance.
Snir_ya.
|
|
|
|
|
There are several articles here on DirectX either with MFC and managed code. Try also to ask the guys of the C++/CLI forum.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
What part of forms on top of MFC simplifies your GUI development?
It seems to me using MFC and forms only complicates things.
If using MFC, can you use dialogs instead?
If you want to go managed, have you looked at XNA?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your answer Mark.
I'm developing a casino application with a lobby as the main win. Selecting a game from the lobby menu opens the game in another window. You're saying i can open the game in a dialog. Does that make sense?
Besides, i'm still perplexed by which windows architecture i should use. View/Document (MDI) or dialog based. These are critical issus that i'm facing right now. The directX requirement complicates things even further.
I'll appriciate your advise.
Thanks.
Snir_ya.
|
|
|
|
|
snir_ya wrote: You're saying i can open the game in a dialog. Does that make sense?
It doesn't have to be a dialog - any window will work.
I was just wondering why you thought forms would simplify this?
snir_ya wrote: i'm still perplexed by which windows architecture i should use. View/Document (MDI) or dialog based
You don't have to use either. Your application's main window can be any
type of window. If the design of your application doesn't involve documents and
views of those documents, then certainly don't use doc/view architecture.
snir_ya wrote: The directX requirement complicates things even further
In windowed mode, then the same issues as above apply. In fullscreen mode, you don't
have to worry much about windows. If you want your game to work in both modes, then
you'll need windows.
I would recommend using the framework you (and your team if applicable)
are most comfortable with, whether it's straight Win32 APIs, MFC, or .NET.
They are still all valid solutions so using the one you're strongest
in will probably yield the best end result.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks again Mark. You're very helpful.
Mark Salsbery wrote: In windowed mode, then the same issues as above apply. In fullscreen mode, you don't
have to worry much about windows. If you want your game to work in both modes, then
you'll need windows.
What do you mean by "windowed mode"? we do intend to give the users the option to play in full/partial screen mode. So by "you'll need windows" are you refering to the obligation to use the doc/view windows architecture?
Snir_ya.
|
|
|
|