|
I just checked the help of regsvr32 but I never tried this myself.
I think if you pass "/s" as a commandline parameter to regsvr32, it will no display the msg box (silent mode). Just try it and tell me if that works, I would be interested.
|
|
|
|
|
You are correct - the usage is:
Usage: regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname
/u - Unregister server
/s - Silent; display no message boxes
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
every thing work fine
Thanks a lot.
|
|
|
|
|
You can take the help on command on command prompt by typing the command followed by "/?".
eg. dir /?
Regards,
Paresh.
|
|
|
|
|
Is this legal:
char *text;
text="";
text="hello";
It's been a long time since i had to do with strings... (no alternative wanted, this is pure C without any libs)
|
|
|
|
|
It's legal. text first points to an empty string, and then to a "hello".
Just don't attempt to change the string that text is pointing to
|
|
|
|
|
IMHO, it is kinda legal - constant strings usually use constant memory, but you are assigning them to a non-const pointer.
That code will compile on lots of compilers, if that means "legal" to you.
Remember that a pointer and an array are two different things - a pointer points to a location in memory (which may or may not be valid), while an array IS a valid location in memory.
Since your pointer is not set up (initially) to point to any valid memory, you could not strcpy(...) into it without risking a crash or other problems.
char *text;
text="";
text="hello";
char *text;
strcpy( text, "some string" );
char textarray[ 64 ];
char *text = textarray;
strcpy( text, "some string" );
strcpy( textarray, "another string" ); Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Oh yes, that's it. Thanks James.
|
|
|
|
|
Related topic! Ofcourse another "root"
James, Imagine I'm initializing a char-string array statically like :
char chArray[MAX_LEN][MAX_LEN]={"ONE","TWO","THREE".....};
This being declared/defined globally makes no issues. Now I want this be wrapped up inside a class. and still wanting to do it in a single line. like the above. You cannot certainly init it inside a class' declaration.
and if you take this to the constructor, you would lose the declaration(data memeber!) inside the class. so how to go? Should I use refs inside the constructor?
|
|
|
|
|
VuNic wrote: char chArray[MAX_LEN][MAX_LEN]={"ONE","TWO","THREE".....};
That still creates a single linear block of memory, and the indexes are just calculations to index into it. So you can still allocate all of it in one shot (size == MAX_LEN * MAX_LEN), and still use multiple bracket operators to get specific memory locations and initialize those locations. You could (theoritically) initialize all of those locations them on a single line, although not a single statement.
But then again I might not be understanding your question correctly...
If you need to "hide" access to chArray , you can place it into a namespace and then have the class manipulate it in that namespace...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
I want to know, after registration of COM server object to windows and if i want to ship that object to other machine, whether that object will carry registration information(e.g. CLSID registered with that object) or not?
If it is not carring this information then is another CLSID generated after i installs that object to other machine than the CLSID that of previous machine?
If it is true then how windows maintains GLOBAL UNIQUE IDENTIFIER for that COM object.
|
|
|
|
|
sachinjegaonkar wrote: GLOBAL UNIQUE IDENTIFIER
Here[^] is some information on this topic.
|
|
|
|
|
A GUID comprises of information taken from the resources on your machine, however the algorithm for creating GUID's is criticized worldwide for the way it is implemented. Every machine has a network card MAC address. This network cards MAC address provides the basis of creation of GUID. Then the algorithm uses some other details to create a unique ID. The ID is itself not guaranteed to be unique but the probability of two ID's to be same is very low.
The CLSID does not change for a object from machine to machine. It remains the same.
I hope this helps you.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi
COM server's CLSIDs are inside them.
these CLSIDs are set with the COM server when it is developed.
So it is developers work, When any body installs a COM server
that CLSID which is embed inside the COM server is written in the
registry of the computer where that server is being installed.
|
|
|
|
|
Hello all i have made a sdi application having view derived from CFormView Class. In that class i have made a list control. I have also made ui thread which performs certain task and then has to return some CString and int values using which we fill our list control. now i want to know how do i pass these values to my list control class.
Can anybody please tell me the way with the code
thanks in advance...
|
|
|
|
|
neha.agarwal27 wrote: now i want to know how do i pass these values to my list control class.
Allocate them on the heap in the view class. Pass that address to the thread.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
can you please tell me how to code for them...
|
|
|
|
|
See this article, about 1/4 way down.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
As David said:
Create your variables on the heap, using the new operator.
MyClass *a = new(MyClass);
Then, when you create your thread, pass the pointer (in this case *a ) to the thread as an argument. After processing data in the thread, you can assign them to *a , and then close the thread.
|
|
|
|
|
Hello,
I have a list box using CListBox class in which I want to select multiple choices in the list box. But how do I get all the strings selected in an array.
The documentation of CListBox tehre is no function to get multiple strings.
The GetSelItems() function gives multiple ints then What should I do.
Thanks
Prithaa
|
|
|
|
|
prithaa wrote: The GetSelItems() function gives multiple ints then What should I do.
Those are the indexes of the selected items.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
Thanks,I overlooked the docs.
Prithaa
|
|
|
|
|
prithaa wrote: Thanks,I overlooked the docs.
Now THAT is something that is just begging to be in a signature...!
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Mornin' James
Mark Salsbery
Microsoft MVP - Visual C++
"Thanks,I overlooked the docs."
|
|
|
|
|