|
Sorry, I have never tried what you are doing. It sounds like the dll-function is displaying the error instead of the main program. You can make the dll function so that it only returns the error text message, instead of displaying it also. Take the string from it, and display it in the main program.
And are you using cout ? If you are, then you know cout buffers a lot of output, so the displayed output can get messy. Try using something like cprintf . I think that should do it. If it doesn't then try the above ideas. If that doesn't help either, then create a new thread, and try posting some code with it as well, hopefully someone will help you.
this is this.
|
|
|
|
|
thank you, that worked exactly as i was wanting it to
|
|
|
|
|
|
I think the problem is because you are setting a 32x32 icon. You can try creating a new icon resource with dimensions 16x16 . And use LoadIcon(...) to load it. That should do it.
this is this.
|
|
|
|
|
|
Owner drawn wrote: with dimensions CX_CXSMICON, and CX_CYSMICON
You must mean: SM_CXICON and SM_CYICON .
Owner drawn wrote: but I wanted the other one
I am not sure what you mean by that.
Anyway here is a standard way:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
this is this.
|
|
|
|
|
khan++ wrote: You must mean: SM_CXICON and SM_CYICON.
Yeah.
khan++ wrote: I am not sure what you mean by that.
If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.
khan++ wrote: HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
This returns a 32x32 icon.
Jesus Lives Forever - Amen <marquee direction="up" height="40" scrolldelay="10" step=".5" scrollamount="1" style="background:#99ccff;border-bottom:thin solid 1px #6699cc">
--Owner drawn
--An eye for an eye makes the whole world blind.
--Jesus is Lord
|
|
|
|
|
I have never loaded a multi-icon icon (not sure about the term). That is: an icon which contains multiple sized icons, like: 16x16x4 , 16x16x8 , 32x32x4 ... (width x height x bits/pixel) within one .ICO file. You can do a search on it.
As I said in my first reply that you can create a new 16x16 icon resource, and try loading that one.
this is this.
|
|
|
|
|
tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts.
so if you want it to be displayed like in your resource editor you need to make it 16x16.
saludos
|
|
|
|
|
|
did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)
|
|
|
|
|
|
if you have windows xp, then yes, they have more then 16 colors.
take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16.
again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.
|
|
|
|
|
|
Hi,
I have a string have data of time format. like
strTime = 06:45:18
I want to convert it into time object or store it into time variable ,
Becuase I want to take the time difference between to time that are actualy first stored in strings
thanks
Regards.
|
|
|
|
|
Hi You can use the following function
size_t strftime(
char *strDest,
size_t maxsize,
const char *format,
const struct tm *timeptr
);
size_t wcsftime(
wchar_t *strDest,
size_t maxsize,
const wchar_t *format,
const struct tm *timeptr
);
Wishes.
Anshuman Dandekar
Dare to Dream,
Care to Achieve.............
-- modified at 3:00 Tuesday 31st January, 2006
|
|
|
|
|
|
You are right. String object to time. Do you have any idea how it will be
Regards.
|
|
|
|
|
|
The following code may help u..
i have Created and Debugged demo for U.
Assumming that ur using MFC Application
CString strTime="06:45:18";
CString h,m,s;
SYSTEMTIME st;
GetSystemTime(&st);
h=strTime.Mid(0,2);
m=strTime.Mid(3,2);
s=strTime.Mid(6,2);
sscanf(h.GetBuffer(2),"%d",&st.wHour);
sscanf(m.GetBuffer(2),"%d",&st.wMinute);
sscanf(s.GetBuffer(2),"%d",&st.wSecond);
CTime t(st);
//h.Format("%d:%d:%d",t.GetHour(),t.GetMinute(),t.GetSecond());
//AfxMessageBox(h);
best luck.
Thanks and Regards
Laxman
FAILURE is the first step towards SUCCESS
|
|
|
|
|
Since your example uses MFC, why not simplify things by using COleDateTime::ParseDateTime() ? For example:
COleDateTime t;
t.ParseDateTime("06:45:18", VAR_TIMEVALUEONLY);
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
One of my colleagues has got a MSVC++ Runtime error popup "R6025 - pure virtual function call". The popup is still there on his machine, so I would like to know if any crash info(address of instr that caused crash) can be obtained from this popup, may be by attaching the MSVC++ debugger or even WinDBG. Does anyone know how this situation can be debugged?
thanks!
|
|
|
|
|
What I'd do is the following:
- Attach WinDBG to it ("File->Attach to a Process...", select process then press "OK").
- In the command window (if not visible select "View->Command") type ".dump /ma dumpfile.dmp". Replace "dumpfile.dmp" with a filename of your choice.
This will create a dumpfile so you can look at the problem offline (by selecting "File->Open Crash Dump...").
Steve
|
|
|
|
|
WinDBG is not installed. Can we do something with MSVC++?
thanks!
|
|
|
|
|
Not to my knowledge. You can still attach to the process and debug it but can't create a dump file. For difficult to reproduce errors dump files are invaluable.
Steve
|
|
|
|