|
I really must take my own advice, and test everything before posting suggestions.
|
|
|
|
|
|
Hi,
I want to open 2 dialogs at a time.For first one, im using domodal function. Inside the first dialog,im calling create function to open second dialog.
the code is executed successfully.Is not showing any error. while running the application,its not showing the second dialog.Can anyone please tell me whether this procedure is correct?
Thanks,
modified on Thursday, January 7, 2010 2:06 AM
|
|
|
|
|
from where you invoking second dialog? if you are invoking second modeless dialog box after first one, then it not going to work as DoModal is modal call.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
im invoking second dialog inside Initdialog() function of first dialog.
|
|
|
|
|
Check if "visible" is true for your second dialog's resource (properties panel in resource editor), if no, then set it to true and try, if that for some reason doesn't work, then call ShowWindow(SW_SHOW) on your second dialog after creating it. Does this help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi, How is the parent for the model less dialog?
|
|
|
|
|
Can we implement audio visualization using MCIWnd Functions.Thanks in advance.
|
|
|
|
|
I am working with visual c++ and i am using three bitmap buttons.I want my all buttons to change their position multiple times when i click only one of them???I donot know how to do this???can any one send me the code in visual c++???
|
|
|
|
|
Just use MoveWindow [^]
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
While converting some of my old dll which is currently compiled in VC6 and is also running successfully.
VC2005 compile is throwing compiler error for this piece of code :-
string MyReturn()
{
return string(reinterpret_cast<const char *>(vec.begin()), vec.size());
}
here return type string is STL::string and vec is stl::vector of type unsigned char and i am receiving following error :-
error C2440: 'reinterpret_cast' : cannot convert from 'std::_Vector_const_iterator<_Ty,_Alloc>'
to 'const char *'
with
[
_Ty=unsigned char,
_Alloc=std::allocator<unsigned char>
]
Conversion requires a constructor or user-defined-conversion operator,
which can't be used by const_cast or reinterpret_cast
Does anyone know or can give direction to solve above problem, i have tried many way myself, was successfull in using _myfirst member of vector to resolve the problem, but it started giving some other problem.
Thanks in advance
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Use another string constructor.
return string(vec.begin(), vec.end());
|
|
|
|
|
Nope not working :-
error C2665: 'std::basic_string<_Elem,_Traits,_Ax>::basic_string' : none of the 13 overloads could convert all the argument types
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I tried this first before replying to you and it is working fine.
I used Visual Studio 2008
Here is what I tried -
vector<unsigned char> vec;
vec.push_back('A');
vec.push_back('B');
vec.push_back('C');
string s(vec.begin(), vec.end());
|
|
|
|
|
«_Superman_» wrote: I used Visual Studio 2008
Apology, I am using VC8 Aka Visual Studio 2005
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
It seems the vector holds unsigned chars while the string holds char.
Try:
string((const char*)&vect[0], vect.size());
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hi,
I want to show the rows on dialog box, based on data coming from database.However I can't use list control. Could you please let me know how to display in this scenario.
Thanks
Pankaj
|
|
|
|
|
itkid wrote: I can't use list control.
Why not ? does that include listbox and list ctrl?
If it's simple textual data, you can use a multiline edit box.
M.
This signature was proudly tested on animals.
|
|
|
|
|
Nope he can't use multiline edit control, his problem is solved now, he solved it by generating the control on runtime!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All
How can i convert data from DVD to CD?Plz give me logic or link.
Thanks in Advance
|
|
|
|
|
Well, yours is a bad question.
Roughly speaking, from the programmer point of view (you know, this is a forum for programmers), there's not a big difference between a DVD and a CD (apart of their capacities).
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]
|
|
|
|
|
Since you are located in the US (according to your profile) I can't pick up your brainwaves and read your mind because the distance is too great.
Therefore, you'll have to re-phrase your question and/or eleborate on what you are trying to achieve.
|
|
|
|
|
Michael Schubert wrote: Since you are located in the US (according to your profile) I can't pick up your brainwaves and read your mind because the distance is too great
He he he... are you one of victim of google brainwave software!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I have used VC6++ for several years. I am thinking about getting Visual Studio 2008. A friend of mine has it and I was playing around with it. I have a couple of simple quesitons.
I didn't see any option to create an exe file with static libraries. I saw where you could create installation packages but I like the ability to create a standard exe where the user doesn't have to install anything. Can this be done with VC++ 2008?
Also, will I be able to install Visual Studio 2008 without it breaking the Visual Studio 6?
The reason I am considering 2008 is because I cannot run VC6++ in debug mode when linking against the latest WinDDK release. Apparently that breaks debug mode.
Thanks in advance.
Ray
|
|
|
|
|
2buck56 wrote: I didn't see any option to create an exe file with static libraries
There is option to staticaly link the MFC and CRT with the exe. Ttake Project->Properties->Use of MFC
2buck56 wrote: but I like the ability to create a standard exe where the user doesn't have to install anything
If you put the necessary dll's in the same folder of your binary, you dont have to install anything special. isnt it?
2buck56 wrote: Also, will I be able to install Visual Studio 2008 without it breaking the Visual Studio 6?
Ya. It wont break anything of visual studio 6. I have vs6, vs2005 and vs2008 installed in my machine
|
|
|
|