|
check out NSIS, made by Nullsoft, the Winamp people. I haven't used it personally, but I bet it's pretty easy to learn and powerful because it's a pretty widely used free installer.
|
|
|
|
|
If you only want to create a setup file for your application , you can use the tools about setup , e.g "Installer VISE" . If you want to write a tool about setup , you should to have a long about step to step base of dialog .
e.g
http://www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=317[^]
sorry for my poor english .
|
|
|
|
|
|
I'm working to let the program know the column No. which user right-clicked the ListView in the HeadCtrl area. There is HitTest() method in CListCtrl class to determine the item No. for a given position, but I can not find the same way in CHeadCtrl.
Can anybody tell me what should I do?
Lisoft
|
|
|
|
|
\\.........
ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnClick)
\\.........
void CSortListCtrl::OnColumnClick( NMHDR* pNMHDR, LRESULT* pResult )
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
const int iColumn = pNMListView->iSubItem;
*pResult = 0;
}
|
|
|
|
|
Hi,I have made a single document MFC application in VC++, in which several items may be drawn using toolbar(same as MS paint).But the problem is here: I want to make one of the items in such a way that when a user draws (selecting from toolbar)it in drawable area and clicks or double clicks (preferrable if double right click is implemented)on it, another document opens in which the user can also draw using the toolbar as it occurs for the root document.Here also if the specified tool is selected from toolbar and drawn in the child document (i.e. drawable area ) and double right clicked it opens another child document of it and so on..
Again ,if saved ,all the documents (i.e. main document,child document,next child document,...) must be saved and when opened the main document ,it should take care of the rest i.e. when double right clicked on the specified item which was drawn,the corresponding child document should be opened from repository and so on..
There may be several such item drawn in a single document.Is it possible not to open the child documents from repository?
How could I do the above? Please help me step by step.
|
|
|
|
|
I have a function declared like this: bool CSerialControl::DoCommPackage (DWORD dwBlockTime, void *lpvOutputData, unsigned int uiOutputLength, void *lpvIncoming, unsigned int uiExpectedInputLength) { ... }
When I call the function, I have this:
char buf[70];<br />
if (classData->m_serialPort->DoCommPackage(INFINITE, NULL, 0, buf, 70)) { ... do something useful ... }
It gets the right return value, true under the proper circumstances, and does something useful, but in the useful part, the buf character array is unchanged from when it was allocated before the if statement. I don't get why it's unchanged, am I missing something or what? Thanks, Nate.
|
|
|
|
|
bool CSerialControl::DoCommPackage (DWORD dwBlockTime, void *lpvOutputData, unsigned int uiOutputLength, void *lpvIncoming, unsigned int uiExpectedInputLength){
char * p = (char *)lpvIncoming ;
//lpvIncoming is replaced by p
}
e.g
int FuncA(void * lp , int iCount )
{
char * p = (char *)lp;
memset(p,0,iCount);
strcpy(p,"this is a test");
return 1 ;
}
...............................
char str[70];
FuncA(str,70);
|
|
|
|
|
thanks, didn't know I had to recast it, thought I could just assign the pointer to the data to the pointer to the output and be done with it.
|
|
|
|
|
Is there any library to generate gantt charts?
|
|
|
|
|
I did a search a while ago.
The closest i found was:
http://ganttproject.sourceforge.net/[^]
It's an open source java app for project management.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
thanks!
|
|
|
|
|
hi every one. I've got this problem for a long time, but have not find a solution.
any one help me!!!.
I want to detect an other Computer on my Local Network are accessing my Computer, and make a warning ...
waiting a reply....
thanks
|
|
|
|
|
Hello, I'd like to know how i can insert the current date and time into a CRecordset table(SQL Server) , I need to insert the date of the server not the one of the computer. I think the getdate() function from sql might work and how?
|
|
|
|
|
jmbz84 wrote:
I think the getdate() function from sql might work and how?
It might work. Try set the default value as getdate() .
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
SQL "insert into table(aa) values(getdate()) " .
|
|
|
|
|
|
Michael Dunn wrote:
SHMessageBoxCheck
As long as you don't have to support anything prior to Win2k...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Note Do not confuse "Do not show this dialog box" with "Remember this answer". SHMessageBoxCheck does not provide "Remember this answer" functionality. If the user opts to suppress the message box again, the function does not preserve which button they clicked. Instead, subsequent invocations of SHMessageBoxCheck simply return the value specified by iDefault
Note The default button displayed by the message box should agree with your iDefault value. The lack of support for the MB_DEFBUTTON2 flag means that iDefault should be set to IDOK if you have specified the MB_OK or MB_OKCANCEL flag. The iDefault value should be set to IDYES if you have set the MB_YESNO flag.
Sounds very limited, but certainly useful if you can live with the limitations. As a user I would expect the message box to remember the answer I gave it for every future invocation, not default to 'Ok' or 'Yes' next time the messagebox should have popped up.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
PJ Arends wrote:
As a user I would expect the message box to remember the answer I gave it for every future invocation, not default to 'Ok' or 'Yes' next time the messagebox should have popped up.
That shouldn't be too hard to do. Just check the given registry key for whether or not the user has specified to skip the dialog box, and use their given answer as the default. A little more work, but certainly less than writing the whole darn thing yourself
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
PJ Arends wrote:
As a user I would expect the message box to remember the answer I gave it for every future invocation
You can pass some sentinel value for the iDefault parameter (that is, not IDOK or IDCANCEL or any of the button IDs), that way you'll know when the "don't show again" box was checked.
--Mike--
LINKS~! Ericahist updated! | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
I'm looking for a way to obtain the size of a fixed disk on a computer. I cannot use the GetDiskFreeSpaceEx function in windows.h as at the time my application will run, there is no guarantee that the drive will have an associated drive letter (i.e. new HD fresh out of the package, is not partitioned/formated). I also cannot use the function call because I need the disk size, not the partition size. The only way I know to obtain this information, would be to get it from the BIOS, or from the HD. Anyone know a way to do this? I'm running into a wall here.
Thanks in advance for any help.
|
|
|
|
|
HI. Is there a way how to create 2-dimmensional dynamic array of pointers ? Thanks in advance.
|
|
|
|
|