could anyone tell me the character and the use of "static member function" in a class? i found that AfxBeginThread() need to pass only a static function in the new thread? any reason for that?
Basically, member functions have an extra param tacked on - the this pointer - which means they can't match the callback's signature - static members don't have this problem, but can't access non-static member vars - the other thread has the whole story, and more!
I am using Dundas HyperView Studio ActiveX forms in an application. The forms work very well except for one problem I have encountered which is causing my customers (and me) quite a headache.
Just for reference: The application is an MFC MDI application using StingRay Objective Toolkit and Dundas HyperView studio together. I am using VC 6.0 Enterprise edition w/SP 5. The problem occurs on Win95, 98 and 2000. I have not tested it on NT or ME.
I have a a document which has a split frame with 2 sections (top and bottom). On the top frame I have a view in which I create (at run-time) a tab control. Each tab on this control corresponds to a different modeless dialog which is created on-demand. Presently there are 3 tabs. 2 are simple VC dialog resources displayed as modeless dialogs. The 3rd is a VC resource modeless dialog with a Dundas HyperView form created on it.
Everthing works fine except if the hyperview form is displayed and the user minimizes the app or ALT+TABs out, the user cannot ALT+TAB back or simply click the icon on the task bar. The only way to get back is to R-Click on the task bar and choose "Restore". This only happens with the hyperview forms, not the other modeless dialogs displayed.
If anyone has any experience with this problem, please respond.
I am attempting to nest a CPrintDialog on another dialog window. Although I have been able to do this already for CFileDialog, it seems that something needs to be done differently for the print. Has anyone nested the CPrintDialog and can anyone provide sample code? Thanks.
"For all common dialog boxes except the Explorer-style Open and Save As dialog boxes, you modify the default template to create a custom template that replaces the default template. The custom template defines the type and position of the standard controls as well as any additional controls."
You can find the default template in the file PRNSETUP.DLG located in your vc\include directory.
I'm writing a custom AppWizard and have some problems customizing the projects that it generates. How do I add lib files to the linker settings? I guess I should override CCustomAppWiz::CustomizeProject() and manipulate the IBuildProject* parameter, but I can't find a good explanation on how to do this. Any ideas?
I want to store my data in an xml file and have operations of file
new,open and save.I am coding in vc++ and not using CObject class which takes care of these default.How can I achieve this?
Thanks in advance.
Yeah, I know you guys get this one a lot, I've seen them...
But I have another instance of a program running fine in debug and crashing in release.
I have set up a configuration that basically mimics as many settings of "release" as possible, but allows me to go through in debug mode and trace code. Ok, here we go:
I have a dialog app.
The main dialog (we'll call it Dialog A) that opens has a button on it that results in opening Dialog B. Upon clicking this button I get an error of:
"The instruction at '0x004229dd' referenced memory at '0x00000401'. The memory could not be 'read'."
So I traced it. It occurs AFTER the DialogB::OnInitDialog() call.
This is a screenshot of the debug window showing where it 'died'
I am unable to determine why it crashed, maybe one of you guys could help me out.
So when the string gets updated in your VC app you want VB to be notifed and pass the new string?
If this is what you want, you need to define a COM interface in your VC app and make uses of the Implements functionality of VB. The VC app then calls the VB implementation of the interface when it needs to notify VB of a change.
How much COM have you done before? The following articles will probably explain things better than I can
I want to pass data from VC++ application to VB GUI. For VB comunication to VC++ I have created a dispinterface with COM but now I need to create a dual interface with COM and I know how to do it? Thanks.
I want to be able to control printing to some print queues by
manipulating the spooler files directly. There are two files in a print
job: The .SPL file (which is the actual print job) and the .SHD file
(Shadow file). The .SHD file is the header file with all information about
the print job (User/Name/size/etc...).
Does anyone know what the file format for the .SHD file is? Or can
anyone point me to a location to look for the file structure definition?
Paintlib comes with all the source code and also compiles linked in so you don't need to carry a dll. The actual source comes from the jpeg group and is a different library in the pintlib project. This is the same jpeg source everyone uses, AFAIK. The link is in the paintlib links page to just get that code.
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
It is said the lib can transform the 8-bit and 24-bit bitmap file to jpeg file. But it seems only 8-bit is supported. So many features lost. Thank you. And can I save a bitmap in the memory but not a file to jpeg file? Thanx.