|
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
|
|
|
|
|
|
See if visible property of edit box having ID IDC_START_UP_INFO is true.
|
|
|
|
|
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
|
|
|
|
|
Hi..
When i try to save the modifications done to any xml file using XmlDataDocument variable, the error shown is as follows:
The process cannot access the file 'xml file name' because it is being used by another process.
Could anyone plz solve this!!
Thanks..
|
|
|
|
|
zxc89 wrote: Could anyone plz solve this!!
Sure. Don't try to modify the file when it's in use by another process.
Are you sure you are not leaving the file open somewhere?
|
|
|
|
|
I am pretty sure that the file is not opened anywhere else..
|
|
|
|
|
The error message indicates a sharing violation.
If no other processes are using the file then make sure you haven't opened it twice without
appropriate share flags.
|
|
|
|
|
suppose i delete or hide a icon from system tray, the icon gets removed but there is a blank space at that place, how can i refesh the tray or when i delet an icon how the tray should clean that blank space,
any idea
|
|
|
|
|