|
Is he using current video drivers?
You can also trying looking at the stack to see if your program is part of the call stack.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Thanks for the quick response Tim, and yes he has the latest video drivers (that is the first thing I check). It has happened with 2 different video cards on his machine, which is why I am reasonably sure it is not the video drivers.
Here was his config for each crash
Windows: Windows XP 5.1.2600 Service Pack 1
Processor: Original OEM AMD K7 (Unknown model) 1808 MHz
Memory: 511 MB
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce4 Ti 4600/AGP/SSE/3DNOW!
GL_VERSION: 1.4.0
Windows: Windows XP 5.1.2600 Service Pack 1
Processor: Original OEM AMD K7 (Unknown model) 1809 MHz
Memory: 1023 MB
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: Radeon 9700 Pro x86/MMX/3DNow!/SSE
GL_VERSION: 1.3.3561 WinXP Release
also glu32.dll (where the crash occurs) is a Microsoft distributed dll which is usually not overwritten by video drivers as far as I know. There is one address (68fa99b3()) above the crash though that may be calling into a driver, I cannot tell.
|
|
|
|
|
Hello,
I have some property pages that change it's content dinamically, once the content of one page (say page 1) gets changed the caption of that page (1) must change its color in order to tell the user that a change in that property page has ocurred.
How can I do it?
Could you give me some guidelines?
Thank you in advance.
|
|
|
|
|
I do not know if this helps, but this links[^] to an article about CPropertySheets.
~RaGE();
|
|
|
|
|
Hello,
I've searched for articles, samples... in codeproject, msdn and in other web resources and I've not been able to find how to do (change the color of ONE tab while the other ones still appear as the standard ones).
The article that you link in your post is a very good article from Mr. Demirhan, but it changes the font of all the tab ctrl (not only of one tab...).
But thank you for your answer...
|
|
|
|
|
Have revisited a C++ program i wrote about 6 years ago. It used the THREED vbx controls. Am now using Visual C++ 6.0 and i can not develop with them as they need a licence. Originally got them from buying the SAMS Visual C++ 1.5 book and CD. Anyway, i decided to replace them with an ocx that is more available. When i did an 'insert activex control', the Microsoft Forms 2.0 controls were available. Had no probs replacing my command buttons and frames but the check boxes have been a nightmare. Then i thought the toggle button might look better and tried it. Still a nightmare. Where my problem lies is in seeing the state of the checkbox and/or toggle button. Thought the following line would differentiate between depressed and not depressed:
if (m_ToggleButton1Control.GetValue == false)
However, it always returns true. i use other properties that work:
{m_ToggleButton1Control.SetForeColor(olive_note);}
The 'value' is defined as a VARIANT of which i can not find any documentation.
Can anyone help???
benny
|
|
|
|
|
bennyrascal wrote:
if (m_ToggleButton1Control.GetValue == false)
Should work, if m_ToggleButton1Control is of type bool (or even BOOL ), and if you used UpdateData (or corresponding message) with parameter TRUE.
~RaGE();
|
|
|
|
|
Thanks
Can't use true as i get a compiler error:
D:\Development\C++\Source\CheckBoxes\CheckBoxesDlg.cpp(195) : warning C4805: '==' : unsafe mix of type 'struct tagVARIANT (__thiscall CMdcToggleButton::*)(void)' and type 'const bool' in operation
When using the class wizard to add a member variable the only choice i have is a category of control and a variable type of CMdcToggleButton. There are no other choices. If i use the standard checkBox then i get the categories of control and of value and the value bit works.
As far as the updatedata, Here is the actual code:
void CCheckBoxesDlg::OnClickToggleButton1()
{
UpdateData(TRUE);
m_ToggleButton1Control.UpdateData(TRUE);
m_ToggleButton1Control.GetValue();
if (m_ToggleButton1Control.GetValue == false)
{m_ToggleButton1Control.SetForeColor(olive_note);}
else
{m_ToggleButton1Control.SetForeColor(red_note);}
}
As you can see i even did the update two different ways as an experiment.
A similar function for a simple checkbox works perfectly:
void CCheckBoxesDlg::OnClickFormsCheckBox1()
{
UpdateData(TRUE);
if (m_FormsCheckBox1Control.GetValue == 0)
{
m_CommandButtonControl.SetForeColor(blue_note);
m_CommandButtonControl.SetCaption("FormsCheckBox set on");
m_FormsCheckBox1Control.SetBackColor(blue_note);
}
else
{
m_CommandButtonControl.SetForeColor(yellow_note);
m_CommandButtonControl.SetCaption("FormsCheckBox set off");
m_FormsCheckBox1Control.SetBackColor(yellow_note);
}
}
Again thanks for any help as i'm baffled.
benny
|
|
|
|
|
i really need this; i want to setup the Format of a COleCurrency.
if the number is (for example) "189.728149" the hole number will be copied to a string wenn formatting it to a string. How can i change this, so after formating the number i will only have 2 decimals("189.73").
ofcourse it also has to go the other way: "189.7" ==> "189.70"
thanks in advanced..
[]D [] []D []
|
|
|
|
|
COleCurrency::Format is returning a CString . Maybe you should change the returned CString format using CString::Format so you won't have to bother finding a COleCurrency format that matches your wishes ?
~RaGE();
|
|
|
|
|
strCurrency.Format("%.2f",nNumber);
|
|
|
|
|
where do i get nNumber? i only have the COleCurrency, the only conversion that is possible is COleCurrency => CString(or do i get this wrong)
[]D [] []D []
|
|
|
|
|
I haven't used COleCurrency, just COleTime.. if it only returns a string you could do a float nNumber = atof(string).. this would produce the number nNumber.. then you could format this number as i posted before..
Hope this helps..
Rob
|
|
|
|
|
thnx.... i already found another solution
|
|
|
|
|
I'm trying to export a template class from a DLL...
For this, I use AFX_EXT_CLASS.
I observe (with a DLL viewer) that a template class can't be export from a DLL but a simple class well... Is this normal? A solution?
Here is some of my header code:
A simple class... : the class is exported, OK
class AFX_EXT_CLASS FIFO
{
public:
enum tagBUFFER_STATUS{ FREE = 0x00, BUSY = 0x01 };
struct tagARRAY {
int _buf;
tagBUFFER_STATUS _sts;
};
DWORD In(int& value);
DWORD Out(int& value);
FIFO();
virtual ~FIFO();
private:
tagARRAY _array[10];
int _itr;
int _itw;
};
A template class... : the class is not exported, KO
template<class T, int Size>
class AFX_EXT_CLASS FIFO
{
public:
enum tagBUFFER_STATUS{ FREE = 0x00, BUSY = 0x01 };
struct tagARRAY {
int _buf;
tagBUFFER_STATUS _sts;
};
DWORD In(T& value);
DWORD Out(T& value);
FIFO();
virtual ~FIFO();
private:
tagARRAY _array[Size];
int _itr;
int _itw;
};
My question: how to export a template class from a DLL?
Thanks for your help...
Hello World!!!
from Raphaël
|
|
|
|
|
Raphaël Kindt wrote:
how to export a template class from a DLL?
It's not possible. The compiler generates code only for concrete implementations of the class. Otherwise it only does some syntax and type checking.
Look at the ATL classes' implementation, it's written entirely in the header files.
rechi
|
|
|
|
|
Bogdan Rechi wrote:
It's not possible
I'm not sur because I found this in MDSN library:
Explicit instantiation lets you create an instantiation of a templated class or function without actually using it in your code. Since this is useful when you are creating library (.LIB) files that use templates for distribution, uninstantiated template definitions are not put into object (.OBJ) files.
But I can be mistaken...
Hello World!!!
from Raphaël
|
|
|
|
|
MSDN wrote:
Explicit instantiation...
The explicit instantiation is a particularized version of the template class. You can export a finite number of versions for your class, that's true. But there are template classes that support an infinite number of versions. What about them? Do you intend to write all the versions for such a class?
rechi
|
|
|
|
|
nop... you're right...;)
Thanks for your reply...
Hello World!!!
from Raphaël
|
|
|
|
|
Hi Y'all!
How can i calculate the number of files in a folder programmatically in a
Win32 API Application???
|
|
|
|
|
I don't know if this is the best choice but: "use FindFirstFile , FindNextFile , FindClose "
Funny how the history is repeating...
rechi
|
|
|
|
|
|
My main application thread starts a auxillary UI thread in order to display a dialog and show some progress information. The main app thread updates the auxillary thread's dialog with information it processes.
The problem: What is the best way to let the main app thread know that the auxillary thread is started and that the dialog is loaded(displayed) and ready for input?
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
if the main thread is a ui tread .. you can use PostMessage function to notify it
|
|
|
|
|