|
ahh that was silly. Sorry for bothering u guys . Never thought it was an access issue !
Engineering is the effort !
|
|
|
|
|
act_x wrote: What am I missing here ?
Code inside of <> brackets. Remove the < bracket and click the < button above the smileys instead.
You might also consider using <pre> instead of <code>, too.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am using the mschart C++ charting control. And I was looking to format a regression line for the chart- currently, it only allows me to display the linear regression stat-line.
Is there a way to customise the trend-line to be logarithmic, and display the equation on chart ?
Thanks,
Mukund
|
|
|
|
|
Any idea/trick to Access m_nIDHelp (resource Id) of active dialog from CMainFrame class.
Able to get the handle of active window but unable to access m_nIDHelp, since it is protected in the base class CDialog.
pls let me know incase u have something regarding this
Thanks..
|
|
|
|
|
Why don't you inherit CDialog?
If it's protected you can access it from a member function of a derived class.
rotter
|
|
|
|
|
Thank you for your responce,
ya we can do that, But I am Iooking for some working around, with out distrubing the dervied class,
Getting it from active window handle, from MainFram.. I belive I am a bit clear now..
Thanks
|
|
|
|
|
I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this .
Thanks in advance
|
|
|
|
|
vicky00000 wrote: I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this
According to MSDN, the SW_HIDE is ignored during the 1st call when the dialog is about to pop up.
ShowWindow[^]
The first time an application calls ShowWindow, it should use the WinMain function's nCmdShow parameter as its nCmdShow parameter. Subsequent calls to ShowWindow must use one of the values in the given list, instead of the one specified by the WinMain function's nCmdShow parameter.
As noted in the discussion of the nCmdShow parameter, the nCmdShow value is ignored in the first call to ShowWindow if the program that launched the application specifies startup information in the structure. In this case, ShowWindow uses the information specified in the STARTUPINFO structure to show the window.
Maxwell Chen
|
|
|
|
|
Is there any way to update STARTUPINFO structure ?
Thanks for your replay
|
|
|
|
|
And the reason is: If it worked, then no target window would receive messages.
There is a solution for this: To make your application hide to systray.
Maxwell Chen
|
|
|
|
|
vicky00000 wrote: I Used ShowWindow(SW_HIDE) it hide the dialog but at the inital it popup
how to avoid this .
don't call DoModal until you want it to show.
|
|
|
|
|
Override the OnWindowPosChanging() method with:
if (! m_bVisible)
lpwndpos->flags &= ~SWP_SHOWWINDOW;
CDialog::OnWindowPosChanging(lpwndpos); Just before calling ShowWindow(SW_SHOW) , set m_bVisible to true .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thank you very much DavidCrow I solve my problem with the help of you
Thanks
|
|
|
|
|
please let me know how to open an .mdb (MS Access) file from a VC6.0 application .
thanks in advance .
aanandi
|
|
|
|
|
Use ShellExecute(..., "open", "file.mdb", ...) .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Do you want to connect to an Access database?
Check in MSDN the following classes:
CDatabase
CRecordset
or
CDaoDatabase
CDaoRecordset
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
i just want to open an already created .mdb file from an application in VC6 .
anyways thank you .
|
|
|
|
|
If you want to read access files of your program did you see Database[^]?
|
|
|
|
|
Hi everybody,
I see how the messages travels down in the own application.
But a special key combination (Ctrl+Shift+R) should launch a tool into my application,
but it opens a functionality of another application ...
How can i route the message that it will directly traited by my own application?
Big thanks for any help
|
|
|
|
|
Use RegisterHotKey(HWND hWnd,int id,UINT fsModifiers,UINT vk) to register global hotkeys.
Then handle the message WM_HOTKEY to do what you want.
When you don't need your hotkey anymore, call UnregisterHotKey(HWND hWnd,int id);
rotter
|
|
|
|
|
Are you using an accelerator table to catch the Ctrl+Shift+R key?
If no then that's where I would start.
AliR.
Visual C++ MVP
|
|
|
|
|
Hello everyone,
The following code will result in C4373 warning message. In MSDN,
[url]http://msdn2.microsoft.com/en-us/library/bb384874.aspx[/url]
I do not quite understand the following statement,
1. What means "bind"? Putting function pointer into the vtable of the related class?
2. const is ignored in derived class?
--------------------
This means the compiler must bind a function reference to the method in either the base or derived class.
Versions of the compiler prior to Visual C++ 2008 bind the function to the method in the base class, then issue a warning message. Subsequent versions of the compiler ignore the const or volatile qualifier, bind the function to the method in the derived class, then issue warning C4373. This latter behavior complies with the C++ standard.
--------------------
class Base {
public:
virtual int goo (const int input) {return 200;}
};
class Derived : public Base {
public:
virtual int goo (int input) {return 200;}
};
int main()
{
Derived d;
const int a = 1000;
d.goo (a);
return 0;
}
Compile warning message,
1>d:\visual studio 2008\projects\test_overriding1\test_overriding1\main.cpp(8) : warning C4373: 'Derived::goo': virtual function overrides 'Base::goo', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
1> d:\visual studio 2008\projects\test_overriding1\test_overriding1\main.cpp(3) : see declaration of 'Base::goo'
regards,
George
|
|
|
|
|
"function arguments of a type modified by const or volatile are not treated differently
than the base type for the purposes of overloading." from msdn;
that is
"int goo (const int)" and "int goo (int)" are not considered as two overloaded function,
it causes redeclaration error. you cannot have two definitions for each of this.
So, while overriding, "virtual int goo (const int )" and "virtual int goo (int input)"
is not considered as two different functions and compiler prior to VS 2008 binds to the
method in base class and issues warning "C4301: 'Derived::goo': overriding virtual function
only differs from 'Base::goo' by const/volatile qualifier"
while VS 2008 bind the function to the method in the derived class, then issue
warning C4373 ignoring qualifiers. "This latter behavior complies with the C++ standard."
George_George wrote: 1. What means "bind"?
Putting function pointer into the vtable of the related class?
yes.
George_George wrote: 2. const is ignored in derived class?
explained above.
|
|
|
|
|
Thanks Rajkumar,
Your reply is so comprehensive covers not only overriding (my question) and overloading (which I do not know).
regards,
George
|
|
|
|