|
Here is some additional information
when running TlbImp.exe i get the following warning, the wrapper dll is generated as is VBA.dll
TlbImp warning: Type library importer has encountered an interface not derived from IUnknown: _HiddenInterface.
however the webapp still cannot access the type required.
|
|
|
|
|
Hi All,
I was done OCR using MODI in c#.NET.But how can do that one in Vc++.
Now i am using VS.2005.
If you know any articles or have any sample code, let me know please!...
Thankx in Advance
|
|
|
|
|
hi all...
I'm facing a problem with the Microsoft Managemant Console Snap-In for Component Services. I am not able to expand the node named "COM+ Applications" under "My Computer". I am getting the Error as Follows:
--------------------------------------------------------------------
An error occured while processing the last operation.
Error code 80080005 - Server execution failed
The Event Log may contain additional troubleshooting information.
--------------------------------------------------------------------
When i tried to view the Application Event Log, it also gave an error,
--------------------------------------------------------------------
Unable to Complete the operation on "Application"
Access Denied.
--------------------------------------------------------------------
Please give your inputs regarding this error. I would be extremely thankful to you guys......
VIGITH
|
|
|
|
|
can u please help me out in automation visual source safe 6.0 in c# using com
please tell me how to checkin and check out a file from vss project
explore the world of imagination and be known as creative
|
|
|
|
|
Hi all
I have a web application which was developed in ASP + VB + Scripting Language
The problem is when replacing the existing dll with newly created one
the IIS needs a restart...Is there any other way to replace the dll with out IIS restart...
|
|
|
|
|
hi,
im using an com application in server,so whenever i log into the server through the remote desktop connection im getting an error like "COM SURROGATED".any help will be highly appreciated.thanks in advance.
with regards,
susa
|
|
|
|
|
Dear All,
I have a MFC application and also i am having a COM interface with that application. Both are running at the same address space.
Now that MFC application is up, when I call that COM interface from different program, everything goes correct. well.
After the COM fn execution is done, the MFC application goes out of memory (application stoped).
What is the reason for this?
I need to have MFC application to be in memory still even COM fn is done.
To do this, what should i do ? How can i do this ?
Kindly help me.
Thanks.
|
|
|
|
|
Perhaps an extra IYourInterface::Release() happens caused by returning the interface pointer to the client via GetIDispatch(FALSE). Must be GetIDispatch(TRUE) to increase internal reference count.
hallelujah
|
|
|
|
|
Want to call a dll which is created in vb 6 in vb.net. How i can do that. I am using dllImport but when running the .net aplication there is one error that Entry Point not define. Please provide solution that will highly appreciated.
|
|
|
|
|
Is it a COM dll? You can check this with OLEView or look to see if it exports the normal COM functions. If so you need to generate a RCW[^] (Runtime Callable Wrapper) for the DLL. I'm not a dotNET programmer so I can't help you with the specifics.
Steve
|
|
|
|
|
hi all
how to create and terminate a process using WMI
Can i have c++ code for it
Thanks
abhi
|
|
|
|
|
Hello everybody,
I have a COM client application which connects to COM server on the same machine. Everything works fine. But when I start the client from an asp script, the call to CoCreateInstance fails for some reasons. I`m not very experienced in COM programming. Do I have to use CoCreateInstanceEx because the client runs in the context of the webserver when it is started from the script? Or whatelse could be the reason? Does anybody have an idea?
MS
|
|
|
|
|
Hi All
whats the best way if a treeview node is associated with 3 values more easily i say that when click on the node 3 values are displayed in Listview for that node how to bind the values with that particular node
SAS
|
|
|
|
|
wrong forum. I think your question is not related to COM. Try VC++ forum to get correct and fast answer.
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
First: I know there are many topics in codeproject about using BSTR but i cant help myself further after 2 days trying to solve this problem...
1) Situation
============
My task is to write a program in VC++ which makes a windows program communicate to a sensor (MTi). There is a fully functional command line program from the producer of the sensor. Now i want to change severel settings (using specific functions) of the sensor like sample frequency and so on. The main function makes a Motion Tracker Object (written in c) to realize the communication through a virtual COM Port.
2) Problem
==========
I want to change the sample frequency of the data exchange between the program and the sensor (default it is 100Hz which is to fast for my application):
<br />
int nSFreq=25;
int nUSFreq=0;
pMT->MT_SetMotionTrackerSampleFrequency(nSFreq);<br />
MT_GetMotionTrackerSampleFrequency(&nUSFreq);<br />
printf("Your sample Frequency %d", nUSFreq);<br />
--> the command line shows 25 as expected, but the sensor samples still with 100Hz. Now i read that i have to safe the settings on the sensor using the sensor ID which is a BSTR. The ID i can get from this function:
<br />
virtual HRESULT STDMETHODCALLTYPE MT_QueryMotionTrackerB(<br />
BSTR __RPC_FAR *bstrDeviceID) = 0;<br />
virtual HRESULT STDMETHODCALLTYPE MT_SaveToMTS( <br />
BSTR bstrDeviceID) = 0;<br />
--> now, what i have done in my program:
<br />
BSTR nDId;<br />
pMT->MT_QueryMotionTrackerB(&nDId);<br />
pMT->MT_SaveToMTS(nDId);<br />
-->The program compiles very nice but when i run the .exe i got this damn error message all the time:
"An exception 'System.NullRefereceException' has occured in MTi.cmd1.exe"
(-->The error is only caused when i use the BSTR function shown above)
I know the problem is this BSTR but i cant help myself. Maybe someone can tell me what i need to do.
1000Thx
chris
|
|
|
|
|
Hi,
Just use CComBSTR instead of BSTR and use CString to convert from BSTR to char* and visa versa.
Regards
|
|
|
|
|
chrigi001 wrote: -->The program compiles very nice but when i run the .exe i got this damn error message all the time:
"An exception 'System.NullRefereceException' has occured in MTi.cmd1.exe"
(-->The error is only caused when i use the BSTR function shown above)
Problem may not be with BSTR as you think. Can you check if MT_QueryMotionTrackerB gives value correctly. Or which function of them is giving exception.
chrigi001 wrote: "An exception 'System.NullRefereceException' has occured in
Generally, this exception occurs due to accessing NULL pointer as it indicates. See by placing checks at places wherever you can.
|
|
|
|
|
Please tell me how to debug in add_ins;There is some problem in my programme,but i not know how to debug it ;please help!
|
|
|
|
|
Sorry, we dont lease help here
|
|
|
|
|
|
You need to give host exe's path to debug your add-in. And put break point in connecting function of your add-in. i.e. function through which add-in and host application communicate. And follow usual debugging technique.
|
|
|
|
|
Hi all,
I am not too sure where to post my question, so I'll just put it here and hope that somebody will help me. Honestly, I've reached a deadend after searching ALOT. I'll greatly appreciate any help or indication.
The problem:
In Internet Explorer you can right-click on a page and hit "Export to Microsoft Excel". This command is set in the registry (HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Export to Microsoft Excel) to call Excel with "EXCEL.EXE/3000".
The purpose:
I would like to develop a executable with simular functionality: the ability to be called from the internet explorer.
The question:
What is the technology that excel is using? Is it a COM object implementing an interface? How do I do that in .NET? And what on earth is that "/3000" parameter?!?
I've been looking for an answer for quite some time now. Please help.
Rgds,
G.
-- modified at 5:36 Thursday 14th December, 2006
|
|
|
|
|
Did you browse through
http://msdn.microsoft.com/workshop/browser/ext/extensions.asp
_________________________
"When the superior man refrains from acting, his force is felt for a thousand li." Sun Tzu
|
|
|
|
|
Yeap! There is an article there called "Adding Entries to the Standard Context Menu", which is relevant with the case, but unfortunately it doesn't mention anything about how the executable should be made (i.e. what interfaces should implement, how they are exposed etc).
Note that the whole thing works if I set the right-click to call a javascript htm page, but not if I call an executable.
..and I am very curious to find what this "\3000" param is..
|
|
|
|
|
Given the big red text that says "Do not post programming questions (use the programming forums for that)" why did you think posting it here would be a good idea?
Your post in the C# forum was a better choice.
|
|
|
|