|
A suggestion. Stuff your local msxml.h inside a namespace when #including it:
namespace Old
{
#include "msxml.h"
}
and then explicitly specify the namespace when using the structures out of your local file - e.g.
Old::XMLDOMDocumentEvents events;
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I'll have to give that a try -- will try to get to it later this morning -- working on a different project at the moment!
|
|
|
|
|
Stuart -- thanks. Using the namespace seems to have worked (at least, it got rid of the compilation errors and let me build the project).
Thanks folks for all of the help!!!
|
|
|
|
|
Hi All,
Please let me know whether we can call functions of a win32 dll from a ASP.Net Web Page.
Regards,
Ashwath Hegde
|
|
|
|
|
|
Hello,
I am creating an application that is stylistically similar to outlook express. I'd like to be able to create header or banner images, with anti-aliased text that can be changed dynamically. They would be displayed in the MainFrame, and would describe the nature of the current view (in outlook express, these are Inbox, Outbox, Sent Items, etc).
At the moment I'm simply using CBitmaps that load bitmap resources.
I guess the way to do this would be to create a class that inherits from CStatic or CBitmap, and uses GDI to draw the anti-aliased text. I'm at a bit of a loss as to how to proceed though - should I use an existing Codeproject class, or roll my own? My requirements really are simple - I want anti-aliased white text across a plain background, as a drop in replacement for my existing CBitmaps, that looks like outlook express.
Regards,
Sternocera
|
|
|
|
|
i am working in visual C++ and have installed the LEDA library. i have added the graphwin.cpp file provided during the installation. What i get know is a graph editor window called graphwin 1.8. using this graph editor i can create a graph with any number of nodes and edges. it also provides me with a built in menu bar with options like file, layout etc. MY DOUBT IS how can i make say for instance a button, which once clicked by the user asks for specificing the amount of traffic...please please help if you have any idea about this...thanks..!!!
|
|
|
|
|
Hi All,
Please let me know whether we can call functions of a win32 dll from a vb.net application.
Regards,
Ashwath Hegde
|
|
|
|
|
Yes, we usually can.
(see, for instance, here [^]).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes you can, follow these two steps.
Step 1: You have to declare this DllImport attribute which allow specifying the name of the dll which contains the method.
Step 2: Then you have to specify the signature of the API, after which you can call the method passing the correct parameters.
As for example:
[DllImport("User32.dll")]
static extern bool MessageBox(IntPtr hWnd, string lpText,
string lpCaption, uint uType);
IntPtr hWnd= this.Handle;
MessageBox(hWnd, "Hi", "Click Me", 0);
hWnd is the handle of the form.
|
|
|
|
|
Thank you very much for the answer.
|
|
|
|
|
I am looking for 8bit checksum algorithm for my 15W packet.
Thanks!!!
|
|
|
|
|
resolvequestion wrote: I am looking for 8bit checksum algorithm
Does this help?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
uhm...Adding the f*ing bytes?
(*) fashinating.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
hi,
i need to have the right cursor position , does not matter which font size is being used,
for example if the ::GetCaretPos(lpCursorPos) gave me lpCursorPos-> y = 4
when the font size was 10 it must also give me 4 if the font size is changed to 72,
please help.
Thanks.
|
|
|
|
|
Ok, so what's the problem?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
the problem when i change the font size, i get another y coordinate and i need to have the same coordinate
for all font size from 8 to 72 , is this clear now?
|
|
|
|
|
Have you tried GetSel() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
i am using CRichEidtView Class it does not have GetSel(), i need to get the font hight which is NOW used to display the text and every time this font size changed i must get the the actual font size , textMetric may be help but i need to initalize a CClientDC or CDC , in CRichEditView Class this diffecult.
|
|
|
|
|
richEditView.GetRichEditCtrl().GetSel
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
okay this sounds good i will try thanks.
|
|
|
|
|
susanne1 wrote: i am using CRichEidtView Class it does not have GetSel()...
Sure it does.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi Guys,
I can't seem to find any articles on how the OS Mutex's behave if they are not closed. I'm looking to use a mutex handle to check whether there are instances of various applications open prior to running an installer, but one of the apps is a C++ app, and in the event of a catastrophic failure, it may end a process without releasing the underlying Mutex.
What effect would this have on the system? Would the Mutex state be invariant, or does ending the holding process free the mutex as well?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Please use the documentation of CreateMutex[^] as a reference.
The mutex will be automatically released when the process terminates.
Here is a snippet from the documentation -
The system closes the handle automatically when the process terminates. The mutex object is destroyed when its last handle has been closed.
The documentation makes some recommendations to check for application instances.
Here is a snippet that explains this -
If you are using a named mutex to limit your application to a single instance, a malicious user can create this mutex before you do and prevent your application from starting. To prevent this situation, create a randomly named mutex and store the name so that it can only be obtained by an authorized user. Alternatively, you can use a file for this purpose. To limit your application to one instance per user, create a locked file in the user's profile directory.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|