|
|
Yes, but I want to use a character neutral set function.
Thx
|
|
|
|
|
paper67 wrote: Is there any way to convert from a LPTSTR to a float value.
what about _tcstod function
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 6:54 Tuesday 6th December, 2005
|
|
|
|
|
That's the one I need.
Thx a lot.
|
|
|
|
|
paper67 wrote: Thx a lot.
My Pleasure
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
How about the old standby, sscanf ? There is also a wide-character version, swscanf . If you've eliminated the whitespace around the string-represented floating-point value, then the following will work:
float fValue;
int nResult = sscanf((LPCTSTR)sData, "%f", &fValue);
if( nResult != 1 )
{
}
Bob Ciora
|
|
|
|
|
wcstod() contained in <stdlib.h >
~RaGE();
|
|
|
|
|
Is there ready lib or dll for VC++ to capture video from usb camera with available function to get a single captured frame to Memory Array in different types of byte stream (rgb,gray,yuv, etc...) or just in any one type?
9ine
|
|
|
|
|
if what cam ur using
if u r using logitech web cam
the sdk is avaliable in logitech site
u need to install driver first
any how ,if u r using any other u have lot many no of open sources
like vision, and lot many, search in google u will get lot many
All the best
bye
kattavictor
|
|
|
|
|
I found that windows sound recoder could show the "Sound Selection" dialog to let user set the format and attributes of the recorded audio file, some other programs could show the dialog too.
So I think there must be a windows API that could call this Dialog, I need it
in my program. Does anyone know how to call it?
http://www.yesalbum.com/v001/aisonbert/sound_selection_dlg.jpg[^]
Thanks in advance!
Bert
-- modified at 4:39 Tuesday 6th December, 2005
|
|
|
|
|
You can use some of the control panel functions and thus invoke it directly.
See this MSDN topic : Executing Control Panel Items
|
|
|
|
|
hi
i want to copy a variant into void* variable i.e.
void* voidpvar;
VARIANT varvar;
i cant do voidpvar=varvar or varvar=voidpvar
What to do?
thanks
|
|
|
|
|
|
i want to terminate any running programme. is any API call. pls tell me
|
|
|
|
|
TerminateProcess is what you are looking for.
|
|
|
|
|
TerminateProcess(HANDLE hProcess, UINT uExitCode);
hProcess can be obtained by:
OpenProcess(...);
this is this.
|
|
|
|
|
::PostMessage(handle_to_kill, WM_CLOSE);
using WM_QUIT should work too, ,but i don't know the difference between them.
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20]
|
|
|
|
|
Hi,
The WM_QUIT message is not associated with a window and therefore will never be received through a window's window procedure.
The WM_CLOSE message is sent as a signal that a window or an application should terminate.
Do not post the WM_QUIT message using the PostMessage function; use PostQuitMessage.
Bye
Cool Ju
Dream Ur Destiny
|
|
|
|
|
Cool Ju wrote: Do not post the WM_QUIT message using the PostMessage function; use PostQuitMessage.
In context on original problem posted by User,Sorry for correcting you.. You cannot use PostQuitMessage to terminate/close other process .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
I should have posted my comment clearly. Thanks for correcting it.
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
I did a project in VC++ 6.0 in windows XP but when I run the same exe in windows 98, the default font type and size of the modal dialog box changes. (The font in the caption bar of the main frame and child frame is the default) Wut is the problem? Should i give default font type and size in DoModal() function?
|
|
|
|
|
In Window XP if a Window function has a string argument,it manipulates or handles the string as Unicode (even if the code is not compiled as unicode).This is not in Window 98
|
|
|
|
|
sunit5 wrote: In Window XP if a Window function has a string argument,it manipulates or handles the string as Unicode (even if the code is not compiled as unicode).This is not in Window 98
You are right in windows XP, the string args are treated as unicode wheather it unicode or not (internally). But little correction you Sir!.. users problem is not related with UNICODE.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Arrun wrote: Wut is the problem? Should i give default font type and size in DoModal() function?
That’s the common Problem.. As Font Setting is different for different computer /OS + User can easily change it (By applying new theme, changing display setting etc) .. It is always good to set your own default font when designing software...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
I am trying retrieve summary information of the file.
I was using stgOpenStorage API. My code is working only for Word documents and text files.
I need this for mpeg,jpeg & wmv files.
The following is the code i am using.
try
{
hr = StgOpenStorageEx( L"D:\\Photos\\daffs-768.jpg",
STGM_READ|STGM_SHARE_DENY_WRITE ,
STGFMT_ANY,
0, NULL, NULL,
IID_IPropertySetStorage,
reinterpret_cast<void**>(&pPropSetStg) );
if( FAILED(hr) )
throw L"Failed StgOpenStorageEx";
IUnknown *pUnk = NULL;
hr = pPropSetStg->QueryInterface (IID_IUnknown,(void**)&pUnk);
hr = pPropSetStg->Open( FMTID_SummaryInformation, STGM_READ | STGM_SHARE_EXCLUSIVE,
&pPropStg );
if( FAILED(hr) )
throw L"Failed IPropertySetStorage::Open";
// Read the property back and validate it
hr = pPropStg->ReadMultiple( 1, &propspec, &propvarRead );
if( FAILED(hr) )
throw L"Failed IPropertyStorage::ReadMultiple";
if( S_FALSE == hr )
throw L"Property didn't exist after reopening the property set";
else
{
int len = strlen(propvarRead.pszVal);
WCHAR* data = new WCHAR[len];
mbstowcs(data,propvarRead.pszVal,len);
wprintf(data);
delete data;
}
}
catch( const WCHAR *pwszError )
{
wprintf( L"Error: %s (hr=%08x)\n", pwszError, hr );
}
Please help me how to do this.
|
|
|
|