|
Sir,
Thanks for your quick response. I want to import data. Suppose I exported data from dll using this way
__declspec(dllexport) long g_lValue. How can I access it using explicit dll linking.
Thanks
|
|
|
|
|
Why don't you (write and) export the accessors (i.e. get /set functions) of your integer variable?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sir,
I can do this by writing get/set functions. I want to know this only It is possible or not.
|
|
|
|
|
manish rastogi wrote: I want to know this only It is possible or not.
Yes, it is possible.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
For instance:
(DLL header)
#ifdef __cplusplus
extern "C"
{
#endif
extern DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif
(DLL source)
#ifdef __cplusplus
extern "C"
{
#endif
DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif
(DLL client)
int * pInt =(int *) GetProcAddress(hLib, "iExported");
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
You're welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I have two dialog boxes opened one on top of another. Now what i want is that i should not be able to do anything on the dialog box which is below until and unless the topmost dialog box button is not clicked or closed.
Please Help Me.
Thanks In Advance.
|
|
|
|
|
I think your second dialog box is Model dialog box, make it modeless!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
I understood exactly the opposite...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yes you are right, he have to make second dialog box model, instead of modeless
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Can you tell me how to make it modal . I am using MFC.
Do i need to set any property through which it will become modal
|
|
|
|
|
You have to call DoModal
|
|
|
|
|
yes i did it but now what is happening is that uppermost dialog box is visisble but bottom dialog can still be minimized.
My motive is that i should not be able to fire any event on the bottom dialog until and unless an event is fired on the top dialog box.
|
|
|
|
|
call DoModal of second dialog from first dialog!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
thats is what i am doing but still i am able to work on the bottom dialog box.
|
|
|
|
|
this is what i am doing
CPopUpDlg* ptrPopDlg = new CPopUpDlg(k,stOperatorDetails.strOpName,stVisitorPrDetails.strSessionID,this);
ptrPopDlg->DoModal();
ptrPopDlg->Create(IDD_POPUPDLG,NULL);
ptrPopDlg->DoModal();
ptrPopDlg->ShowWindow(SW_SHOW);
Tell mw whats wrong in it
|
|
|
|
|
Why are you calling DoModal() twice? Does ptrPopDlg need to be a pointer? Since it probably does not, the call to Create() and ShowWindow() can also be removed.
In your first dialog, just do:
CPopUpDlg PopDlg = CPopUpDlg(k, stOperatorDetails.strOpName, stVisitorPrDetails.strSessionID, this);
PopDlg.DoModal();
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
please read this[^] article, and inspirate from it
|
|
|
|
|
Hello everyone,
I am using VSTS 2008, there are 4 different command windows under "Visual Studio Tools" from Programs of Start Menu.
They are,
Visual Studio 2008 Command Prompt
Visual Studio 2008 x64 Cross Tools Command Prompt
Visual Studio 2008 x64 Win64 Command Prompt
Visual Studio 2008 Itanium Cross Tools Command Prompt
I am using x64 machine and always use x64 binary, sometimes I will use x86 binary. What are the differences between the 4 command window and for my requirement which one(s) should I use?
thanks in advance,
George
|
|
|
|
|
i'd be glad to help if I knew the answer, but I don't, and frankly, i'm not sure codeproject is the best place for such a question. i'm pretty sure you can find this documented on MSDN
|
|
|
|
|
|
What does this have to do with VC++? Ask here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks DavidCrow,
I think the sub-forum you recommended is more suitable. I even not know there is a sub-forum named Visual Studio before!
regards,
George
|
|
|
|