|
|
It was optional no coercion because I didnt use of link for that site.
|
|
|
|
|
While structure enables us treat a number of different variables stored at different in memory , a union enables us to treat the same space in memory as a number of different variables. That is a Union offers a way for a section of memory to be treated as a variable of one type on one occasion and as a different variable of a different type on another occasion.
Union allocates the memory equal to the maximum memory required by the member of the union but structure allocates the memory equal to the total memory required by the members.
Union allocates the memory equal to the maximum memory required by the member of the union but structure allocates the memory equal to the total memory required by the members.
Example:
union exforsys_t {
char c;
int i;
float f;
} exforsys;
Defines three elements:
exforsys.c
exforsys.i
exforsys.f
Each one with a different data type. Since all of them are referring to the same location in memory, the modification of one of the elements will affect the value of all of them. We cannot store different values in them independent from each other.
Sudhir Kumar
|
|
|
|
|
i am looking for unix file system emulator ...
can you let me know where can i find this?
hi
|
|
|
|
|
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
|
|
|
|
|
Unix systems are proprietary, so, you can't emulate, just can install them on the single hardwares they support.
but maybe you want a linux instead ?
if so, why don't you give a virtual machine a try ?
VMWare is really worth it !
|
|
|
|
|
Did you check VMWare supports Vista 64bit,Virtual Pc doesnt support 64bit but for 32bit it doesnt problem.
|
|
|
|
|
dunno. but i guess it also depends of the hardware of the VM host...
|
|
|
|
|
|
Hi all,
I have made two MFC Dialog Based Application, my problem is when either of a application is running second application does not run. Like if first application is running second application doesn't show up and vica-versa.
Can anbody tell me how to resolve this.
|
|
|
|
|
do you have a kind of "single instance" system which would forbid one application to start if a second instance already runs ?
that could then be a copy/paste mistake on the lock name (so that both application share the same lock, so behave as if they were the same)...?
|
|
|
|
|
Hey thanks you solved my problem.....
i had same mutex name for both the application
|
|
|
|
|
VCProgrammer wrote: Hey thanks you solved my problem.....
i had same mutex name for both the application
happy to heard about it
|
|
|
|
|
|
Did you try debugging your second application to see what's happening ?
Are you in some way trying to restrict your applications to one instance only (and that might interfere on the other one) ?
|
|
|
|
|
Start one application and then try to debug another application.Point out the return location.
Sudhir Kumar
|
|
|
|
|
You are talking about two separate applications, not two instances of same application, aren't you?
Debugger should tell you whats happening.
|
|
|
|
|
as I told him, I suspect he has 2 separate application, but with the same locking (single instance) system, so both apps behave like the same...
|
|
|
|
|
i have made dialog based application in mfc where there are lots of dialogs boxes. now i need to change the name of the application. what is the procedure to do that??
|
|
|
|
|
You can use SetWindowText()[^] to do that.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
You can change "Caption" from dialog properties.
Sudhir Kumar
|
|
|
|
|
you mean you want to change the caption text on the main window title bar ?
or you want to change it in the executable file properties ?
for the caption text, use CWnd::SetWindowText().
for the latter, go to the version section in the resources editor, then edit whatever you want (the app name, its version, etc.)
|
|
|
|
|
come on, that's not serious. my post was the only one to propose 2 different solutions, and I get the lower rating !!?
|
|
|
|
|
if you don't agree with what's been said, just explain your point of view, rather than hidding your butts behind your computer... f*cking looser
|
|
|
|
|
Hey toxcct you need to a PRESERVER on this forum!
|
|
|
|