Search:
Type: Posts; User: DanielK
Search:
Search took 0.48 seconds.
-
July 31st, 2001, 10:53 PM
COM doesn't know what a static function is. It always calls member functions on a class. Because of this, the easiest thing to do would be to make the function from static to non-static.
Got a...
-
July 31st, 2001, 10:50 PM
No. *.REG files can only create/modify registry values. As VGirish stated, you should use RegDeleteKeyEx(), to delete a registry key. The key you are deleting mustn't have sub keys, so you might need...
-
July 31st, 2001, 10:46 PM
Small correction, you should use the retval keyword as well. This way applications such as VB will actualy make the method look like it is returning the out parameter:
HRESULT MyMethod([in] BSTR...
-
July 31st, 2001, 02:13 PM
This usualy happens when you don't have enough space on your hard disk(the drive in which the OS is). Windows uses a thing called virtual memory. Even though your computer might have 64MB of RAM, MS...
-
July 31st, 2001, 01:45 PM
You can't. COM wasn't built to use C++. It is made easy with C++, but languages such as C, VB, VBSCRIPT, etc... have no knowledge of c++ constructors/destructors. Instead of relying on a...
-
July 31st, 2001, 01:42 PM
Every one has MSDN. Check out my signature:
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
...
-
July 31st, 2001, 01:32 PM
Well, the first thing you should check out is this:
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=275212&page=0&view=collapsed&sb=5&category=
It describes something very...
-
July 31st, 2001, 01:28 PM
strClientName.MakeLower();
strClientName[0] = toupper(strClientName[0]);
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at...
-
July 31st, 2001, 01:21 PM
char str[] = "This"
"Is"
"A"
"Multiple"
"Line"
"String"
"In"
"VC++";
-
July 31st, 2001, 01:14 PM
Of course you need to set the range of the progress bar. Also, instead of using CWnd and SendMessage, you can cast the CWnd pointer to a CProgressCtrl, and use it's member functions such as...
-
July 31st, 2001, 01:09 PM
No other way. But what do you have against going through all the directories and checking the file sizes? Using a recursive function, it'll be 10-15 lines of code, Maximum. Even if there was a...
-
July 30th, 2001, 02:26 PM
When you close a process, the OS is responsible for cleaning up what the process allocated. In an environment where all process share the same address space this is hard and might be impossible, but...
-
July 30th, 2001, 10:00 AM
And the problem is?? When you call SetTimer you get to pass it an ID for the timer, and when your OnTimer function is called it gets the ID of the timer that triggered the event.
Got a question?...
-
July 30th, 2001, 09:55 AM
Check out CEdit::LineFromChar(), just pass it the index from GetSel().
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at...
-
July 30th, 2001, 04:17 AM
You'll need to give the static control a unique ID: for example IDC_STATIC1, then use the following code, after putting in the new position as a parameter to move window....
-
July 30th, 2001, 04:06 AM
http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0597/c++0597.htm&nav=/msj/0597/newnav.htm
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be...
-
July 30th, 2001, 12:45 AM
Change
template <class CDataManager, class CMap> CMapManager : public CDataManager
{
to
class CMapManager : public CDataManager<CMap>
{
-
July 30th, 2001, 12:41 AM
Sorry, I was a bit unclear, in the dialog editor, after you double cclick on the dialog in the resource tab.
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and...
-
July 29th, 2001, 03:38 PM
Use the Microsoft Web Browser ActiveX control. Right click on the dialog in the resource editor and choose Insert Active X control. Associate a member variable with the ActiveX control, and use it's...
-
July 29th, 2001, 02:30 PM
Sometimes even getright can't get the size.
Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
...
-
July 29th, 2001, 02:27 PM
check out my previous reply:
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=274430&page=0&view=collapsed&sb=5
Got a question? try looking it up in MSDN first. Msdn comes with...
-
July 29th, 2001, 02:26 PM
The process list displays: Processes! By making your application part of someother process, the application can't be terminated on it's own. How can this be done? Using the WriteProcessMemory and...
-
July 29th, 2001, 02:14 PM
#include"iostream.h"
#include"fstream.h"
class Info
{
public:
int old;
//-----------------
//The string must have space allocated for it. When you have an array that is a member...
-
July 29th, 2001, 02:08 PM
http://www.codeguru.com/dialog/toolbars.shtml
http://www.codeguru.com/dialog/PlacingAToolbarOnADlg.shtml
http://www.codeguru.com/dialog/dlgtoolbar.shtml
Got a question? try looking it up in MSDN...
-
July 29th, 2001, 02:01 PM
Think about it for a second. When you use DDX, the control is implicitly created(in the dialog template), all you have to do is connect a CWnd derived class to it using the DDX function. When you...
|
Click Here to Expand Forum to Full Width
|