|
Hi folks,
I've an MFC application that generates some string data. I want to put this text data in a file in a table form. How can I perform this?
Thanks for the help!
Hami
|
|
|
|
|
|
Anonymous wrote: I want to put this text data in a file in a table form. How can I perform this?
Without being more specific, "table form" is too ambiguous. You could write the string data to a file and say it is a 1x1 table, or you could write it to a file and say it is a 1xN table where N is the number of 'words' in the string.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi
How to remove MAXIMIZE Option from SDI application (at right upper corner). In this application the View class is derived from CFormView. Plz help me as soon as possible.
Thanks in Advance.
|
|
|
|
|
use following window style while creating window ie in CreateWindow() function
WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX
this will disable maximize icon
|
|
|
|
|
for SDI
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style = WS_OVERLAPPED | WS_SYSMENU | WS_BORDER;
return CFrameWnd::PreCreateWindow(cs);
}
for MDI
BOOL CMyChildWnd::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~WS_MAXIMIZEBOX;
return CMDIChildWnd::PreCreateWindow(cs);
}
|
|
|
|
|
hey i want to maximise my Child window similarly when
the user clicks the MAXIMIZEBOX button .
Is it possible programatically or not ?
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hey, Sorry for late. just i came.
This is also one way.
CDialog dlg;
dlg.ModifyStyle(WS_MAXIMIZEBOX,0);
dlg.ModifyStyle(0,WS_MAXIMIZEBOX);
//Like this you can add any style and remove any style
This is simple way. At runtime you can change the style of any control or any window. see about modifystyle in msdn.
Nice talking to you.
|
|
|
|
|
I have a edit box that is refreshed frqently
By OnPaint(); event
CFont font;
font.CreatePointFont(280, ("Arial"));
m_BFreq.SetFont (&font);
Have tried to use this code but i donot work , actully
the cursor size is increased but font remains same.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Your CFont object will be destroyed when it goes out of scope.
Have a CFont member variable instead.
Create the font you like in your constructor:
LOGFONT lf;
memset( &lf, 0, sizeof( LOGFONT ) );
lf.lfHeight = -20;
lf.lfWeight = FW_BOLD;
m_LargeFont.CreateFontIndirect( &lf ); ...and when you like to use it:
m_bFreq.SetFont( &m_LargeFont );
--
Roger
It's supposed to be hard, otherwise anybody could do it!
|
|
|
|
|
Thank you Roger
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi!!Actually i am newbie in this VC++ area and for my project i want to make a button and onclick some page will open.i know that there is a class called CButton but don't know how to use this.
Thanks in advance
|
|
|
|
|
use mfc wizard to do these things for u...for more, search web or buy some "newbie" book
"Do first things first, and second things not at all."
— Peter Drucker.
|
|
|
|
|
If u r trying by SDK then u need some books to refer fist .
If u use a MFC ,then
Use a class wizard to create a new project in MFC (SDI)
Then create a dialog box from resource editor ,create
a class for ur dialog box say CDlg_myname .
Create a Object of the dialogbox class and use this code in
ur CMainFrm OnShow() event .
CDlg_myname dlg1;
Dlg1.DoModel();
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
on the resource editor, you can drag a button from the toolbox to your dialog resource, give it an explicit ID and then double click on it to access its OnClick event handler...
there, add the code that is to be executed when the button is clicked on...
SushantM wrote: some page will open
what do you mean by this ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
he means 'some page'
regards,
Rookie
|
|
|
|
|
yeah, thank you very much rookieee, i still can read properly
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I like to find out whether it is possible to monitor what files are being copied out of my PC to bluetooth devices attach to the USB port. Can somebody advice or direct me? Maybe there are ActiveX Components available in the market for that?
|
|
|
|
|
Hi,
I've done some searching to implement a windows explorer kind of interface. Will VisualStudios.Net will start you off with the splitter control, it's not exactly what I wanted. I would really like to integreate the shell features of windows explorer into my application. I've searched for hours on how to do this without having to completely reinvent the wheel, but either nobody seems to know or nobody wants to give out the information.
I've seen libs that you can pay for that do the job for you (http://www.ssware.com/articles/creating-explorer-clone-in-visualc++-mfc.htm) , but I don't see the point in paying for a library when I can write it myself.
I've searched these forums for this topic, but havent' found any info (maybe i just suck).
So is there a way to get a windows style explorer control into your application without writing it from scratch. I wish I could rip out the list view from the open file dialog and the tree view from the folder browser dialog. Either C++ or C# solutions/ideas would be welcome.
RockmanHero2003
My computer finally got faster...I threw it out the window and it went very fast.
|
|
|
|
|
Hi,
I im trying to work on network security and developed a sniffer as a first step of an IDS. Next, I want to decrypt captured packet header to get the signeture information but I don't know how to do it or how to get the key.
Can anyone please hep me out? I'm stuck here for long time.
Regards.
Shahed
|
|
|
|
|
Hi,
In my app I want to convert pixels to inches and vice versa.
How do I do this. We can get the size of the screen in pixels by using GetSystemMetrics() fn. But how do I get the size of the screen in inches??
Have any ideas???
|
|
|
|
|
Hi,
maybe CDC::GetDeviceCaps(LOGPIXELSX) and CDC::GetDeviceCaps(LOGPIXELSY) can help you.
Regards
Achim Klein
We can do no great things, only small things with great love. - Mother Theresa
|
|
|
|
|
hi, all
when this app open the customer dbf file, it creats index as well, it didn't really has m_pdbf = new...., but it seems like need to be deleted in dbCustomer::~dbCustomer(), here is the steps:
BOOL dbCustomer::Open( const char *pszFileName, bool bReindex )
{
ASSERT( m_pdbf == NULL );
int nError = 0;
std::string strErrMsg = "";
if ( !OpenDbfNtx( &m_pdbf, pszFileName, NULL, NULL, nError, &strErrMsg ) )
throw DbfAccessException (string(pszFileName) + " not found", RC_DBF_UNABLE_TO_OPEN);
SetIndex( pszFileName, m_pdbf, bReindex );
m_pdbf->set_order( "CUSNUM02" );
return BindFieldOrdinals();
}
CB_DBF_NTX* const p = OpenDbfNtxHelper( szDbfName, szIndexName, szIndexKey );
CB_DBF_NTX* pDbf = new CB_DBF_NTX( const_cast<char*>( szDbfName ) );
the wrapper seems conplicated, it's getting infor from library files.........thanks for your time
|
|
|
|
|
depends on your design.
if there's an Open method, maybe there's a Close method also that will close the database and delete the object.
if you're not certain about that, put the delete in the destructor.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi folks,
how can I find out, which punctuation character ('.' or ',') is used (in atof() ) to separate the decimal places of a rational number.
Thanks in advance,
Achim Klein
We can do no great things, only small things with great love. - Mother Theresa
|
|
|
|