|
I looked shortly at the source code and think it should work. Download the source and debug it.
It is a good beginners sample.
Greetings from Germany
|
|
|
|
|
Yes, it will.
Anyway have a look at FAQ (at the bottom of the article's page). There are suggestions on using the #import directive and smart pointers (making your client-side life easier), see, for instance [^].
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]
|
|
|
|
|
I had a look at the article and the FAQ section.
The problem I'm sitting with now is that I only have the DLL, thus no .tbl file, namespace or any address information.
------------
Come to the Dark Side, we have cookies
|
|
|
|
|
You don't need a .tlb file in order to use the #import directive.
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 may verify if the component is actually registered using, for instance, the OleView tool.
You may also try to register the DLL using the regsvr32 command line tool.
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]
|
|
|
|
|
I see (a few) _PatselPartnerSDK under interface using OleView. I've also ran the regsvr32 "[path_to_installed_dll]/PasSDK.dll" , but I still get the same problem (even rebooted the PC).
Interesting... In VC++ (6), when I type PasSDK::_PastelPartnerSDK:: then the IDE provides me with a list of functions, including the ImportCustomer function that I want to call...
It almost seems (to me) that it is a static function?
------------
Come to the Dark Side, we have cookies
|
|
|
|
|
Why don't you try to load, with your code, some well-known COM Component? (Thus having a well-know CLSID, for insatnce the MSComm {648A5600-2C6E-101B-82B6-000000000014})?
This way you can tell whether your client side code is good.
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]
|
|
|
|
|
I tried something else...
The typedef, I use the PasSDK::_PastelPartner but when creating the pointer, I use PasSDK::PastelPartner (without the "_", I saw that both interfaces where registered)
And it works!
But... (there seems to be always a "But")
The dang dll requires QPRO32.DLL , when calling a specific function inside this dll, which I figured out that it is a VB dll or a VB package / add-on dll. So I requested Pastel to send it to me. (They did not mentioned the system requirements)
------------
Come to the Dark Side, we have cookies
|
|
|
|
|
Why do you want use GetProcAddress to call COM methods?
You should go via CoCreateInstance in order to obtain the proper interface, this way gaining access to such methods.
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]
|
|
|
|
|
COM is not my strong point (and I've not done C++ in years). I'll look into CoCreateInstance , but I'm guessing that I may need a bit of learning to do when it comes to COM.
|
|
|
|
|
in my project i required to duplicate a dll.for that the procedure iam fallowing is copy the existing dll's code and modify according to my requirement.it includes so many dialog resouses.but when iam executing the code it showing a message saying that it has no required source files.my project is on vc++1.52.please help me...
kir_MFC
|
|
|
|
|
If it is only a translation, than you can use a resource.dll. There is documentation from Microsoft how to do.
Another way is be to make a copy of the *.vcproj file, rename it and insert in your solution.
Or make another build setting, but than you have some problems with the resources. Use a #define value in the project setting to make differences.
it is a wide area....
Greetings from Germany
|
|
|
|
|
|
In dialog box need to give one keysrike using SendInput().
For that i have to pass INPUT Structure, for this I declare one member for INPUT structure
but compiler gives "INPUT Undeclared Indentifier" error.
So i included winuser.h,windows.h but it still gives error.
without including header file(winuser,windows), mouse_event()function works fine.
anything i miss?
|
|
|
|
|
Try adding this
#define _WIN32_WINNT 0x0500
«_Superman_»
|
|
|
|
|
|
To use SendInput () function, set the version of _WIN32_WINNT to 0x0500 in the project settings( Project Settings->c++ tab->Preprocessor definitions. add _WIN32_WINNT=0x0500 in that edit box ).
|
|
|
|
|
|
I think "top" is not good and if using the profiler, it seems no free download, any ideas?
|
|
|
|
|
If, as you say, you're using Unix, valgrind[^] could be useful - it's an open source profiling tool suite.
If you are using a compatible Unix system, dtrace[^] could be useful.
If you're using OS X, then Shark[^] could be used.
|
|
|
|
|
|
During work in visual C++ project some time Project corrupts and when reopen it then Classes information is lost in workspace bar even when Double click on Dialog then Class against Dialog doesnt open but shows Dialog "MFC Class Wizard" . classes Phisically reside in Project folder and only viewable from Fileview( option available in work space bar).
Plz if anyone have any solution to sortout it then plz help...........
|
|
|
|
|
Close the solution.
Delete all temporary files like Debug/Release folder, .ncb, .user, .suo, .aps.
Now reopen the solution.
This is assuming you are using VS 2002 or later.
If you're using VC 6.0, delete the .clw file.
«_Superman_»
|
|
|
|
|
<< Superman >> is almost right. In VC6, I delete the ncb file to get the class information back on the left.
The thread that processes code does tend to fall over. But to be fair - it's a darn tough job it's doing!
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|