|
|
One advantage to dynamically DLL linking is using custom DLL if applicable. You may load non-MFC DLL including those you design and implement.
Kuphryn
|
|
|
|
|
Yes, I think the first entry in the search path for DLLs is always the current directory (your apps installation folder).
At my small app, I link MFC dynamically but I forgot why
Regards,
~ Florian
--
Florian Heidenreich
http://www.mp3tag.de[^]
|
|
|
|
|
Hi, if I have an iterator on a vector, does
iter - vec.begin() return the index of the very element into the vector?
I guess so, but didn't find a place that says it is.
So many people long for eternity that don't know what to do on a rainy sunday afternoon. [sighist] | [Agile Programming] [doxygen] If you look for evil in me you will find it whether it's there or not.
|
|
|
|
|
This is correct: iterators traversing an std::vector are random access iterators, so this kind of expressions are guaranteed to work.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I want to default the CFileDialog class to browse from a folder in the network. I can't use the drive letter. The drive mapping to the folder can be different from client to client. I want to get the UNC path. I tried calling WNetGetUniversalName function, but I got an unresolved external symbol error message at linking. I am using VC++ 6 enterprise and Windows 2000.
Eilzabeth
|
|
|
|
|
Have you linked mpr.lib ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have never link a library to an application. I have done linking a DLL by entering the line at end of the stdafx.h file (#import "craxdrt.dll" no_namespace
). Would you please tell me what to do in case of mpr.lib?
Eilzabeth
|
|
|
|
|
Project->Settings->Link:Object/library modules. Add there mpr.lib separated by spaces. Do this for debug and relase configurations (combobox on the left top corner of the settings dialog).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a MFC Extension Dll which contains a class that takes in a CTreeCtrl pointer. The class searches a string in the tree. From my main program when a call this class in debug mode it works ok but in release mode it crashes. I am using win 2k and visual studio 6.0. The message box that pops up at crash says reference memory which was null (or something like it I could not remember the exact message) When I move this class to the main executable's project it again works fine.
Do I need to declare some macros in an extension dll before accessing and mfc object or can I pass around pointers freely between dlls as long as I am in the same thread ?
Any help is appreciated.
Orcun Colak
|
|
|
|
|
Here is one reference.
http://www.mindcracker.com/mindcracker/c_cafe/dll/extn_dll_dlg.asp
Kuphryn
|
|
|
|
|
Are you calling AFX_MANAGE_STATE macros at the very beginning of any exported function from the dll??
If you do not you may have problems sharing mfc resources and so on...
Have a look on the wizard's comments added on the cpp file automaticaly created to content the CAPP derived object.
hope to be useful
Greetings...
Just three words: void main(void)
|
|
|
|
|
Hi all,
I noticed that toolbar flickers on mainframe resizing on SDI
application while in MDI not.
You can verify this making two empty projects.
Do someone know how I can modify the sdi code to change it.
thanks
|
|
|
|
|
Is there a way to show a message box in the screen that DOES NOT stop the porcess of the program and DOES not require to press a button? What I want is a kind of display that lasts only as long as a particular process does, adn does not require interaction. It is to inform the user about what the application is doing?
I'm using VC++ 6.0.
|
|
|
|
|
what you need is a modeless dialog, or a tooltip.
there are articles here on CP about both.
-c
Be very, very careful what you put into that head, because you will never, ever get it out. --Thomas Cardinal Wolsey
|
|
|
|
|
|
I have an application that works with a C++ DLL; I would like to use a dialog box in my dll. I know how to create a dialog box in an independent project, but I don't know how to implement it with my library. I do not think I need to use the CWinApp class, because as I understand that class controls start-up, execution and termination of the application; in my case the application is controlled by the application that uses my dll. In short my question is how do I call my dialog box from my dll.
Thank you.
Note: The software that uses my DLL is called Scantools II for Windows.
|
|
|
|
|
I had a similar problem of writing a plug in DLL for someone else code.
In the end, I had a major nostalgia trip and used good old Win32.
Most modern programs that allow plugins let you make COM objects, which
are (relatively) simple using ATL.
If you want more help, you'll have to me specific about the way ScanTools II
is calling your DLL...
Good luck,
Iain.
|
|
|
|
|
Hi Iain, first of all thank you for answering.
Scantools II is a scanning application for OMR/OCR scanners. Scantools has a setting where you specify the dll you would like to use. What Scantools basically does is call one function in the library, this function is passed an argument that represents the status of the scanning process (ie. Batch Entry for when the scanning starts, Document Entry for when the scanner starts reading a document, etc.)
There is a function for each stage of the scanning process, but all these functions get call by the original function that Scantools calls(based on the parameter that is passed.)
These functions are basically used to validate the data that is being scanned. It is in one of these functions that I would like to call or create a dialog box.
Thanks, once again.
Erika.
|
|
|
|
|
Hello,
I'm using the webbrowser control in an application where the crawling is totally automated.
The problem is that sometimes the browser try to crawl an archive file or whatever. In that case a security alert dialog box pops up and my webbrowser control waits for this dialog to close.
I already succeded removing all Javascript dialogs by implementing the IDocHostShowUI interface and by putting the control into the "silent" mode (put_silent()).
I also implemented the IDocHostUIHandler to return S_OK or S_FALSE wherever possible to get rid of a maximum of MSHTML UI unwanted behaviours.
But I still get this security alert dialogs and I have no ideas of how to avoid them.
The only solution I found for the moment is to filter the links the webbrowser control can crawl in a page by removing files containing 'zip','rar','mp3','jpg','gif'... And so on.
But this solution is not perfect because of the number of possible file types and because sometimes you can't even guess what it is from the URL.
If only the webbrowser control could allow me to access the HTTP file headers before display, to guess what it is from the content-type !
But even if I can filter the URL I crawl, I would really like a solution to remove the security alert dialogs.
I also tried to tweak the Internet Explorer options to avoid prompts and dialogs but I didn't solve this problem.
Any idea ?
Thanks,
R. LOPES
Just programmer.
|
|
|
|
|
Is the security alert from ActiveX controls with the Yes No buttons? If so then set your security to maximum and it wont even attempt to download them.
Todd Smith
|
|
|
|
|
Hello,
No, it's not the ActiveX download. With a proper configuration I avoided all ActiveX dialog boxes.
No I get a security alert for any kind of file that is not HTML like JPEG, GIF, MP3. In that case the browser normally ask if you want to download them, but I disabled this kind of download in IE configuration, so instead of a dialog box asking if I want to download the file I get a security alert dialog box telling me that my level of security is too high to allow the download. And I want to get rid of this security alert dialog.
Thanks,
R. LOPES
Just programmer.
|
|
|
|
|
In that case I suggest hooking into the Invoke method and canceling any DISPID_FILEDOWNLOAD requests.
If you need to support older browsers that don't support that DISPID you'll either have to filter by extension or do API hooking to get the header info similar to this tool http://www.blunck.info/iehttpheaders.html
Todd Smith
|
|
|
|
|
Thanks ! I will take a look.
Regards,
R. LOPES
Just programmer.
|
|
|
|
|
hello,
I would like to type a shortcut on my dialog and that it executes a particular routine I have coded (ie set the focus on a particular input control). I have no menu on my dialog window .
How should I do this ?
I have created a accelerator to set my shortcut, linked the accelerator to my code using the class wizard, but when I launch my appli, nothing happens when I press my shortcut ...
What is missing ? Is it the correct way to do this ?
Thanks in advance
DD
|
|
|
|