|
When you open the properties for your .rc, what's displayed at 'Dependencies' tab? Are these external files listed there?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
There are some externaly listed .rc files yes. And those external .rc files also contain links to files such as .ico, .bmp, and .txt which are compiled as resources.
|
|
|
|
|
Any chance of adding references of these .ico, .bmp and other files to your project?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I am developing an ISAPI extension in C++. My project uses many HTML forms with text input boxes. When the forms are submitted (using "GET") I am parsing the values from the browser URL. This works nicely but the strings have escape characters (+ instead of space etc).
Is there a better way to process the form information so that there are no escape characters, or does anyone know of a function/code that replaces the escape characters?
Thanks
|
|
|
|
|
Actually, it's pretty easy to write a function that replaces escape characters and vice-versa. Escape characters are pretty good thing, and moreover, it is the standard.
I vote pro drink
|
|
|
|
|
You should really look at ATL Server in that is coming out with VS.NET. It will make ISAPI Extension development much easier and more flexible. The urls and all the data submitted is very easily accessible.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Look up the InternetCrackUrl() function in MSDN.
Jon Sagara
Sagara Software
|
|
|
|
|
Search the web for URL Encode and URL Decode. You should find something on sourceforge.com also.
|
|
|
|
|
Take a look at the InternetCanonicalizeUrl() function. It both encodes and decodes URL's.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
You may want to use a C++ web application server, such as Lightning server, that handles all of that for you. Makes life much easier.
|
|
|
|
|
Hi all,
I'm just beginning to learn STL, primarily the container classes and wanted to know what is the best way to store two related values.
For example I wish to store x and y points in a graph...
The vector container looks ideal for my needs... but am I correct in assuming I have to create my own class to contain the x and y values? Then store instances of my class in the vector container?
Or, would the map container be me more suited to this purpose?
Basically I need to know the most generic, but fast, way of storing such x y values.
Thanks all.
--
The Obliterator
|
|
|
|
|
The vector container looks ideal for my needs... but am I correct in assuming I have to create my own class to contain the x and y values?
Just use std::pair for that.
Or, would the map container be me more suited to this purpose?
It depends - if you want to frequently search for given x, the map may be better.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Wow, lightening fast response.
Cheers... never even heard of std::pair....
Will look into it, thanks.
--
The Obliterator
|
|
|
|
|
Can anyone tell me how to implement multi-selection with the CTreeCtrl? I'm a bit green with MFC and doesn't appear obvious to me.
Principle Design Engineer
EMC Corporation
|
|
|
|
|
The solution was published in Oct'96 issue of Microsoft Systems Journal, in the C++ Q & A column. Chances are you have the article in your VC++ help - look in the 'Periodicals' section. If not, go to msdn.microsoft.com, then to MSDN Magazine and search for past issues.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Found it. Thanks Tomasz.
Ken Goguen
Principle Design Engineer
EMC Corporation
|
|
|
|
|
To my knowledge it doesn't support it, although it may have been added in the later common controls.
I have developed my own treectrl which supports multi selection and multi column support (some work my own, some based on others contributions to CodeProject and CodeGuru)...
Ideally I keep meaning to post an article here with it... but never seem to get chance. Plus it contains code which needs improving - drag/dropping the order of columns for instance is buggy, the database support I added uses DAO classes which really need to be re-written in ADO or something. I never finished the sort routine... you know what I mean.
Anyhow if you're desperate for something I guess I could send you it.
Not sure if theres really a demand anymore for an article... there seems to be several multi-column tree controls now.
--
The Obliterator
|
|
|
|
|
Do you know if it is possible to create an 64-bit value (double) by concatenating two specified 32-bit values (long)??
The macro MAKELONG exists but MAKEDOUBLE, no...Apparently, it is not possible to make a << on a double?? Do you know a way to do it?
Thanks,
LX
|
|
|
|
|
What exactly do you want to do? You know that long and double are two different animals, don't you? One is integer type and another is floating point. This means that glueing together two longs doesn't produce one double.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Yes, it's right !!
What I want to do is based on STL :
------------------------------------------
typedef struct _MYSTRUCTURE
{
long lType;
long lSubType;
}MYSTRUCTURE;
typedef std::vector<long> lID;
typedef std::map<mystructure, lid=""> myMap;
-------------------------------------------
But when I do a 'find.' on myMap, STL can't find my vector in searching on MYSTRUCTURE 'cause it can't compare : ...
----
MYSTRUCTURE myStructure;
myStructure.lType = 10;
myStructure.lSubType = 11;
myMap::iterator it;
it = m_mymap.find(myStructure);
----
So, I wanted to concatenated the 2 longs and using
typedef std::map<double, lid=""> myMap;
but, you're right : double and long are two differents animals...
Do you see a solution ?
LX
|
|
|
|
|
Your code got scrambled - you didn't replace < and > with < and >
Anyway, using std::pair to keep type and subtype together may be solution for your problem.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
oh, sorry for the forgotten < My code was not very aesy to read...
Anyway, you're response is very helpful for me
!! I think that std::pair will works...
Thanks you very much, Tomasz!!
LX
|
|
|
|
|
|
Are there any similiar functions to BeginUpdateResource, UpdateResoure ... that work on Windows 95,98 and not only NT and 2000?
|
|
|
|
|
No, there are no such functions on Win9x. Are you the same guy who wants to write 'small info' into executable?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|