|
Nope (in fact the '@ improvement' is the main reason to leave C++ in favour of C# ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The [i]main[/i] reason? I can think of several more...
|
|
|
|
|
Well, you're right: you may also safely miss the semicolon at the end of a class declaration...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Blasphemy
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
In bad mood, today?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
after copying a specific phonebook file to the standard location the network connections folder doesn't update until a refresh (F5) is forced. I tried this programmatically with the following code:
PIDLIST_ABSOLUTE pidl;
SHGetSpecialFolderLocation(NULL, CSIDL_CONNECTIONS, &pidl);
SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST | SHCNF_FLUSH, pidl, NULL);
CoTaskMemFree(pidl);
Unfortunately this doesn't work. Any idea how to force the shell to update it's network connection folder?
Kind regards, h
|
|
|
|
|
I alse meet this kind of question. I want to ask too.
Is there anyway to force Shell to update "Connections" folder's view?
Thank you.
|
|
|
|
|
Hi,
I have a char array with 2 elemts.
<br />
char c[2];<br />
c[0] = 0x10;<br />
c[1] = 0x06;<br />
I want a string that will hold "1006".
How can I do that?
Thanks.
|
|
|
|
|
|
char str[5];
sprintf(str, "%02X%02X", char[0], char[1]);
«_Superman_»
I love work. It gives me something to do between weekends.
modified on Wednesday, May 20, 2009 2:12 AM
|
|
|
|
|
|
I see a flaw in your code (I supposed supeheroes flawless... ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Oooops.
Ahem! Actually I leave that to the compiler.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
char szData[] = "1006";
or
char szData[AnySizeGreater4] = "1006";
|
|
|
|
|
Good one.
Simple and nice.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi ,
I have created an Application in which I am showing a dialog box on a button click. The window is getting populated but it is not focused when it gets populated. The parant window which was in focus after populating this dialog box ..still focused..
Which property should i set so that my newly populated window will get focused.
|
|
|
|
|
How are you showing the dialog box?
Is it modeless, model or system modal?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
«_Superman_» wrote: Is it modeless, model or system modal
I need this dialog a Modal dialog box.
I have set the System Modal property to FALSE.
|
|
|
|
|
If using MFC, call the DoModal method, otherwise call the DialogBox macro.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Still my dialog window is not Modal..
I have done this :
m_HPCRWODlg.Create(this->m_hWnd);
m_HPCRWODlg.DoModal();
Please help..
|
|
|
|
|
why do you have to use create function?
just give this
m_HPCRWODlg.DoModal();
in your button. It should work.
|
|
|
|
|
Hi,
Based on the value 'SELECTED' I am trying to do some statements.
The following code doesnt work for the two values of 'SELECTED'.
typedef enum{
APPLE =0,
ORANGE =1
}FRUITS;
#define SELECTED APPLE
#if SELECTED == 1
AfxMessageBox("orange");
#else
AfxMessageBox("apple");
#endif
Kindly help.
Priya Sundar
modified on Tuesday, May 19, 2009 6:04 AM
|
|
|
|
|
#if is a pre-processor directive processed by the preprocessor and enum and AfxMessageBox are handled by the compiler. You cannot mix them this way. What is it that you're trying to do here?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
«_Superman_» wrote: You cannot mix them this way.
Tell me one thing if I replace enum with #define and instead of AfxMessageBox, I define varA, then it compiles.
#define APPLE 0
#define ORANGE 1
#define SELECTED APPLE
#if SELECTED == 1
int varA = 100;
#else
int varA = 101;
#endif
Replacing enum with #define is fine but isn't the definition of varA also handled by compiler only?
I mean why int varA = 101; is ok and AfxMessageBox not?
|
|
|
|
|
I bet you have put that globally. I mean outside of all functions.
You cannot call a function globally unless you are assigning to a variable.
Try this.
#if SELECTED == 1
int varA = AfxMessageBox(L"Selected");
#else
int varA = AfxMessageBox(L"Not Selected");
#endif
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|