Search:
Type: Posts; User: Vi2
Search:
Search took 0.10 seconds.
-
March 15th, 2012, 11:57 PM
In second case you need no using of dpa.cNamedArgs and dpa.rgdispidNamedArgs at all. I.e. dpa.cNamedArgs=0 and dpa.rgdispidNamedArgs=NULL.
If you still want to use them, look at "Passing...
-
September 5th, 2011, 03:16 AM
There is no public variables for (1) Object variable (SomeObject variable is also Object variable). Instead of public variable VB adds 2 methods: get and let. For example, next parts of code are...
-
August 31st, 2011, 06:38 AM
Because the VB is able to pass the expression's value by reference. "so.lVar" or 12 or (lVar) are the examples of expression.
Possible solution is
i=so.lVar: s=so.sVar
ModifyByRef i, s...
-
August 23rd, 2011, 01:40 AM
Try to use SetErrorInfo(0,NULL) before CoUninitialize() if you sure that there are no active smart-pointers. It may help.
-
Look at Make group en icons under w95 for example, or search them on the Web.
-
You can specify the full (absolute or relative) path to DLL to avoid the rules of searching DLLs, i.e.
Set gTTWLib = gLdr.LoadLibrary(App.Path & "\TTWLib32.dll")
Set gTTWLib =...
-
Const MB_OK = &H00000000
Const MB_OKCANCEL = &H00000001
Const MB_ABORTRETRYIGNORE = &H00000002
Const MB_YESNOCANCEL = &H00000003
Const MB_YESNO = &H00000004
Const MB_RETRYCANCEL = &H00000005
...
-
This project doesn't save project's GUIDs, so you should remake the references of this ActiveX - remove the old reference and then add it again.
PS
"MISSING: DynamicCall ActiveX Control" hides...
-
Try to find "WSHDynaCall" or "DynaCall" оn the Web:
IFAIR, VB can only once resolve the DLL path by ChDir function.
-
March 3rd, 2010, 01:17 AM
I think that you make a mistake with "i" variable in first loop. VB/VBA arrays begin from 0 if another base isn't specified.
So you can use "i = LBound(ArrayOfUDTs)-1" before ForEach or "For i =...
-
January 14th, 2010, 05:18 AM
Look at the tool:
Library TLI
C:\WINDOWS\System32\TLBINF32.DLL
TypeLib Information
-
December 30th, 2009, 06:45 AM
moddll.cpp:
#define ABSTR BSTR
char pText2[] = "0123456789 123456789 123456789 123456789";
extern "C" __declspec(dllexport) ABSTR __stdcall PassString(LPSTR pText)
{
int pTextLen =...
-
August 7th, 2009, 01:07 AM
I recommend you to remove COM call such as CreateObject("Broker.Application") from DllMain fucntion. See Remarks from MSDN "DllMain Callback Function".
"...Calling functions that require DLLs...
-
November 14th, 2008, 02:12 AM
Use simple interface pointer instead of smart pointer, which is useless here
void doSomething(ICore* icp) {
icp->doit(..);
}and
... doSomething(oServer) ...
-
September 26th, 2008, 06:57 AM
I'm glad to hear it, and my world's view isn't shaked. :)
Look at "TestATL2_i.h", and you will see something like
MIDL_INTERFACE("XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX")
Ix : public...
-
September 26th, 2008, 06:34 AM
You should use __uuidof in this case:
hr = CoCreateInstance (__uuidof(TestStrcut1), // CLSID of coclass
NULL, // not used - aggregation
CLSCTX_INPROC_SERVER, ...
-
September 26th, 2008, 06:29 AM
Yes, the Registry keeps full path of type library. But version numbers are also significant.
MSDN:
LoadRegTypeLib compares the requested version numbers against those found in the system...
-
September 26th, 2008, 06:11 AM
All parameters from LoadRegTypeLib are reasonable for GetRecordInfoFromGuids.
-
September 26th, 2008, 05:49 AM
Both are needed, but require some modification.
Also if client doesn't use LIBID, step 1 is sufficient, because all other GUIDs are accessible by __uuidof().
-
September 26th, 2008, 05:42 AM
_i.c is designed for the actual definitions of the IIDs and CLSIDs and requires the include <initguid.h> before. So 2) is unsufficient.
_i.h is used in #include and requires full path or...
-
September 26th, 2008, 05:26 AM
Look at LoadRegTypeLib description.
-
September 26th, 2008, 05:21 AM
For С++ client #import can be more preferable, because _i.c and _i.h are members of server project.
-
September 17th, 2008, 02:07 AM
Interface cannot expose interface, coclass can. That coclass can expose both or only IDispatch to be useful.IMyDispatch exposes only that 4 methods alike IDispatch, but has some prior information...
-
September 16th, 2008, 08:32 AM
I'm sorry, but I don't have "Visual Studio 9.0".
If a class IFoo has declaration "ITestFoo : public IDispatch" and has no more virtual members than IDispatch, what is ITestFoo?
You can write...
-
September 16th, 2008, 07:43 AM
IDL file fragment:
[
uuid(BFA48DFC-FB86-4799-8118-0459ED969B6E),
helpstring("ITestFoo Interface")
]
dispinterface ITestFoo
{
properties:
[id(1)] BSTR Name; // inserted by Vi2
|
Click Here to Expand Forum to Full Width
|