|
The reason why the date is zero is that in VC++ there isn't any default update of the version resource. You MUST do it yourself.
Mr. Mike Woodring has created an Add-In which does this! It's called BuildNum. You can download it from http://www.bearcanyon.com/
// Mike
|
|
|
|
|
How do I manually update the version resource? I don't see anything in the MSDN documentation about setting the Date/Time in the Version Resource.
I have a fairly complicated Version resource in MyProject.rc2, which sets the version number, build flags, and related things in the version resource using the preprocessor, so I don't want to play with a third-party add-in that will have unknown interactions with my own stuff.
If someone could point me to where I could find out how to manually set the date/time for the dwXxxDateTime fields, I'd be quite grateful.
|
|
|
|
|
Has anyone know how to make a toolbar in the scrollbar,like the Microsoft's Word has two toolbar in vertical and horizontal scrollbar.
Thanks.
|
|
|
|
|
I am trying to write a DCOM server application. Some of the interface functions have paramaters that are user defined data types (structs). I have the header files where these type definitions are included in the server .h file included in the .h file of the server .cpp file. When I try to build, I receive the following error that points back to the .idl file:
"Expecting type specification near "data_type".
Any advice on how to remedy this. I am fairly new to DCOM/COM programming.
|
|
|
|
|
Nevermind, I answered my own question.
|
|
|
|
|
I take that back, I still want to be able to pass a parameter from the DCOM server to the client application but do not want to specify the type of the parameter. Is there a way to do this?
|
|
|
|
|
I take that back, I still want to be able to pass a parameter from the DCOM server to the client application but do not want to specify the type of the parameter. Is there a way to do this?
|
|
|
|
|
well the subject says it all. I need to be able to enable/disable/hook the cut/copy/paste commands from the default CEdit control context menu.
thanks ahead of time for pointing me in the right direction.
byron
|
|
|
|
|
You'll need to subclass CEdit and handle the WM_CUT, WM_COPY, and WM_PASTE messages.
|
|
|
|
|
Erik,
Thanks for your response.
I have CEdit subclassed already and I can trap the WM_COPY/CUT/PASTE messages there if I needed to in ::WindowProc. But I want to disable the menu items in the first place.
In a nutshell what I am trying to do is have a custom 'read-only' state in the edit control.
So I would like to be able to disable the Cut/Delete/Paste items of the default CEdit context menu when my control is 'read-only'. That way the user doesn't even have the option of selecting it.
The only thing I can think of is to create my own pop-up menu and look for a right click or that other windows key. Which is do-able, but I'd rather just be able to enable/disable the default context menu items at will.
Any ideas?
Byron
|
|
|
|
|
|
Well, I'd like to know how to disable the focus when
I'm using the arrows key in a dialog box.
If my buttons are "disabled", there is no focus and I
can get the "OnKeyUp" event, but if one or more is enabled,
There is no more "OnKeyUp" event!
Someone has got an idea?
|
|
|
|
|
Handle the PreTranslateMsg function, and check the msg structure for a WM_KEYUP or WM_KEYDOWN event.
|
|
|
|
|
The problem is that I'm using MFC and there is no
PreTranslateMsg function in the App...
Another idea?
|
|
|
|
|
Yes there is. Every window has a PreTranslateMessage virtual function which you can override. It's even in ClassWizard.
|
|
|
|
|
Has anyone have an idea if there is a Windows API to use in order to Enable/Disable the "Start->Shut down ..." menu in the windows task bar.
In my application, to use it, the user have to enter a code or have an access right.
Thanks
|
|
|
|
|
The only way I know of to do this is to use group policies, but I don't think you can change them without logging off and back on.
|
|
|
|
|
If I have a char string that reads, for example: bttlxe\gfx\image.bmp; how do I shorten this so I just have the file name at the end?
I have tried things like split/makepath, but I can't get it to work without a drive. I have also tried reversing the string, finding the first occurance of \\ and then copying to a new string the last 'x' characters, but this aslo doesn't work reliably.
How would you do it? (in C only)
Thanks for any help,
David
|
|
|
|
|
Try this:
char *p;
p = strrchr(YourString, '\\');
if (p) p++;
p is a pointer to string containing a file name.
|
|
|
|
|
You'd locate the last backslash with strrchr() and just copy all chars starting after the backslash to the beginning of the string. Untested code follows.
TCHAR str[] = "bttlxe\\gfx\\image.bmp";
TCHAR* pFrom;
TCHAR* pTo = str;
pFrom = _tcsrchr(str, '\\');
if ( NULL == pFrom )
return; /* didn't find a backslash */
pFrom++; /* skip past the backslash */
/* copy chars up to and including the terminating null */
while ( *pTo++ = *pFrom++ )
{ }
|
|
|
|
|
Hi,
Is there is a reason that i can't see any tool tip appear on a CComboBoxEx.
I create the tool tip with CToolTipCtrl or by sending TTM_ADDTOOL message to combo.
Help me please
|
|
|
|
|
When I create a simple ATL in C++ and use it in an application in Visual Basic, it works fine if I use the "new" statement to create de object. But, if I use "CreateObject"instead of "new", a message appears showing that it's not possible to create the instance.
I tried the "Ole View" tool and saw that the interface was created properly but there wasn't any object.
What's going on?
|
|
|
|
|
Hi,
what is UI element in controlpanel / display properties.
there four tabs back ground, screen saver etc. what is that
UI element?
Thanks,
Koteswara
|
|
|
|
|
That's a property sheet. Each tab is a property page.
|
|
|
|
|
Hello gurus,
How to add one tab (like menu tab) to controlpanel display applet.
like Back ground, screen saver.
Mecaffe3.1.4 version adds one tab to display applet
or window (screen scan). I want to know how to add one tab.
Thanks in advance,
koteswara rao.
|
|
|
|