 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-founder Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 4.00/5 (3 votes) |
|
|
|
 |
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers, Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 4.11/5 (4 votes) |
|
|
|
 |
|
 |
Hey,
I have an in-proc ActiveX control I developed myself. It does not use the standard .CAB based deployment strategy, rather - I have my own setup program, and my own version checking via a website.
Now, imagine the following:
1. User enters the website with an old ActiveX, which is loaded. 2. Website has JavaScript that loads the ActiveX, tells the user that it is old and moves him to a different page with a download link for a new setup program that contains the new ActiveX. 3. User runs the setup program, but cannot upgrade the ActiveX - the OCX is locked by Internet Explorer.
Note that during step 3 there is NO webpage which uses the ActiveX - the download page has no JavaScript at all, in fact.
Does anyone have any tips as to what I can do in such a situation? Or, better yet, does anyone know how to force Internet Explorer to unload an OCX?
Thank you!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Is there a way to do this without restarting Internet Explorer?
I was thinking of instantiating a specific version of the ActiveX, perhaps via AppIDs. Is this possible?
If I do not have a specific version, I can try and spawn a "generic" ActiveX (with no specific version), and test its version.
Is this feasible?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
How do you measure the performance of your C++ perf-critical code ? Are you relying on automatic profilers or do you resort, for particular reasons, to compile time methods ?
If today, profiling is still an issue to you, then I would announce to you the availablity of easy profiler at Code Project along with source code that you may give it a try for your needs.
URL :
<a href="http://www.codeproject.com/KB/cpp/easyprofiler.aspx">Easy Profiler - Compile-time Profiler for Unmanaged C++</a>[<a href="http://www.codeproject.com/KB/cpp/easyprofiler.aspx" target="_blank" title="New Window">^</a>]
Use the article-forum to raise any issue and I will be glad to help.
Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx
modified on Friday, November 6, 2009 1:52 AM
|
| Sign In·View Thread·PermaLink | 1.00/5 (3 votes) |
|
|
|
 |
|
|
 |
|
 |
message tye changed to "News" instead of "Question"
Easy Profiler : Now open source ! http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
I want to invoke exe(MFC without GUI) from windows service(COM Exe runs as service).
I am using CreateProcessAsUser and trying to invoke, it invokes(when it invokes i am writing log) but not visible in taskmanager.
I doubt that the exe is getting invoked under "SYSTEM" and that is the reason its not visible in taskmanager and nor it works(obvious).
But I want to invoke under "User"(who is logged in).
To do so I tried using LogonUser but it needs username and password of user who is logged in machine. That I cant access.
Please guide me or give me clue.
Requirement is: Exe should run under the user who is logged in.
Regards, KTTransfer.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
What kind of exception is fired? Access Violation or something with more information? And this->GetDC() is the DC of your window?
Greetings Covean
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |