|
Interaction between services and user-objects is difficult to achieve and also it is not advised that you do it.
Note finally that there is a service property in the "connection tab" in the SCM interface that you may have to enable.
Good luck.
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
My application uses a Word document template to develop a document. There is a table (1 row that I use for the table heading). I iterate through a datatable and add a row to the Word document table for each DataRow.
I would like to add another "heading" row to the table whenever the table crosses over to a new page. I haven't found a way to find page breaks or trap a "page break event". Is it possible to do what I want to do?
Gary Greenacre
|
|
|
|
|
To do that, you mark the header row as such by setting it's HeadingFOrmat property to True. See the documentation[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello
I'm using MS WUA api to update my computer.There are three formats patch(.exe .cab .psf) in my patch list.
I don't know what psf is. and how to install psf file. Most psf format patch files are sp patch For example, windows sp3 ,windows 2003 sp2.
I hope someone can help me answer this question.
Thanks.
Ivan
|
|
|
|
|
bingxuefly wrote: I don't know what psf is.
Try Google.
|
|
|
|
|
I have searched google, but there is no useful information.
|
|
|
|
|
bingxuefly wrote: I have searched google, but there is no useful information.
I find that difficult to understand. When I search Google for "PSF file" it returns a number of hits, the first one being a definition of PSF and other file types.
|
|
|
|
|
I have added two functions to existing COM EXE which runs as Service.
But while calling those functions from another application I am getting unhandled exception like:
Unhandled exception at 0x00000000 in xxx.exe: 0xC0000005: Access violation.
Existing functions are getting called but only new functions are not working.
I have added functions to xxx.idl and implemented in another application by including the header generated after building.
I am trying to unregister old COM EXE but its not.
Please give me clue to sort out the issue.
I am new to COM, please let me know any further info is required to look in this issue.
Regards,
KTTransfer.
modified on Monday, November 2, 2009 5:26 AM
|
|
|
|
|
You have to add this two functions to the end of your interface
|
|
|
|
|
KTTransfer wrote: I have added two functions to existing COM EXE which runs as Service.
You are most likely breaking one important rule of COM: Interfaces are immutable. Once assigned an IID and published, no element of the interface definition may change..
Read more here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi,
Does anyone know how to capture a users webcam video and send it to a publishing point on a server running windows media services ??
Phil.
|
|
|
|
|
I guess you need a Directshow filter graph to do it. :
capture the video, compress then stream it using RTP ...
ActiveX - based solution...no I don't know. (Note that the solution does not need to render the flow locally, the issue is not dependent on some UI technology)
There is the Microsoft RTC (Real Time communication) that may interests you.
It implements SIP protocol so you may give it the address of a media relay point that in turn will broadcast the media data to its subscribers.
Good luck.
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
Hi,
I need to capture the whole desktop frame buffer, process it and then have it displayed again or streamed.
The first questions is really how do I capture the DWM final result of the composition as an image?
Do I need to go down level to the driver layer? OR is there any API that could help me with this?
How does VNC does the job? Can DWM help me directly on this?
If anyone could give me a tip here, that would be wonderfull.
Thanks,
With my best regards,
Nuno
|
|
|
|
|
Wrong forum to post this question.
Anyway, desktop sharing tools like VNC are not very easy to implement.
Basically they split the screen into various sections and only stream the sections that have changed.
You can capture the entire screen using the API HDC hdc = ::CreateDC("DISPLAY", 0, 0, 0);
If hdc is saved to a file you can see the captured screen.
There could also be many other ways to do it.
|
|
|
|
|
I have calling Initialize function with these parameters
Initialize(this->GetDC(),200,200);
Unhandled exception occurred at: m_pBitmap->CreateCompatibleBitmap(pInputDC,width,height);
void Initialize(CDC* pInputDC,int width, int height)
{
CDC *m_pDC;
CBitmap* m_pBitmap;
m_pDC->CreateCompatibleDC(pInputDC);
m_pBitmap->CreateCompatibleBitmap(pInputDC, width, height);
m_pDC->SelectObject(m_pBitmap);
m_pDC->Rectangle(0,0,width,height);
}
This is shown in call stack when exception occurred:
mfc80ud.dll!CGdiObject::Attach(void * hObject=0xb90510f0) Line 1157 + 0x3 bytes
mfc80ud.dll!CBitmap::CreateCompatibleBitmap(CDC * pDC=0x004bf954, int nWidth=336, int nHeight=189) Line 251 + 0x25 bytes
AxGraph.ocx!CGraphCtrl::Initialize(CDC * pInputDC=0x004bf954, int width=336, int height=189) Line 27
|
|
|
|
|
What kind of exception is fired? Access Violation or something with more information?
And this->GetDC() is the DC of your window?
Greetings
Covean
|
|
|
|
|
m_pDC and m_pBitmap are not initialized.
Try
CDC *m_pDC = new CDC();
CBitmap* m_pBitmap = new CBitmap();
m_pDC->CreateCompatibleDC(pInputDC);
m_pBitmap->CreateCompatibleBitmap(pInputDC, width, height);
m_pDC->SelectObject(m_pBitmap);
m_pDC->Rectangle(0,0,width,height);
|
|
|
|
|
Hi:
I'm new to Windows COM programming. I was able to make a 64-bit app call a 32-bit COM server (out-of-process, exe) on 64-bit Vista, but not the other way around, the CoCreateInstance call in my 32-bit app failed with a return code 0x80029C4A (error loading type library/DLL).
Can this be done at all? Basically I just need the 32-bit app to send some request to the 64-bit server, and wait for the request to finish. The server should be able to send back a status code indicating whether there is any error.
Appreciate any help and suggestions.
|
|
|
|
|
You have to create (without /Oicf tag) and register 2 proxy/stubs dlls
First 64 bit and another one 32 bit
|
|
|
|
|
Looking for an easy way or infact any way to pop event for unmanaged code via csharp com interop wrapper.....
Any one knows a good site for c# COM technologies? I have a serious trouble with this issue....
|
|
|
|
|
|
I have to register a type library so I need regtlib or regtlibv12 but they are not on my Vista system? Is there a replacement for them or do I need to find a dodgy download site?
|
|
|
|
|
|
I'm not sure if I'm posting in the correct forum, this is regarding late binding on a custom DLL in C#.
Basically, I have a self-written DLL which I wrapped using TLBIMP.exe.
Now I am trying to map the DLL's events to that of my own form. The events inside the DLL originate from a class.
I have tried almost every solution I was able to Google and nothing works.
Please do not reply to my thread if you have just Googled a solution, I need to hear from someone who has done this before. I've tried Google.
Details:
O.k, I'm going to use simpler names than that of my actual code.
My DLL file is called wrapper_MyDLL.dll and I load it as follows:
System.Reflection.Assembly _assembly = Assembly.LoadFile("wrapper_MyDLL.dll");
I save the Type as follows:
System.Type _classType = _assembly.GetType("wrapper_MyDLL.MyModuleClass");
I save the Class Object as follows:
object _classObject = Activator.CreateInstance(_classType);
Now from this point on I have tried so many different pieces of code to get the event that I'd rather not try to provide my attempted solution.
However, I can give some detail about my DLL.
If I loop through _assembly.getTypes() I get (among other) the following two classes:
* wrapper_MyDLL.MyModuleClass
* wrapper_MyDLL.__MyModule_ReceivedMessageEventHandler
Inside the class wrapper_MyDLL.MyModuleClass, the DLL exposes the following (among other):
Methods:
* add_ReceivedMessage
* remove_ReceivedMessage
Event(s):
* ReceivedMessage
Inside the class wrapper_MyDLL.__MyModule_ReceivedMessageEventHandler, the DLL exposes the following (among other):
Methods:
* get_Method
* get_Target
Properties:
* Method
* Target
Now, how do I go about having that event (ReceivedMessage) fire in a method in my C# project?
If you think you can help and need any more info, let me know.
Kind Regards
|
|
|
|
|
Hi all,
I'using COM and the IWebbrowser interface in a non MFC C++ application to have a preview on MS Office documents (doc, docx, xls, ...) in a frame of my application. Works quite fine, but I'm facing two problems, which I was not able to solve yet (though working on it for 2 weeks... ).
1. I have installed IE8 and MS Office 2007. When I'm showing a Word file (.doc), then all the Word toolbars are shown and active. When I'm showing an Excel file (.xls) with the same Navigate command, all the Excel toolbars are hidden. I want these toolbars generally to be hidden. I've tried several things with the "FullScreen", "TheaterMode" and "Toolbar" commands, but these things don't seem to work with this interface !?
I have also tried the OLE command ExecWB with w->iexp->ExecWB(OLECMDID_HIDETOOLBARS, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
This works fine, but unfortunately this is a toggle command. So I may only execute this command, if the toolbars are already shown, but I found no way to determine whether the toolbars are already shown.
Of course, I could check if I'm showing a Word file, and only then I will hide the toolbars. But I really don't like this extension depending behaviour. So does anyone have an idea to generally hide these toolbars? Or is there a possibility to change some flags in MS Word and MS Excel?
2. Is there a possibility to get to know whether a Word document is modified in my application frame? The problem is: Someone could write something to the Word file in my application window. If he then just closes the window, these modifications are lost. The "normal" MS office dialog, which asks whether you want to save your modifications or not, or just cancel, is not coming, while closing the window. I guess my window is already destroyed before this dialog has a chance to come, so I have to show my own dialog for asking before the window is destroyed. And therefore I need to know if the file has been modified.
I have already installed an event listener via the connection points technique to get the WebBrowserEvents, but I didn't find an event which is good for my needs.
Does anyone have an idea?
Thanks in advance
Alex
P.S. I'm a newbie to these COM things, so please be patient with me
|
|
|
|