Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sizeof(CString) Pin
HP31-Jul-00 22:20
HP31-Jul-00 22:20 
GeneralRe: sizeof(CString) Pin
aasher1-Aug-00 2:34
aasher1-Aug-00 2:34 
GeneralIE Right Click Menu Pin
kc31-Jul-00 2:02
kc31-Jul-00 2:02 
GeneralRe: IE Right Click Menu Pin
Buck2-Aug-00 9:47
Buck2-Aug-00 9:47 
QuestionPrint Preview, Zoom and font size? Pin
Paul Barvinko30-Jul-00 21:26
Paul Barvinko30-Jul-00 21:26 
AnswerRe: Print Preview, Zoom and font size? Pin
HP31-Jul-00 22:24
HP31-Jul-00 22:24 
GeneralRe: Print Preview, Zoom and font size? Pin
Paul Barvinko1-Aug-00 7:21
Paul Barvinko1-Aug-00 7:21 
QuestionVC++ ATL Server, VB Client, VARIANTs and SAFEARRAYS ?? Pin
Keith Gemeinhart30-Jul-00 18:03
sussKeith Gemeinhart30-Jul-00 18:03 
I'm trying to do the following ... pass some data from a VB client to a VC++ server via
COM. I realize that I have to use automation-compatible data types such as VARIANTs
and SAFEARRAYs. However, I'm having difficulty figuring-out exactly how to define the
method in IDL and interpret the data on the server side.

The data is a set of 29 variables, most of which are integers. Some are floats, with one
string and couple of arrays thrown in for good measure. Obviously it would be tedious
to set-up and use a method with 29 parameters. So, I'd like to pass all of the data in
one chunk if I can. Additionally, there will be 2 other chunks of data returned to the
client in the same method ... but that's a different question. The only thing I'm
trying to do now is get the chunk of data to the server.

In all that I've read, it seems that the best way to pass the chunks of data is using
arrays of VARIANTs. Is that true ? If so, how do I define the method interface in
IDL and how do I unpack the data on the server ?

Any guidance would be helpful.

Thank you,
Keith Gemeinhart
AnswerRe: VC++ ATL Server, VB Client, VARIANTs and SAFEARRAYS ?? Pin
Keith Gemeinhart2-Aug-00 5:43
sussKeith Gemeinhart2-Aug-00 5:43 
QuestionWeird error? Pin
howy30-Jul-00 6:14
howy30-Jul-00 6:14 
AnswerRe: Weird error? Pin
howy30-Jul-00 6:14
howy30-Jul-00 6:14 
GeneralRe: Weird error? Pin
Tim Deveaux30-Jul-00 7:43
Tim Deveaux30-Jul-00 7:43 
General*****HELP! PLEASE READ AND HELP***** Pin
Steve Lai30-Jul-00 5:20
Steve Lai30-Jul-00 5:20 
GeneralRe: *****HELP! PLEASE READ AND HELP***** Pin
Erik Thompson30-Jul-00 6:07
sitebuilderErik Thompson30-Jul-00 6:07 
GeneralI don't want to close this dialog Pin
cowell29-Jul-00 14:19
cowell29-Jul-00 14:19 
GeneralRe: I don't want to close this dialog Pin
Tim Deveaux29-Jul-00 17:22
Tim Deveaux29-Jul-00 17:22 
GeneralRe: I don't want to close this dialog Pin
Sam Hobbs31-Jul-00 18:34
Sam Hobbs31-Jul-00 18:34 
QuestionHow do I isolate MFC in a DLL? Pin
Tomb28-Jul-00 9:45
Tomb28-Jul-00 9:45 
AnswerRe: How do I isolate MFC in a DLL? Pin
Erik Funkenbusch1-Aug-00 19:20
Erik Funkenbusch1-Aug-00 19:20 
GeneralHow: Get all the filenames from Open Dialog Pin
Brian28-Jul-00 6:28
Brian28-Jul-00 6:28 
GeneralRe: How: Get all the filenames from Open Dialog Pin
Mike Dunn28-Jul-00 6:55
Mike Dunn28-Jul-00 6:55 
Generaltypedef struct (?) Pin
Frank Deo28-Jul-00 5:37
Frank Deo28-Jul-00 5:37 
GeneralRe: typedef struct (?) Pin
Mike Dunn28-Jul-00 7:01
Mike Dunn28-Jul-00 7:01 
GeneralRe: typedef struct (?) Pin
Frank Deo28-Jul-00 7:59
Frank Deo28-Jul-00 7:59 
GeneralRe: typedef struct (?) Pin
Sam Hobbs31-Jul-00 18:31
Sam Hobbs31-Jul-00 18:31 

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.