Click here to Skip to main content
15,909,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPop Dialog before start Pin
Richard Cheng11-Apr-01 7:00
Richard Cheng11-Apr-01 7:00 
GeneralRe: Pop Dialog before start Pin
AlexMarbus11-Apr-01 7:10
AlexMarbus11-Apr-01 7:10 
GeneralRe: Pop Dialog before start Pin
AlexMarbus11-Apr-01 7:11
AlexMarbus11-Apr-01 7:11 
GeneralRe: Pop Dialog before start (I need help...i still don't know how to do) Pin
Richard Cheng11-Apr-01 8:38
Richard Cheng11-Apr-01 8:38 
GeneralRe: Pop Dialog before start (I need help...i still don't know how to do) Pin
Manfred Ramosch12-Apr-01 11:23
Manfred Ramosch12-Apr-01 11:23 
GeneralRe: Pop Dialog before start (I need help...i still don't know how to do) Pin
Andreas Masur13-Apr-01 16:51
Andreas Masur13-Apr-01 16:51 
GeneralRe: Pop Dialog before start Pin
l a u r e n11-Apr-01 11:57
l a u r e n11-Apr-01 11:57 
Questiondll and string arrays ? Pin
11-Apr-01 6:20
suss11-Apr-01 6:20 
How do I pass a string array to a dll to be used and modified
then be able to use that modified array from the calling program
I've try to the pass a variant array to the dll, the export function is a so;
long _stdcall GetList(LPSTR pszName, VARIANT FAR* vNumbers)
vNumbers is passed in by a VB app as first declared as a variant then as a string

I can read the array that I passed in, modify it and read the modification that were made.
after the function is done and I'm back in the calling program (mine is VB)
the function I passed in emtpy, (VB say that the array is out of memory)
(although if I put the array in a messagebox it can be read...I don't know why)

Now, I know that VB handles BSTR differently If a DLL procedure expects an LPSTR (a pointer to a null-terminated string) as an argument, pass the BSTR by value. Because a pointer to a BSTR is a pointer to the first data byte of a null-terminated string, it looks like an LPSTR to the DLL procedure.

Is there another way to pass a array of string to a dll ?

thanks

GeneralMulti-page printing Pin
11-Apr-01 5:25
suss11-Apr-01 5:25 
GeneralRemoving MFC Windows from Taskbar Pin
Gregg Carlstrom11-Apr-01 5:20
Gregg Carlstrom11-Apr-01 5:20 
QuestionAfxGetModuleState not documented??? Pin
Ammar10-Apr-01 21:37
Ammar10-Apr-01 21:37 
GeneralDialog Controls and stuff Pin
Michael Martin10-Apr-01 19:42
professionalMichael Martin10-Apr-01 19:42 
GeneralRe: Dialog Controls and stuff Pin
Steve Driessens10-Apr-01 21:38
Steve Driessens10-Apr-01 21:38 
QuestionVisual C++: File or Folder? Pin
Kuang Cao10-Apr-01 19:36
Kuang Cao10-Apr-01 19:36 
AnswerRe: Visual C++: File or Folder? Pin
Ammar10-Apr-01 20:41
Ammar10-Apr-01 20:41 
GeneralRe: Visual C++: File or Folder? Pin
Kuang Cao11-Apr-01 8:56
Kuang Cao11-Apr-01 8:56 
AnswerRe: Visual C++: File or Folder? Pin
Michael Dunn11-Apr-01 7:34
sitebuilderMichael Dunn11-Apr-01 7:34 
GeneralATL equivalent of MFCs PreCreateWindow Pin
Chris Harrington10-Apr-01 18:23
Chris Harrington10-Apr-01 18:23 
GeneralRe: ATL equivalent of MFCs PreCreateWindow Pin
Michael Dunn10-Apr-01 19:16
sitebuilderMichael Dunn10-Apr-01 19:16 
GeneralRe: ATL equivalent of MFCs PreCreateWindow Pin
Chris Harrington11-Apr-01 4:02
Chris Harrington11-Apr-01 4:02 
GeneralRe: ATL equivalent of MFCs PreCreateWindow Pin
Erik Thompson11-Apr-01 11:33
sitebuilderErik Thompson11-Apr-01 11:33 
GeneralRe: ATL equivalent of MFCs PreCreateWindow Pin
Chris Harrington11-Apr-01 16:21
Chris Harrington11-Apr-01 16:21 
QuestionHow to prevent beep when enter key pressed in CEdit control Pin
10-Apr-01 17:08
suss10-Apr-01 17:08 
AnswerRe: How to prevent beep when enter key pressed in CEdit control Pin
Erik Thompson10-Apr-01 17:57
sitebuilderErik Thompson10-Apr-01 17:57 
GeneralRe: How to prevent beep when enter key pressed in CEdit control Pin
10-Apr-01 18:28
suss10-Apr-01 18:28 

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.