|
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
|
|
|
|
|
okay... skipping the ctype.h and regular expressions libraries, i've typed out a quick, simple example that shows how to validate a users input. It allows you to use cin.getline() and shows how to convert ASCII to int. I didn't intend to write it to do your homework but its more than sufficient for you to figure how to apply the basics to get your assignment done, and you really shouldn't use as is for any decent professor will dock you points for not writing better code - like I said... just to give you some insight. Good Luck
<br />
#include <string.h><br />
#include <iostream.h><br />
#include <stdlib.h><br />
<br />
<br />
bool ValidateNumericInput(char* psBuf);<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
char sBuf[255];<br />
do<br />
{<br />
cout << "enter a number" << endl;<br />
cin.getline(sBuf, 255, '\n'); <br />
}while ( !ValidateNumericInput(sBuf));<br />
<br />
int iConverted = atoi(sBuf);
cout<< endl << endl << ++iConverted;<br />
return 0;<br />
}<br />
<br />
<br />
<br />
bool ValidateNumericInput(char* psBuf)<br />
{<br />
for (unsigned int index = 0; index < strlen(psBuf); index++)<br />
{<br />
if( psBuf[index] < 0x30 || psBuf[index] > 0x3F )<br />
{<br />
cout << "'" << psBuf << "' - is an invalid entry" << endl << endl;<br />
return false;<br />
}<br />
}<br />
<br />
cout << "input was all numbers" << endl;<br />
return true;<br />
}
<br />
<br />
<br />
Of all things I've lost... I miss my mind the most
-mjf
|
|
|
|
|
Hi everyone,
I am writing a custom exception class that inherits from STL Exception class and I want to put it in a DLL. However, when I derive my class from std::exception and compile it as a DLL, I get the following warning.
warning C4275: non dll-interface class 'exception' used as base for dll-interface class 'SException'
Do I have to export the std::exception class as well? How can I do that?
Thanks for any help,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
P.S: the class seems to work fine, but I just want to get rid of this error message.
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Hi all,
Did any body used InetCfgClassSetup::Install to install network component automatically in VC++?
I tried this interface but failed. But the INetCfgClassSetup::SelectAndInstall() works fine.
Can any one give some clue?
Why? I can not find description about the failure.
Thanks
Laura
|
|
|
|