|
From where are you using this thing ? If it in the MSDN then there is a descrption of which library is required to be linked to.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hi all,
When i'm satisfied of my application,
what should i do in order to create an installation
package so that others can install my application ?
Thanx in advance,
Desmo16.
|
|
|
|
|
use any tools to create installation and u can give it others
ex: install pro
Trinainee
|
|
|
|
|
is there an ambedded function inside visual studio .net to do that ?
|
|
|
|
|
sorry, i don't know about that but i used install pro software to create installation package
Trinainee
|
|
|
|
|
|
Hi,
I use Nullsoft Scriptable Install System (http://nsis.sourceforge.net).
You can also use it to pack commercial applications for free
Cheers,
Ramon
|
|
|
|
|
hey guys......
In my proj,
I have a form view page(say, "Form1") with various controls. On clicking a tool bar(say, "New dialog") control , a new dialog page pops/opens up.
and On opening this new dialog page, i want the edit controls in that dialog page to be updated with some values.
how do i do this?
if I do
#define WM_INFO WM_USER+10
I understand these are private messages, but
how and when does the message gets passed on to the respective message handlers? will this help in doing the above.
I create ON_MESSAGE(WM_INFO, OnUpdateInformation) in the cpp file
but how does it work?
Can anyone help please?
thanks in advance.
|
|
|
|
|
I think you can do the filling of edit box with values in OnInitDialog function. that is the best way.
Messages are using for notification with parameters(LPARAM,WPARAM).
You can use SendMessage or PostMessage to invoke that application (see MSDN for difference between PostMessage and SendMessage).
e.g
#define SHOW 1
#define HIDE 0
ON_MESSAGE(WM_INVOKE_CHILD, OnInvokeChild)
OnInvokeChild(WPARAM wParam, LPARAM lParam);
{
if(SHOW == wParam)
m_childWnd->ShowWindows(SW_SHOWNORMAL);
else(SHOW == wParam)
m_childWnd->ShowWindows(SW_HIDE);
}
you can use either param to pass the values
See MSDN for more information.
http://msdn2.microsoft.com/en-us/library/0812b0wa.aspx[^]
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
Use ClassWizard (Ctrl+W) to create a CEdit member variable for each of the edit controls. In the dialog's OnInitDialog() method, call SetWindowText() with each CEdit -derived variable.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hey I have created CEdit member variable for my control. But I dont find OnInitDialog() method in my dialog.cpp file. Isnt OnInitDialog() automatically generated by classwizard?
how do i include OnInitDialog()?
-- modified at 23:22 Wednesday 28th June, 2006
I create the dialog using DoModal()
|
|
|
|
|
thathvamsi wrote: Isnt OnInitDialog() automatically generated by classwizard?
Yes. I've never seen it not be generated.
thathvamsi wrote: how do i include OnInitDialog()?
Via ClassWizard.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how we get the IDs of the menu items
ram.
|
|
|
|
|
<br />
CMenu m;<br />
m.GetMenuItemID(pos);
whitesky
|
|
|
|
|
Hi
I have a CTabCtrl in a resizeable dialog and it flickers a lot if I resize the dialog. Any ideas, e.g. make it an owner draw control?
/M
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
thanks. Indeed I am going owner-draw now.
|
|
|
|
|
Very good.
|
|
|
|
|
|
Hi,
Maybe today isn't my best day but could anyone tell me what is wrong with this snippet ?
class CTest
{
public:
CTest()
{
(*(this)).lpFunc = &CTest::Write;
}
long Write(DWORD dwInfo)
{
...
}
long (*lpFunc)(DWORD);
}
I've got error C2440:
'=' : cannot convert from 'long (__thiscall CTest::* )(DWORD)' to 'long (__cdecl *)(DWORD)'
and when I change line: (*(this)).lpFunc = &CTest::Write;
to
(CTest::*lpFunc) = &CTest::Write;
I've got another error code:
error C2059: syntax error : '<tag>::*'
Generally I want to point on lpFunc a pointer to Write fuction but within class (I don't want to any globals).
-----------
Mila
-- modified at 3:15 Wednesday 28th June, 2006
|
|
|
|
|
Mila025 wrote: '=' : cannot convert from 'long (__thiscall CTest::* )(DWORD)' to 'long (__cdecl *)(DWORD)'
notice the calling convention of the two parts of your operator = reported by the compiler.
you function Write has to be either static or global. the fact is that being a class member function implicitely adds it the this pointer parameter...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
static need be there ONLY if it is not a member of the class.
|
|
|
|
|
certainly not !!!
compile the code and tell if the compiler complains...
-- TTD --
|
|
|
|
|
That Write method MUST be static.
So solution is :-
class CTest
{
public:
CTest()
{
(*(this)).lpFunc = &CTest::Write;
}
static long Write(DWORD dwInfo)
{
...
}
long (*lpFunc)(DWORD);
}
|
|
|
|
|
That's not how you declare a member function pointer.
class CTest
{
public:
CTest()
{
lpFunc = &CTest::Write;
}
long Write(DWORD dwInfo)
{
...
}
long (CTest::*lpFunc)(DWORD);
};
<pre>
|
|
|
|