|
basic stuff to check : variables initialisation, error checking on memory allocations, ....
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Make sure you're not trying to access an element of an array beyond the array's bounds. If you're using vector, put in a catch/try block and see if it's throwing an exception somewhere. Look carefully and triple-check any hand-written for or do/while loops.
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
Hi.
I like to know if there are some kind of advantages in VS 7.0 if I write application with just MFC and Win32 SDK.
If there are, wich are? Just a few examples.
Thanks.
Demian.
|
|
|
|
|
While it doesn't directly answer your question, I'd like to offer this. Don't buy the latest version of something just because it is the latest version. Like any tool, a compiler is meant to solve a problem. Each problem has a set of requirements. If the compiler can meet each of those requirements, then that's the tool for the job. While the newer versions of Visual C++ have more bells and whistles than older versions, you have to ask yourself if those bells are whistles are "wants" or "needs."
For the past 11 years, my work has been solely governed by the clients for which we sell to. I don't have an exact date, but it was many years after Windows 95 was released, our clients were still using 16-bit Windows. The developers, myself included, were in agony because we could not update our development tools. When clients started buying new computers that came with Windows 98 pre-installed, only then did we get the go-ahead to buy and use Visual C++ v5.
Even today, I have no business reason to use anything other than Visual C++ v6. The clients that use our software are mostly Windows 98 and Windows 2000. I'm sure a handful of them are probably using Windows XP. But the biggest factor is that the EXE that our DLL hooks up with is still being compiled (by IBM) with Visual C++ v5. They might be using v6, but I can't say for sure. Any new development that they do, however, is in Java.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Yes, that's totally true. I understand what you say.
I thought about substantial changes or advantages, por example in serialization, maybe is more simple or diferent, I don't know, something like that.
Because I'm going to developed a new application and maybe the serialization process is better or easy in VS 7.0.
Well, thank you very much.
Regards from Argentina.
Demian.
|
|
|
|
|
Well said, David! I have both VC7.1 and VC 6 and for some reason, I keep going back to VC6. Call it comfort, call it habit, it just plain works. And if it ain't broke....
onwards and upwards...
|
|
|
|
|
i would say there is not a lot of difference.
Some debugger and code editor advantages,
VB like UI. I think if you have 6 there is no reason to buy 7
|
|
|
|
|
VS7.1
VC6 doesn't really support the C++ standard very well. VS7.1 does a very good job of this.
VS7.1 fixes a lot of the problems with the 7.0 IDE which is what a LOT of people whine about. At BioWare and my previous job, we are all switching to VS7.x.
It would be a mistake this late in the game to use VS6.0 for a new project. The lack of support might be an issue.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi just a quickie,
I have 2 views in my application which are split, a ListView and a TreeView, when the selection in the listview changes the treeview updates, when this happens the LitsView looses focus and the selection highlight disapears, is there any way to retain this?
Cheers
Packetlos
|
|
|
|
|
Check out the LVS_SHOWSELALWAYS style.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thank you, i knew there had to be something like this available.
|
|
|
|
|
In visual c++ how do I shell commands to the command line such as "PKUNZIP something.ZIP"? IS there an easy way of doing this??
[] /\ () X
|
|
|
|
|
Check out CreateProcess() and ShellExecute() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Also discovered that System(someString) Will shell straight to the command prompt, but thanx anyways guys
[] /\ () X
|
|
|
|
|
Try as I might, I could not find a more appropriate response than this.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
_spawnl(_P_NOWAIT, "pkzip.exe", "pkzip.exe", "a.zip", "*.txt", NULL );
|
|
|
|
|
They thanks to you both great help, will be able to graduate at university after all
[] /\ () X
|
|
|
|
|
I want to have a scroll-bar, I want it to have a non-client area (I draw a nice frame around it).
I override OnNCCalcSize/OnNCPaint , I calculate and draw my nice border but Windows-XP overwrites parts of it with the blue Vertical/Horizontal Scroll-Bars.
I've tried
<br />
InitializeFlatSB(this->m_hWnd);<br />
FlatSB_EnableScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);<br />
FlatSB_ShowScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);<br />
but it doesn't help.
Has anybody stumbled upon this problem ? In Windows-2000 my message-overriding prevents Windows from repainting it's scroll-bar, but under XP it somehow manages to get it in and mess-up my border
thanks
|
|
|
|
|
Im trying to print a VARIANT value to the screen using this code
TCHAR sz[MAX_PATH];
VARIANT vVal;
wprintf(sz, TEXT("Load Percentage: %s\n"), V_BSTR(&vVal));
wprintf(sz);
This builds ok, but doesnt print anything to the screen
If I use printf(sz) then I get a missmatch in variable types.
error C2664: 'printf' : cannot convert parameter 1 from 'TCHAR [260]' to 'const char *'
Anyone got any ideas on what I can do
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|
|
roadragedave wrote:
If I use printf(sz) then I get a missmatch in variable types
printf("%s",sz); rite ???
|
|
|
|
|
Very true, I am an idiot,
BUT!, when I do that I get a strange output
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
I have never seen these characters before
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|
|
Use _tprintf instead
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
How about:
wsprintf(sz, TEXT("Load Percentage: %s\n"), V_BSTR(&vVal)); or
wprintf(TEXT("Load Percentage: %s\n"), V_BSTR(&vVal));
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
Hmmm, this code snippet works for me:
TCHAR sz[MAX_PATH];
VARIANT vVal;
vVal.vt = VT_BSTR;
vVal.bstrVal = SysAllocString(_T("95%"));
wsprintf(sz, _T("Load Percentage: %s\n"), V_BSTR(&vVal));
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|