|
If hLib is not NULL , then LoadLibrary() is not failing.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hLib is NULL for test.dll
|
|
|
|
|
Is it possible that your app is a 64 bit application and your dll an 32 bit dll?
|
|
|
|
|
you should load the dll from the directory where it was installed, so the dll can find the depending modules.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hii everybody,
Now, i have a project about networking but i must to built a program for my project.
I want to scan port for many host & server & dicevice network.
So, could you show me full code(every programing language) about scan port for range IP that it's simple and quickly.
Thanks you so much
my email: onemore86@yahoo.com.vn
|
|
|
|
|
onemore86 wrote: Now, i have a project about networking but i must to built a program for my project.
I want to scan port for many host & server & dicevice network.
So, could you show me full code(every programing language) about scan port for range IP that it's simple and quickly.
Point #2 in the post "How to ask a question"[^]:
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
OP wrote: every programing language
I thought that part was quite ambitious as well...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I suppose he could get started here[^].
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hic, my major is not programing but my project relate with it. And i have not enough time start to program a new application.
So, could you help me, thanks a lot
email: onemore86@yahoo.com.vn
|
|
|
|
|
Hi
I want the source code of featured based image morphing implementing with openGL vc++ 2008.
I am looking forward to the source code.
Thanks,
Peh
|
|
|
|
|
Did u google.
Величие не Бога может быть недооценена.
|
|
|
|
|
Yes, i googled .. but i cant find the source code written with openGL vc++ 2008
|
|
|
|
|
Just refer this link to get an idea[^]
Just refer this link to get the sample source code in c++ [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
Hi,
I need to know how can i pass the type _Connection (or _ConnectionPtr) as parameter in function in the IDL file ?
This is some lines of code :
Test.cpp
_Connection *pConn = NULL;
IDataExtract->get_ADOConnectionObject(&pConn);
IDL file
[id(38), helpstring("get connection")] HRESULT get_ADOConnectionObject([in, out] ???????????????);
thank you for help.
|
|
|
|
|
If you import ADO into your IDL file (try using importlib with the ADO type-library), then you can use _Connection*, i.e. an interface pointer.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have include ADO type-library like this:
importlib("C:\Program Files\Fichiers communs\System\ado\msado15.dll");
in the Library section
and i had wrote :
[id(38), helpstring("get connection")] HRESULT get_ADOConnectionObject([in, out] _Connection** pConnptr);
but it display error :
Error 1 error MIDL2009 : undefined symbol : _Connection [ Parameter 'ppAdoConnection' of Procedure 'get_ADOConnectionObject' ]
So how can resolve this problem ?
thank you
|
|
|
|
|
This works for me:
import "oaidl.idl";
import "ocidl.idl";
[
uuid(D39DD965-FC96-4C0A-AA62-CA3F5F117685),
version(1.0),
helpstring("cccc 1.0 Type Library")
]
library ccccLib
{
importlib("c:\Program Files\Common Files\System\ado\msado15.dll");
[
object,
uuid(7CD26371-4A6B-4234-A024-6690A53CA450),
nonextensible,
helpstring("Itest Interface"),
pointer_default(unique)
]
interface Itest : IUnknown
{
HRESULT DoSomething([in]_Connection* c);
HRESULT GetCount([in]_Recordset* rs, [out]int* num);
};
importlib("stdole2.tlb");
[
uuid(F8AAE058-76E9-4F2C-995A-FB5B6565CED6),
helpstring("test Class")
]
coclass test
{
[default] interface Itest;
};
};
Alternatively, remove the importlib statement and add
import "MSADO15.idl";
either in or out of the library's scope. Both of these have worked for me
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I will be crazy
the problem still with me !!! i have done all but no result for me !!!
|
|
|
|
|
Can you post more of your IDL? I wonder if there's something else causing this not to work
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
#pragma once
import "oaidl.idl";
import "ocidl.idl";
[
uuid(DADD8BCB-AAE5-4E88-9K06-1C991A2B77E4),
version(1.0),
helpstring("DllService Type Library")
]
library DllService Lib
{
importlib("C:\Program Files\Fichiers communs\System\ado\msado15.dll");
importlib("stdole2.tlb");
[
uuid(EC6DA8D8-DB33-4b29-BBED-8BDDC055D1E4),
version(1.0),
helpstring("Enum for UserType: enGroupType(0) - Group, enUserType(1) - User, enAdministaratorType(2) - Administrator")
]
typedef enum EUserType
{
enGroupType = 0,
enUserType = 1,
enAdministaratorType = 2
} _EUserType;
.
.
.
[
uuid(38570D0E-A46E-4A43-85DB-2A305D7667A7),
helpstring("_SAC_Session Class")
]
coclass _SAC_Session
{
[default] interface _ISAC_Session;
};
.
.
.
};
.
.
.
interface _ISAC_Session;
.
.
.
[
object,
uuid(148359B4-5D7E-4B7F-82F3-0E8FDBDA0D5D),
dual,
nonextensible,
helpstring("_ISAC_Session Interface"),
pointer_default(unique)
]
interface _ISAC_Session : IDispatch{
.
.
.
[id(24), helpstring("get ado connection")] HRESULT get_ADOConnectionObject([in,out] _Connection **ppAdoConnection);
};
i hope that can you find something.
|
|
|
|
|
Spotted it. You define _ISAC_Session OUTSIDE the library, so it cannot see the ADO definitions brought in by the importlib statement, as that is wihtin the library definition.
Changing the importlib to an import statement OUTSIDE the library definition will fix your error. Here's the sample code you posted, modified so it'll work. I've highlighted the import statement I added.
#pragma once
import "oaidl.idl";
import "ocidl.idl";
<big>import "msado15.idl";</big>
[
uuid(DADD8BCB-AAE5-4E88-9306-1C991A2B77E4),
version(1.0),
helpstring("DllService Type Library")
]
library DllServiceLib
{
importlib("stdole2.tlb");
[
uuid(EC6DA8D8-DB33-4B29-BBED-8BDDC055D1E4),
version(1.0),
helpstring("Enum for UserType: enGroupType(0) - Group, enUserType(1) - User, enAdministaratorType(2) - Administrator")
]
typedef enum EUserType
{
enGroupType = 0,
enUserType = 1,
enAdministaratorType = 2
} _EUserType;
[
uuid(38570D0E-A46E-4A43-85DB-2A305D7667A7),
helpstring("_SAC_Session Class")
]
coclass _SAC_Session
{
[default] interface _ISAC_Session;
};
};
interface _ISAC_Session;
[
object,
uuid(148359B4-5D7E-4B7F-82F3-0E8FDBDA0D5D),
dual,
nonextensible,
helpstring("_ISAC_Session Interface"),
pointer_default(unique)
]
interface _ISAC_Session : IDispatch{
[id(24), helpstring("get ado connection")] HRESULT get_ADOConnectionObject([in,out] _Connection **ppAdoConnection);
};
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank you very much for your help.
One more thing i would ask, this statment have no effect in other classes if i use a rename_namespace?
like Internal ?
|
|
|
|
|
I've got no idea - sorry.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
THANK YOU VERYYYYYYYYYY MUCH
it work
you saved me really
|
|
|
|
|
Good - glad I could help!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|