|
yes.
blahDlg::m_ulCounter will retain its value even if there are no blahDlg objects instantiated anywhere.
|
|
|
|
|
Guys,
Our main program calls a dll that it uses (obviously ). Know we want to use a newer version of this dll, but some of the functions have changed (name and/or arguments added and/or removed).
Is it possible to fool the calling program to call a wrapper that calls the dll? The idea is to rename the dll and add a new one (the wrapper) with the original dll name.
We want to do this to avoid fiddling with the source code of our main app.
(PS: hope I'm making sence )
Many thanks !
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
V. wrote: Is it possible to fool the calling program to call a wrapper that calls the dll?
yes
V. wrote: he idea is to rename the dll and add a new one (the wrapper) with the original dll name.
that's what i'd do
|
|
|
|
|
Hi.
I'm writing an application that it create a CComboBox at runtime like this:
<br />
rcControl.left = long(rcClient.Width() * 0.05);<br />
rcControl.top = long(rcClient.Height() * 0.10);<br />
rcControl.right = rcControl.left + long(rcClient.Width() * 0.90) ;<br />
rcControl.bottom = rcControl.top +long(rcClient.Height() * 0.40); <br />
<br />
m_cboParam.Create(CBS_DROPDOWNLIST|LBS_STANDARD|CBS_SORT|WS_CHILD|WS_VISIBLE, rcControl, this, IDC_PARAM);<br />
....<br />
It works, but the problem is that I want to show more items when the user pull the list down. At the moment it shows just two items and I must scroll the list down to see the rest of them.
How could I set, maybe the heigth or something else, so it will be able to show more than two items.?? (at least 4 or 5).
Setting the amount of items to show in a combobox at design time is easy:->, just clicking over the arrow and then stretch it to the desire height. But how could I set that at runtime??
Thank you.
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- )
|
|
|
|
|
Forget it.;P
Solved.
I had just to adjust the height in other function when the controls reposition.
Thank you.
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- )
|
|
|
|
|
Demian Panello wrote: rcControl.left = long(rcClient.Width() * 0.05);
rcControl.top = long(rcClient.Height() * 0.10);
rcControl.right = rcControl.left + long(rcClient.Width() * 0.90) ;
rcControl.bottom = rcControl.top +long(rcClient.Height() * 0.40);
m_cboParam.Create(CBS_DROPDOWNLIST|LBS_STANDARD|CBS_SORT|WS_CHILD|WS_VISIBLE, rcControl, this, IDC_PARAM);
RECT given while creating combo box should mention that. ie.
in this case increase rcControl.bottom value, it will give you desired effect.
Demian Panello wrote: But how could I set that at runtime??
It is easy ,too. Isn't it?
|
|
|
|
|
Dear All,
I am developing a Windows Service application using VS.NET 2003. It was fine when I run it without adding any interface (ATL Interface).
Then I added one interface(ATL) called (ICallRDI) where I have written one member function (SendStatus).
Here I am getting this below error ?
: error LNK2001: unresolved external symbol _LIBID_RMILib
.\Debug/rdi.exe : fatal error LNK1120: 1 unresolved externals
this '_LIBID_RMILib' persented at CallRDI.h file.
I need to solve this. Kindly Help me in this.
Thanks.
|
|
|
|
|
I use App Wizard create the project that derive from CEditview.(it look like "NotePad").
My problem is, when I open a file that has too many character in one line,but edit veiw don't have Horizontal scroll.
How to do if I want to add horizontal scroll for edit view?
|
|
|
|
|
hi
My doubt is ,is it possible to make tree controls nodes to look bigger and used for touchscreen projects.
i couldnt find it .if anyone knows plz answer me.
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
Hi,
Could any one please guide me to know answer.
As I know TurboC is 16 Bit compiler and Windows is 32 bit OS. How it is possiable for a 16 bit compiler like TurboC is running in 32 bit OS(Windows)?
Thank you.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
16 bits applications can be run on a 32 bits machine, just as 32 bits application can run on Windows 64 bits...
|
|
|
|
|
Hello Mr.Toxcct,
Very very happy to meet you in Codeproject. Thanks for your quick reply.
My actual doubt is how this TurboC compiler is( even it is 16 bit compiler )running in 32 bit OS(Windows). What is internully happening to run 16 bit things in 32 bit OS.
Here I have the answer same as you replied. But I dont have answer if any one says how it is possiable. I hope you got my question.
Thanks a lot.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
|
Just adding to Kakan's reply (I haven't gone through that link, may be this is given in that link). You might see windows running an executable named "Wowexec.exe" every time you run a 16 bit application on 32bit windows, which is actually that very subsystem.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Yaa!....
I got the answer.
Thanks for your reply.
=========================================================================
The WOW (Win16-on-Win32) layer consists of 32-bit window manager code and
Graphics Device Interface (GDI) code that translates 16-bit segmented addresses
into 32-bit flat addresses.
A 16-bit application cannot call a 32-bit application programming interface
(API). When an application calls a 16-bit API, the call goes to a stub routine ,
which in turn calls a 32-bit API. The 32-bit API performs the required action,
and the result is transformed into the format expected by the 16-bit API stub,
which returns the result to the application. This transformation is an example of
thunking.
=========================================================================
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
Hi
How do I retrieve the column names of a table programatically at run time.
Thanks in advance.
Taruni
|
|
|
|
|
|
Hello
I am trying to create a modeless dialog. I have been following examples such as
http://www.codeproject.com/dialog/gettingmodeless.asp
http://www.functionx.com/vcnet/Lesson10.htm
http://www.softlookup.com/tutorial/vc++/vcu21fi.asp#I9
and produced the following code
header file:
<br />
<br />
#ifndef __CSTARTUPSCREENDLG_H<br />
#define __CSTARTUPSCREENDLG_H<br />
<br />
#include "resource.h"<br />
<br />
<br />
<br />
class CStartUpScreenDlg : public CJPMDialog<br />
{<br />
public:<br />
<br />
CStartUpScreenDlg(CWnd* pParent = NULL);<br />
void CloseStartUpScreen();<br />
<br />
enum { IDD = IDD_START_UP_SCREEN }; <br />
<br />
JPMCEditExt m_startupinfo;<br />
<br />
<br />
<br />
<br />
<br />
protected:<br />
virtual void DoDataExchange(CDataExchange* pDX);
<br />
<br />
<br />
protected:<br />
virtual BOOL OnInitDialog();<br />
<br />
DECLARE_MESSAGE_MAP()<br />
<br />
<br />
};<br />
<br />
<br />
.cpp file for header file
<br />
#include "stdafx.h"<br />
#include "resource.h"<br />
#include "aboutDlg.h"<br />
#include "user.h"<br />
#include "tradecapture.h"<br />
#include "mainfrm.h"<br />
#include "tradecapturedoc.h"<br />
#include "global.h"<br />
#include "EdgDiag.h"
#include "componentversionsdlg.h"<br />
#include "passworddlg.h"<br />
#include "startupscreen.h"<br />
<br />
<br />
#ifdef _DEBUG<br />
#define new DEBUG_NEW<br />
#undef THIS_FILE<br />
static char THIS_FILE[] = __FILE__;<br />
#endif<br />
<br />
static CEdgDiag *pDiag = NULL;
<br />
CStartUpScreenDlg::CStartUpScreenDlg(CWnd* pParent ) : CJPMDialog(CStartUpScreenDlg::IDD, pParent)<br />
{<br />
<br />
<br />
<br />
}<br />
<br />
void CStartUpScreenDlg::DoDataExchange(CDataExchange* pDX)<br />
{<br />
CJPMDialog::DoDataExchange(pDX);<br />
<br />
DDX_Control(pDX, IDC_START_UP_INFO, m_startupinfo);<br />
<br />
<br />
}<br />
<br />
BEGIN_MESSAGE_MAP(CStartUpScreenDlg, CJPMDialog)<br />
ON_WM_LBUTTONDBLCLK()<br />
<br />
<br />
<br />
END_MESSAGE_MAP()<br />
<br />
BOOL CStartUpScreenDlg::OnInitDialog() <br />
{<br />
CJPMDialog::OnInitDialog(); <br />
<br />
<br />
return TRUE;<br />
}<br />
<br />
void CStartUpScreenDlg::CloseStartUpScreen()<br />
{<br />
<br />
DestroyWindow();<br />
<br />
<br />
<br />
}<br />
<br />
<br />
main code
<br />
<br />
CStartUpScreenDlg startupDlg;<br />
startupDlg.Create( CStartUpScreenDlg::IDD, this->GetMainWnd());<br />
startupDlg.ShowWindow(SW_SHOW);<br />
startupDlg.SetFocus();<br />
<br />
unfortunately this is not working properly. Although a dialog box appears, the edit box that I want on it does not appear and some static text. If you have any information on what I am doing wrong, please tell me! Thanks for your time.
|
|
|
|
|
minkowski wrote: CStartUpScreenDlg startupDlg;
startupDlg.Create( CStartUpScreenDlg::IDD, this->GetMainWnd());
startupDlg.ShowWindow(SW_SHOW);
startupDlg.SetFocus();
Create startupDlg on heap.
|
|
|
|
|
Try This... and let me know
CStartUpScreenDlg startupDlg;
startupDlg = new CStartUpScreenDlg(); //add this and try
startupDlg.Create( CStartUpScreenDlg::IDD, this->GetMainWnd());
startupDlg.ShowWindow(SW_SHOW);
startupDlg.SetFocus();
SARVEJANAA SUKINOBHAVANTHU
Ashok
|
|
|
|
|
hi
so i changed my code to
<br />
CStartUpScreenDlg *startupDlg = new CStartUpScreenDlg();<br />
<br />
startupDlg->Create( CStartUpScreenDlg::IDD, this->GetMainWnd()); <br />
<br />
startupDlg->ShowWindow(SW_SHOW);<br />
<br />
startupDlg->SetFocus();<br />
<br />
<br />
but i am afraid still the dialog box appears but the static text on it does not. it seems creating it on the heap did not help.
ummm any other ideas ?
-- modified at 6:37 Monday 18th December, 2006
|
|
|
|
|
You are creating a dialog and it appears but some edits&statics arent show,right?
|
|
|
|
|
yes thats right, some static text is not showing in the dialog. any ideas why?
|
|
|
|
|
Are you sure Visible of statics & edits are visible ?
|
|
|
|
|
hey thanks for that. you were right in that the visible check box was not ticked ! its the 1st dialog box i have created so i am still learning
|
|
|
|