|
You can declare string variable like,
string sMyString(AmtInvalidError);
|
|
|
|
|
prasad_som wrote:
string sMyString(AmtInvalidError);
sMyString variable points to same AmtInvalidError array or creates new one?
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
the constructor copies the array into its own memory...
|
|
|
|
|
toxcct wrote: the constructor copies the array into its own memory...
So its better to write the code which populates the std::string variable instead of just copying an existing array into newone for efficient memory usage.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
A_LaxmansMyString variable points to same AmtInvalidError array or creates new one?
Creates own version. You can assume its implementation like copy constructor. If there is a pointer, you need to allocate own memory for this class.
This way one can have control over own memory.
|
|
|
|
|
Hi,
I am developing a relativly simple 2D graphics application.
Purpose: displaying lots of rectangles (those come from a
file. There has to be some pre-processing, but basically
all elemets are rectangle.
Now I would like to have the follwoing features: scrolling and
zooming, all in an MFC application.
I was trying to use the ANISOTROPIC mode, this doesn't work in
an MFC application. Any idea how I get this mode to work in an
MFC framework?
Thanks,
Joerg
|
|
|
|
|
Perhaps this[^] would help a little?
|
|
|
|
|
Great, looks like this is what I was looking for.
Thanks so far, I'll need a bit to read
Regards,
Joerg
|
|
|
|
|
MFC used to include some tutorials. Are they not provided anymore? The first tutorial was called Scribble which I think answered most or all of your questions. Is it not provided any more?
|
|
|
|
|
Say I got 20 or more projects in a solution.If the sln file is building under msbuild i.e msbuild mysolution.sln then is that enough to proceed. Well if any body has any experience with integrating msbuild and cc.net please share their thoughts.I'm looking for an easy way to get started.I have gone through many site ah well....
-- modified at 5:37 Thursday 14th December, 2006
_________________________
"When the superior man refrains from acting, his force is felt for a thousand li." Sun Tzu
|
|
|
|
|
mejax wrote: "When the superior man refrains from acting, his force is felt for a thousand li." Sun Tzu
Dude, read the forum rules above.
If you had been a superior man, you would never have asked this in the wrong forum. There are excellent programming forums on this site for such questions.
_____________________________________
Action without thought is not action
Action without emotion is not life
|
|
|
|
|
this is not a programming question, if that is what troubles you...
|
|
|
|
|
Should it not be on this forum though? http://www.codeproject.com/script/comments/forums.asp?forumid=3831[^]
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
What is it then???
A builder question??
It is a programming question and it is not the place for it
|
|
|
|
|
asking for general topic around programming is not considered as if the guy was asking for some help writing code...
|
|
|
|
|
This is a skeletal msbuild project build task I use to start off my builds. It assumes that the build file is located in a build directory at the project root.
<ItemGroup>
<Project
Include="..\**\*.csproj"
Exclude="$(MSBuildProjectFile)" />
</ItemGroup>
<Target Name="Build">
<MSBuild
Projects="@(Project)"
Targets="Build">
<Output TaskParameter="TargetOutputs" ItemName="BuiltAssemblies"/>
</MSBuild>
<Message Text="Built: @(BuiltAssemblies)"/>
</Target>
That builtassemblies variable is super useful, you use it to feed the other tasks in your build file with a list of assemblies to process.
Its always a good idea to develop your build file outside of ccnet. Only wire it up for CI once you have it working standalone.
Dont know if there is a forum for build / test automation, so the lounge seems fine to me.
Ryan
|
|
|
|
|
I would have asked in general discussions.
Kevin
|
|
|
|
|
if mouse moves too fast, there is a big gap between every 2 points recorded on WM_MOSEMOVE.
Q: how to get more points or reduce distance between 2 points?
|
|
|
|
|
I don't think you can. If the mouse moves fast, it will not be a "path" but a "line" between the starting and ending mouse positions. You can extrapolate the points, using y = mx + b. Not sure why you'd need that though.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
i am using this code for inserting the data...and iam using oledb consumer wizard to make connection....can any body point out what is the problem here...it always get user define run time error..."Error inserting the record"...after calling dll function...any help
typedef int (CALLBACK* Set_Quote_DB)(unsigned short**,short*,unsigned short**,unsigned short**,unsigned short**,short*);
void CArielProjectVer2Dlg::OnPriceChangeArielapictrl1(LPCTSTR SessionId, LPCTSTR RequestId, short MarketNo, LPCTSTR Market, LPCTSTR Bid, short BidDirection, LPCTSTR Ask, short AskDirection, LPCTSTR High, LPCTSTR Low, short MarketState, LPCTSTR Timestamp)
{
HINSTANCE hInstance=LoadLibrary("WartzODLCOM.dll");
Set_Quote_DB SetQuote;
SetQuote = (Set_Quote_DB)GetProcAddress(hInstance,"setQuoteToDb");
SessID=SessionId;
CurrentRequestId=RequestId;
txtMarket = Market;
marketno.Format("%d",MarketNo);
bid_d.Format("%c",BidDirection);
ask_d.Format("%c",AskDirection);
marketstate.Format("%d",MarketState);
m_MainEdit=m_MainEdit + "<Price Change>" SessionId + RequestId + marketno ;
m_MainEdit=m_MainEdit + Market + Bid + bid_d + Ask + ask_d High ;
m_MainEdit=m_MainEdit + Low + marketstate + Timestamp ;
UpdateData(FALSE);
iLineCount=m_EditCtrl.GetLineCount();
m_EditCtrl.LineScroll(iLineCount);
USES_CONVERSION;
BSTR bsTimeStamp = A2BSTR(Timestamp);
BSTR bsMarket = A2BSTR(Market);
BSTR bsBid = A2BSTR(Bid);
BSTR bsAsk = A2BSTR(Ask);
HRESULT hResult = SetQuote(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
if(FAILED(hResult))
{
AfxMessageBox(_T("Error inserting record"));
return;
}
else
{
MessageBox(_T("data entered" ));
}
SysFreeString(bsTimeStamp);
SysFreeString(bsMarket);
SysFreeString(bsBid);
SysFreeString(bsAsk);
FreeLibrary( hInstance );
UpdateData(FALSE);
}
|
|
|
|
|
please edit your message, and change the <code> tags with <pre>.
thanks
|
|
|
|
|
toxcct wrote: posting police
LOL
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
|
toxcct wrote: nobody respect them
except professional members
|
|
|
|