|
Hi,
is there a way to check an item when using InsertItem()? I'm trying to use SetCheck after InsertItem but it won't work!
How can I do that?
Thanks!
|
|
|
|
|
I have an MFC dialog based application containing several modeless dialogs.
A user has asked that one of the dialogs be multiple; i.e. the particular dialog displays data from an internal database and wants up to 5 instances of this dialog display showing various filtered views on he database.
So my question as I have all the code for managing the display dialog, can this dialog be made into an dialog array. Or are they another way extra instances of this dialog can be created.
Any suggestions for this unforeseen problem.
grahamfff
|
|
|
|
|
That is the beauty of a class. All it's data objects are self contained. So, provided it is a modeless dialog, you can create as many instances of it as you like. And yes, you can do it from an array if you want too.
|
|
|
|
|
Thanks for your post.
Just one question I can't see how to do an array of Modeless dialogs.
ANy help appreciated.
grahamfff
|
|
|
|
|
Hi to all
Recently I decided to move my application to UNICODE. All is near done (it complies and works (most of the time)) but I found a strange problem.
When I have some unicode string in for example WCHAR szTest[100] table - calling AfxMessageBox or SetWindowText on dialogs - displays unicode strings correctly.
But if I try to SetWindowText the same string into static control (or button) it shows a garbage text. Spy++ utility reports that those static controls and buttons are Unicode windows.
Any idea why it works this way?
Thanks for your time!
Irek
Check out my software at: http://www.ireksoftware.com
|
|
|
|
|
If you're using VC 6, you need to manually edit the .rc file and change the dialogs to use MS Shell Dlg as the font instead of MS Sans Serif .
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Laugh it up, fuzzball.
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
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
|
|
|
|