|
NS17 wrote: For a beginner my method is easy...
What if the Beginner would like to write the same code at several places.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: like to write the same code at several places
But his question or need does not mean that
- NS -
|
|
|
|
|
Hi,
can somebody tell me how to create external ActiveX from Application type - Multiple documents ?
jan
|
|
|
|
|
Anyone know how to rebuild the intellisense in VS 2005? VS is not picking up changes I have made to structures that are contained in header files that are not part of the solution.
AxisFirst For Business
|
|
|
|
|
- exit Visual studio.
- Delete the .ncb file
- Open VS and compile
Now the intellisense database is updated. (I hope )
|
|
|
|
|
The header file is not part of the solution so that makes no difference. VS seems to have a cache somewhere that I need to delete. The structure in question was changed about a year ago but this is the first time I've had to debug using this particular structure and the watch window is showing the old format structure.
AxisFirst For Business
|
|
|
|
|
Steve Thresher wrote: The header file is not part of the solution so that makes no difference
I think that this isn't the real problem: I think that the VS cache is only in the solution main folder -> so you have to edit something there.
Try also to delete the DEBUG(or RELEASE) sub folder(s).
This will reset the solution and will reset everything that was generated with VS.
|
|
|
|
|
I have tried deleting every temporary file, solution file and project file but nothing has changed. To make matters more complicated the structure is a member of another structure and this is where I get the problem. If I declare an instance of the problem structure the watch window shows the correct layout. So now I have two entries in the watch window which both show as the same type but with different layouts. Even adding a cast to the front of the variables being watched makes no difference.
AxisFirst For Business
|
|
|
|
|
Last year I was exactly your problem, but with the suggestions that I gave to you now it is solved,.....so probally I can't help you more.
Was the application closed when you was deleting the files and folders?
It is important!
|
|
|
|
|
Yes the application was closed when I deleted all temporary, solution and project files. If the application wasn't closed I wouldn't have been able to delete the NCB file.
Thankyou very much for trying to help, I still have the layout problem but I have solved the program bug and so have to move onto the next problem. I'll try again another time.
AxisFirst For Business
|
|
|
|
|
As I understand intellisense is only used to show information in the code window. Since you are having this problem with watch window something else is wrong. Did you tried using quick watch, does it have same problem.
-Saurabh
|
|
|
|
|
Close all files and views that you have opened in your project.
Delete the .ncb file from the project folder.
Close all instances of the editor running from task manager.
Reopen your editor and then try and Clean/Rebuild the solution.
I hope that this solves your problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
can somebody tell me how to debug ActiveX used in external application (external application used
*.OCX)???
Thanks
|
|
|
|
|
For the DLL that you want to debug, set the container application's EXE path (where you use your component) to 'Executable for Debug Session' in 'Linker' settings.Then run your application setting the breakpoints.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Where I to set is?? I used VS 6 C++
Because I dont found Executable for Debug Session...
|
|
|
|
|
Try to run the activeX Control that you have created by pressing Ctrl+F5
This will open a dialog on the screen saying to set the path of an executable file.Set the path of the exe that you are calling the active X Control and then execute or debug.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks very much
Do you now as use dialog in ActiveX?? Because I have problem -
by clicked on CButton my application frozzen... But when I clicked
on CheckBox is all OK.. (I know CheckBox is child CButton)..
I dont know where is problem
|
|
|
|
|
|
It's fine.. but I have own CWnd objects in CDialog.
And when I create these objects then not go clicked on CButtons.
Can I help me please???
|
|
|
|
|
Can you explain a bit in detail what do you want to achieve with the active X Control that you are creating
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I have dialog which handle 3 object (CWnd * objects), these objects are childer main dialog...
I need reconstruct this dialog on the ActiveX control. I have make this dialog, is correct when it
run under ActiveX control test container, but in external application not. Can you help me???
|
|
|
|
|
So you mean to say that each time you put that activeX Control in an external application it misbehaves.
Try using property pages and then you can move from one dialog to another inside the active X Control only.
What is actually happenning when you are calling those dialogs.
Post some code so that I or some one here can check the code and point out the problems
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I need ActiveX because is problem with resource.h - collision in external application
int CMYCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
m_pMainDialog= new CCanonCameraXPropPage;
m_pMainDialog->Create(IDD_CANONCAMERA_DIALOG,this);
m_pMainDialog->ShowWindow(SW_SHOW);
return 0;
}
there I created main dialog. Then I created 3 CWnd object:
BOOL CMainDlg::OnInitDialog()
{
CDialog::OnInitDialog();
if ( !CreateCaptureObject()){
return false;
}
m_pCaptureObject->CreateImageObject(rcTmpRect);
m_pCaptureObject->CreateParametersObject(rcTmpRect);
and after clicked on button in these objects is not call event clicked on button...I dont know why..
These Cwnd object are not correct I thing... but I need it..
capture object is created so:
m_pCaptureObject= new CCaptureObject(rcTmpRect,this);
m_pCaptureObject->Create(IDD_CAPTUREOBJECT,this);
this in function Create is Correct??? this have been extern application or ActiveX???
|
|
|
|
|
So thanks, I have got it..
There was problem that dialogs on CWnd objects must properties Control = false and I had true..
Can you tell me as to create ActiveX control from MutiDocument/View project????
Because I have next project which is create on MutiDocument/View architecture and I need reconstruct on ActiveX...
Thanks
|
|
|
|
|
Congrats for that man.
Let's call it a day for today so that you can enjoy what you learnt today.
Let's meet tommorrow.
Take care
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|