|
This should do what you need:
HINSTANCE DLLhInstance = LoadLibrary("PathToFile.DLL") ;
typedef int (*FUNC)(int) ;
FUNC function = NULL ;
if (DLLhInstance != NULL)
{
function = (FUNC)GetProcAddress(DLLhInstance, "Func") ;
int value = function(value_to_pass) ;
FreeLibrary(DLLhInstance) ;
function = NULL ;
DLLhInstance = NULL ;
}
Any other queries?
Roger Allen the man
|
|
|
|
|
but althoutht that dllis work in vc client program ,
delpi client program dont success implement it.
Have you idea why ?
|
|
|
|
|
Make sure you also list the function in the exports section of the .DEF file!
|
|
|
|
|
Hey all,
At the Moment I handle Every Thumbtrack message within OnScroll but I would like to
wait till the user stops moving before the View is updated!
How do I update a scrollView after the user has stopped moving the ThumbTrack?
|
|
|
|
|
|
Hi,
anyone here experienced with Word automation?
I have a application, in fact a COM component, provide functionalities for
extracting Word document data, it was tested well with Word XP, Word 97, but
failed with Word 2000
the error is very strange, when I create a Word instance by
CoCreateInstance, it's failed and return error: 0x80080005 - Server
execution failed
I have spent whole day to fix the bug, search entire MSDN, but the result is
nothing, although have some articles cover this bug, but neither of them
have final approach (and feasibility) to work-around.
It's still the bug, I will try with other copy of Microsoft Word 2000, but
if you know what problem is, give me the way to solve, pls.
thanks a lot,
Tien,
|
|
|
|
|
|
Our problem was solved, it's the Norton Antivirus's fault
Thanks so much for supporting from Microsoft Developer Support
Q246018 - BUG: Automation Error 8001010A when Automating Word 2000
http://support.microsoft.com/support/kb/articles/q246/0/18.asp
But let me add some information, we didn't find the solution ourselves
because this bug isn't covered in any articles in MSDN, also the reason is
the same, the error code is different, in our case, the
_com_ptr_t::CreateInstance return error CO_E_SERVER_EXEC_FAILURE
(0x80080005: "Server execution failed") when instantiate Wors.Application
object.
(in Visual Basic, the error is error 409: ActiveX component cannot create
object).
|
|
|
|
|
Is any body know how to make a flat window, I mean there is no separate line between the menu and tool bar.
Thank you
|
|
|
|
|
If I create a new edit control class derived from CEdit and handle WM_CONTEXTMENU this gets called when you right-click in the edit control, as you would expect. However if I do the same with the tree control, it only gets called when you double right-click, does anyone know why this is and how to make it respond to single right-clicks?
Thanks,
Mark
|
|
|
|
|
|
Thanks Tomasz, you're a star!
|
|
|
|
|
Can Any body help me regarding DDE. The following is the problem.
I want to communicate with an Application which is already communicating with some application using DDE.
at the moment I have completed these tasks.
I get the information of the servers and I have also build up a conversation path with those servers. I do have all of the information of the registered strings handles.
At the moment my application could establish DDE Comunication.
What I want to know is that there is any mean to know the Data handles structure being accepted by the server application.
please tell me this
regards
Asim
|
|
|
|
|
Hello,
Any simple way to rotate the whole content of a view from 0 to 360 degrees?
I need GDI method, so that it can work on both Win98 and Win2000. It is simple with GDI+, but it is a way long porting the whole project to the GDI+.
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
|
|
|
|
|
|
Nice reference, thanks so much.
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
|
|
|
|
|
Hi all,
Q1- How can i create .HLP file for my program ?
Q2- I wanna when user need help in one of my dialogs in program, and when user hit F1 button, then program show the help which user need ! ok ?
Please help me !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Hi again Mr.Michael,
Are you sure your URL address is right ?
Because, my browser shom me the error like this, This URL not exsist !
Can you check it again ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Hi all,
I'm writing program in Dialog-based mode !
I have a toolbar on that, i wanna set Tooltip for all button !
I tried CBRS_TOOLTIPS flag in SetBarStyle function,
But i don't know how can i set tooltip !
Please help me
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Check the DLGCBR32 sample that comes with VC6. And please stop using exclamation marks at the end of every sentence.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks Tomasz,
Your help was very useful !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I would disable Help button on the "Customize Toolbar" dialog box
but I wan't use the caption of the control for a code independent of the language.
Thank you for your collaboration.
|
|
|
|
|
Hi!
Question: can I programmaticaly install the driver (printer driver, to be more specific), and if I can - then how? Do I need for this to deal with DDK? I'd never touched it before.
I cannot find something useful in the MSDN.
I mean conventional install, not hacking the registry.
Thanks in advance.
Regards,
Gennady
|
|
|
|