|
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)
|
|
|
|
|
Very nice,
What my problem is, is that I am calling a function called GetProperty
hRes = WmiTest.GetProperty(accClass, accProperty, accKey, &vVal);
vVal, which is VARIANT, has the property value which I want to display, so how do I do this?
Im sorry for being a pest on this one, thanks for your help
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|
|
I finally got it, it was so simple in the end, I was getting an exception because I was trying to pass a uint16 to a string. For future reference if anyone has this problem
wsprintf(sz, _T("Load Percentage: %s\n"), V_BSTR(&vVal));
should be
wsprintf(sz, _T("Load Percentage: %i\n"), V_BSTR(&vVal));
Can you spot the simple difference
Thanks for all yer help everyone
We have a mathematician, a different kind of mathematician.............. and a statistician!
|
|
|
|
|
roadragedave wrote:
wsprintf(sz, _T("Load Percentage: %i\n"), V_BSTR(&vVal));
This is not right at all. The %i type is for signed decimal integers, which is not what V_BSTR() returns. When the V_BSTR() macro is expanded, notice that it accesses the bstrVal member of the VARIANT structure, not the intVal member. You've simply masked the problem.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I get what you mean, however the function that gets vVal passes it back as uint16 , VARIANT , I presume, is a generic data type that holds almost all simple data types and what is needed it to convert to say string, double, BSTR .
Using %s threw and exception and I could not figure out using the debuging what exactly was going wrong, I took a chance and changed it to %i , and the application works.
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|
|