Click here to Skip to main content
15,899,313 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to install my assembly in client machine Pin
softp_vc21-Jul-04 0:55
softp_vc21-Jul-04 0:55 
AnswerRe: How to install my assembly in client machine Pin
sukesh.g21-Jul-04 3:06
sukesh.g21-Jul-04 3:06 
GeneralProcess.Start problems... Pin
Jan van den Baard21-Jul-04 0:03
professionalJan van den Baard21-Jul-04 0:03 
GeneralRe: Process.Start problems... Pin
Javier Lozano22-Jul-04 14:28
Javier Lozano22-Jul-04 14:28 
GeneralRe: Process.Start problems... Pin
Jan van den Baard22-Jul-04 19:19
professionalJan van den Baard22-Jul-04 19:19 
GeneralRe: Process.Start problems... Pin
partyganger29-Jul-04 15:08
partyganger29-Jul-04 15:08 
GeneralRe: Process.Start problems... Pin
Jan van den Baard29-Jul-04 19:43
professionalJan van den Baard29-Jul-04 19:43 
QuestionConverting SafeArray? Pin
So and So20-Jul-04 6:13
So and So20-Jul-04 6:13 
Hi, i'm creating a C# DLL that i access from C++. The C# only connects to the database, creates three arrays, fills them, and passes the filled arrays (int[], double[], string[]) back to C++. The interop appears to be working fine, only my problem is in trying to convert a SAFEARRAY into an int[], double[] and string[] without compromising data integrity. This is my code to do this (at least for just the int[]):

C++:
SAFEARRAY * vi;
SAFEARRAYBOUND rgsaBound[1];
rgsaBound[0].lLbound = 0;
rgsaBound[0].cElements = 100;
vi = SafeArrayCreate(VT_INT, 1, rgsaBound);


spConnNET->Read();//this calls the method in C# to fill the arrays

//the code "spConnNET->ArrayInt()" retrieves the arrays from C#
HRESULT r = SafeArrayAccessData(vi, reinterpret_cast<void**>(spConnNET->ArrayInt()));

It is not changing it from a SAFEARRAY to an integer array though...can anyone tell me what i'm doing wrong, or what needs to be added?

thanks
AnswerRe: Converting SafeArray? Pin
So and So20-Jul-04 8:44
So and So20-Jul-04 8:44 
Generalproblem in accessing a VC++ 6.0 ATL COM object via a .Net application Pin
vipul_vips20-Jul-04 5:19
vipul_vips20-Jul-04 5:19 
GeneralWeb Service Error in Debug Mode Pin
jobr1ch19-Jul-04 21:47
jobr1ch19-Jul-04 21:47 
GeneralForm Size Too Big Pin
myNameIsRon19-Jul-04 19:53
myNameIsRon19-Jul-04 19:53 
GeneralRe: Form Size Too Big Pin
Small Rat24-Jul-04 18:13
Small Rat24-Jul-04 18:13 
GeneralFreeze some columns in Datagrid Pin
Sreepathi19-Jul-04 17:15
Sreepathi19-Jul-04 17:15 
General.NET &amp; MFC Serialization Compability Pin
alexatn19-Jul-04 11:35
alexatn19-Jul-04 11:35 
GeneralRe: .NET &amp; MFC Serialization Compability Pin
mav.northwind19-Jul-04 21:35
mav.northwind19-Jul-04 21:35 
GeneralSyntax Coloring in .NET Pin
bneacetp19-Jul-04 10:54
bneacetp19-Jul-04 10:54 
GeneralPrinting using ExecWB gives error &quot;Trying to revoke a drop target ...&quot; Pin
alexatn16-Jul-04 12:02
alexatn16-Jul-04 12:02 
GeneralSpeech .NET Pin
Serge Lobko-Lobanovsky16-Jul-04 6:20
Serge Lobko-Lobanovsky16-Jul-04 6:20 
GeneralReplacement of In-place Activation Pin
Aamir Butt15-Jul-04 23:56
Aamir Butt15-Jul-04 23:56 
GeneralRe: Replacement of In-place Activation Pin
mav.northwind17-Jul-04 4:28
mav.northwind17-Jul-04 4:28 
GeneralRe: Replacement of In-place Activation Pin
Aamir Butt18-Jul-04 18:17
Aamir Butt18-Jul-04 18:17 
GeneralListView icon disappear Pin
ting66815-Jul-04 4:24
ting66815-Jul-04 4:24 
GeneralWindows mobile 2003 for Pocket PC Pin
Member 123796715-Jul-04 3:37
Member 123796715-Jul-04 3:37 
GeneralRe: Windows mobile 2003 for Pocket PC Pin
Roman Rodov15-Jul-04 15:03
Roman Rodov15-Jul-04 15: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.