|
Thanks for the reply....
But if i make my base class as CControlBar will i be able to handle text and bitmap...Please do u have any other idea for this problem other than using the CControlBar....plz suggest some ideas....
Thanking you,
Ruchit Sharma. R
|
|
|
|
|
Hi
I have to m/c with windows. Both are connected through internet. I want to transfer automatically some file from 1 m/c to the other.
I have VC++ 6 with me. Can anybody help me in this regard.
I have done networking programming in unix with c. but I do not have programming exp with windows.
So it will b of real help for me if any of u can guide me in writing a ftp server and client in C for windows.
Thanks
|
|
|
|
|
|
ClassLibImImageBj error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmt.lib(typinfo.obj)<br />
ClassLibImImageBj error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmt.lib(typinfo.obj)<br />
ClassLibImImageBj error LNK2005: _strncmp already defined in libcmt.lib(strncmp.obj)
My executable which runs the static library is
C++ - code generation - Multithreaded Debug
My static library project setting is
C++ - code generation - Multithreaded Debug DLL
Any hints?
I have try to ignore some libraries but it turns up that I am missing some linkage to some symbols etc.
thank you
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
are you sure the RTTI is turned off?
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
It is turned off.
Any other clues?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
You need to use either static or DLL linking of the runtime library, not both at the same time.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hi!
What is the computational difference between nested conditional statements and non-nested dito?
When I have lots of sequential conditions, for the sake of readability I tend to write
void SomeFunction()
{
if(!conditionA) return;
...
if(!conditionB) return;
...
if(!conditionC) return;
...
} instead of
void SomeFunction()
{
if(conditionA)
{
...
if(conditionB)
{
...
if(conditionC)
{
...
}
else
{
return;
}
}
else
{
return;
}
}
else
{
return;
}
} Are there any performance issues, stack mumbo jumbo or something else that could be interesting to know about that make these two ways of writing different?
|
|
|
|
|
--
Dad, how strange it is that the pig can speak. *thoughtful pause* It must have lost its "oink". (my 3-year old daughter Moa, while watching Babe)
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
I belive that both are equally efficient.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
The second one has a more clearer control over all the possibilities of the execution path whereas first one is easier to comprehend and faster as well cause it will straight away exit the function when certain condition(s) are met.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Totally agree. A function shall have a single (!) point of exit. This pays enormously when debugging.
If you structure your code well enough and stay away from 500-line functions, then there is no problem with that.
Bernd
|
|
|
|
|
Hi!
berndg wrote:
Totally agree
With which version do you agree? None of them has a single point of exit. Both of them perform exactly the same conditional tests in exactly the same order.
--
Dad, how strange it is that the pig can speak. *thoughtful pause* It must have lost its "oink". (my 3-year old daughter Moa, while watching Babe)
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
Oops! I overlooked that one, haven'd scrolled down far enough. In that case both are evil, because the paradigm holds: each function shall have one exit point.
I find the most natural way of writing this is like so:
if (a) {
...
} else if (b) {
...
} else {
...
}
Bernd
|
|
|
|
|
The easiest way would be to compare the generated assembly code, if they are different after the optimizer (disabled in debug) has done its work.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Hello y'all
In my application, I have tons of messages in the debug window that say
First-chance exception in BurCalc.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
Can anybody give me a hind how I have to check out this issue. I'm regularely using CString and CMaps... is this a source of troubles? But I'm using it also in other applications without any problems...
Any help?
Regards,
Daniel
|
|
|
|
|
Pointer problem?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Now when the violation occurs, the debugger will stop in the offending code. This should help you track down the problem.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Michael P Butler wrote:
If you are using VC6,
goto the debug menu, select the Exceptions option.
Find Access Violation in the list. Click Stop Always.
Hi, i would also like to enable this feature, however, i cant find the "debug" menu or the "Exceptions" item you mention.
Could you be more specific on how to enable this feature?
Thanks!
|
|
|
|
|
Ernesto D. wrote:
Could you be more specific on how to enable this feature?
Sorry, the debug menu doesn't usual appear unless you are debugging your app.
If you run your app by press F11, the app will stop at the first line. You should then see your debug menu. Set the option and hit F5 and you can start to find the problem.
Hope this helps,
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
|
Im looking for a good tutorial on importing text files, rearraging the data, then writing it to a new file. Anyone know a good one???
thanks
|
|
|
|
|
Use CFile objects in MFC to read character-data from the text file. Save this data into an array/matrix of characters. Then do your rearranging, whatever that is. After that, write it into a new file using a new CFile object again.
See the documentation of CFile for examples.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
i need to download the msdn
but i cant find it
where i get exact downloadable link of msdn library
pls help
thanx
regards
rajesh
|
|
|
|
|
I dont know why would any one spend hell lot of time downloading the msdn when you can view it online, as far as i know there is no option to download MSDN, Try getting hold of MSDN 2004 cds.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|