|
In case anyone is interested, I think I may have found the problem to this. I have an Office 2007 release candidate installed, which included the Windows Search service (searchindexer.exe). This process is always running and is usually 60-100 Megs in size. Well, I don't need to search my drive or emails that often, so I killed it. The linker hasn't hung on me since.
Kevin Fournier
SRP Computer Solutions, Inc.
|
|
|
|
|
Hi,
I have created a function and a class in a DLL.
I want to write a .DEF file instead using __declspec(dllexport) and __declspec(dllimport).
I wrote the .DEF file like this..
LIBRARY "Sample.dll" //dll name is Sample.dll
EXPORTS
Multiply @1 //it is the function name
CRectArea @2 //it is the class name and this class contains a
//method called subtract
Please say how to export that function.
and I wrote a client program which uses that dll dynamically.
//written globally in the implementation file of client
typedef int (CALLBACK* LPFNMLTPLY)(int,int);
//** I don't know how to declare that function from the class CRectArea
HINSTANCE hClcltr=LoadLibrary("DefExported.dll");
LPFNMLTPLY lpfnMuliply;
lpfnMuliply = (LPFNMLTPLY)GetProcAddress(hClcltr,"Multiply");
m_Rslt=lpfnMuliply(m_PartOne,m_PartTwo); //m_Rslt will be displayed
//in the message box.
FreeLibrary( hClcltr );
//now I want to use the function from class
Please can anybody help me.
Thanks inadvance.
|
|
|
|
|
The only way to import a class from a dll is by implicit linking (so, without using LoadLibrary and GetProcAddress but using the lib file supplied with the DLL).
|
|
|
|
|
To export/import a class I believe you have to use __declspec(dllexport) and __declspec(dllimport).
Mark
|
|
|
|
|
VC wizard can help you to create a dll class in a second - that is a perfect sample.
|
|
|
|
|
Did you see examples of dll on codeproject for export class
|
|
|
|
|
Yes Mr.whitesky I practiced the samples and while practicing I got the about.
Anyhow thank you very much all of YOU.
|
|
|
|
|
I glad you find it
|
|
|
|
|
Hi,
I am trying to close a dialog box that I created using CreateDialog(). The dialog appears and all the buttons work well, however, if I attempt to close the dialog using the "x" box on the system menu, nothing happens. I understand that usually the "x" box sends either the IDCANCEL or the WM_CLOSE message when depressed, but that doesnt' seem to be happening. Any ideas?
Thank you,
Joe
|
|
|
|
|
in WM_NCLBUTTONDOW, if hit-test is HTCLOSE, close the dialog by OnCancel() etc.
|
|
|
|
|
Hi,
Does anybody can share file "iphlpapi.lib" with me if you have.
B Regards
Ajith
Ajith
|
|
|
|
|
That file is part of the Platform SDK.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Did you search with google?
|
|
|
|
|
HI
MY problem is in creating a C++ program to build a 3ary heap using linked list structure rather than array
the 1st problem is that i am very weak in the area of linked list structure...so any help on how to start and what is important to know would be very helpful
thanks
|
|
|
|
|
Use the standard template library, for example the std::list. It is very powerfull.
|
|
|
|
|
Ba6o6 wrote: 3ary heap
are you talking about a memory pool ? not really a beginner topic, and if you don't know much about linked lists. ( my bad, I miss understood what you were talking about ( see David Crow's post )
anyway, there are tons of examples, tutorials on linked lists on the web, google a little bit.
one of the first hit : http://richardbowles.tripod.com/cpp/linklist/linklist.htm[^]
-- modified at 9:24 Tuesday 5th December, 2006
|
|
|
|
|
Ba6o6 wrote: MY problem is in creating a C++ program to build a 3ary heap using linked list structure rather than array
Keep in mind that a 3-ary heap is like a binary heap, but instead of 2 children, nodes have 3 children. The heap itself is an array object that can be viewed as a complete ternary tree. Each node in the tree corresponds to an element of the array that stores the value in the node.
Ba6o6 wrote: the 1st problem is that i am very weak in the area of linked list structure...
Focus on trees and the heapsort algorithm.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how can i edit in field?
if i have found my record in my table and i whant to edit into the field how?
Bravoone
|
|
|
|
|
Call the record set's Edit() method. After making the changes, call the record set's Update() method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how to write an entry point when creating a dll in vc++?
|
|
|
|
|
If you create a MFC dll, the DllMain will be hidden (exactly like main will be hidden in an MFC application). So, if you really need to have access to the entry point, create a Win32 DLL.
|
|
|
|
|
|
Hi everyone,
in my MDI project i have a Transfer-Operation which is configurated in a MDIChild ( FormView )
If i start the operation, it takes a lot of time.
So i want to display a progressbar with some informations. The entire ProgressDisplay will be used
in different MDIChilds, so i created a Dialog with the layout of a Progress-Screen.
Now i want to display this Dialog in my MDIChild.
I create it and make a ShowWindow(SW_SHOW). The Dialog is subordinated ( not context or overlapped )
It's displayed into the MDIChild, all components are displayed correctly, but the background is semi-transparent and the components of the View are over the components of the Dialog.
I can't open the Dialog with DoModal() because in this case, the user could place other MDIChild under it.
Does anyone have an idea?
Big thanks
|
|
|
|
|
Hi
We are devolopping one project in that we give three static controls by clicking that corresponding menu item will open.Here it is required to add the colors to that menu items.Please Kindely help me in my project.
#sanroop#
|
|
|
|
|
Do you want to have a customize menu?
|
|
|
|