|
in resource edit, set the dialog as child.
in coding, create it as modalless with your page as parent.
note: modalless dialog must not be local varable.
includeh10
|
|
|
|
|
See these articles for ideas:/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi!
I have a simple SDI program, with a simple recordset. I want to my toolbar for exploring see and working in Print preview...
How i can do that?
Sorry for my poor english...
Thanks codeprojects!
|
|
|
|
|
i am having trouble with this coding. can any body give me pointers or hints to make it work? here is my code to skip:
struct data{
void open(ifstream&);
char name[30];
};
void open(ifstream& fin)
{
data input;
char temp;
int count=0;
fin.get(temp);
while(((temp!='\t') || (count==0)) && fin)
{
if(temp!='\t')
{
input.name[count]=temp;
count++;
}
fin.get(temp);
}
input.name[count]='\0';
cout<
|
|
|
|
|
I'd like to add a thumbnail view to the project:
http://www.codeproject.com/file/CFileFinderEx.asp
as written, it is trivial to change the search list to show details, small or large icons, or as a simple list. thumbnail view is another matter.
can someone set me on the right track? I would describe my programming experience as beginner.
Thank you.
|
|
|
|
|
|
I have text file "1.txt" and there are these below hex number in text file
"3688D9CC844E3F755"
If I want to add another hex number like "12B5B46CA713" at new line. How to write code to do that? Thank you.
|
|
|
|
|
You can use CreateFileMapping() method or the ReadFile functionalities from Win32 API. Read more in MSDN!!!
|
|
|
|
|
|
you can also use CStdioFile to do all these:
CStdioFile file<br />
file.Open(...);<br />
file.WriteString("1e34efad");<br />
file.Close();
-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
|
|
|
|
|
Is there a function in standard C++ library that converts a valid hexadecimal string into an integer? For example:
char sz[] = "0xffff";
DWORD dwDec = SomeFunc(sz);
Of course this can easily be done by writing a function by myself but I'm just asking...
|
|
|
|
|
char sz[] = "ffff";
long lDec = strtol(sz, NULL, 16);
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
I access my statusbar embeded progressctrl as:
(((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_WzdProgressCtrl).StepIt();
I want it to reflect progress as I proceed in a function which itself calls long time consuming functions, several of them. How shall I call Stepit to reflect this progress? Some of the functions belong to other classes, not my View class.
|
|
|
|
|
if you have time consuming functions , its good to put them in a new thread
maybe you need to send a WM_PAINT or call the RedrawWindow of the progress control in order to reflect the changes made by the StepIt(), because if you have a very time consuming function in the main thread, the CPU will not process the windows messages until that function returns (i think)
_______________________________
Portal Imoguia Software Imoguia
MSN:maxsnts@hotmail.com
|
|
|
|
|
Actually, WM_PAINT is a message you never send yourself. RedrawWindow() is the correct way to make a window repaint.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I was having trouble installing msadox.dll and msado25.tlb on the users machine. My app uses both. Can I distribute my app without these two and assume the user will have it automaticall?
Thanks
|
|
|
|
|
I don't think you need the .tlb file. These files are needed at compile-time, isn't?
If I'm wrong, please enlighten me
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
I was using the Visual Basic packager and it included the tlb, so I really dont know...
Appreciate your help,
ns
|
|
|
|
|
no, its not a good idea to assume that the client have msadox.dll
_______________________________
Portal Imoguia Software Imoguia
MSN:maxsnts@hotmail.com
|
|
|
|
|
You can't assume anything about users systems. They may have a version of ADO installed but it may not have the correct version for the interfaces you use.
ADO is a bitch to install, I just redistribute a full copy of MDAC. Saves headaches and heartaches.
Michael
"I've died for a living in the movies and tv.
But the hardest thing I'll ever do is watch my leading ladies,
Kiss some other guy while I'm bandaging my knee."
-- The Unknown Stuntman
|
|
|
|
|
Hi, I need your help plz. I have written a very simple program which prompt a user to enter his name and age. I only want to add some validation so that the user cannot enter numbers when he is asked to enter the name and prevent the user from inputting characters when prompted for age. I am using cin.getline(). Is there any way that i can do that. Please help.Thanks
|
|
|
|
|
Regular expressions would be of use. Boost[^] library implements them for C++.
|
|
|
|
|
you can also consider using the isdigit, and isalpha routines found in ctype.h
Of all things I've lost... I miss my mind the most
-mjf
|
|
|
|
|
Hi Thanks for the replies. You know am very new to C++, can you people please set a small example for me to elaborate on. Thanks
|
|
|
|