|
|
hi every one
how i can change CLSID in mfc activex project?
is it possible?
|
|
|
|
|
Use GUIDGEN.exe and copy the ID that got generated into appropriate place in the .idl file. Rebuild the project once again.
Regards,
Rane
|
|
|
|
|
Hi,
I've just (nearly) completed a module that provides usefull services to my Suite of programs. It spends most of it's time waiting on a pipe for a message. It is written as a Dlg based MFC App, but it never gets as far as showing the Dialog. All relevant Code is called in CWinApp::InitApp() It has no output, All output is sent back to the Client over a Pipe, only if things realy screw up, does it write output to an Event file. What do I do to have this app started as part of the system startup, and what do I do to start this Not as a Running App, but as something that sits in the sys tray. My Target Environment is Windows XP. Vista Restrictions are not an issue here.
Regards,
Bram van Kampen
|
|
|
|
|
Bram van Kampen wrote: What do I do to have this app started as part of the system startup
You can place a shortcut in the Start Menu, in Programs->Startup.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Yes,But
That will start it as an App, not in the SysTray.
That's hat I've been doing sofar.
Not an answer to my question.
Bram van Kampen
|
|
|
|
|
I don't think it's so. AFAIK being in the system tray has nothing to do with how the process is started. Skype for example goes to the tray even if it's started by double-clicking it's icon. So does Vmware and Process Explorer.
Anyway, try: this article[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
|
Hi all, been spending hours trying to add the registry value:
key = HKEY_CURRENT_USER\Software\Borland\ETM\10.0
subkey = "Left"
DWORD = 00000001
I mean, I've tried like hell, for hours.. come across lots of tutorials and code examples yet to find anything that works. I've compiled and tried code that has no errors yet when run just does nothing. it's driving me crazy!
Is there no way to do this?
thanks for any help!
|
|
|
|
|
Did you try to debug it?
Bram van Kampen
|
|
|
|
|
Other Thought,
What Mechanism or Means are you using to set it.
Regards
Bram van Kampen
|
|
|
|
|
|
justhere19 wrote: Is there no way to do this?
Yes, there is a way.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I'm trying to create a class where one of the member variables needs to be an array of variable size.
"Great" thinks I, "Vectors are nice". Unfortunately I can't use a template within a class definition.
Any suggestions? Char or unsigned int data is fine.
|
|
|
|
|
You could make the member variable a pointer then reallocate the memory when you need to with realloc() .
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
Never mind Vectors, Templates are not omnipotent. The classic way of dealing with this is, to use a member_pointer to the data Object. Set this pointer to 'Empty'(whatever this means in your case) in the Class Constructor. If the data object has to grow dynamically, you want to provide for this in it's declaration and definition, for instance by an AddItem(...) type of function. You can also write Load(..) and Save(...) functions so Load or Save from or to Disk (Sorry, Persistent Storage)
regards
Bram van Kampen
|
|
|
|
|
I can use CArray as a member variable without having to write any of my own support functions.
For some reason vector wouldn't compile - yes I did have the include.
|
|
|
|
|
Trollslayer wrote: For some reason vector wouldn't compile - yes I did have the include.
This compiles fine:
class MyClass
{
public:
MyClass() {}
~MyClass() {}
private:
vector<string> m_vectNames;
};
void main( void )
{
MyClass m;
}
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Trollslayer wrote: Unfortunately I can't use a template within a class definition.
Why not?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
As I said above
who can give me a example
I have some confuse about implementation of interface in C++
Lots of people gave me a variety of advises
such as multiple inheritance
Thanks a lot
|
|
|
|
|
I'm afraid this is to general question worth of a full size article. Give some more specific problem which folks could dispute on.
|
|
|
|
|
york528 wrote: I have some confuse about implementation of interface in C++
What kind of interface? a graphical USER interface?
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
Hi
i want to export my cookies from IE to a text file like what exactly IE doing and how import cookies functionality working
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
hi,
i am developping an mfc application than need to handle a large amount of data.
my PC have 3Gb of physical RAM (i am using only 700MB of it).
I can not understand wy i can´t allocate more than 400 continus Mega bytes with new[] or malloc.
like this: short *buffer = new short[200000000]; or short *buffer = (short*) malloc(400000000);
I do not know if there is something to do with heaps size ??
Thank you for your help.
|
|
|
|
|
Have you tried a Win32 function like LocalAlloc() or GlobalAlloc()?
Also, 400MB is 400 x 1,024 x 1,024 = 419,430,400 bytes, not 400,000,000 bytes.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|