|
I had inserted from InsertMenu->new ATL Object->Miscallenous->Dialog
Give it short name MyDialog.Then inserted Microsoft Web Browser(By Right clicking on dialog and choosing
insert ActiveX Control).Now my problem is how can i call www.yahoo.com
in the control and get Documentcomplete and events such as were user clicked.
Plz help Me
Thanks in advance
Devom
|
|
|
|
|
|
I migrated a Visual Studio 6.0 C++ project to Visual Studio .NET 2003, and when I tried to build it, got the following linker error:
Scheduler error LNK2019: unresolved external symbol __aulldvrm referenced in function "unsigned __int64 __cdecl AdjustHilTime(unsigned long)" (?AdjustHilTime@@YA_KK@Z)
I received a similar error with __ftol2 (instead of __aulldvrm), and fixed it by adding the following code:
#if (_MSC_VER >= 1300)
//VC7 or later, building with pre-VC7 runtime libraries
extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }
#endif
Can anyone tell me how to do something similar to fix my __aulldvrm problem?
TB
|
|
|
|
|
You've included AdhustHilTime from a header file, but you've not linked to the binary file that contains it. You need to add the library to your linker settings.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I was wondering if anyone know where I can get a webpage control. I.E. a viewer control that will display a webpage ( I believe VB had something like this at one point).
Thanks,
|
|
|
|
|
You can host IE as a control.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I right click on a selected datagrid cell and my context menu does NOT display. However, if I right-click on a non selected field I DO get my context menu? How can I fix that.
I used SPY++ and noticed that right-clicked on a selected cell is different then clicking on an unselected cell.
HELP
System::Void contextMenu_Popup(System::Object * sender, System::EventArgs * e) {
MenuItem* menuItem1 = new MenuItem(S"&Match");
this->contextMenu->MenuItems->Clear();
this->contextMenu->MenuItems->Add(menuItem1);
}
TIA,
James
|
|
|
|
|
How can I do that, in C++?
I heard I had to use a API, but I don't even know what that is...
I just need a simple function that replaces or adds a key to the registry, can anyone help me with this?
|
|
|
|
|
Sorry, it was me who just posted this question, I wasn't registered... can anyone please help me with this?
|
|
|
|
|
|
Hi, I found the following link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmex/html/vcconaddingmctoexistingapplication.asp[^]
for Adding Support for Managed Extensions for C++ to an Existing Application.
To modify the project settings
I followed the following steps.
1)Open the target project in Visual Studio.
2)In Solution Explorer, right-click the project node and click Properties.
The Property Pages dialog box appears.
3)In the left pane, click the C/C++ folder.
4)Click the General folder under C/C++.
Set the Compile As Managed property to Assembly Support (/clr).
However, I dont' see (Step 4) Compile As Managed property at all in my C/C++ folder.
Why is it? Is it because of my software? I'm using Visual Studio Version 7.1.3088.
Thank you
|
|
|
|
|
Basically, all you need to do is set the compiler option to /clr. You can do that by opening the Command Line folder under the C/C++ Folder located in your project property sheet, as you mentioned above. Then, just add the compiler switch to the list.
|
|
|
|
|
|
I want to wait unti the text appears on the screen before calling DoPrntScreen:
How can this be handled easily?
void CWaterHammer::OnBnClickedPrint()
{
CPrntScreen * ScrCap;
ScrCap = new CPrntScreen();
m_caveat="This publication is intended for use as a piping system guide. It should not be used in place of a professional engineer’s judgment or advice and it is not intended as installation instructions. ";
GetDlgItem(IDC_EDIT2)->ShowWindow(true);
CEdit* pCEditBox = (CEdit*)this->GetDlgItem(IDC_EDIT2);
pCEditBox->SetWindowText(m_caveat);
ScrCap->DoPrntScreen(1,0,true); //Client area, Printer menu
delete ScrCap;
ScrCap = NULL;
}
|
|
|
|
|
I have created several layers of dialog boxes using MFC C++ .Net. However, I do not want to automatically go back to calling dialog when I hit return anywhere in the active dialog. I want to just be able to click on OK button to do this.
I have the OK button as not the Default button, but clicking anywhere in Dialog box always closes the active Dialog Box and goes back to calling Dialog box. Is there a fix?
|
|
|
|
|
The setting the OK button to not be default will take care of the hitting return for you, but I am not sure why you would be seeing the dialog close on a mouse click on the dialog. Can you paste some of your code for the disappearing dialog so that we can see it? If not, feel free to email it to me to look over really quick.
Steve Maier, MCSD MCAD
|
|
|
|
|
Not on a click of the mouse, but a on return.
This is disastrous to client entering data and loosing it because they hit enter/return instead of tabbing to next field.
|
|
|
|
|
I want to do a simple datagrid. No database, just some data. Specifically I would like to display a 2 dimensional array of integers. Or a 2 dimensional array of strings.
Could someone help me?
I have searched the web sites, and they all give wonderful, but convoluted examples.
TIA
|
|
|
|
|
You can always use a list control, with columns (remember to set it in details mode).
|
|
|
|
|
is there a good site that gives "Visual c++.net 2003" online courses
NewHere
|
|
|
|
|
Hi,
Would anyone be able to tell me if there is any way to link HTML and C++?
Thanks,
Peter
Peter Heylin
|
|
|
|
|
Do you mean linking html and C++ like how ASPX and C# code behinds work or something else?
Steve Maier, MCSD MCAD
|
|
|
|
|
I am just looking for a way to link HTML pages to C++ or better yet, if you know how to insert flash into C++ 6.
I know that Java and HTML can be linked.
Thanks,
Peter
Peter Heylin
|
|
|
|
|
I want to play sound using winapi, so I wrote these lines of code:-
-------------------------------------------------------------------------------------------------------------------
using namespace System;
using namespace System::Runtime::InteropServices;
namespace WavAPI
{
[DllImport("winmm.dll")]
extern "C" bool sndPlaySound(String* lpszSound, unsigned int fuSound);
}
-------------------------------------------------------------------------------------------------------------------
But I got "FILETIME: ambiguous symbol" when I compiled, because FILETIME is both the member of InteropService namespace and defined in WinDef.h.
I tried to use #undef FILETIME, but it didn't work. How can I solve this problem? Or is there another way to play sound from API?
|
|
|
|
|
You could, instead of using the,
#include "windows.h"
line at the beginning of your code, use fully qualified names everywhere in your application. If it's a large and complex program, however, you will probably hate this suggestion.
|
|
|
|