|
Thanks Michael - that solved the problem. I wonder why it's not mentioned even a single time in MSDN...
Very best regards!
Irek
Check out my software at: http://www.ireksoftware.com
|
|
|
|
|
Hi GURUS
Ive transfered a program from WinXP back to Win98 (VC++6,MFC)
Trying to print on the same printer I get following problem:
Code:
m_PrintDC.SetMapMode( MM_HIMETRIC );
CSize winsize = m_PrintDC.GetWindowExt();
In WinXP I get the correct size of the window in HiMetric
(about 20100x27000) but in Win98 I always get 2450 x 2450 !!
I also cannot change (SetWindowExt, SetViewportExt ) to anything.
Calling m_PrinterDC.GetMapMode() results in MM_HIMETRIC !
The GetDeviceCaps(HORZSIZE)... works fine !.
But calling LineTo() with values in the range of the devicecaps is outside WindowExt/Org so it doesnt work -
Where does this difference come from ? Is there any default in XP which I have to Set for Windows 98. (another mapping mode ?)..
pls help, -> thx !
|
|
|
|
|
i want to open a wav file and get the file from my drive c harddisk. what commands should be used to get the wav file??Thanks i really badly needed the commands.Thanksss!!!Help me out
|
|
|
|
|
http://www.wotsit.org/search.asp?page=8&s=music[^] <- This site should give you some help with that. It should give you the format of the data to read. Be careful when loading the sound data, as it could take up a lot of memory.
Joel Holdsworth
|
|
|
|
|
thanks a lot man!!!
|
|
|
|
|
HI ,
I know the IP adress of other System. and it COM port name COM1.
I want to mapp it virtualy on my system.
How can i do it.
any sample
thanx
Regards.
|
|
|
|
|
HI,
As i know we can write Windows services for Windows 2000 and Windows XP .
Can we write them for Windows 98.
if yes , is it done in same way as for 2000 and XP.
or any change
thanx
Regards.
|
|
|
|
|
I need a really Easy, Compatible and preferably Lightweight way to load PNG files to a DIB. I also need the alpha channel to be read correctly. So far I've looked at CxImage (rather heavyweight, and discontinued by David Pizzolero), libpng (very difficult to compile or link in MSVC7) and http://www.codeproject.com/bitmap/graphicsuite.asp[^] (but this requires a recent version of IE). Does anyone have any suggestions?
Joel Holdsworth
|
|
|
|
|
if you'll allow me a blatant advertisement, i can recommend my company's own library, ImgSource. it does tons more than just loading PNGs, but the linker will ensure that only the parts you use will get used, so you won't get penalized if you don't use it all. PNG support should add about 100K to your app.
here's a sample:
<br />
HISSRC hSrc = IS3OpenFileSource(filename);<br />
HGLOBAL hDIB = IS3ReadImageToDIB(hSrc,...);<br />
IS3CloseSource(hSrc);<br />
<br />
BITMAPINFOHEADER *pDIB = (BITMAPINFOHEADER *)hDIB;<br />
<br />
...<br />
<br />
GlobalFree(hDIB);<br />
-c
Software | Cleek
|
|
|
|
|
Wow thanks! That could well be my solution
Joel Holdsworth
|
|
|
|
|
has anyone done work in this direction?
you can call c/c++ code from python and there is a version of python for pocket pc.
and i have written a few simple dll's that work from python on pocket pc
the problem is in xml processing - i tried the code at http://www.codeproject.com/soap/ce_xml.asp but as soon as i put the Python wrappers around it and point to the Python include files, i get errors
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5395) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'const unsigned short *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5396) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [4]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5404) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [100]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5413) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [12]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5414) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [100]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5417) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5420) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [10]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5421) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [2]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
stl_eVC\wce_defs.h(47) : warning C4005: 'assert' : macro redefinition
C:\hons\pocketpc\python_ce_build\Python-2.3.4\PC\WinCE\assert.h(7) : see previous definition of 'assert'
any ideas why or how to get around it.
cheers
|
|
|
|
|
It looks like you need to set things to compile for UNICODE rather than ANSI.
Software Zen: delete this;
|
|
|
|
|
umm and how do i set that?
thanks
|
|
|
|
|
I usually place something like the following lines in my stdafx.h file, before any other definitions or #include 's:
#undef _MBCS
#define UNICODE
#define _UNICODE
#if (!defined(_WINDLL))
#pragma comment(linker,"/entry:\"wWinMainCRTStartup\"")
#endif The #pragma sets the entry point for the application to the UNICODE entry point for the runtime library startup code.
Software Zen: delete this;
|
|
|
|
|
hi!
that didn't work. i actually got a few more warning messages -
C:\hons\pocketpc\ce_xml_src\StdAfx.h(2) : warning C4005: 'UNICODE' : macro redefinition
unknown(0) : see previous definition of 'UNICODE'
C:\hons\pocketpc\ce_xml_src\StdAfx.h(3) : warning C4005: '_UNICODE' : macro redefinition
unknown(0) : see previous definition of '_UNICODE'
thanks
cheers
|
|
|
|
|
Hi all,
I'm looking for a way to be notify "upon" a port(tcp/udp) on my system is being opend like all Firewall softwares.in the other word is there any EVENT or somethings like this to use for this purpose.? By the way how can i get the port number and name of app that have opened this port.
Any help appreciated.
With Best Regards.
|
|
|
|
|
is it possible to have multible colors for one string in a CEdit box
|
|
|
|
|
|
Or you could do it with an Owner Drawn Edit Control.
store your internet favourites online - www.my-faves.co.uk
|
|
|
|
|
is it that easy to do ? me think you need to handle more than the OnPaint ?!
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
I'd like to have a application that is both server and client,
if the application starts, it checks if another instance of this
application is running on another server on the same LAN, if so
it should send back some indification message.
So I suppose I've to send a udb-broadcast with the server-part of
the application, the other instance receives this braodcast with
it's own server part and send's back a message to the other instance
with the client part.
Maybe someone can give a link to a source code sample
Thank you
Mario
|
|
|
|
|
Hello !
I want to exchange 2 rows of data between them in a CListCtrl
What is the simplest and fastest way to do this ?
thank you
|
|
|
|
|
To exchange items 3 and 4, simply get item 3's attributes (e.g., subitem values, pointer data), remove item 3 (which would make item 4 the new item 3) and add it back as item 4. Make sense?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi all ... I've just downloaded the updated DirectX 9 SDK and now I cant compile the samples (capturesound) with my Visual C++ 6. I have the Platform SDK 2003 Feb installed and the problem is, it askes for UNICODE build. If i define UNICODE in the project settings, it gives another error: "__noop not defined". From MSDN, I found out __noop is a microsoft specific C++ intrinsic and my guess is, its not implemented in VC6 compiler. Is there any workaround to this problem for Visual C++ 6? Thanks in advance.
-Tareq
|
|
|
|