|
DaFrawg wrote:
3) Programs like Alcohol 120% (advanced CD-ROM/-RW or DVD-ROM/-RW/+ROM/+RW etc. burning), have some controls that are not system standard, but have "TList" or something as template name. Where can I find them? (I have not yet tried to find them in the dependency files)
These are custom window class controls. You won't be able to find them unless they are ActiveX controls. They are not part of the platform sdk or Windows common controls. TList maybe a Borland C++/Delphi control.
DaFrawg wrote:
4) (Slightly offtopic)
A) What sound event is launched when WinXP shows it's fatal exception error dialog? (click here to see some tech info on the crash etc.)
B) How to set a set of sounds to one sound event, and each time te event is launched, one (random) of the sounds will be played?
These are set in Control Panel under Sounds.
DaFrawg wrote:
5) How to make a static control which contains a hyperlink?
I use this http://www.codeproject.com/staticctrl/clabel.asp[^]
Michael
'Logic, my dear Zoe, merely enables one to be wrong with authority.' - The Doctor: The Wheel in Space
|
|
|
|
|
3) Hm. Okay. I guess they are not really more than the SysListCtrl32. Tnx.
4) I see, but what name? There is a list (I know, TreeCtrl) with a lot of names. Not that I don't know what to do, but what's the description of that (Program Exception/Hang) sound event?
5) Thanks. I reviewed the problem, and it always seems to be a Button.
|
|
|
|
|
DaFrawg wrote:
1) Why doesn't \n work in CEdit controls, but \x0D\x0A has the right effect?
have u tried giving a "\r\n" that's what \x0D\x0A corresponds to.
DaFrawg wrote:
2) How to notify the compiler that you have ended the \x escape char? ("\x0D\x0AEllo world" will not be impreted as newline+"Ello world", but somehow as something where the first E will be a part of the second \x)
maybe giving a space after the 2nd hex number. Or slit it into 2 string "\x0D\x0A" "Ello world"
My 2 cents.
|
|
|
|
|
1) (Smashes his own head a bit too hard against the wall, because he is using far-fetched tricks in stead of the simple soltion) Okay, thanks. But why does only '\r\n' work in stead of a single '\n'?
|
|
|
|
|
Have a problem compiling my VC++ 6.0 project in VC++ .NET
Compiler can't include <fstream.h>
Any clew??
APe
|
|
|
|
|
<fstream.h> was deprecated with the C++ standard of 1998, though many compilers has retained it for compatibility reasons.
Replace it with <fstream> , which is almost compatible, save the namespace issue. If you don't know what a namespace is, go find some info in any C++ tutorial. Meanwhile you can get by writing
using namespace std; right after all your #include s.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
OK,tanks but now another thing "happen".
Now I error for eg.
#include <math.h>
or
#include <math>
using namespace std;
??
APe
|
|
|
|
|
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95).
What do you advise? One of the MS COM object or one of the classes available here on CP?
Thanks to whoever takes the time to reply.
|
|
|
|
|
|
I deal with "simple" XML files, ie, no specific schemas etc.. so I also rolled my own parser and it saving and loading up of any XML file...
The MSXML object is awesome, but on startup requires like 16 Mb of member immediately... so its resource heavy...
www.kinkycode.com
[Glossary Manager] [AfterThought Backup Lite]
99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
|
|
|
|
|
I also thought I could write my own parser, but then decided to use the CMarkup/CMarkupSTL[^] class.
Its cheap, it works and I got enough to do anyway.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I make pretty heavy use of XML, including schema's and suchlike. The library I use is Arabica (http://sourceforge.net/projects/arabica/[^]). Its a thin wrapper for MSXML,libxml and expat, the interface is pleasant to work with, unlike the underlying libraries.
Portable too.
Ryan.
|
|
|
|
|
Like someone posted earlier, try using CMarkup. I have a pretty simple XML settings file, which I read, and CMarkup works perfectly for my needs.
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
I have used Xerces-C++ which is very painless to use in practise.
Cheers
Loz
|
|
|
|
|
Where is it available and is it free?
|
|
|
|
|
Hiya,
It is free, try http://xml.apache.org/xerces-c/download.cgi
Have fun
Cheers
Loz
|
|
|
|
|
Using DirectShow I am attempting to take a video feed from a web cam and then stream it across a proprietary link, where it can be viewed within another application somewhere.
I have been exposed to DirectShow for about a day now, so excuse my ignorance, and my few attempts (eg using SetFileName to direct to a named pipe or COM1, and failing to inherit from CBaseRenderer)have got me no-where.
Constructive suggestions welcome!
Thanks
Loz
|
|
|
|
|
LozEvans wrote:
then stream it across a proprietary link
I'm assuming that by proprietary link you mean a software link. If you meant a hardware link, DirectShow has a fair amount of overhead, plus the large amount of data flowing in from the camera - it might be a stretch to transmit it across a physical link. If your hardware will do it, then the easiest place to write the transmission code is in the transform function of a transform filter.
Assuming Rendering on a The Capture Machine
-------------------------------------------
This is the easist situation, I've found the simplest way to use DirectShow is to use the sample apps supplied with the DXSDK to get started. Then write all the code you need on transform filters, and connect a source-> your filter -> Null Renderer.
One tip is that to ensure that the graph is exactly what you want you'll need to either add the graph to the running object table (playcap sample) and view the graph in graphedit or manually connect the pins of the filters. Also make sure that all developers are using the same settings for their screen settings (24 bit color WILL give different graphs to 16 bit color in some cases)
Look at the AMCap (?I think) sample to see how to render to a user specified location.
Look at playcap if you want to learn how to start with directshow (build graphs).
Look at the NullNull Filter sample if you want the basis for a basic transform filter
Good Luck
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hi,
I like to know if there's an easy way to convert an icon handle I get from LoadImage to a HBITMAP which I can use to save it to a .bmp file.
Thanks in advance for any hints.
Aart
|
|
|
|
|
|
Create a memory device context compatible with the screen using CreateCompatibleDC . Create a device independent bitmap (DIB) using CreateDIBSection and select it into your memory DC with SelectObject . Draw the icon into the device context using DrawIcon(Ex) .
Now look in Programming Windows by Charles Petzold to work out how to save the DIB bits into a valid BMP file.
|
|
|
|
|
I have been programming a few applications that rely on OpenGL for 2, 3 years now and I still got a few iritating problems when it comes to picking. With many systems (e.g. modern Dell or Compaq PCs) picking does not work if you do not set video card hardware acceleration to the minimum. Until now I have handled the problem by asking customers to adjust their display parameters, but some are getting angry and I would like to get rid of the problem for good.
So here are my questions:
- Have some of you met and solved the problem yet?
- Then how ? Which OpenGL initialization framework (classes) are you using?
- Some people recommended using VTK, Ilog Vision, or other OpenGL based frameworks and quitting direct OpenGL programming. Are any developpers here using one of these solutions and living happy with it?
Thanks in advance for any information.
François GASNIER
|
|
|
|
|
One solution - somewhat difficult to program is to draw each 3Dobject twice - once in the accumulation buffer and one the regular way. Each object is drawn in a different color so when you pick you use getpixel and analyze th e ID coded as a color.
J.
----------------------------
|
|
|
|
|
I know it wasn't one of your questions but over the last 6 years I've never encountered picking to not work. I wish I had, and could help you out.
I have not personally tried the application on a branded machine, but it has been tested on a wide variety of cards by a number of people, right from the intel OEM chip (8152 maybe, I can't remember) of a few years ago, to the Radeon 9800 pro. None of them needed any special adjustment to make them work.
In response to your third question, I've not seen an OpenGL framework that I was happy with yet, so you are not alone in using direct OpenGL programming
Phil
|
|
|
|
|
Thank you for your interesting answer. There must be something really wrong with the way I code. What is really surprising me is that I have tried various ways to initialize OpenGL using some functions/classes found on this site (and others) but up to now I have never found something really satisfactory:
- picking would not work in fully accelerated mode,
- application would become very unstable (e.g. windows 2000 would reboot when picking althought we were working on a brand new installation),
- application would not display anything in the OpenGL window at all...
Could you give a link to the OpenGL initialization code you are using or a sample?
pmartin wrote:
so you are not alone in using direct OpenGL programming
Thanks. I have been speaking of my problems with picking with some professionnal of the CAD/CAM industry and most told me that I should not be surprised to meet many problems and I felt as if I did not knew the real world at all...
|
|
|
|