|
your service needed
ATL
V
|
|
|
|
|
It is unclear to me what you are asking or commenting about?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I have been trying to test a sample project, but when I try and run it in Debug mode I get the message:-
'MySmaple.exe' does not contain debugging information. (No symbols loaded.)
Click OK to debug anyway.
Any suggestions as how to be able to set breakpoints etc again.
Many thanks,
|
|
|
|
|
Running it in Debug mode (F5) is not the same as compiling it with Debug symbols.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
how can I obtain data bits excluding header of an jpeg
dlfkgj lsdfkglfkgjlfgl jldfk fldkk jk
|
|
|
|
|
|
Anybody ever seen this:
Using VS.NET 2003 to compile C++ code.
App 1
double freq = 6;
double newFreq = abs( freq + 0.5 ) + 4;
App 2
double freq = 6;
double newFreq = abs( freq + 0.5 ) + 4;
When compiled
App 1 = 0 errors, o warnings
App 2 = Warning C4244 conversion from 'double' to 'int', possible loss of data
Strange ? But wait there is more !
App 1
Value of newFreq = 10.5
App 2
Value of newFreq = 10
Why does 'App 1' not produce the warning and a different answer ?
I am confused.
Users.
Can't live with 'em, can't kill em!
|
|
|
|
|
Are the compiler settings for each exactly the same?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Yes, the compiler settings are exactly the same for both apps.
Wierd eh ?
Users.
Can't live with 'em, can't kill em!
|
|
|
|
|
From the MSDN website:
C++ allows overloading, so you can call overloads of abs. In a C program, abs always takes and returns an int.
Is that answering your question ? Maybe your second program is compiled as pure C program ?
|
|
|
|
|
I agree, I have checked that abs() has not been overloaded anywhere else in the program, it has not.
Wierd eh ?
Both programs are compiled as C++
Users.
Can't live with 'em, can't kill em!
-- modified at 9:04 Thursday 22nd September, 2005
|
|
|
|
|
Problem solved !
A co-worker found that <complex> was included in StdAfx.h
When commented out, both apps perform the same way.
Cheers everybody
Users.
Can't live with 'em, can't kill em!
|
|
|
|
|
even if it is fixed, did you have a look at ::abs() and ::fabs() ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi All.
I want to detect disk type on windows.
Is it Basic or Dynamic?
Can any one help me.
Thanks in advance.
Sanjay
|
|
|
|
|
Check here[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thanks Nilesh.
But this is only for virtual server.
However I need it for Windows2K,XP,Server
all windows versions which supports dynamic disks.
Thanks.
|
|
|
|
|
Hi, how can i determine if a PIDL is above or below another one?
What im trying todo is stop a user browsing up higher than a certain directory in my application.
The code i have been trying to use is:
CComPtr<ishellfolder> pDesktop;
if (SUCCEEDED(::SHGetDesktopFolder(&pDesktop)))
bReturn = static_cast<short>(HRESULT_CODE(pDesktop->CompareIDs(SHCIDS_CANONICALONLY, m_DirectoryIdList, pidlBrowse))) <= 0;
Which works fine when browsing deeper into folders, but doesnt work when pressing the up button.
How can i determine if the pidl of
C:\test\
comes before the pidl of
C:\test\cant_browse_below_here
I thought about converting the PIDLs to BYTE arrays and then comparing each byte. Is this a suitable way of continuing?
Skute
|
|
|
|
|
Have you considered restricting access to C:\test\ at the OS level?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Ignore this. I was being dumb, passing in the current directory pidl, rather than the highest directory pidl i had previously stored.
Skute
|
|
|
|
|
Hi,
Am using WMI to collect the mount point details.Can anyone suggest me a WMI class that associates Volume GUID of a mount point to the disk number where it resides?
URagav
Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
|
|
|
|
|
Hope this[^]helps
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Hi,
Thnx .am actually using that class....From that class,I can get the directory name where teh mount point is established and its Volume GUID...Now I need a mapping between this Volume GUID and the disk number where that mount point resides...
URagav
Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
|
|
|
|
|
Oops! No much idea then
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
(The title may not be very appropriate to summarise the problem..)
1) I have an little application that checks some stuff on timer. If something occurs, it creates a topmost dialogbox and display certain info (let's call it MyAlarmBox).
2) a control in the application can create a float menu if user R-clicks the mouse.(I use TrackPopupMenu)
Usually everythings works fine. But in the following circumstance:
1) user R-clicks the control to get the float menu.
2) before user selects a command, the MyAlarmBox goes off.
I end up with the MyAlarmBox on top being not able to receive any mouse click.
The workaround is to click any non-this-window area, then come back clicking on the dialog box, the dialog box 'comes alive' again. In short, the float menu and the dialog box are in conflict -- the float menu grabs the 'focus' (this may not be the correct word, please correct me if you could) and does not release it to the newly popped-up dialog box.
Anyone can help me solve this???...
|
|
|
|
|
The optimal solution would be to cancel the popup menu when the dialog is displayed, but I cannot find any way of cancelling a menu from the app. Instead, I would block the display of the dialog while you're tracking the menu.
<br />
bTracking = TRUE;<br />
cmd = TrackPopupMenu(...);<br />
bTracking = FALSE;<br />
<br />
<br />
if (!bTracking)<br />
dlg.DoModal(...)<br />
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|