|
Yes....but the result is same
|
|
|
|
|
Do the following things.
1)Delete all the .obj and .pdb(program database (PDB)) files
2)use the compiler's /Zi option
3)Rebuild the application
AppU
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
my project contains following options:
/nologo /MD /W3 /Gm /GR /GX /Zi /Od /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /D "NDEBUG" /Fp"Modules/SafetyEventLine.pch" /Yu"stdafx.h" /Fo"Modules/" /Fd"Modules/" /FD /Zm300 /c
|
|
|
|
|
i think your error is LNK1201 Did you see msdn
|
|
|
|
|
Hi DavidCrow,
this is very bad when you know error but you cant say
now i have this problem i know error but i cant say that how to solve this error
program is run and then it s in memory and if you delete program and build your program you get this error when you close vs and reopen and then open project and then build you get this error
|
|
|
|
|
have the scroll property checked for both vertical and horizontal scrollbar.
scenario 1:
1) you have Clist box
2) Add few entry to listbox till the vertical scroll bar appears
3) is there any way to find at this point that scrollbar has appeared.
so that i may do some action based on that.
Query :
Any point of time given a LISBOX is it possible to find where VERTICAL SCROLL is visible or available
for thendral
|
|
|
|
|
I think u didn't understand what i said
try this..this will add the string to list box untill the scroll bar comes..
for( int nIdx =0; WS_VSCROLL != (m_ListEx.GetStyle()&WS_VSCROLL);nIdx++)
{
m_ListEx.AddString( _T("hi"));
}
// Vericall scroll bar appeared.
// One item will be exceeding the limit..So delete that one..
m_ListEx.DeleteString( m_ListEx.GetCount() - 1 );
nave
|
|
|
|
|
Well, this is how I would do it:
CRect clRect;
m_ListEx.GetClientRect(clRect);
int visibleCount = clRect.Height() / m_ListEx.GetItemHeight(0);
while (m_ListEx.GetCount() < visibleCount) {
m_ListEx.AddString (_T("Hi"));
}
Ok, it is a bit of a hack, but given the tools you get in CListBox, this is the best I could come up with.
|
|
|
|
|
how can i save the time or the serial no of the hard in text file using C++...
plz help me...
bishoy
|
|
|
|
|
|
I see three separate issues here: 1) time; 2) HDD serial number; 3) file I/O. Which are you having troubles with?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
BishoyShoukry wrote: time
CTime::GetCurrentTime()
BishoyShoukry wrote: serial no of the hard
GetVolumeInformation()
BishoyShoukry wrote: text file using C++..
CStdioFile
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi
thsi is my code:
<br />
#include <cstdlib><br />
#include <iostream><br />
<br />
using namespace std;<br />
<br />
class C{<br />
private :<br />
int i ;<br />
char * ch;<br />
<br />
public :<br />
C();<br />
C(int,char *);<br />
~C();<br />
};<br />
C::C(int a,char * d)<br />
{<br />
cout << "initializing";<br />
i = a;<br />
ch = new char[strlen(d)+1];<br />
strcpy(ch, d);<br />
<br />
<br />
}<br />
C::C()<br />
{<br />
cout << "default";<br />
}<br />
C::~C()<br />
{<br />
cout << "deleting";<br />
delete[] ch;<br />
}<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
C c;<br />
C * c1 = new C(10,"string");<br />
delete c1;<br />
<br />
return 0;<br />
}<br />
this code when i start debugging ,it compiled then start executing when closing it gives(in VS2005):
"Windows has triggered a breakpoint in sdf.exe.
This may be due to a corruption of the heap, and indicates a bug in sdf.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information"
Why do i get this error in VS 2005 but not in dev c++.What is wrong?I can not the solve the problem in my code or in my debugger or something else..
Thanks...
-- modified at 7:42 Friday 12th May, 2006
|
|
|
|
|
In your main you declare C c; . This will call the default constructor of C which does nothing. When you leave the main function, the destructor of C will be called and this does:
C::~C()
{
cout << "deleting";
delete[] ch;
}
And ch is not initialized thus you try to free memory that has not been allocated. Always always intialize your member variables in your constructors !!!!
C::C()
{
cout << "default";
i = 0;
ch = NULL;
}
(in your destrutor, you can check the validity of your pointer with if(ch) but this is not required because it is safe to delete a NULL pointer, this will simply do nothing).
Cédric Moonen
Software developper
Charting control
|
|
|
|
|
ok.I understand.
thank you friend.
Good works...
|
|
|
|
|
And a lesson learned (and demonstrated) - just because something compiles, links, executes and works, that does not necessairly mean that it is correct.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Especially when something behind the scenes is helping out, as seems to be the case here.
Software Zen: delete this;
|
|
|
|
|
Hi,
how to start a word apllication from our application and then write Formatted text in word application. Where are functioins for these available.
|
|
|
|
|
Better if you search for key words like Automating Word.
You can find some articles for the same.
One of them is :
http://support.microsoft.com/?kbid=237337[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi All,
How we can get drawing notification for scrollbar in a Listbox control
Regards,
Sarath
Currently I am working as software engineer at Network System Technologies Pvt. Ltd (NeST). Most of my project are in C++. Most interesting are is GUI programming.
|
|
|
|
|
Sarath C wrote: How we can get drawing notification for scrollbar in a Listbox control
u can't ..
only way is to hook the scrollbar API's. This can be done easly using the Detours
check this sample
http://www.codeproject.com/dialog/coolscroll.asp[^]
nave
|
|
|
|
|
Hi, I got Unhandled Exception in my coding,and i debugged through my coding,the unhandled exception came in disassembly section.Why its come in disassembly ?Wats the reason?
-- modified at 6:45 Friday 12th May, 2006
|
|
|
|
|
Anu_Bala wrote: Why its come in disassembly ?
because it doesn't have the source to debug in...
Anu_Bala wrote: I got Unhandled Exception in my coding,
great. which ?!
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Tell what type of error ?? & where it got generated ??
while posting try to give more details abt the req so u get good solutions.
|
|
|
|
|