Hello, Read the article on MSDN: “How to Pass Arrays between Visual Basic and C”. http://support.microsoft.com/kb/207931 Some more links: 1. "Passing an array from VC++ DLL to VB", by Amol Kakhandki on Code project. http://www.codeproject.com/dll/ctovbarray\_passing.asp 2. http://www.manbu.net/Lib/En/Class5/Sub7/1/23.asp Regards
lafleon
Posts
-
How do i pass an array of long to the method of COM? -
How do I pass a byte array from VC++ to VB?Hello, Read the article on MSDN: “How to Pass Arrays between Visual Basic and C”. http://support.microsoft.com/kb/207931 Some more links: 1. "Passing an array from VC++ DLL to VB", by Amol Kakhandki on Code project. http://www.codeproject.com/dll/ctovbarray\_passing.asp 2. http://www.manbu.net/Lib/En/Class5/Sub7/1/23.asp Regards
-
Beginner In COM where to start first?Hello, COM+ Programming: A Practical Guide Using Visual C++ and ATL (With CD-ROM) by Pradeep Tapadiya is much better. Regrads
-
ATL COM ServiceHello, Just read this book: Special Edition Using Visual C++.NET by Kate Gregory Regards,
-
EventsHello Just read this article: COM Connection Points By Alex C. Punnen. http://www.codeproject.com/com/connectionpoint.asp Regards,
-
How to pass string from C# to C++ (COM)Hello, You need to use BSTR instead of LPTSTR in your server. Regards
-
display grayscale image in visual c++ 6.0Hello, You need to use Win32 along GDI functions like this: CreateWindow() GetDC() SelectObject() GetStockObject() SetStretchBltMode() SetPixel() StretchBlt() BitBlt() … DeleteDC() DeleteObject() etc. Regards,
-
(char*& Content) ?Hello, It's similar to pointer to pointer (char**). Regards,
-
Scanning the IEEE or GPIB bussHello, Just try: NI Measurement & Automation Explorer->Devices and Interfaces->GPIB0. Now right click and choose 'Scan for Instruments' menu. Regards,
-
DCOM (Transferring of binary files.)Hello, Just try: *.idl: HRESULT FunName([in,out] SAFEARRAY(BYTE)* pbtBufData); *.h : STDMETHOD(FunName)(SAFEARRAY** pbtBufData); *.c : STDMETHODIMP CClassName::FunName(SAFEARRAY** pbtBufData){...} Regards,
-
HELP NEEDED - DCOM Server in C#?Hello, Just check 'DECLARE_CLASSFACTORY_SINGLETON(...)' macro on MSDN. Regards
-
Create a COM component and use in my applicationHello, 'COM+ Programming: A Practical Guide Using Visual C++ and ATL (With CD-ROM) by Pradeep Tapadiya' is much better. (See amazon.com) Regards
-
COM 2D safearrays in C#Hello, I have a COM DLL using 2D safearrays. I want to use the Interface in C# and managed C++ and need to marshall the 2D array somehow. Can anyone help me with the syntax please? Regards,
-
How to communicate with USB devices from VC++.NET code?Hello, How to communicate with USB devices from VC++.NET code? Thanks for help, Regards
-
MFC - CBitmap BitBltHello, Your bitmaps are incompatible. Just try Bitmap.CreateCompatibleBitmap(theDC, 100, 100); instead of Bitmap.CreateBitmap(100,100,1,24,NULL); Regards,
-
calculating conversion question...Hello, Jus try: 1. total_grams = grams + kilograms * GRAMS_PER_KILOGRAM; 2. ounces = pounds*OUNCES_PER_POUND; 3. total_pounds = pounds + ounces/OUNCES_PER_POUND; Regards,
-
Books on COMHello, "COM+ Programming: A Practical Guide Using Visual C++ and ATL" by Pradeep Tapadiya is the best. Regards
-
error "The stub received bad data" while calling CreateInstance functionHello, 1. Have you initialized all your variables inside com server? Some memory garbage can cause the problem 2. It can be some timing problem with initialization. Try to play with some delays (just use Sleep(…)) inside constructor and FinalConstruct() method of your exe com server. Regards,
-
Problem in Passing 1d array from VC++ to VB [modified]Some more links: 1. "Passing an array from VC++ DLL to VB", by Amol Kakhandki on Code project. http://www.codeproject.com/dll/ctovbarray\_passing.asp 2. http://www.manbu.net/Lib/En/Class5/Sub7/1/23.asp
-
Problem in Passing 1d array from VC++ to VB [modified]Hello, Read the article on MSDN: “How to Pass Arrays between Visual Basic and C”. http://support.microsoft.com/kb/207931 Regards