|
Hello,
No doubt everyone knows there's a fine utility in the Visual C++ Add-In sample directory, called AutoBld Add-In. I'm currently adapting this DLL to be used in our development environment.
One of the options of that DLL, is sending a mail with the results (amount of errors/warnings) of the different compilations done. I do, however, want to have more information into that mail message. I also would like to have the output of the Build tab in my message.
Does anyone know how to 'grab' the output of that Build window? Is there a possibility via the Application object (like you have e.g. the properties 'Errors' and 'Warnings') or is there another way to do it?
Since this is my first 'touch' with COM-alike stuff, any help would be highly appreciated.
Thanks very much in advance,
Best regards,
Geert
|
|
|
|
|
Hi
I am finding a way to read text from that windows too.
But I wrote my own add-in that may be resolve your problem
visit http://zmanagers.chat.ru and look how I send build output to "macros" window
Zmike
|
|
|
|
|
Hi,
I am trying to use the map data structure of the STL.
When I declare the map, map<int,int> var , I get all sorts of warnings
(something like 92 of them) saying that some names are longer than 255
characters. Can someone please tell me how do get rid of these warnings?
For your information, here is a few of those warnings:
d:\vc98\include\utility(21) : warning C4786: 'std::reverse_bidirectional_iterator<std::_tree<int,std::pair<int const="" ,int="">,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::pair<int const
="" ,int="">,std::pair<int const="" ,int=""> &,std::pair<int const="" ,int=""> *,int>' : identifier was truncated to '255' characters in the debug information
d:\vc98\include\utility(21) : warning C4786: 'std::reverse_bidirectional_iterator<std::_tree<int,std::pair<int const="" ,int="">,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::pair<int
const="" ,int="">,std::pair<int const="" ,int=""> const &,std::pair<int const="" ,int=""> const *,int>' : identifier was truncated to '255' characters in the debug information
d:\vc98\include\utility(21) : warning C4786: 'std::pair<std::_tree<int,std::pair<int const="" ,int="">,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::_Tree<int,std::pair<int const="" ,int="">,std:
:map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator>' : identifier was truncated to '255' characters in the debug information
d:\vc98\include\utility(21) : warning C4786: 'std::pair<std::_tree<int,std::pair<int const="" ,int="">,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::_Tree<int,std::pair<int const="" ,int
="">,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
Draggable.cpp
DrawUndo.cpp
|
|
|
|
|
#pragma warning(disable:4786)
|
|
|
|
|
I have created a Dialog based application. I want it to have a menu with the standard things like "File" with
"Open", "New", "Save" and "Save As." I would like to use the defaults of these functions which come up in the
Document based programs. Is there any way to import or implement these into my current program? Thanks.
Ryan
|
|
|
|
|
There are two answers to your questions. The simple answer to your direct quesion is that yes it is possible. See "TN022: Standard Commands Implementation".
Unfortunately, though, the answer to your less direct question is that it is not possible, since the Standard Commands require the document/view architecture.
|
|
|
|
|
Hi,
I have a vertical slider control in my dialog. The maximum
value appears at the bottom and the minimum appears at the top. How can I change it, so the minimum value will be at the bottom and the maximu at the top ?
Thanks,
Shai
|
|
|
|
|
I assume that you have a contol variable associated with this slider (m_slider), and that when it changes you set the value of some variable using
int user_value = m_slider.GetPos();
To "flip" the min and max ... just do the following:
int user_value = m_slider.GetRangeMax() +
m_slider.GetRangeMin() -
m_slider.GetPos();
|
|
|
|
|
I have the following snippet of code in two places in my MFC Appwizard-generated MDI (CFormView) application:
MSIHANDLE hMSIDatabase;
::MsiOpenDatabase( _T( "D:\\Projects\\MSIMaker\\UISample.msi" ), MSIDBOPEN_TRANSACT, &hMSIDatabase );
::MsiCloseHandle( hMSIDatabase );
The two places are in the CWinApp-derived class' Constructor, and the other is in an OnInitialUpdate of my CFormView-derived class. The first one, in the constructor, works great.
The second one, however, always fails with a return code of "110", and sets the GetLastError() value to "ERROR_INVALID_PARAMETER".
This only seems to occur after MFC is totally initialized and all of the Windows are created. Strange, but true. It continues to fail if I remove the first one.
The sample applications provided with the Installer SDK are all Console apps. Is that trying to tell me something?
Has anyone else out there experienced anything like this?
Peace!
-=- James.
|
|
|
|
|
My developer studio is extremly slow in the moment.
I am waiting about 1 minute when inserting a line into the code.
What can I do?
Thank you...
|
|
|
|
|
Try closing down DevStudio and then deleting your "Project.NCB" file.
Let me know if that works.
Alvaro
|
|
|
|
|
Did you try the Task Manager to determine "who" is using the processor? It could be another task entirely. Sometimes I have programming bugs that cause my program to get hung up without terminating but without a window. In situations like that, the program could be using up the processor. There are many other possibilities too.
|
|
|
|
|
Hello!
Can anyone tell me that how can I disable left/right click from Microsoft web browser control in an MFC dialog based application? Is there any easy method to catch WM_LBUTTONDOWN/WM_RBUTTONDOWN events on web control?
Regards
Muhammad Atif
|
|
|
|
|
from the script you could do :
function inhibeClick()
{
window.event.returnValue = false;
}
document.onclick=inhibeClick;
document.oncontextenu=inhibeClick;
the "oncontextmenu" event is avaible only in IE5
from c++, your application that host the WebBrowser control must implement IDocHostUIHandler . for the context menu ( right click ) use the ShowContextMenu from the IDocHostUIHandler interface.
to inhibe the left click , connect to the HTML document events ( using AfxConnectionAdvise ) , and do the same thing like in the script function described : set the returnValue property of the event object to false.
|
|
|
|
|
Hi,
I am developing using VC6.0 SP3 on W2K RC3.
I want to print an euro symbol on a CDC object: eventually it will be a printer CDC object, for now it is a CClientDC object on a dialog.
I can input euro symbol on notpad and here(€, hold down right Alt and enter 0128 using numeric pad), but I cannot do that in VC. I know SP4 will fix this problem. But I would like to know whether there are other solutions. For now, I just use a bitmap to work around it.
Any helps and tips are appreciated.
Barry
|
|
|
|
|
Hello,
I'm making an application for reading out and setting up an external hardware unit.
Because it should work also on CE, I start of with a SDI application. The application should be made ready to work with all the different hardware units we already have and are planning to make. Therefore different views for the different units.
I checked the example COLLECT of MSDN to see how you can switch between Views.
Because one unit has a lot of different readings and settings, I have to make seperate "views" for them as well. My first idea was to use a tabbed view like propertysheet / pages.
I checked how propertysheets work in a dialog-based application.
My question and my problem is that I don't know how to incorparate the two things. Where and how do I declare the propertysheet and pages to show them in a view?
Probably somewhere in a OnCreate or OnInitialUpdate, but what if I choose to change the view during runtime?
Going the whole way with CTabCtrl doesn't seem to be that easy,because e.g. you have to handle a lot of messages yourself what is done for you with propetysheet and the easy use of resource editor when using the property sheet (that's what I understood after reading some documentation
about this in the newsgroups and on the guru-sites). I maybe wrong, but the Fire example in MSDN shows me all kind of things that are not necessary with property sheet.
Can somebody help me with some directions / info / documentation / tutorial / samples
By the way:
When I started to learn about MFC I think saw somewhere that propertysheets in WinCE are always MODAL. I can't find it anymore, so maybe somebody can tell me.
Thanks in advance,
Kimball
|
|
|
|
|
Hi all,
for now i have a browser in action and i want to hook that browser
from my app to get text in a text box of web page. I retried many times,
but only successfuly get when embed CHTMLView into my app. If anyone
have a solution to solve this, please send it to me (or sourcecode is very good).
thank you for your feedback.
best regards,
hquoc
|
|
|
|
|
Hello all, maybe someone can help me with this:
I'm writing a program that displays a dialog box with a progress meter and a "cancel" button. The main thread creates the (modeless) dialog box, then starts the calculation. While it is doing this the dialog box is unresponsive, so I added a function that uses
while(PeekMessage(..))
to do message processing for the dialog. It is *more* responsive, but not as much as other progress dialogs I've seen in other programs. Is there a better way to do the message translating/dispatching so that it works quicker (ex: right now if you drag the window it takes 5 seconds for the window to actually move). I'm using straight API, no MFC.
Thanks to any who can help me
- J Woltman
|
|
|
|
|
I have had a similar problem and I have seen this type of questions asked a couple of times at least in the CodeGuru forum. One thing that makes a difference is your requirements. Your description does not say much about the processing being done. So I will describe a few possibilities in some general terms.
The best solution is to use the MFC "worker thread" / "user-interface thread" solution. See the MFC documentation for that.
If you are not using any MFC GUI stuff or any other MFC stuff that needs the CWinThread class and such then you might be able to create a thread with the Windows SDK. You could use an event to signal the thread that the cancel button was pressed.
Another possibility is to modify your processing so that it can be done during idle processing. See CWinApp::OnIdle and:
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core_idle_loop_processing.htm
That is the online copy of something you have on your hard drive.
|
|
|
|
|
You may also take a look at PJ Naughter's PStat article on this same site.
Cheers,
Paolo
|
|
|
|
|
Does anyone know how to use GetTextExtentExPoint and all similar functions to print WYSIWYG? I tried changing the mapping mode to MM_LOENGLISH, MM_ANISOTROPIC, MM_ISOTROPIC, but it did not work. For some reason font metrics are different Even though the mapping mode of the printer and monitor are the same.
PS. I wrote my own HTML print engine, it works great. The only problem is this. Let me know if you want the code.
Thanks, Italo S Weiss.
|
|
|
|
|
Actually i want to take data from the pci card. I have no idea how to generate interrupts and access PCI BIOS in VC. does anyone guide me for the VxDs.
|
|
|
|
|
Foremost, you need the DDK from Microsoft.
Another good invesment is to puchase the VToolsD commercial device driver development toolkit. It helps with the development of VXD and NT device drivers in C. A different toolkit from the same company is used to make the WDM type drivers.
They really are time savers.
Otherwise, you spend a LOT of time doing things on your own.
There is a book about writing VXD and device drivers in C, but I don't remember the exact title.
|
|
|
|
|
Hello Stupid,
If u don't know how to write VXD's then don't try to take PANGA with PCI port. Stupid ppl do like u. I advise u to leave the idea of taking PANGA with pci. Just work with Parallel or serial port. U deserve only for it.
O.K,
Bye Bye
|
|
|
|
|
I have dll with two objects. One is CommBand and another is Browser Helper Object. How can i get pointer on my BHO object from my CommBand object ?
|
|
|
|
|