|
Supriya Tonape wrote:
which OS version U have???
Err... I know you are well intentioned, but this is about Visual C++ installation of MFC libraries; it has nothing to do with the OS...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Amit j Patil wrote:
but when i run setup(or rerun setup) i doesnot get Add/Remove Features
What do you see in the first screen? Do you see options for 'Typical' and 'Custom' installations?
Try going through the Control Panel - Add or Remove Programs, locating your Visual Studio installation there and invoking the setup from there.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
while installing the VS you need to choose to install unicode libs so that you can develop unicode supported application.
-prakash
|
|
|
|
|
but how to select to install unicode libraries?
|
|
|
|
|
I dont exactly remember now, but you need to do custom installation and check for all sub-installation of each option and check unicode libs, by default it is not checked so you dont get the unicode libs.
-prakash
|
|
|
|
|
I have an SDI application with 2 Splitter window pane [(2x1)(rxc)]. The first row is having a view derived from CListView and second is derived from CFormView.
I want to disable the scrollbar in second row containing the Form.
Thanks.
|
|
|
|
|
|
How can I refresh dialog controls when the program CPU usage is %100?
|
|
|
|
|
Safaei wrote:
the program CPU usage is %100?
What task are you performing.. thats making program CPU usage 100%.. try worker threads for cumbersome task...
reda more about worker thread here
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
You don't know if you can refresh your controls. If some idle process is consuming all the CPU cycles, it won't affect your process. If a process with a higher priority consumes all the CPU, your program won't even run..
If it's your application which consumes all the CPU, I suggest you find out which loop is running like crazy and fix it. Users generally don't like it when a application takes all the CPU..
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
How can I change dialog caption in MFC application with programming?
|
|
|
|
|
Safaei wrote:
How can I change dialog caption in MFC application with programmin
Try SetWindowText api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I am using VC++ of Visual Studio .NET.
The problem here is When I create two tool bars and add them to a rebar as follows the two toolbars will be at each side. I want them both to be Left Aligned one after the other.
Note: the very same code works as i want in VC++ 6 of Visual Studio 6.
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1;
}
if (!m_wndClientToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndClientToolBar.LoadToolBar(IDR_CLIENTTOOLBAR))
{
TRACE0("Failed to create toolbar\n");
return -1;
}
if (!m_wndReBar.Create(this) ||
!m_wndReBar.AddBar(&m_wndToolBar) ||
!m_wndReBar.AddBar(&m_wndClientToolBar))
{
TRACE0("Failed to create rebar\n");
return -1;
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1;
}
Thanks.
|
|
|
|
|
Access violation reading location 0x003261b6
is there any specific reason than what we normally knew abt it..
thanks
Supriya Tonape
|
|
|
|
|
Supriya Tonape wrote:
Access violation reading location 0x003261b6
is there any specific reason than what we normally knew abt it..
You tried to access some memory location which is denied for your Program.. Where do u get this Violation i.e. calling which api or function... if function is your own... show the snippet.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
But why that memeory is denied for I m or my pgm is using the memory which is being assigned to use for it...
I was trying to assign one address to void pointer.
Chalo now bye
Supriya Tonape
|
|
|
|
|
Well, you can't arbitrarily assign an address to a pointer and expect it to work. Did you do something like
void *p = (void *)0x003261b6; ?
Let me try explaining why it doesn't work in the simplest way possible.
Every program has something called a virtual address space allocated to it, to prevent one program from trampling over another program's memory. Now whenever you try to access memory, the OS and the CPU conspire to translate the virtual address to the actual physical address. To do this, the OS has to maintain a mapping between virtual and physical addresses and has to know which virtual addresses have been allocated by the program and which have not.
In your case, you're trying to access an address which has not been allocated to the program and that's why you're getting the access violation error. You must consider yourself lucky it crashed straightaway. Imagine the consequences if it worked on your PC, because by some coincidence that memory *was* allocated somewhere else (by the OS or by you), and it crashed right in front a 100 people when you are giving a demo.
Bottom line : Never do the above unless you are dead sure that address has been allocated.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
no I was not doing that...
well, I was doing following thing,
//asign the address to a void PTR
Base = &(FileVersionInfo->dwProductVersionMS);
Before above code I m writing this,
dwVerInfoSize = GetFileVersionInfoSize( szAppName, &dwVerHnd );
cout << dwVerInfoSize << "\n";
if I comment cout stmt my pgm gives me that error.If I uncomment it it works fine.why is that so...I was really confused...
anyways bye. In betwn are U same Senthil who helped me in my final year engineering for XML parser.
thanks
Supriya Tonape
-- modified at 4:38 Saturday 8th October, 2005
|
|
|
|
|
Supriya Tonape wrote:
//asign the address to a void PTR
Base = &(FileVersionInfo->dwProductVersionMS);
It's possible that FileVersionInfo instance went out of scope and consequently got destroyed, but you're still having a pointer to it's swProductVersionMS member. Could you paste the whole function where the problem is happening?
Supriya Tonape wrote:
In betwn are U same Senthil who helped me in my final year engineering for XML parser
In Yahoo Programming chat rooms? Then yes.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
There is another issue if the code is crashing somewhere after the assign. Do you actually access the pointer at some point in time or does it crash when you leave the fn.
|
|
|
|
|
|
Ivan Cachicatari wrote:
How to detect system inactivity?
check is this api of any help GetLastInputInfo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
where i can get manual or tutorial or sample for ms dbgrid control in visual c++?? can someone helpme plz ...
|
|
|
|
|
ive got this program im trying to write and basically its supposed to get an integer and decide if its prime or not prime.
the problem is, i have no idea where to start. i know it involves things like while loops but im not sure how to get it to determine if its prime or not.
can aanybody help?
|
|
|
|