|
Hi
I have a partition where Visual Studio and MSDN are installed (and linked). I have another partition on which Visual Studio .NET is installed, and I want to link with my existing MSDN installation (instead of reinstalling it on the other partition to save space).
Is it possible?
Tx.
Michel
|
|
|
|
|
Hello All,
I'm looking for some recommendations for an XML parser for use in a project I've recently become involved with. The project is currently using the Microsoft MSXML parser installed with Internet Explorer through the XML DOM set of interfaces. We may be extending our project to platforms other than Windows and need to find a replacement for the msxml parser that A) Is not COM based, B) Is portable (from Win32 to Unix variants), and C) Implement the DOM interfaces.
I've heard of a Xerces C++ xml parser from Apache that looks like a good bet. Anyboy else have any god recomendations?
Thanks!
Aaron
|
|
|
|
|
I've used Xerces pretty much, and it is OK. It is much slower than MSXML, and does not have an easy option to load/save an XML document from/to a file, but it satisfies all 3 of your requests.
I vote pro drink
|
|
|
|
|
I LOVE expat. It is in C but trivial to add a C++ wrapper if you must.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Doh, you want DOM. Well DOM is easy to add to a SAX parser like Expat.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Tim Smith wrote:
I LOVE expat. It is in C but trivial to add a C++ wrapper if you must.
There already is something called Expat++
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Hmm, you have a reference for that? The only thing I could find was very primitive. My Expat C++ wrappers fully support all the Expat SAX interfaces.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
http://home.earthlink.net/~jknapka/SDL_bmf/
[it's part of some other software]
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Damn, that is what I saw.
Maybe I should write an article on that.
Add it to my list of 40 other articles I want to write but never have the time.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Tim Smith wrote:
Add it to my list of 40 other articles I want to write but never have the time.
LOL
Find the time, Tim.
Or is it Find the Tim, time.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Hi,
I am creating a Header control to fit across the top of a custom grid I am writing.
The problem is this: When I change the colour scheme of Windows, the header control does not repaint itself correctly - it still uses the old colour scheme.
Does anyone know an easy way to get the header control to update it's colours? (i.e. without destroying/creating it again). I know it must be possible, because Header controls created by other apps don't have this problem (and I checked with Spy++ to see if they get recreated, and they don't...)
Any ideas?
James.
http://www.catch22.uk.net
|
|
|
|
|
Handle WM_SETTINGCHANGE in your main window, and forward it on to the header control.
--Mike--
"There are only a limited number of jobs where they will ask to see the sausage. Most of them are in movies."
-- Christian Graus, 2/11/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Mike,
Thanks for the fast response.
Unfortunately, I still can't get it working..
I'm forwarding WM_SYSCOLORCHANGE and WM_SETTINGCHANGE
to the header control (checked with Spy again to make
sure it received them)..no luck I'm afraid.
The border colours (i.e. highlight and shadow) change
colour correctly, but the "face" part of the header
(i.e. the segments with the text on) do not...
Very strange!
Here's how I'm creating the header:
hwndHeader = CreateWindowEx(0, WC_HEADER, 0,
WS_VISIBLE|WS_CHILD|
HDS_BUTTONS | HDS_HORZ | CCS_TOP |
HDS_DRAGDROP |
HDS_FULLDRAG,
0,15,200,10,
hwndParent,
0,GetModuleHandle(0),0 );
Looks pretty normal to me..
There's got to be *some* way to do this!
James
http://www.catch22.uk.net
|
|
|
|
|
uh, i downloaded the DirectX 8 SDK and installed it with the MSVC++ samples. When i opened a sample in VC and i set it to release and compiled i got something about 48kb. After that i followed this tutorial which explained how to build a basic DirectX project (http://www.openrpgs.com/dx_tutorial/dx_toc.html).
When i compiled this it was about 158kb in release. Now my question is:
how come its smaller?? i want to keep my apps as small as possible obviously and it seems that there's a difference in the projects somewhere, maybe in the options, linkage or whatever, i couldn't find out. Does anyone know what makes this rather large difference??
Kuniva
--------------------------------------------
God gave man a penis and a brain but not enough blood to make both of 'em work at the same time.
|
|
|
|
|
If your project have a couple of resoureces like bitmaps, the exe will be more large than the other....
Regards...
I have yet to meet a C compiler that is more friendly and easier to use than eating soup with a knife.
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Well you see, thats the odd thing about it. The directX SDK sample has a bitmap and an icon in it but the project i compiled following the tutorial doesn't have ANY resources so its supposed to be smaller!!! but its not!! its more than 3 times larger, it has to do something with the options or includes or something but i cant firgure out what...
Kuniva
--------------------------------------------
God gave man a penis and a brain but not enough blood to make both of 'em work at the same time.
|
|
|
|
|
Hi,
i have this problem I have declared an arrayLIst in Managed c++ and i have inserted all the values there but now i Cann't get the values out again . The Values that i have inserted are some objects. i used getEnumerator function to access the ArrayList but it's telling me that can not convert a type System::object to "my Object".
what am I doing wrong?
is there another list type structer in managed C++?
thank in advance for your help and time ,
Endri
|
|
|
|
|
Hi, I have a MDI MFC application and I would like to tell it to create a new empty document (basically the same as going to File->New). Can anyone tell me what the function call is to do this?
Thanks!
|
|
|
|
|
The Framework calls OnNewDocument() so unless calling this function directly asserts (I've never tried it) that should work.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
If you can get a pointer to the document template you can call:
pDocTemplate->OpenDocumentFile(NULL) ;
Doc templates can be got through the m_pDocManager pointer of the CWinApp object. You need to iterate it using a POSITION object. Or, if you have an existing document object of the type you want to create, you can call GetDocTemplate() on your document object to get a pointer to it.
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
Please step to the rear of the car and make room for more victims. - John Simmons the Outlaw programmer, 1st Feb 2002, in the lounge
|
|
|
|
|
I am trying to color the square box of the check button control.
I have had no luck finding code to do it. I would appreciate any help.
thanks.
Jyoti
|
|
|
|
|
You could use DrawFrameControl() or Draw3dRect().
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Can you give me some sample code if you have it.
I wasn't succesful using DrawFrameControl function.
thanks.
Jyoti
|
|
|
|
|
CDC dc = GetDC();
CRect rect = {10, 10, 100, 100};
dc.DrawFrameControl(&rect, DFC_BUTTON, DFCS_BUTTONPUSH);
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi
I've often seen programs (in most cases c programs) that use one or more of the following operators:
<<, >>
It is called bit-shifting. I saw an ID3-tagger program that uses this commands as well.
Now my question:
What does "bit-shifting" actually do and what is it good for?
Any articles or explanation is greatly appreciated
regards
Gregor
modified 12-Sep-18 21:01pm.
|
|
|
|