|
|
Does this help?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear all
how to add a class which don't attach .cpp and .h files?i can't understand their project.thank u. urgent!!!!!!!
Li Zhiyuan
18/10/2006
|
|
|
|
|
Usually a class is declared in .h file and defined in a .cpp file, but it is possible to do this in a single file, if thats what you mean. The only other way I know of to add a class (without using source files) is to add a dll to the project. But even here it is difficult to export a class without the relevent header file.
|
|
|
|
|
Can you be more specific a class without cpp & h
|
|
|
|
|
li zhiyuan wrote: how to add a class which don't attach .cpp and .h files?
You can't. A class has to be in one or the other, but usually split between the two.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
To preserve thread integrity, you might want to respond to Li instead.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
oh dear, I though I did.
Fixed and deleted original message
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
We need more info.
If you send us the details of the project your university has given you, then we may be able to help but without further information, we cannot.
i.e. Exactly what was the question being asked ?
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
Hi All,
I have a CListCtrl in report view with images. Whenever an Item gets highlighted, I lose the image.
Can anyone tell me how to keep the image from dissapearing?
P1p3r
|
|
|
|
|
How are you setting the item's image?
I_IMAGECALLBACK or an index into your image list?
|
|
|
|
|
Hi Mark,
Thanks for the info.
I finally figured it out. I had set the color wrong when I created the image.
Thanks again.
P1p3r
|
|
|
|
|
I'd make sure that the mask in the imagelist is correct. The most common way is to have a unique color in the bitmap that becomes transparent when drawn on the screen.
|
|
|
|
|
Hi Michael,
Thanks for the heads up.
I guess that's what I needed.
|
|
|
|
|
I come from the managed world and have no idea about unmanaged dlls!
So, I have a few unmanaged dlls I want to interop with using pinvoke, etc...
However, these dlls are undocumented so I have no idea, what parameters the methods take, or return.. I don't even know what methods are in the dll at all!
How can I peek into the unmanaged dll to see a signature of the methods? I've been messing around with dependency walker and pe explorer and those enable me to see what methods are inside the dll but neither of them provide information regarding the parameters or return types.
Am I just using them wrong? How can I get this information?
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote: However, these dlls are undocumented so I have no idea, what parameters the methods take, or return.. I don't even know what methods are in the dll at all!
How do you know you want to interop with them then?
Mark
|
|
|
|
|
I JUST know...
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote: I JUST know...
Fair enough
I don't think there's any requirement that calling parameters be exported from a dll.
If you can even see the names you are lucky. They could just be ordinals
You need to get your hands on header and def files!
Mark
|
|
|
|
|
Oh, ok, header (.h) files, thanks for pointing me in the right direction
/\ |_ E X E GG
|
|
|
|
|
|
What, am I still confused?
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote: What, am I still confused?
I think I am at this point.
I assumed you DIDN'T have access to header and/or def files since you wanted to look right
in the DLL for that information. Having those files makes it way easier since DLLs aren't self-
describing like managed asemblies.
Based on my assumption, i figured you were being sarcastic saying thanks for pointing me in the
right direction. Therefore, I laughed
Mark
|
|
|
|
|
|
APPLIES TO
• The Microsoft Library Manager (LIB.EXE), when used with:
Microsoft Visual C++ 2.0 Professional Edition
Microsoft Visual C++ 2.1
Microsoft Visual C++ 4.0 Standard Edition
Microsoft Visual C++ 5.0 Standard Edition
|
|
|
|
|
Still applies DLLs have been around a while.
So have those tools.
Mark
|
|
|
|