|
Why are these messages not important? I think sometimes I can't run the Debugger or build/compile the program because of these messages - unless I am mistaken.
Any insight that you (or someone else) can provide would be great.
|
|
|
|
|
they are unimportant because everyone gets them every time they start a debugging session. VC is just telling you about the DLLs your program is using. you're not expected to have debugging info for KERNEL32.DLL or any of the other system DLLs.
why do you think you can't debug because of this?
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Those are all system DLL's. In order to have debug information for them, you will need to install and debug under a 'checked/debug' version of the operating system. Checked versions are available if you have an MSDN subscription.
Software Zen: delete this;
|
|
|
|
|
I've overrided COleDataSource::OnRenderGlobalData(...) in order to be able to download files that should be returned in this function in the form of CF_HDROP.
The first problem is that I need to wait in this function while the files download so I can provide them in the HGLOBAL. I download using winsock asynchronous sockets so the 'download'-functions return immediately... How do I wait until the download is complete and still be in the function? ( it's in the same thread so I can't just wait? )
Any ideas or comments? I'm quite puzzled over what to do... :\
|
|
|
|
|
i can convert dcm (DICOM) files into jpeg files, but i have no idea how to take into account the windowing/leveling of those dicom files. i don't want to straight up have all the values go through the conversion, i want to display only from a certain range. i know some windowing/leveling algorithms, but applying them to my DICOM files doesn't actually change the data of the dicom file (unless you save them as a DICOM tag) but regardless the image data after the header is constant.
anyone have any ideas?
-raw
|
|
|
|
|
Wrong forum probably, This is VC++ forum, you might want to look for any forum related to DICOM.
-prakash
|
|
|
|
|
I have a class like this:
class C {
private:
char *str;
public:
const char *getStr() { return str;}
};
This protects "str" from getting modified from outside. But thats only a myth, it can actually be modified through casting. For eg, I have been using the following for a while (it is actually very convenient for me, and safe in my application):
PathRemoveFileSpec(const_cast<char *="">(obj.getStr()))
But, I am wondering if there is any way to prevent somebody from doing this. we can perhaps overload the cast operator and make it private, but operator is on the object, not on the "char *" that is returned by getStr().
Any ideas anyone?
|
|
|
|
|
Ok, codeproject has eaten some of my text thinking it is apple. I should have marked it as code. Here it is again:
<br />
PathRemoveFileSpec(const_cast<char*>(obj.getStr()))<br />
|
|
|
|
|
Ah, I am not so good at using codeproject. Perhaps you are good at figuring out what I really wanted to write. Let me try this:
const_cast< char * >
|
|
|
|
|
Flace wrote:
Perhaps you are good at figuring out what I really wanted to write
nop, just wondering why you didn't just edited your post (with the little [Modify] link at the bottom right of a post) instead of posting new ones...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
with the little [Modify] link at the bottom right of a post
-prakash
|
|
|
|
|
As far as I'm aware, you can't overload any of the _cast methods.
Use of const_cast can be tricky to do safely (which is why it's generally preferable to avoid it if you can), but I don't think there's a way to stop someone using it to remove the const'dness (!?) from an object.
It's worth checking out the C++ FAQ Lite[^] for some useful do's and dont's, and it may give you some ideas about how you could protect your class.
|
|
|
|
|
Hello,
I don't have VStudio installed here so I don't know if this works:
#ifdef const_cast
#undef const_cast
#endif // const_cast
#define const_cast \
char* const_cast(const char* psArg) \
{ \
\
}
Note here that you influence the global namespace here and other developers might dislike this "feature". Also remember that using cons_cast to manipulate objects that shouldn't be manipulated is asking for trouble. So it's the responsibility of the developer who is using your class, that he is using it wisely. So don't bother too much to make your class "fool proof" somehow someone will find a way to prove you wrong!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
-- modified at 16:40 Thursday 6th October, 2005
|
|
|
|
|
I want to check an IP against the NAT table mappings . Any ideea how to do this programmaticaly using MF C? A starting point ( or example) will be apreciated !
|
|
|
|
|
When running a console application from a command window which has the quickedit option enabled, a user could inadvertently click in the window text area of the command window, placing it in edit mode. This can suspend a running console application.
Is there a way for the console application to disable/enable quiickedit for the window it's running in? If not, is there another workaround?
-kg
Ken Goguen
|
|
|
|
|
Have you found an answer?
|
|
|
|
|
How can I identify a font is unicode or not, programatically?
I have the facename only.
Thanks in advance!
- NS -
|
|
|
|
|
Hi
I have done with my application that I was building using MFC.
Now i want to change the ICON of the EXE which is right now Standard MFC Icon. I have *.ico file and I want to load that Icon to my EXE. Is there a way to do this...?
Regards,
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Go into the resource editor, and modify the IDR_MAINFRAME icon (Be sure to change all sizes (16*16, 32*32, ...)
~RaGE();
|
|
|
|
|
first import an Icon into your resource, then note down its ID , by default it'll be set as IDI_ICON1,2,3, etc. so if u want your IDI_ICON1 to be the ICON for ur EXE, in the constructor, change this line
[code]
//m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
//to
m_hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
[/code]
Every man should marry. After all, happiness is not the only thing in life.
--[v]--
|
|
|
|
|
Thankx Vivek
It helped ....
Regards
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
as David said, if you replace the icon in the res folder, you wont face a problem, which when you view your folder in 'list' mode, it'll switch back to that old MFC icon. check your Exe's icon , after creating the .Exe, by chaning the view mode(thumbnail,list,details,etc) in the folder option. if its ok then leave it. if not change the MFC icon in the RES folder.
Every man should marry. After all, happiness is not the only thing in life.
--[v]--
|
|
|
|
|
Vivekuniq wrote:
if not change...
... just edit the different sizes of the icon...!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
The simplest way is to replace the .ico file in the res folder and then rebuild the project.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
using the class wizard i added the following function for a class derived from CListCtrl.
When i rename the lable i want that to be displayed there after.
If i could get the text, row and column i can use SetItemText function. What are these parameters(NMHDR *pNMHDR, LRESULT *pResult) and what does they contain.
void CWifiMdsView::OnLvnEndlabeledit(NMHDR *pNMHDR, LRESULT *pResult)
{
NMLVDISPINFO *pDispInfo = reinterpret_cast<NMLVDISPINFO*>(pNMHDR);
*pResult = 0;
}
Thanks a lot.
|
|
|
|