actually that worked thanks for your help!
Type: Posts; User: dug
actually that worked thanks for your help!
i still get the handle to the applications resources!?!
..something's not right.
...as far as i know! how could i check that this is the case in MSVC 7.0?
thanks for your help ken,
not yet, i don't want to have to know the "path/dll_name" all the time... its not very flexible!
i also don't understand why i need to call 'LoadLibrary' from inside...
yeah, but the problem is: i can't get the instance handle to the dll!
if you read my question again it should be clear:
HINSTANCE hNewResourceHandle = AfxGetInstanceHandle()
is...
hi there,
i have a DLL for that handles some DirectX stuff for me. what i want to do is inside the DLL is load a resource [in this case its a bitmap, with IDB_SPRITE_DOT] so i can use it as a...
yes, this is correct anonytmouse, the code should actually be:
ExportedSpecialImage::~ExportedSpecialImage()
{
if(special_image!=NULL)delete static_cast<SpecialImage*>(special_image);
}
well, the example here is a simple one, but my actual project is much more complicated... so void* is working fine for me, and i am happy with it...
and like i say, i totally accept that codeplug...
yeah, his answer was a good one... and i could do it that way, but the less i expose the better for this particular problem. thanks though.
oh yeah... forgot i could do that! that is a nice clean way to do it...
what i did [in case anyone is interested] is use 'void*' as below:
...
hi there,
i'm not that experienced with dll's... so please bear with me on this one... basically i have a design question for you...
the scenario is this: i have a library that i want to...
i have found the solution:
namespace ashlib {
template <class T> class Tuple2;
template <class T> std::ostream& operator << (std::ostream&, Tuple2<T>);
yeah, i tried that, but then the library won't compile:
>>>
c:\dev\dev\res\ASHLIB\src\ashlib\geometry\Tuple3.h(67) : error C2143: syntax error : missing ';' before '<'
...
i think it is something to do with this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcerrlinkertoolserrorlnk2019.asp
but i can't figure out what to do to...
Ok, so this is the continuing saga of porting my code from VC6.0 to VC7.1...
so here's the story... i have some libraries that i have rebuilt with no problems under VC7.1... now i have another...
i think CString has a limit somewhere around the 80 character limit...
isn't the i++ ambiguous?
you'd be safer doing something like:
static int i; //global!!
IntUp(i);
void IntUp(int d)
i found this in the documentation:
>>>
This error can also be generated as a result of conformance work that was done for Visual Studio .NET 2003: template friends and specialization. In Visual...
i still get the linker errors, but without the:
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs
declared in Tuple2.h as:
friend std::ostream& operator<<(std::ostream& os, Tuple2<T> v);
implemented in Tuple2.h as:
no, i specify everything per project and per configuration... i'm organised that way... :)
uh..., yeah..., all the libraries are there, they were copied in from the original dsp/dsw files...
i have managed to reduce the errors and now all i have is this:
>>>
LINK : warning...
hello,
i have been using Visual Studio 6.0 for years, and for some reason, the powers that be are forcing me to upgrade to Visual Studio .NET now that i have a new workstation... i don't see why,...
thanks wmi.cpp's function StartProcess looks like what i'm talking about... i'll give that a try and let you know what happens!
thanks alot for your help guys!
dug.
hi there,
i want to know how to get started with a very basic, simple form of distributed computing.
lets say i have two machines connected on a network. i want one machine to be a 'master'...