|
Hey Guys i have a DLL that integrates with explorer and when i add my own functions that i export it causes the DLL to crash and therfore explorer any ideas.
Peter
|
|
|
|
|
A possible reason could be the export order of your functions. Explorer may import an extension DLL using ordinal numbers for the functions that it imports. By exporting a function of your own, you may have inadvertantly changed the ordinal numbers of the functions you are exporting.
Try right-clicking your DLL and using QuickView to see the order they have been exported in. If they are incorrect for explorer (assuming it uses this method), you will need to reorder yout export list.
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
|
|
|
|
|
Hey guys
I have a DLL that integrates with explorer which has MFC support. Anyway the program works fine normally but occasionally when one of my dialogs is displayed it comes up either as a the menu bar and then i have to drag it out to see the window or it comes up very small. has anyone got any ideas why this happens. It usually happens on the 2nd time i use the dll or later never on teh first.
This gives me the idea that memory isn't being propally deallocated.
Cheers
Peter
|
|
|
|
|
Hey Guys
When you have a pointer and want to get it to point to an array is it better to:-
pointer = new BYTE[ArraySize]
or
pointer = (BYTE*)malloc(ArraySize);
Peter
|
|
|
|
|
new, every time. Because you need to remember to delete new and to free malloc, it's better just to always use new. It uses malloc internally anyhow, but you should prefer new because it calls constructors and destructors on delete.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
And you don't have all those unsafe casting issues with new.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Only use malloc when coding in vanilla C.
/moliate
|
|
|
|
|
Do they do a strawberry C as well? I'm not so keen on vanilla!
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
|
I am looking for a function where I can pass a bianary string to a function that will return that value in Hexidecimal notation. The incoming string could vary in length. The output string will always be double what the input string will be. Here is an example of what I would like:
Input: C++
Output: 43 2B 2B
If possible I would like to eventually convert this to a compiled .dll in C++ that I can access within VB. The usage of this in VB is stricly due to a company restriction. I feel this proccess would be much more efficient in C++.
Thanks again ahead of time.
Nick Parker
|
|
|
|
|
Have you looked at the Asc function in VB?
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Yes, that is what is being done now. We would like to avoid that if possible. Any other methods would be appreciated if available.
Thanks again
Nick Parker
|
|
|
|
|
void function (string input, string& output)
{
strstream outStr;
outStr.flags(ios_base::hex);
for (string::iterator it = input.begin(); it != input.end(); ++it)
{
outStr << (short)(*it) << " ";
}
output = outStr.str();
}
I vote pro drink
|
|
|
|
|
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.
|
|
|
|