|
Archer justice wrote: but i have more problems because i am now studying the c++ programming language
Well, studying the language should sooner make you a fantastic problem-solver...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks Pallini for the encouragement
but unfortunately i have an assignment to summit on histograms, chi square and gaussian random numbers and i don't know what to do because i have been struggling since last week but to no avail
|
|
|
|
|
So you need gaussian (not uniform) random numbers?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
all of them together with the code of chi square
|
|
|
|
|
My dialog is resizable with a list control, and the list control's rect is the whole of dialog's client rect, call CListCtrl::SetBkImage to enable background. My question is how to autofit(stretch) background with the dialog when resizing? Thanks.
|
|
|
|
|
What if your try call ::SetBkImage again when the OnSize member is triggered ?
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
void CMyDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
if (IsWindow(m_ListCtrl.m_hWnd))
{
CRect rect;
GetClientRect(rect);
m_ListCtrl.MoveWindow(rect);
m_ListCtrl.SetBkImage(::LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BKIMAGE)));
}
}
problem still unresolved, autofit(stretch) no effect! Thanks!
|
|
|
|
|
I am using following piece of code to update excel using dde . I am updating the g_count
as my excel connect it cell get updated with value = 10 ; But I am not able to send string
value i.e. "xyzabcd" etc to the excel cell ,so how can I send string to the excel sheet
using dde
int g_count = 10;
short xltableData[100];
// tdtTable record...
xltableData[0] = 0x0010; // tdtTable
xltableData[1] = 4; // 2 short ints following
xltableData[2] = 1; // # rows
xltableData[3] = 1; // # cols
// tdtInt record...
xltableData[4] = 0x0006;
xltableData[5] = 2;
xltableData[6] = (short)g_count;
DdeCreateDataHandle(g_idInst, (UCHAR*)xltableData, 2*7, 0, g_hszItemName, fmt, 0);
Trioum
|
|
|
|
|
|
I try lot but could not success. can you suggest be some piece of code to pass the binary string .can you replace my code for string
Trioum
|
|
|
|
|
Sorry, my bad. After looked at the prototype of DdeCreateDataHandle[^], it really takes a LPBYTE argument.
Maxwell Chen
|
|
|
|
|
Hi all,
I have one problem in using Multiple Inheritance, please go through below Code
class Base1
{
public:
void Show()
{
cout<<"Base1";
}
};
class Base2
{
public:
void Show()
{
cout<<"Base2";
}
};
class Derived: public Base1,public Base2
{
}
main()
{
Derived d;
d.Show();
}
Error: error C2385: ambiguous access of 'show'
Please provide some solution for the above code. Can virtual Base class concept work in this,if yes then how?
|
|
|
|
|
What's the difference between upcasting and downcasting?
|
|
|
|
|
Symfund wrote: What's the difference between upcasting and downcasting?
I am sorry but,I didn't get how this question answers my question?
|
|
|
|
|
And what are the differences between Bose-Einstein and Dirac-Fermi statistics?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Syntax Error: WOW! Chinglish! I am not a native English speaker.
|
|
|
|
|
Rahul Vaishnav wrote: d.Show();
The error is because the compiler do not know which Show() function it should call. Show() of Base1 or Base2. Actually which one do you want to call?
You have to tell the compiler which one excatly. like
d.Base1::Show();
or
d.Base2::Show();
|
|
|
|
|
|
Why do you need such multiple inheritance?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all
I developed an application using MFc and oracle.
The mFC transactions will be update in to oracle DB.
The app exe works fine in my PC, where as if i run on other pc's, it shows that it requires "Oracle Client".
Is ther any solution to run the exe without installing the oracle client.
|
|
|
|
|
|
This in no way answers his question. And what has his question got with platform neutrality ?
modified on Monday, November 16, 2009 11:07 AM
|
|
|
|
|
Hi...
i have a text file. Its size is more than 400000 bytes.
i need to store the file into single CString or char variable... Because i have to compare some variable, delete.
How can i store?
Thanks...
G.Paulraj
|
|
|
|
|
You to use CStringArray class, Just refer [^].
Since it is a array, you can store each line as a single array content.
You can do string manipulation in it easily.
Величие не Бога может быть недооценена.
|
|
|
|
|