Click here to Skip to main content
15,921,156 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: ActiveX??? Pin
mcnam23-Jul-07 18:53
mcnam23-Jul-07 18:53 
GeneralRe: ActiveX??? Pin
User 21559723-Jul-07 21:10
User 21559723-Jul-07 21:10 
Questionneed documentation of tidyatl.dll Pin
turoi19-Jul-07 6:04
turoi19-Jul-07 6:04 
QuestionOnComm Events in MSCOMM OCX control Pin
AmarjeetSinghMatharu13-Jul-07 18:40
AmarjeetSinghMatharu13-Jul-07 18:40 
AnswerRe: OnComm Events in MSCOMM OCX control Pin
ScottMcP15-Jul-07 7:34
ScottMcP15-Jul-07 7:34 
QuestionHow to Generate OLE dispatch map functions Pin
KASR111-Jul-07 23:01
KASR111-Jul-07 23:01 
QuestionPlease help me debug.... Pin
sscow11-Jul-07 0:18
sscow11-Jul-07 0:18 
AnswerRe: Please help me debug.... Pin
Lim Bio Liong11-Jul-07 6:13
Lim Bio Liong11-Jul-07 6:13 
QuestionATL ActiveX control initialise Pin
Bart10-Jul-07 7:17
Bart10-Jul-07 7:17 
AnswerRe: ATL ActiveX control initialise Pin
mcnam23-Jul-07 22:27
mcnam23-Jul-07 22:27 
QuestionIContextMenu and ATL 7.1 Pin
dSolariuM7-Jul-07 22:02
dSolariuM7-Jul-07 22:02 
QuestionWindowless Activex Controls Pin
ArunKumar Yalamarthy5-Jul-07 4:19
ArunKumar Yalamarthy5-Jul-07 4:19 
QuestionATL wizard not adding Get and Put function prototypes to the class definition. Pin
KASR14-Jul-07 23:16
KASR14-Jul-07 23:16 
AnswerRe: ATL wizard not adding Get and Put function prototypes to the class definition. Pin
Bart10-Jul-07 7:12
Bart10-Jul-07 7:12 
GeneralRe: ATL wizard not adding Get and Put function prototypes to the class definition. Pin
KASR110-Jul-07 18:25
KASR110-Jul-07 18:25 
GeneralRe: ATL wizard not adding Get and Put function prototypes to the class definition. Pin
Bart10-Jul-07 18:37
Bart10-Jul-07 18:37 
GeneralRe: ATL wizard not adding Get and Put function prototypes to the class definition. Pin
KASR110-Jul-07 18:55
KASR110-Jul-07 18:55 
QuestionAdding bitmap images to toolbar buttons programmatically Pin
rindam28-Jun-07 0:29
rindam28-Jun-07 0:29 
AnswerRe: Adding bitmap images to toolbar buttons programmatically Pin
khan++12-Jul-07 2:33
khan++12-Jul-07 2:33 
QuestionHow Can I Pass Struct between ATL and client Pin
kasinli26-Jun-07 20:40
kasinli26-Jun-07 20:40 
I need pass struct from client to ATL(EXE server).The struct is defined as
struct node{
BSTR description; /* optional element of type xsd:string */
BSTR id; /* optional element of type xsd:string */
BSTR name; /* optional element of type xsd:string */
struct {BSTR* tags;int numberOfTags;}
}.
So I add the following codes two IDL file,
typedef struct TAGS_DEF {
BSTR* item; //pointer to the memory where tags are stared.
int length; //number of tags
}TAGS;
typedef struct RESNODE {
BSTR description; /* optional element of type xsd:string */
BSTR id; /* optional element of type xsd:string */
BSTR name; /* optional element of type xsd:string */
TAGS tags;
}ResNode
And I add an interface "[id(6), helpstring("方法AddOrModifyRes")] HRESULT AddOrModifyRes([in] ResNode* res, [in] BSTR operat);"

But the code can't run when the client call the interface.The codes in clients is
hr = spf.CoCreateInstance( CLSID_DataServer);
if( FAILED( hr )) throw( _T("server errror!"));
ResNode rn;
BSTR* tmpStr=NULL;
rn.tags.item=tmpStr;
rn.tags.length=0;
BSTR tmp=L"add";
spf->AddOrModifyRes(rn,tmp);

if the ATL is defined as a DLL. the problem doesn't appear.

the following is the content of my idl file.
// monwebDataService.idl : monwebDataService 的 IDL 源
//

import "oaidl.idl";
import "ocidl.idl";
typedef struct TAGS_DEF {
BSTR* item; //pointer to the memory where tags are stared.
int length; //number of tags
}TAGS;
typedef struct RESNODE {
BSTR description; /* optional element of type xsd:string */
BSTR id; /* optional element of type xsd:string */
BSTR name; /* optional element of type xsd:string */
TAGS tags;
}ResNode;
[
object,
uuid(EEC2233E-D1A7-435A-9CBD-48901778AEB7),
dual,
nonextensible,
helpstring("IDataServer 接口"),
pointer_default(unique)
]
interface IDataServer : IDispatch{
[id(1), helpstring("IsDataOK")] HRESULT IsDataOK([in,out] BYTE* sucFlag);
[id(2), helpstring("AddOrModifyRes")] HRESULT AddOrModifyRes([in] ResNode* res, [in] BSTR operat);
};
[
uuid(B79310B8-7A31-4598-897B-A9DD16EA3C33),
version(1.0),
helpstring("monwebDataService 1.0 tlbSmile | :) ")
]
library monwebDataServiceLib
{
importlib("stdole2.tlb");
[
uuid(8256EA22-CA60-4914-B8EB-F215E01C91A7),
helpstring("DataServer Class")
]
coclass DataServer
{
[default] interface IDataServer;
};
};

kasin li
AnswerRe: How Can I Pass Struct between ATL and client Pin
CPallini5-Jul-07 1:42
mveCPallini5-Jul-07 1:42 
QuestionHow to make drop down part of toolbar button more wider? Pin
Padmanabh Sharma26-Jun-07 18:54
Padmanabh Sharma26-Jun-07 18:54 
AnswerRe: How to make drop down part of toolbar button more wider? Pin
khan++12-Jul-07 2:51
khan++12-Jul-07 2:51 
QuestionDispatch map methods not correctly exported Pin
volker.holzbach25-Jun-07 0:12
volker.holzbach25-Jun-07 0:12 
AnswerRe: Dispatch map methods not correctly exported Pin
prasad_som27-Jun-07 1:03
prasad_som27-Jun-07 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.