|
hello,
i need to make a function that accept the same parameters of the Format function of CString and create a formatted string with them
so i've declared
void OutputMessage(const char* pMessage, ...);
and
void CNetConnection::OutputMessage(const char* pMessage, ...)
{
CString msg;
va_list argList;
va_start( argList, pMessage );
msg.Format(pMessage, argList);
va_end( argList );
// next use msg string to do things
}
The problem is that the output string has incorrect values in the %s %d etc values.
I've made something wrong?
Thanks
|
|
|
|
|
|
hi,
can anyone tell me
if crystal reports works with unmanaged c++ in visual studio 2003 ?
I have installed version 9 and 10
and cannot use either
any tips,
Regards,
Dermot
|
|
|
|
|
Irish_GUI wrote:
if crystal reports works with unmanaged c++ in visual studio 2003 ?
I'm using Crystal Reports 8.5 with VS2003, without any problem (well apart from the usual Crystal problems)
I dropped the Crystal Report viewer activex control onto a formview resource.
I then #import "craxdrt.tlb" to get the IApplication and IReport interfaces, which I use to load the report and then pass the loaded report into the active x.
Roughly
CCrystalViewer m_Report;<br />
IApplicationPtr m_Application;<br />
IReportPtr m_ReportObject;
<br />
<br />
HRESULT hr = m_Application.CreateInstance(__uuidof(Application));<br />
<br />
m_ReportObject = m_Application->OpenReport(strFilename);<br />
_bstr_t bstrSQL = m_ReportObject->GetSQLQueryString();<br />
<br />
TRACE("%s\n", (LPCTSTR)bstrSQL);<br />
<br />
<br />
m_ReportObject->put_ReportTitle(_bstr_t(strTitle));<br />
<br />
m_Report.put_ReportSource(m_ReportObject);<br />
<br />
m_Report.ViewReport();
Michael
CP Blog [^]
|
|
|
|
|
Hello - I have been working on a way to display more than one overlay for a given image - as the image states are not mutually exclusive for the control. Currently the MFC implementation only supports displaying a single overlay image at any given time. Does anyone know of a method to acheive this? I really do not want to reinvent the wheel here if it can be avoided. I have looked through various forums for a similar question and was unsuccessful in locating a solution. I find it hard to believe that no one has encountered this issue before.
Thanks in advance.
|
|
|
|
|
Hi
does any1 know how i can change
the fonts on some of my static controls
i can do it for all of them,but not for particular ones
thanks
si
|
|
|
|
|
Simply use CStatic::SetFont (actually CWnd::SetFont). You will have to provide to the function a CFont object you previously have created, or retrieved from GDI stock objects (by using ::GetStockObject for instance)
|
|
|
|
|
|
Each control you need to set the font for needs an unique ID so you can get the handlt to it.
Make sure they are not IDC_STATIC which is -1
If you vote me down, my score will only get lower
|
|
|
|
|
|
HI ,
I want to build Some think like media player
that can play a WMV file n i can also forward n Back it.
any sample ,,, or help code
thanx
|
|
|
|
|
Hi,
Have a ListControl with 2 columns as follows:
1stColumn | 2ndcolumn
*************|***********
CodePage |2
*************|***********
FormFeed |x
*************|***********
LineFeed |y
*************|***********
The 1st Column members for me are Labels that won't change.
The 2nd column,Iam creating different controls depending on the 1st column label.
I have a click event for the listcontrol,in which when a user clicks on a cell on the 2nd column,depending on the 1st column label i have to create different controls.
I know how to create controls,My question here is when the user clicks on the cell,would like to the coordinates,like the column & row in which the cell, he clicked lies.......
Thanks..
|
|
|
|
|
Use CListCtrl::HitTest. LVHITTESTINFO parameter will show you what item and subitem is at the point where the mouse clicked.
Jaime
|
|
|
|
|
|
Hi,
I would like to know how I could parse the exe file (.idata section).
Thanks in advance,
Kavita Fernandes
|
|
|
|
|
Hello Friends,
I had done a Project "School management System" and I am facing a similar problem in my interviews. this project the question is
When the Project SMS can be done in VB, Why you had choosen VC++ for developing it? I couldn't able to answer convincingly,
Please help me regarding this question.
Thank you friends
|
|
|
|
|
Neelesh K J Jain wrote:
I couldn't able to answer convincingly,
what did you answer ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
look up the differences between VB and VC++?
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
Neelesh K J Jain wrote:
Why you had choosen VC++ for developing it? I couldn't able to answer convincingly,
Well, the obvious answer is that you made use of the skillset available. That your VC++ skills were stronger than your VB skills and therefore were able to implement a solution in VC++ in a quicker timeframe than if you had to write it in VB. You were also able to reuse your existing C++ code libraries to implement the application. Thus saving on time, cost of development and using existing tested code.
At least, that's what I'd say.
Michael
CP Blog [^]
|
|
|
|
|
That's definately the political answer
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
...but most probably it was the answer the interviewers were expecting.
|
|
|
|
|
A simple answer could be one of preference.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
You start with a question: "Are you serious?". When it is evident that the interviewer is, you laugh scornfully and leave the room.
Seriously, that something can be built in VB, or with batch-files, or by using paper-clips, doesn't imply that it is a good idea. So, you just might want to say: "When MS starts to deliver end-user apps built in VB, so will I".
|
|
|
|
|
not a fan of VB then Johan?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
As a matter of a fact, I don't care one way or the other. It's just the way the question was posed
|
|
|
|