|
the errors are like follows:
e:\arcgis\test1\debug\tlbinf32.tlh(179) : error C2059: syntax error : '('
e:\arcgis\test1\debug\tlbinf32.tlh(183) : error C2143: syntax error : missing ';' before '}'
e:\arcgis\test1\debug\tlbinf32.tlh(187) : error C2371: 'TKIND_ENUM' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\oaidl.h(540) : see declaration of 'TKIND_ENUM'
e:\arcgis\test1\debug\tlbinf32.tlh(188) : error C2371: 'TKIND_RECORD' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\oaidl.h(541) : see declaration of 'TKIND_RECORD'
e:\arcgis\test1\debug\tlbinf32.tlh(189) : error C2371: 'TKIND_MODULE' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\oaidl.h(542) : see declaration of 'TKIND_MODULE'
and more ...
|
|
|
|
|
How is it possible for an entire machine's COM pointers to simultaneously unregister themselves?
Cleako
|
|
|
|
|
cleako wrote: COM pointers
What do you mean by that?
cleako wrote: simultaneously unregister themselves
How did you come to that conclusion?
Try describing the problem instead of making an assumption about the cause.
What happens? Can you create objects or not? Error messages?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Or is he trying to find a way to unregister everything on the system and have fun
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
We have an app server and a web server. The web server contains all of the COM objects as well as the app server but the web server is supposed to point to the app server and run those COM objects instead of on the itself. Everthing was working and suddenly many COM objects simply could not be located and when the program runs the error message is something along the lines of "Could not create object" and I am guessing the cannot find object error code.
The COM objects have been re-registered but I am curious how they just unregistered themselves, assuming nobody did it and just isnt speaking.
Cleako
|
|
|
|
|
Reword your question to other's understanding.
|
|
|
|
|
Hi all,
Working on sending commands to a device, I have been using the code provided by Ashish Dhar, here : www.codeproject.com/system/serial_com.asp
(I know I should post there, but there are many post without any reply there, so...)
Everything was going fine using this simple code:
char receive_write[] = {0x02, 0x00, 0x02, 0x00, 0x30, 0x01, 0x31, 0x18};
m_theCommPort.Write(receive_write, sizeof(receive_write) );
Now, I need to send a longer string of unsigned char :
unsigned char receive_write[] = {0x02, 0x00, 0x07, 0x00, 0x75, 0x01, 0x00, 0x01, 0x00, 0x91, 0x01, 0x7D, 0xB6};
m_theCommPort.Write(receive_write, sizeof(receive_write) );
Now the device returns a "unknown command" telegram. But the command is the right one.
Write uses WriteFile,
WriteFile returns FALSE and GetLastError returns error 997 : Overlapped I/O operation in process
Is it related to timeout, or to the string length, or either?
Thanks for helping,
Matthieu Deveau
|
|
|
|
|
Hi,
The 'error' ERROR_IO_PENDING (=997) just tells you that the method WriteFile has returned before all the data have been transmitted. This is usually the reason why someone uses overlapped operations - you don't want to block your application waiting for the IO operation to finish.
I recommend that you do some reading on overlapped operations. You should find a lot material on this site.
Regards,
Tim
|
|
|
|
|
Hi,
I have a .tlb-file which only contains Interfaces for a COM-Application.
How can I use this Interfaces in C#?
How can I "instantiate" these Interfaces to use the functions they provide?
Thanks in advance,
Andy
|
|
|
|
|
Hello all,
I am using visual basic6 for creating the DLLS. Can anyone help me how can i move on to VB.Net or C#.NET COM. I am new to .Net technology.
Thanks in Advance..
bharath.s
|
|
|
|
|
hello,
in my prj i ve mat files that i want to add to the com builder of matlab which have version MATLAB COM BUILDER 1.0.
com builder add only *.m files and mex files(*.dll) pls suggest how to add mat file to com builder
|
|
|
|
|
I have referenced a VB6 DLL and I have access to it and all is well. The problem is that I have had to make changes to that DLL and other applications point to it.
The question is this, does the application need that original DLL in the original location or just simply registered on the server, and just trying this it looks like it needs to be in that original location??
Cleako
|
|
|
|
|
I'm on a .NET project, and I need to be able to (with .NET code):
1. Open a library that contains COM objects.
2. Find the class GUID, interface GUID, and description of each and every COM object in the library. In other words, it's sort of like using reflection on a COM library using .NET code.
Any help is greatly appreciated.
|
|
|
|
|
Hello,
Just check "Using Native COM Servers from .NET" article on MSDN.
Regards,
LF
|
|
|
|
|
Hi,
I have a doubt regarding memory sharing in a COM object.
Background: Recently we shifted to VS2005. Hence the dll written in VC6 is no longer directly useful. I might have to write a COM wrapper to access this dll. The application would be working with huge files and I want only a single copy maintained across my application. The dll should actually read the file and after the error checking send the a pointer of the memory to my application.
My question:
1) Is it possible to do it with COM?
2) What would happen if my COM object memory is on a remote server?
3) Does the COM object copy the memory and send it to the requested application or does it just pass the reference.
My intention is to maintain a single place of memory where the file data would be read and used.
Please let me know how can I achieve this through COM. Any links would be useful.
Regards,
Arti Gujare
|
|
|
|
|
ArtiGujare wrote: Recently we shifted to VS2005.
I believe you meant "it's managed code now"
ArtiGujare wrote: Recently we shifted to VS2005. Hence the dll written in VC6 is no longer directly useful. I might have to write a COM wrapper to access this dll
Do you really need COm wrapper or P/Invoke helps ?
http://www.google.co.in/search?hl=en&q=P%2FInvoke&btnG=Search&meta=[^]
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Thankyou Sohail.
I am a newbie to COM.
When I said we shifted to VS2005 I meant that the application using the dll was previosly written in VC6 and dll too was written in VC6. Now the application has to be written in VS2005 and still use the VC6 dll. My typical use case is:
1) Application send the file name to the dll.
2) dll reads the file at that mentioned filepath and does some file checks
3) if the file is in expected format, the dll returns the pointer pointing to the file data to the applictaion.
Can I achieve this using P/Invoke?
Regards,
Arti Gujare
|
|
|
|
|
P/Invoke is a way of invoking unmanaged code from within .NET (a rough description, for more and precise detials see MSDN )
If the code you have ported to VS 2005 is still unmanaged code then I don't see any reason why it's not working with your old VC6 DLL.
If your application when written in VS2005, is ported and made to be .NET complaint then please read on topics related to 'how to call unmanaged code/dll from within managed code' this will lead you to P/Invoke somewhere
http://en.wikipedia.org/wiki/P/invoke[^]
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/[^]
http://msdn2.microsoft.com/en-us/library/aa446536.aspx[^]
Please read about P/Invoke basic and you will be able to decide based on your project needs what to use - P/Invoke or a COM wrapper
I hope this helps.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
VS2005 provides several programming languages. I assume that you continue to use C++. In this case you can just use your unmanaged DLL (written in VC6) as you have done before. It's your choice to make the application managed or unmanaged. If you make the application managed (C++/CLI), you may have to take special care when you are marshalling data (e.g. pointers or strings) from your unmanaged code to the managed one.
P/Invoke will only be required, if you you change the programming language for your application to a pure managed language, e.g. C#. If you are doing this, I recommend to have a look at http://pinvoke.net/.
Regards,
Tim
|
|
|
|
|
Hi,
i can suggest a simple solution for the problem.
you can check the value returned from your dll and
open the file using .net classes.
^-^
@|@
- redCat
|
|
|
|
|
is any body know how to develop simple program using above board, for sending commands such as ibread,ibfind,ibwrt,ibrd,ibfindd,ibclr,ibonline etc
using c/c++ lanagauage
regards
kishor
ackishor@yahoo.com
|
|
|
|
|
A few people might know, but they will either provide no answer or ignore your question. Reason - your question is not related to COM(Component Object Model). Try appropriate discussion board, possibly C++, to get quicker and appropriate answer.
Hope this helps!
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hi all,
Does anyone know how to add a button to the Windows Explorer toolbar (Views, Organize, etc..)?
Thanks in advance.
|
|
|
|
|
|
MSDN just says BHO can attach to the Windows Explorer. There's no description on how to interact with the toolbar. Could you please elaborate a little bit more?
|
|
|
|