Click here to Skip to main content
14,600,571 members

C / C++ / MFC

 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:08
MemberSarath C18-Feb-09 0:08 
QuestionRe: saving list control data in a string Pin
brucewayn18-Feb-09 0:21
Memberbrucewayn18-Feb-09 0:21 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:28
MemberSarath C18-Feb-09 0:28 
QuestionSuppressing dialog UI in a property sheet Pin
Mushtaque Nizamani17-Feb-09 23:28
MemberMushtaque Nizamani17-Feb-09 23:28 
AnswerRe: Suppressing dialog UI in a property sheet Pin
«_Superman_»17-Feb-09 23:42
professional«_Superman_»17-Feb-09 23:42 
GeneralRe: Suppressing dialog UI in a property sheet Pin
Mushtaque Nizamani18-Feb-09 0:02
MemberMushtaque Nizamani18-Feb-09 0:02 
AnswerRe: Suppressing dialog UI in a property sheet Pin
_AnsHUMAN_ 18-Feb-09 0:14
Member_AnsHUMAN_ 18-Feb-09 0:14 
QuestionProblem passing an array of UDT from Excel VBA to a C++ dll Pin
eight17-Feb-09 23:28
Membereight17-Feb-09 23:28 
Hi. I'm trying to send an array of UDT from Excel VBA to a C++ dll but have no idea which direction I should look. Here's what I'm trying to do

MyTestDLL.cpp
#pragma pack(4)
struct MyCppType
{    
short iVal;    
double dVal;    
BSTR bstr;
};
#pragma pack()

void _stdcall MyDllFunction (array of MyCppType)
{  
//do something with the array  	
}


MyTestDLL.def
LIBRARY	"MyTestDll"
EXPORTS
MyDllFunction	@1

MyTestExcel.xlsm
Option Explicit
Declare Sub MyDllFunction Lib "MyTestDLL.dll" (arr() As MyVbaType)


Type MyVbaType    
iVal As Integer    
dVal As Double    
sVal As String
End Type


Sub Test()    
Dim arr(2) As MyVbaType        
arr(1).iVal = 1    
arr(1).dVal = 1.1    
arr(1).sVal = "one"        
arr(2).iVal = 2    
arr(2).dVal = 2.2    
arr(2).sVal = "two"        
MyDllFunction (arr)    
End Sub


I've posted this problem on the VB forum and was advised to post it here. Please help Sigh | :sigh:
AnswerRe: Problem passing an array of UDT from Excel VBA to a C++ dll Pin
dishaagrawal8-Dec-09 5:49
Memberdishaagrawal8-Dec-09 5:49 
QuestionUnable to print Images in ListBox Pin
hemlat17-Feb-09 22:21
Memberhemlat17-Feb-09 22:21 
AnswerRe: Unable to print Images in ListBox Pin
Iain Clarke, Warrior Programmer17-Feb-09 22:58
MemberIain Clarke, Warrior Programmer17-Feb-09 22:58 
GeneralRe: Unable to print Images in ListBox Pin
hemlat17-Feb-09 23:16
Memberhemlat17-Feb-09 23:16 
GeneralRe: Unable to print Images in ListBox Pin
Iain Clarke, Warrior Programmer17-Feb-09 23:20
MemberIain Clarke, Warrior Programmer17-Feb-09 23:20 
QuestionHow to get the password in IAS extension dll if ms-chap is used by radius client? Pin
okmnji7951317-Feb-09 21:55
Memberokmnji7951317-Feb-09 21:55 
QuestionHow do I get the error message displayed on a console ? Pin
SherTeks17-Feb-09 21:12
MemberSherTeks17-Feb-09 21:12 
AnswerRe: How do I get the error message displayed on a console ? Pin
Stuart Dootson17-Feb-09 22:26
professionalStuart Dootson17-Feb-09 22:26 
AnswerRe: How do I get the error message displayed on a console ? Pin
Naveen17-Feb-09 22:28
MemberNaveen17-Feb-09 22:28 
Questiontoken for the network saved network username? Pin
Green Fuze17-Feb-09 21:06
MemberGreen Fuze17-Feb-09 21:06 
Questionhow can i see data added to comboBox Pin
MahaKh17-Feb-09 20:59
MemberMahaKh17-Feb-09 20:59 
AnswerRe: how can i see data added to comboBox Pin
Cedric Moonen17-Feb-09 21:21
MemberCedric Moonen17-Feb-09 21:21 
AnswerRe: how can i see data added to comboBox Pin
Chandrasekharan P17-Feb-09 21:36
MemberChandrasekharan P17-Feb-09 21:36 
GeneralRe: how can i see data added to comboBox Pin
MahaKh17-Feb-09 21:53
MemberMahaKh17-Feb-09 21:53 
GeneralRe: how can i see data added to comboBox Pin
Chandrasekharan P17-Feb-09 23:06
MemberChandrasekharan P17-Feb-09 23:06 
AnswerRe: how can i see data added to comboBox Pin
Iain Clarke, Warrior Programmer18-Feb-09 0:19
MemberIain Clarke, Warrior Programmer18-Feb-09 0:19 
GeneralRe: how can i see data added to comboBox Pin
Chandrasekharan P18-Feb-09 0:30
MemberChandrasekharan P18-Feb-09 0:30 

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.